[syzbot ci] Re: xarray: fix index jumping backwards in xas_find_marked()
From: syzbot ci
Date: Thu Dec 03 2026 - 02:00:09 EST
syzbot ci has tested the following series
[v2] xarray: fix index jumping backwards in xas_find_marked()
https://lore.kernel.org/all/20261126190847.3064508-1-heyheyco@xxxxxxxxx
* [PATCH v2] xarray: fix index jumping backwards in xas_find_marked()
and found the following issue:
UBSAN: shift-out-of-bounds in xa_find
Full report is available here:
https://ci.syzbot.org/series/c1effee3-f992-4c4c-a1f3-63e64e1fa823
***
UBSAN: shift-out-of-bounds in xa_find
tree: mm-new
URL: https://kernel.googlesource.com/pub/scm/linux/kernel/git/akpm/mm.git
base: 7903e5d4dcaa83ff649ac1573619e7dc35c84116
arch: amd64
compiler: Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8
config: https://ci.syzbot.org/builds/5a93f427-8e6a-4190-863a-de5526fa8d7c/config
------------[ cut here ]------------
UBSAN: shift-out-of-bounds in lib/xarray.c:1530:20
shift exponent 60 is too large for 32-bit type 'unsigned int'
CPU: 0 UID: 0 PID: 35 Comm: kworker/0:2 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events debugfs_reap_work
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150
ubsan_epilogue+0xa/0x30
__ubsan_handle_shift_out_of_bounds+0x36d/0x400
xas_find_marked+0x106f/0x15b0
xa_find+0x17a/0x2b0
debugfs_reap_work+0x97/0x210
process_scheduled_works+0xc5d/0x1650
worker_thread+0xa47/0xfb0
kthread+0x38b/0x480
ret_from_fork+0x514/0xb70
ret_from_fork_asm+0x1a/0x30
</TASK>
---[ end trace ]---
Kernel panic - not syncing: UBSAN: panic_on_warn set ...
CPU: 0 UID: 0 PID: 35 Comm: kworker/0:2 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events debugfs_reap_work
Call Trace:
<TASK>
vpanic+0x26f/0x710
panic+0xc5/0xd0
check_panic_on_warn+0x89/0xb0
__ubsan_handle_shift_out_of_bounds+0x36d/0x400
xas_find_marked+0x106f/0x15b0
xa_find+0x17a/0x2b0
debugfs_reap_work+0x97/0x210
process_scheduled_works+0xc5d/0x1650
worker_thread+0xa47/0xfb0
kthread+0x38b/0x480
ret_from_fork+0x514/0xb70
ret_from_fork_asm+0x1a/0x30
</TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..
***
If these findings have caused you to resend the series or submit a
separate fix, please add the following tag to your commit message:
Tested-by: syzbot@xxxxxxxxxxxxxxxxxxxxxxxxx
---
This report is generated by a bot. It may contain errors.
syzbot ci engineers can be reached at syzkaller@xxxxxxxxxxxxxxxx.