fix parsing of reboot= cmdline
Status from this message: [merged] reboot-refactor-and-comment-the-cpu-selection-code.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 5 repliesApplied 3/3
- v22 patches 12 repliesSuperseded
- v12 patches 7 repliesSuperseded
Changes in v3 from the cover letter
Revert the offending commit first, then fix the other bug. CC stable
Patches in v3 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Revert "kernel/reboot.c: convert simple_strtoul to kstrtoint"kernel/ | +7 | 1 reply | Applied |
| 2/3 | reboot: fix overflow parsing reboot cpu numberkernel/ | +7 | 3 replies | Applied |
| 3/3 | reboot: refactor and comment the cpu selection codekernel/ | +17 | 1 reply | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Petr Mladek |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] fix parsing of reboot= cmdline
From: Matteo Croce <[email protected]>
The parsing of the reboot= cmdline has two major errors:
- a missing bound check can crash the system on reboot
- parsing of the cpu number only works if specified last
Fix both, along with a small code refactor.
v2->v3:
Revert the offending commit first, then fix the other bug. CC stablev1->v2:
As Petr suggested, don't force base 10 in simple_strtoul(), so hex values are accepted as well.
Matteo Croce (3):
Revert "kernel/reboot.c: convert simple_strtoul to kstrtoint"
reboot: fix overflow parsing reboot cpu number
reboot: refactor and comment the cpu selection code
kernel/reboot.c | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-)
Signature · 1 line
2.28.0