From: kernel test robot <oliver.sang@intel.com>
To: Mike Rapoport <rppt@kernel.org>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
Mike Rapoport <rppt@kernel.org>, <oliver.sang@intel.com>
Subject: [rppt:hugetlb-init/v0] [dev] 2b98427856: UBSAN:shift-out-of-bounds_in_mm/mm_init.c
Date: Thu, 25 Dec 2025 13:18:17 +0800 [thread overview]
Message-ID: <202512251347.f7f7338f-lkp@intel.com> (raw)
Hello,
kernel test robot noticed "UBSAN:shift-out-of-bounds_in_mm/mm_init.c" on:
commit: 2b98427856c3bab5b9989be36f76a0b44e81099b ("dev: use arch_zone_limits_init in free_area_init")
https://git.kernel.org/cgit/linux/kernel/git/rppt/linux.git hugetlb-init/v0
in testcase: boot
config: i386-randconfig-141-20251225
compiler: gcc-13
test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G
(please refer to attached dmesg/kmsg for entire log/backtrace)
+-------------------------------------------+------------+------------+
| | 79e90ca6f9 | 2b98427856 |
+-------------------------------------------+------------+------------+
| boot_successes | 6 | 0 |
| boot_failures | 0 | 6 |
| UBSAN:shift-out-of-bounds_in_mm/mm_init.c | 0 | 6 |
| kernel_BUG_at_arch/x86/mm/init_32.c | 0 | 6 |
| Oops:invalid_opcode:#[##] | 0 | 6 |
| EIP:arch_mm_preinit | 0 | 6 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 6 |
+-------------------------------------------+------------+------------+
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202512251347.f7f7338f-lkp@intel.com
[ 0.070716][ T0] ------------[ cut here ]------------
[ 0.071237][ T0] UBSAN: shift-out-of-bounds in mm/mm_init.c:2449:21
[ 0.072048][ T0] shift exponent 4294967295 is too large for 32-bit type 'long unsigned int'
[ 0.072859][ T0] CPU: 0 UID: 0 PID: 0 Comm: swapper Not tainted 6.19.0-rc1-00023-g2b98427856c3 #1 PREEMPT(undef) 12358efd7e0fe5d0b7a874cb915884e48f72d5eb
[ 0.074145][ T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 0.075111][ T0] Call Trace:
[ 0.075416][ T0] dump_stack_lvl (lib/dump_stack.c:122)
[ 0.075843][ T0] dump_stack (lib/dump_stack.c:130)
[ 0.076239][ T0] ubsan_epilogue (lib/ubsan.c:234)
[ 0.076637][ T0] __ubsan_handle_shift_out_of_bounds (lib/ubsan.c:496 lib/ubsan.c:496)
[ 0.077234][ T0] alloc_large_system_hash (mm/mm_init.c:2449 (discriminator 3))
[ 0.077753][ T0] vfs_caches_init_early (fs/dcache.c:3257 fs/dcache.c:3304)
[ 0.078259][ T0] start_kernel (init/main.c:1065)
[ 0.078690][ T0] i386_start_kernel (arch/x86/kernel/head32.c:129)
[ 0.079146][ T0] startup_32_smp (arch/x86/kernel/head_32.S:293)
[ 0.079607][ T0] ---[ end trace ]---
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20251225/202512251347.f7f7338f-lkp@intel.com
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-25 5:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202512251347.f7f7338f-lkp@intel.com \
--to=oliver.sang@intel.com \
--cc=lkp@intel.com \
--cc=oe-lkp@lists.linux.dev \
--cc=rppt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox