Date
July 1, 2025, 11:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.170578] ================================================================== [ 18.170698] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 18.170770] Write of size 1 at addr fff00000c64ae00a by task kunit_try_catch/147 [ 18.170836] [ 18.170880] CPU: 1 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.170971] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.170999] Hardware name: linux,dummy-virt (DT) [ 18.171034] Call trace: [ 18.171059] show_stack+0x20/0x38 (C) [ 18.171112] dump_stack_lvl+0x8c/0xd0 [ 18.171177] print_report+0x118/0x608 [ 18.171226] kasan_report+0xdc/0x128 [ 18.171557] __asan_report_store1_noabort+0x20/0x30 [ 18.171619] kmalloc_large_oob_right+0x278/0x2b8 [ 18.171669] kunit_try_run_case+0x170/0x3f0 [ 18.171930] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.172021] kthread+0x328/0x630 [ 18.172087] ret_from_fork+0x10/0x20 [ 18.172200] [ 18.172347] The buggy address belongs to the physical page: [ 18.172408] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064ac [ 18.172516] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.172612] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.172716] page_type: f8(unknown) [ 18.172783] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.172838] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.172891] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.173090] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.173164] head: 0bfffe0000000002 ffffc1ffc3192b01 00000000ffffffff 00000000ffffffff [ 18.173216] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.173259] page dumped because: kasan: bad access detected [ 18.173299] [ 18.173319] Memory state around the buggy address: [ 18.173357] fff00000c64adf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.173403] fff00000c64adf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.173601] >fff00000c64ae000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.173698] ^ [ 18.173764] fff00000c64ae080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.173967] fff00000c64ae100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.174123] ==================================================================
[ 11.034415] ================================================================== [ 11.034872] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 11.035130] Write of size 1 at addr ffff888102be200a by task kunit_try_catch/163 [ 11.035353] [ 11.036691] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.036767] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.036780] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.036841] Call Trace: [ 11.036856] <TASK> [ 11.036875] dump_stack_lvl+0x73/0xb0 [ 11.036928] print_report+0xd1/0x650 [ 11.036952] ? __virt_addr_valid+0x1db/0x2d0 [ 11.036975] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.036996] ? kasan_addr_to_slab+0x11/0xa0 [ 11.037015] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.037037] kasan_report+0x141/0x180 [ 11.037057] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.037083] __asan_report_store1_noabort+0x1b/0x30 [ 11.037104] kmalloc_large_oob_right+0x2e9/0x330 [ 11.037125] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 11.037146] ? __schedule+0x10cc/0x2b60 [ 11.037167] ? __pfx_read_tsc+0x10/0x10 [ 11.037187] ? ktime_get_ts64+0x86/0x230 [ 11.037211] kunit_try_run_case+0x1a5/0x480 [ 11.037235] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.037255] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.037278] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.037299] ? __kthread_parkme+0x82/0x180 [ 11.037319] ? preempt_count_sub+0x50/0x80 [ 11.037341] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.037363] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.037394] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.037416] kthread+0x337/0x6f0 [ 11.037435] ? trace_preempt_on+0x20/0xc0 [ 11.037458] ? __pfx_kthread+0x10/0x10 [ 11.037477] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.037497] ? calculate_sigpending+0x7b/0xa0 [ 11.037520] ? __pfx_kthread+0x10/0x10 [ 11.037539] ret_from_fork+0x116/0x1d0 [ 11.037556] ? __pfx_kthread+0x10/0x10 [ 11.037592] ret_from_fork_asm+0x1a/0x30 [ 11.037622] </TASK> [ 11.037633] [ 11.052458] The buggy address belongs to the physical page: [ 11.053085] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102be0 [ 11.053834] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.054332] flags: 0x200000000000040(head|node=0|zone=2) [ 11.054551] page_type: f8(unknown) [ 11.054697] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.055615] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.056507] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.057317] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.057724] head: 0200000000000002 ffffea00040af801 00000000ffffffff 00000000ffffffff [ 11.057952] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.058194] page dumped because: kasan: bad access detected [ 11.058735] [ 11.058922] Memory state around the buggy address: [ 11.059472] ffff888102be1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.060165] ffff888102be1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.060873] >ffff888102be2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.061697] ^ [ 11.062020] ffff888102be2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.062799] ffff888102be2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.063450] ==================================================================