Date
June 16, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.797907] ================================================================== [ 18.798090] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 18.798229] Write of size 1 at addr fff00000c660e00a by task kunit_try_catch/155 [ 18.798381] [ 18.798471] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT [ 18.798717] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.798809] Hardware name: linux,dummy-virt (DT) [ 18.798924] Call trace: [ 18.798983] show_stack+0x20/0x38 (C) [ 18.799097] dump_stack_lvl+0x8c/0xd0 [ 18.799221] print_report+0x118/0x608 [ 18.799333] kasan_report+0xdc/0x128 [ 18.799507] __asan_report_store1_noabort+0x20/0x30 [ 18.799613] kmalloc_large_oob_right+0x278/0x2b8 [ 18.799710] kunit_try_run_case+0x170/0x3f0 [ 18.799807] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.799946] kthread+0x328/0x630 [ 18.800074] ret_from_fork+0x10/0x20 [ 18.800203] [ 18.800305] The buggy address belongs to the physical page: [ 18.800409] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10660c [ 18.800545] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.800641] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.800766] page_type: f8(unknown) [ 18.800934] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.801065] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.801186] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.801295] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.801425] head: 0bfffe0000000002 ffffc1ffc3198301 00000000ffffffff 00000000ffffffff [ 18.801549] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.801650] page dumped because: kasan: bad access detected [ 18.801715] [ 18.801752] Memory state around the buggy address: [ 18.801824] fff00000c660df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.801931] fff00000c660df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.802052] >fff00000c660e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.802179] ^ [ 18.802275] fff00000c660e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.802380] fff00000c660e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.802473] ==================================================================
[ 10.883142] ================================================================== [ 10.884193] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 10.884892] Write of size 1 at addr ffff888102a8a00a by task kunit_try_catch/171 [ 10.885126] [ 10.885216] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) [ 10.885266] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.885277] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.885298] Call Trace: [ 10.885312] <TASK> [ 10.885331] dump_stack_lvl+0x73/0xb0 [ 10.885360] print_report+0xd1/0x650 [ 10.885382] ? __virt_addr_valid+0x1db/0x2d0 [ 10.885407] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.885427] ? kasan_addr_to_slab+0x11/0xa0 [ 10.885447] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.885468] kasan_report+0x141/0x180 [ 10.885488] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.885514] __asan_report_store1_noabort+0x1b/0x30 [ 10.885537] kmalloc_large_oob_right+0x2e9/0x330 [ 10.885571] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 10.885592] ? __schedule+0x10cc/0x2b60 [ 10.885613] ? __pfx_read_tsc+0x10/0x10 [ 10.885646] ? ktime_get_ts64+0x86/0x230 [ 10.885672] kunit_try_run_case+0x1a5/0x480 [ 10.885700] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.885721] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.885742] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.885773] ? __kthread_parkme+0x82/0x180 [ 10.885794] ? preempt_count_sub+0x50/0x80 [ 10.885817] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.885851] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.885873] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.885894] kthread+0x337/0x6f0 [ 10.885923] ? trace_preempt_on+0x20/0xc0 [ 10.885955] ? __pfx_kthread+0x10/0x10 [ 10.885975] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.885994] ? calculate_sigpending+0x7b/0xa0 [ 10.886017] ? __pfx_kthread+0x10/0x10 [ 10.886038] ret_from_fork+0x116/0x1d0 [ 10.886056] ? __pfx_kthread+0x10/0x10 [ 10.886075] ret_from_fork_asm+0x1a/0x30 [ 10.886115] </TASK> [ 10.886127] [ 10.893603] The buggy address belongs to the physical page: [ 10.893870] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a88 [ 10.894236] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.894675] flags: 0x200000000000040(head|node=0|zone=2) [ 10.894869] page_type: f8(unknown) [ 10.895057] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.895386] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.895734] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.896062] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.896374] head: 0200000000000002 ffffea00040aa201 00000000ffffffff 00000000ffffffff [ 10.896726] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.897039] page dumped because: kasan: bad access detected [ 10.897277] [ 10.897340] Memory state around the buggy address: [ 10.897634] ffff888102a89f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.898236] ffff888102a89f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.898488] >ffff888102a8a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.899045] ^ [ 10.899163] ffff888102a8a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.899368] ffff888102a8a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.900101] ==================================================================