Date
July 24, 2025, 4:41 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.220845] ================================================================== [ 32.221548] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 32.221785] Write of size 1 at addr fff00000c99a200a by task kunit_try_catch/177 [ 32.221838] [ 32.222053] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250724 #1 PREEMPT [ 32.222169] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.222435] Hardware name: linux,dummy-virt (DT) [ 32.222486] Call trace: [ 32.222560] show_stack+0x20/0x38 (C) [ 32.222619] dump_stack_lvl+0x8c/0xd0 [ 32.222687] print_report+0x118/0x5e8 [ 32.222739] kasan_report+0xdc/0x128 [ 32.222795] __asan_report_store1_noabort+0x20/0x30 [ 32.222843] kmalloc_large_oob_right+0x278/0x2b8 [ 32.222896] kunit_try_run_case+0x170/0x3f0 [ 32.223128] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.223531] kthread+0x328/0x630 [ 32.223587] ret_from_fork+0x10/0x20 [ 32.223902] [ 32.223951] The buggy address belongs to the physical page: [ 32.223994] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099a0 [ 32.224050] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 32.224119] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 32.224192] page_type: f8(unknown) [ 32.224241] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 32.224297] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 32.224362] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 32.224420] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 32.224471] head: 0bfffe0000000002 ffffc1ffc3266801 00000000ffffffff 00000000ffffffff [ 32.224519] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 32.224568] page dumped because: kasan: bad access detected [ 32.224613] [ 32.224632] Memory state around the buggy address: [ 32.224685] fff00000c99a1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.224741] fff00000c99a1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.224805] >fff00000c99a2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 32.225233] ^ [ 32.225653] fff00000c99a2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 32.225712] fff00000c99a2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 32.225773] ==================================================================
[ 26.313454] ================================================================== [ 26.313929] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 26.314176] Write of size 1 at addr ffff88810496e00a by task kunit_try_catch/194 [ 26.314396] [ 26.314483] CPU: 0 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) [ 26.314537] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 26.314551] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.314583] Call Trace: [ 26.314596] <TASK> [ 26.314616] dump_stack_lvl+0x73/0xb0 [ 26.314645] print_report+0xd1/0x640 [ 26.314671] ? __virt_addr_valid+0x1db/0x2d0 [ 26.314696] ? kmalloc_large_oob_right+0x2e9/0x330 [ 26.314717] ? kasan_addr_to_slab+0x11/0xa0 [ 26.314736] ? kmalloc_large_oob_right+0x2e9/0x330 [ 26.314757] kasan_report+0x141/0x180 [ 26.314781] ? kmalloc_large_oob_right+0x2e9/0x330 [ 26.314806] __asan_report_store1_noabort+0x1b/0x30 [ 26.314829] kmalloc_large_oob_right+0x2e9/0x330 [ 26.314849] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 26.314871] ? __schedule+0x10da/0x2b60 [ 26.314894] ? __pfx_read_tsc+0x10/0x10 [ 26.314915] ? ktime_get_ts64+0x86/0x230 [ 26.314939] kunit_try_run_case+0x1a5/0x480 [ 26.314963] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.314984] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.315008] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.315032] ? __kthread_parkme+0x82/0x180 [ 26.315051] ? preempt_count_sub+0x50/0x80 [ 26.315074] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.315096] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.315118] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.315140] kthread+0x337/0x6f0 [ 26.315160] ? trace_preempt_on+0x20/0xc0 [ 26.315183] ? __pfx_kthread+0x10/0x10 [ 26.315202] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.315224] ? calculate_sigpending+0x7b/0xa0 [ 26.315246] ? __pfx_kthread+0x10/0x10 [ 26.315274] ret_from_fork+0x116/0x1d0 [ 26.315292] ? __pfx_kthread+0x10/0x10 [ 26.315311] ret_from_fork_asm+0x1a/0x30 [ 26.315342] </TASK> [ 26.315352] [ 26.330495] The buggy address belongs to the physical page: [ 26.330700] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10496c [ 26.331244] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.331561] flags: 0x200000000000040(head|node=0|zone=2) [ 26.332209] page_type: f8(unknown) [ 26.332431] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.332760] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 26.333455] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.333801] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 26.334305] head: 0200000000000002 ffffea0004125b01 00000000ffffffff 00000000ffffffff [ 26.334781] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 26.335332] page dumped because: kasan: bad access detected [ 26.335554] [ 26.335650] Memory state around the buggy address: [ 26.335801] ffff88810496df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.336087] ffff88810496df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.336368] >ffff88810496e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 26.336681] ^ [ 26.337058] ffff88810496e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 26.337403] ffff88810496e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 26.337682] ==================================================================