diff options
| author | Vasily Gorbik <gor@linux.ibm.com> | 2026-08-19 12:31:10 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2026-09-01 12:44:48 +0200 |
| commit | 12373ea918a0e72483662095686556eea21d67bc (patch) | |
| tree | 37b5ddf35973b44a2ac97d8efa8769067238284f /tools/perf/scripts/python | |
| parent | d76181dfabdaa720703167393704efacba343442 (diff) | |
s390/boot: Bound command line facility ranges
The facilities and debug-alternative command line parsers iterate over
inclusive numeric ranges. If a range ends at ULONG_MAX, incrementing the
current value wraps to zero and the loop never terminates. Large finite
out-of-range values also cause unnecessary early boot iterations even
though the bitmap helpers ignore them.
Stop each loop at the size of the bitmap it modifies. This preserves all
meaningful range values while guaranteeing termination.
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
