Skip to content

s390: add support for extended cmdline length

Sven Schnelle kexec 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 2 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- handle short reads and interruptions in slurp_proc_file()

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5s390: add variable command line sizekexec/arch/s390/crashdump-s390.c kexec/arch/s390/kexec-image.c kexec/arch/s390/kexec-s390.h+55 -340 replies
2/5s390: use KEXEC_ALL_OPTIONSkexec/arch/s390/kexec-image.c+2 -80 replies
3/5add slurp_proc_file()kexec/kexec.c+51 -00 replies
4/5use slurp_proc_file() in get_command_line()kexec/kexec.c+10 -160 replies
5/5s390: add support for --reuse-cmdlinekexec/arch/s390/include/arch/options.h kexec/arch/s390/kexec-image.c+15 -40 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchAlexander Egorenkov
1/5R-b
2/5R-b
3/5
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] s390: add support for extended cmdline length

Hi,

this patchset adds support for extended command line lengths on s390. The former limit of 896 has been too short in a some configurations. The linux kernel now provides an additional field in the parameter area which contains the maximum allowed command line length. In older kernels this field is zero. In that case the old limit of 896 bytes is used. This was introduced with 5ecb2da660ab ("s390: support command lines longer than 896 bytes") in linux.

And while at it, also add the --reuse-cmdline option and use KEXEC_ALL_OPTIONS.

Changes in v3:
- handle short reads and interruptions in slurp_proc_file()

Changes in v2:

- add slurp_proc_file() to read proc files without knowing the size upfront
- move command_line string from global to function scope

Sven Schnelle (5):
s390: add variable command line size
s390: use KEXEC_ALL_OPTIONS
add slurp_proc_file()
use slurp_proc_file() in get_command_line()
s390: add support for --reuse-cmdline

 kexec/arch/s390/crashdump-s390.c       |  3 +-
 kexec/arch/s390/include/arch/options.h | 10 +--
 kexec/arch/s390/kexec-image.c          | 84 ++++++++++++++++----------
 kexec/arch/s390/kexec-s390.h           | 21 ++++---
 kexec/kexec.c                          | 77 ++++++++++++++++++-----
 5 files changed, 133 insertions(+), 62 deletions(-)
Signature · 7 lines
2.32.0


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec