syzbot


UBSAN: shift-out-of-bounds in radix_tree_next_chunk

Status: auto-obsoleted due to no activity on 2024/02/03 09:36
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+976652f128ff5167eac4@syzkaller.appspotmail.com
First crash: 460d, last: 460d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] UBSAN: shift-out-of-bounds in radix_tree_next_chunk 0 (1) 2023/10/30 09:45

Sample crash report:
================================================================================
UBSAN: shift-out-of-bounds in lib/radix-tree.c:213:30
shift exponent 72 is too large for 64-bit type 'long unsigned int'
CPU: 2 PID: 5174 Comm: syz-executor.3 Not tainted 6.6.0-rc7-syzkaller-00041-g611da07b89fd #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:217 [inline]
 __ubsan_handle_shift_out_of_bounds+0x27a/0x600 lib/ubsan.c:387
 shift_maxindex lib/radix-tree.c:213 [inline]
 node_maxindex lib/radix-tree.c:218 [inline]
 radix_tree_load_root lib/radix-tree.c:397 [inline]
 radix_tree_next_chunk.cold+0x56/0x152 lib/radix-tree.c:1178
 idr_get_next_ul+0x225/0x2e0 lib/idr.c:236
 idr_get_next+0x9c/0x150 lib/idr.c:267
 zap_pid_ns_processes+0x1c0/0x690 kernel/pid_namespace.c:205
 find_child_reaper kernel/exit.c:608 [inline]
 forget_original_parent kernel/exit.c:697 [inline]
 exit_notify kernel/exit.c:734 [inline]
 do_exit+0x230d/0x2a20 kernel/exit.c:894
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
 __do_sys_exit_group kernel/exit.c:1035 [inline]
 __se_sys_exit_group kernel/exit.c:1033 [inline]
 __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1033
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3529e7cae9
Code: Unable to access opcode bytes at 0x7f3529e7cabf.
RSP: 002b:00007ffeea9062f8 EFLAGS: 000[  651.199428][ T5174] RSP: 002b:00007ffeea9062f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
==================================================================
BUG: KASAN: out-of-bounds in prb_reserve+0xdc8/0xf20 kernel/printk/printk_ringbuffer.c:1503
Write of size 8 at addr ffffc900035ff090 by task syz-executor.3/5174

CPU: 2 PID: 5174 Comm: syz-executor.3 Not tainted 6.6.0-rc7-syzkaller-00041-g611da07b89fd #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:364 [inline]
 print_report+0xc4/0x620 mm/kasan/report.c:475
 kasan_report+0xda/0x110 mm/kasan/report.c:588
 prb_reserve+0xdc8/0xf20 kernel/printk/printk_ringbuffer.c:1503
 vprintk_store+0x49c/0xb80 kernel/printk/printk.c:2232

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/26 09:35 upstream 611da07b89fd 72e794c4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream UBSAN: shift-out-of-bounds in radix_tree_next_chunk
* Struck through repros no longer work on HEAD.