public inbox for oe-lkp@lists.linux.dev
 help / color / mirror / Atom feed
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]  842e0bacb5: UBSAN:shift-out-of-bounds_in_mm/mm_init.c
Date: Tue, 23 Dec 2025 12:54:07 +0800	[thread overview]
Message-ID: <202512231015.99637eb7-lkp@intel.com> (raw)



Hello,

kernel test robot noticed "UBSAN:shift-out-of-bounds_in_mm/mm_init.c" on:

commit: 842e0bacb55a7112f86ff21d520d821f7ab53e24 ("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: x86_64-randconfig-161-20251222
compiler: gcc-14
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 32G

(please refer to attached dmesg/kmsg for entire log/backtrace)


+---------------------------------------------+------------+------------+
|                                             | 5466a334e0 | 842e0bacb5 |
+---------------------------------------------+------------+------------+
| boot_successes                              | 12         | 0          |
| boot_failures                               | 0          | 15         |
| UBSAN:shift-out-of-bounds_in_mm/mm_init.c   | 0          | 15         |
| RIP:per_cpu_ptr_to_phys                     | 0          | 15         |
| BUG:unable_to_handle_page_fault_for_address | 0          | 15         |
| Oops                                        | 0          | 15         |
| RIP:__d_lookup                              | 0          | 15         |
| Kernel_panic-not_syncing:Fatal_exception    | 0          | 15         |
+---------------------------------------------+------------+------------+


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/202512231015.99637eb7-lkp@intel.com


[    1.772578][    T0] ------------[ cut here ]------------
[    1.773160][    T0] UBSAN: shift-out-of-bounds in mm/mm_init.c:2450:21
[    1.773928][    T0] shift exponent 18446744073709551615 is too large for 64-bit type 'long unsigned int'
[    1.774628][    T0] CPU: 0 UID: 0 PID: 0 Comm: swapper Not tainted 6.19.0-rc1-00023-g842e0bacb55a #1 PREEMPT(undef)
[    1.775399][    T0] Call Trace:
[    1.775636][    T0]  <TASK>
[    1.775847][    T0]  dump_stack_lvl (lib/dump_stack.c:122)
[    1.776180][    T0]  ubsan_epilogue (lib/ubsan.c:234)
[    1.776499][    T0]  __ubsan_handle_shift_out_of_bounds.cold (lib/ubsan.c:494)
[    1.776998][    T0]  alloc_large_system_hash (mm/mm_init.c:2450 (discriminator 1))
[    1.777401][    T0]  vfs_caches_init_early (fs/dcache.c:3255 fs/dcache.c:3304)
[    1.777793][    T0]  start_kernel (init/main.c:1064)
[    1.778118][    T0]  x86_64_start_reservations (arch/x86/kernel/head64.c:310)
[    1.778513][    T0]  x86_64_start_kernel (arch/x86/kernel/ebda.c:57)
[    1.778883][    T0]  common_startup_64 (arch/x86/kernel/head_64.S:419)
[    1.779234][    T0]  </TASK>
[    1.779447][    T0] ---[ end trace ]---


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20251223/202512231015.99637eb7-lkp@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


                 reply	other threads:[~2025-12-23  4:54 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=202512231015.99637eb7-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