Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.320524] ================================================================== [ 29.320591] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 29.320708] Write of size 1 at addr fff00000c9a5200a by task kunit_try_catch/177 [ 29.320871] [ 29.320924] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 29.321021] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.321057] Hardware name: linux,dummy-virt (DT) [ 29.321097] Call trace: [ 29.321120] show_stack+0x20/0x38 (C) [ 29.321179] dump_stack_lvl+0x8c/0xd0 [ 29.321222] print_report+0x118/0x5d0 [ 29.321275] kasan_report+0xdc/0x128 [ 29.321320] __asan_report_store1_noabort+0x20/0x30 [ 29.321367] kmalloc_large_oob_right+0x278/0x2b8 [ 29.321414] kunit_try_run_case+0x170/0x3f0 [ 29.321461] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.321513] kthread+0x328/0x630 [ 29.321554] ret_from_fork+0x10/0x20 [ 29.321606] [ 29.321640] The buggy address belongs to the physical page: [ 29.321681] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a50 [ 29.321733] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.321779] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.321834] page_type: f8(unknown) [ 29.321872] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.321921] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.321971] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.322019] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.322067] head: 0bfffe0000000002 ffffc1ffc3269401 00000000ffffffff 00000000ffffffff [ 29.322121] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 29.322710] page dumped because: kasan: bad access detected [ 29.322755] [ 29.322818] Memory state around the buggy address: [ 29.322913] fff00000c9a51f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.323002] fff00000c9a51f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.323064] >fff00000c9a52000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.323160] ^ [ 29.323208] fff00000c9a52080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.323257] fff00000c9a52100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.323296] ==================================================================
[ 24.543417] ================================================================== [ 24.544356] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 24.545029] Write of size 1 at addr ffff88810619600a by task kunit_try_catch/194 [ 24.545260] [ 24.545346] CPU: 1 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 24.545395] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.545408] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.545430] Call Trace: [ 24.545444] <TASK> [ 24.545461] dump_stack_lvl+0x73/0xb0 [ 24.545488] print_report+0xd1/0x610 [ 24.545553] ? __virt_addr_valid+0x1db/0x2d0 [ 24.545578] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.545626] ? kasan_addr_to_slab+0x11/0xa0 [ 24.545646] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.545667] kasan_report+0x141/0x180 [ 24.545689] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.545727] __asan_report_store1_noabort+0x1b/0x30 [ 24.545750] kmalloc_large_oob_right+0x2e9/0x330 [ 24.545772] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 24.545794] ? __schedule+0x10cc/0x2b60 [ 24.545816] ? __pfx_read_tsc+0x10/0x10 [ 24.545837] ? ktime_get_ts64+0x86/0x230 [ 24.545862] kunit_try_run_case+0x1a5/0x480 [ 24.545916] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.545937] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.545982] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.546005] ? __kthread_parkme+0x82/0x180 [ 24.546025] ? preempt_count_sub+0x50/0x80 [ 24.546049] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.546069] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.546094] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.546118] kthread+0x337/0x6f0 [ 24.546139] ? trace_preempt_on+0x20/0xc0 [ 24.546162] ? __pfx_kthread+0x10/0x10 [ 24.546183] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.546203] ? calculate_sigpending+0x7b/0xa0 [ 24.546227] ? __pfx_kthread+0x10/0x10 [ 24.546248] ret_from_fork+0x116/0x1d0 [ 24.546266] ? __pfx_kthread+0x10/0x10 [ 24.546286] ret_from_fork_asm+0x1a/0x30 [ 24.546316] </TASK> [ 24.546328] [ 24.560359] The buggy address belongs to the physical page: [ 24.560919] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106194 [ 24.561782] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.562256] flags: 0x200000000000040(head|node=0|zone=2) [ 24.563015] page_type: f8(unknown) [ 24.563311] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.563681] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.564475] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.565256] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.565593] head: 0200000000000002 ffffea0004186501 00000000ffffffff 00000000ffffffff [ 24.566529] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.567208] page dumped because: kasan: bad access detected [ 24.567649] [ 24.567729] Memory state around the buggy address: [ 24.568153] ffff888106195f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.568584] ffff888106195f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.569600] >ffff888106196000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.570103] ^ [ 24.570239] ffff888106196080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.570454] ffff888106196100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.570884] ==================================================================