diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-07-01 00:04:10 +0900 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-07-01 09:22:40 +0300 |
| commit | 3db1a9ccf9290ea3fe01aadf3bd743ef7032b24a (patch) | |
| tree | 089aa7d992f2fb1db439bca8933ac3f6ec3d868d /scripts/Makefile.thinlto | |
| parent | 8008f6995d0c0cf22e7b4d60e95fe14085c10f35 (diff) | |
| download | linux-next-3db1a9ccf9290ea3fe01aadf3bd743ef7032b24a.tar.gz linux-next-3db1a9ccf9290ea3fe01aadf3bd743ef7032b24a.zip | |
ARM: remove unreachable invalid range check in kasan_init()
kasan_init() maps each memblock region with for_each_mem_range(), which
guarantees pa_start < pa_end. Then it skips any region with
pa_start >= arm_lowmem_limit, so pa_start < arm_lowmem_limit is guaranteed
as well.
When pa_end <= arm_lowmem_limit, pa_start < pa_end means start < end, so
the start >= end check is unreachable.
When pa_end > arm_lowmem_limit, end is clamped to __va(arm_lowmem_limit),
and pa_start < arm_lowmem_limit means start < end, so the check is
unreachable as well.
No functional change.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Link: https://patch.msgid.link/20260630150413.1718632-6-ekffu200098@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
