Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.370098] ================================================================== [ 16.370157] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.370205] Write of size 1 at addr fff00000c77d9f00 by task kunit_try_catch/145 [ 16.370252] [ 16.370556] CPU: 0 UID: 0 PID: 145 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.370650] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.370676] Hardware name: linux,dummy-virt (DT) [ 16.370738] Call trace: [ 16.370833] show_stack+0x20/0x38 (C) [ 16.371438] dump_stack_lvl+0x8c/0xd0 [ 16.371518] print_report+0x118/0x608 [ 16.371592] kasan_report+0xdc/0x128 [ 16.371638] __asan_report_store1_noabort+0x20/0x30 [ 16.371794] kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.372043] kunit_try_run_case+0x170/0x3f0 [ 16.372090] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.372141] kthread+0x328/0x630 [ 16.372182] ret_from_fork+0x10/0x20 [ 16.372228] [ 16.372247] Allocated by task 145: [ 16.372274] kasan_save_stack+0x3c/0x68 [ 16.372314] kasan_save_track+0x20/0x40 [ 16.372358] kasan_save_alloc_info+0x40/0x58 [ 16.372541] __kasan_kmalloc+0xd4/0xd8 [ 16.372718] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.372815] kmalloc_big_oob_right+0xb8/0x2f0 [ 16.372862] kunit_try_run_case+0x170/0x3f0 [ 16.372938] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.373046] kthread+0x328/0x630 [ 16.373151] ret_from_fork+0x10/0x20 [ 16.373198] [ 16.373222] The buggy address belongs to the object at fff00000c77d8000 [ 16.373222] which belongs to the cache kmalloc-8k of size 8192 [ 16.373405] The buggy address is located 0 bytes to the right of [ 16.373405] allocated 7936-byte region [fff00000c77d8000, fff00000c77d9f00) [ 16.373521] [ 16.373621] The buggy address belongs to the physical page: [ 16.373685] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d8 [ 16.373775] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.373836] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.374658] page_type: f5(slab) [ 16.374782] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.375149] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.375394] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.375445] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.375529] head: 0bfffe0000000003 ffffc1ffc31df601 00000000ffffffff 00000000ffffffff [ 16.375800] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.375911] page dumped because: kasan: bad access detected [ 16.375975] [ 16.376016] Memory state around the buggy address: [ 16.376048] fff00000c77d9e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.376090] fff00000c77d9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.376131] >fff00000c77d9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.376168] ^ [ 16.376195] fff00000c77d9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.376291] fff00000c77da000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.376372] ==================================================================
[ 11.849838] ================================================================== [ 11.850749] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 11.851014] Write of size 1 at addr ffff888102a75f00 by task kunit_try_catch/161 [ 11.852208] [ 11.852587] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 11.852634] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.852794] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.852820] Call Trace: [ 11.852834] <TASK> [ 11.852891] dump_stack_lvl+0x73/0xb0 [ 11.852939] print_report+0xd1/0x650 [ 11.852962] ? __virt_addr_valid+0x1db/0x2d0 [ 11.852986] ? kmalloc_big_oob_right+0x316/0x370 [ 11.853008] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.853045] ? kmalloc_big_oob_right+0x316/0x370 [ 11.853067] kasan_report+0x141/0x180 [ 11.853088] ? kmalloc_big_oob_right+0x316/0x370 [ 11.853115] __asan_report_store1_noabort+0x1b/0x30 [ 11.853140] kmalloc_big_oob_right+0x316/0x370 [ 11.853163] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 11.853186] ? __schedule+0x10cc/0x2b60 [ 11.853208] ? __pfx_read_tsc+0x10/0x10 [ 11.853228] ? ktime_get_ts64+0x86/0x230 [ 11.853253] kunit_try_run_case+0x1a5/0x480 [ 11.853277] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.853299] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.853322] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.853345] ? __kthread_parkme+0x82/0x180 [ 11.853365] ? preempt_count_sub+0x50/0x80 [ 11.853389] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.853412] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.853436] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.853461] kthread+0x337/0x6f0 [ 11.853479] ? trace_preempt_on+0x20/0xc0 [ 11.853502] ? __pfx_kthread+0x10/0x10 [ 11.853521] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.853542] ? calculate_sigpending+0x7b/0xa0 [ 11.853565] ? __pfx_kthread+0x10/0x10 [ 11.853586] ret_from_fork+0x116/0x1d0 [ 11.853604] ? __pfx_kthread+0x10/0x10 [ 11.853624] ret_from_fork_asm+0x1a/0x30 [ 11.853657] </TASK> [ 11.853666] [ 11.868561] Allocated by task 161: [ 11.868898] kasan_save_stack+0x45/0x70 [ 11.869297] kasan_save_track+0x18/0x40 [ 11.869434] kasan_save_alloc_info+0x3b/0x50 [ 11.869582] __kasan_kmalloc+0xb7/0xc0 [ 11.869712] __kmalloc_cache_noprof+0x189/0x420 [ 11.870161] kmalloc_big_oob_right+0xa9/0x370 [ 11.870712] kunit_try_run_case+0x1a5/0x480 [ 11.871259] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.871813] kthread+0x337/0x6f0 [ 11.872274] ret_from_fork+0x116/0x1d0 [ 11.872649] ret_from_fork_asm+0x1a/0x30 [ 11.873068] [ 11.873357] The buggy address belongs to the object at ffff888102a74000 [ 11.873357] which belongs to the cache kmalloc-8k of size 8192 [ 11.873718] The buggy address is located 0 bytes to the right of [ 11.873718] allocated 7936-byte region [ffff888102a74000, ffff888102a75f00) [ 11.875100] [ 11.875270] The buggy address belongs to the physical page: [ 11.875765] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a70 [ 11.876339] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.876567] flags: 0x200000000000040(head|node=0|zone=2) [ 11.876743] page_type: f5(slab) [ 11.876864] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.877493] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.878004] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.878655] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.879271] head: 0200000000000003 ffffea00040a9c01 00000000ffffffff 00000000ffffffff [ 11.879849] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.880158] page dumped because: kasan: bad access detected [ 11.880683] [ 11.880881] Memory state around the buggy address: [ 11.881402] ffff888102a75e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.881974] ffff888102a75e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.882483] >ffff888102a75f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.882703] ^ [ 11.882844] ffff888102a75f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.883594] ffff888102a76000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.884439] ==================================================================