Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.107555] ================================================================== [ 30.107907] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 30.107972] Write of size 1 at addr fff00000c9ae200a by task kunit_try_catch/179 [ 30.108021] [ 30.108085] CPU: 0 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 30.108174] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.108200] Hardware name: linux,dummy-virt (DT) [ 30.108230] Call trace: [ 30.108253] show_stack+0x20/0x38 (C) [ 30.108301] dump_stack_lvl+0x8c/0xd0 [ 30.108347] print_report+0x118/0x5e8 [ 30.108388] kasan_report+0xdc/0x128 [ 30.108428] __asan_report_store1_noabort+0x20/0x30 [ 30.108474] kmalloc_large_oob_right+0x278/0x2b8 [ 30.109674] kunit_try_run_case+0x170/0x3f0 [ 30.109740] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.109792] kthread+0x328/0x630 [ 30.110022] ret_from_fork+0x10/0x20 [ 30.110295] [ 30.110338] The buggy address belongs to the physical page: [ 30.110500] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ae0 [ 30.110867] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.110933] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.111375] page_type: f8(unknown) [ 30.111586] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.111782] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 30.111834] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.112171] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 30.112242] head: 0bfffe0000000002 ffffc1ffc326b801 00000000ffffffff 00000000ffffffff [ 30.112348] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 30.112436] page dumped because: kasan: bad access detected [ 30.112501] [ 30.112549] Memory state around the buggy address: [ 30.112582] fff00000c9ae1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.112624] fff00000c9ae1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.113081] >fff00000c9ae2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.113125] ^ [ 30.113158] fff00000c9ae2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.113247] fff00000c9ae2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.113402] ==================================================================
[ 24.575205] ================================================================== [ 24.576496] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 24.576777] Write of size 1 at addr ffff88810592e00a by task kunit_try_catch/195 [ 24.577089] [ 24.577413] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 24.577471] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.577484] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.577505] Call Trace: [ 24.577519] <TASK> [ 24.577539] dump_stack_lvl+0x73/0xb0 [ 24.577569] print_report+0xd1/0x640 [ 24.577593] ? __virt_addr_valid+0x1db/0x2d0 [ 24.577617] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.577767] ? kasan_addr_to_slab+0x11/0xa0 [ 24.577788] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.577810] kasan_report+0x141/0x180 [ 24.577832] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.577857] __asan_report_store1_noabort+0x1b/0x30 [ 24.577881] kmalloc_large_oob_right+0x2e9/0x330 [ 24.577903] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 24.577926] ? __schedule+0x10da/0x2b60 [ 24.578062] ? __pfx_read_tsc+0x10/0x10 [ 24.578089] ? ktime_get_ts64+0x86/0x230 [ 24.578125] kunit_try_run_case+0x1a5/0x480 [ 24.578160] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.578182] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.578207] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.578232] ? __kthread_parkme+0x82/0x180 [ 24.578252] ? preempt_count_sub+0x50/0x80 [ 24.578275] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.578299] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.578321] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.578345] kthread+0x337/0x6f0 [ 24.578365] ? trace_preempt_on+0x20/0xc0 [ 24.578401] ? __pfx_kthread+0x10/0x10 [ 24.578421] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.578444] ? calculate_sigpending+0x7b/0xa0 [ 24.578467] ? __pfx_kthread+0x10/0x10 [ 24.578488] ret_from_fork+0x116/0x1d0 [ 24.578507] ? __pfx_kthread+0x10/0x10 [ 24.578527] ret_from_fork_asm+0x1a/0x30 [ 24.578558] </TASK> [ 24.578570] [ 24.591515] The buggy address belongs to the physical page: [ 24.591736] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10592c [ 24.592214] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.592873] flags: 0x200000000000040(head|node=0|zone=2) [ 24.593368] page_type: f8(unknown) [ 24.593692] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.593924] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.594724] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.595427] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.595863] head: 0200000000000002 ffffea0004164b01 00000000ffffffff 00000000ffffffff [ 24.596323] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.597234] page dumped because: kasan: bad access detected [ 24.597833] [ 24.597968] Memory state around the buggy address: [ 24.598315] ffff88810592df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.598841] ffff88810592df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.599076] >ffff88810592e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.599298] ^ [ 24.599494] ffff88810592e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.600200] ffff88810592e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.600885] ==================================================================