Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.820998] ================================================================== [ 19.821438] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 19.821809] Write of size 1 at addr fff00000c64a5f00 by task kunit_try_catch/154 [ 19.821961] [ 19.822055] CPU: 0 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 19.822468] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.822532] Hardware name: linux,dummy-virt (DT) [ 19.822606] Call trace: [ 19.822658] show_stack+0x20/0x38 (C) [ 19.822857] dump_stack_lvl+0x8c/0xd0 [ 19.823054] print_report+0x118/0x608 [ 19.823386] kasan_report+0xdc/0x128 [ 19.823567] __asan_report_store1_noabort+0x20/0x30 [ 19.823670] kmalloc_big_oob_right+0x2a4/0x2f0 [ 19.823806] kunit_try_run_case+0x170/0x3f0 [ 19.824034] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.824216] kthread+0x328/0x630 [ 19.824315] ret_from_fork+0x10/0x20 [ 19.824955] [ 19.825061] Allocated by task 154: [ 19.825241] kasan_save_stack+0x3c/0x68 [ 19.825343] kasan_save_track+0x20/0x40 [ 19.825426] kasan_save_alloc_info+0x40/0x58 [ 19.825511] __kasan_kmalloc+0xd4/0xd8 [ 19.825587] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.825675] kmalloc_big_oob_right+0xb8/0x2f0 [ 19.826121] kunit_try_run_case+0x170/0x3f0 [ 19.826440] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.826562] kthread+0x328/0x630 [ 19.826800] ret_from_fork+0x10/0x20 [ 19.826935] [ 19.826984] The buggy address belongs to the object at fff00000c64a4000 [ 19.826984] which belongs to the cache kmalloc-8k of size 8192 [ 19.827117] The buggy address is located 0 bytes to the right of [ 19.827117] allocated 7936-byte region [fff00000c64a4000, fff00000c64a5f00) [ 19.827288] [ 19.827337] The buggy address belongs to the physical page: [ 19.827414] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064a0 [ 19.827600] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.827790] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.827910] page_type: f5(slab) [ 19.828333] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 19.828451] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 19.828849] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 19.829048] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 19.829191] head: 0bfffe0000000003 ffffc1ffc3192801 00000000ffffffff 00000000ffffffff [ 19.830049] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 19.830243] page dumped because: kasan: bad access detected [ 19.830320] [ 19.830361] Memory state around the buggy address: [ 19.830437] fff00000c64a5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.830531] fff00000c64a5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.830618] >fff00000c64a5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.830686] ^ [ 19.830737] fff00000c64a5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.830820] fff00000c64a6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.831675] ==================================================================
[ 10.614110] ================================================================== [ 10.614851] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 10.615168] Write of size 1 at addr ffff8881038e9f00 by task kunit_try_catch/170 [ 10.615879] [ 10.615989] CPU: 0 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 10.616037] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.616049] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.616070] Call Trace: [ 10.616082] <TASK> [ 10.616098] dump_stack_lvl+0x73/0xb0 [ 10.616124] print_report+0xd1/0x650 [ 10.616145] ? __virt_addr_valid+0x1db/0x2d0 [ 10.616166] ? kmalloc_big_oob_right+0x316/0x370 [ 10.616186] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.616221] ? kmalloc_big_oob_right+0x316/0x370 [ 10.616242] kasan_report+0x141/0x180 [ 10.616261] ? kmalloc_big_oob_right+0x316/0x370 [ 10.616286] __asan_report_store1_noabort+0x1b/0x30 [ 10.616308] kmalloc_big_oob_right+0x316/0x370 [ 10.616328] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 10.616349] ? __schedule+0x10cc/0x2b60 [ 10.616370] ? __pfx_read_tsc+0x10/0x10 [ 10.616390] ? ktime_get_ts64+0x86/0x230 [ 10.616414] kunit_try_run_case+0x1a5/0x480 [ 10.616437] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.616457] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.616479] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.616499] ? __kthread_parkme+0x82/0x180 [ 10.616519] ? preempt_count_sub+0x50/0x80 [ 10.616541] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.616562] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.616583] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.616604] kthread+0x337/0x6f0 [ 10.616622] ? trace_preempt_on+0x20/0xc0 [ 10.616644] ? __pfx_kthread+0x10/0x10 [ 10.616668] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.616687] ? calculate_sigpending+0x7b/0xa0 [ 10.616710] ? __pfx_kthread+0x10/0x10 [ 10.616730] ret_from_fork+0x116/0x1d0 [ 10.616747] ? __pfx_kthread+0x10/0x10 [ 10.616766] ret_from_fork_asm+0x1a/0x30 [ 10.616794] </TASK> [ 10.616804] [ 10.623996] Allocated by task 170: [ 10.624163] kasan_save_stack+0x45/0x70 [ 10.624382] kasan_save_track+0x18/0x40 [ 10.624506] kasan_save_alloc_info+0x3b/0x50 [ 10.624639] __kasan_kmalloc+0xb7/0xc0 [ 10.624760] __kmalloc_cache_noprof+0x189/0x420 [ 10.624962] kmalloc_big_oob_right+0xa9/0x370 [ 10.625165] kunit_try_run_case+0x1a5/0x480 [ 10.625440] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.625809] kthread+0x337/0x6f0 [ 10.625983] ret_from_fork+0x116/0x1d0 [ 10.626157] ret_from_fork_asm+0x1a/0x30 [ 10.626361] [ 10.626446] The buggy address belongs to the object at ffff8881038e8000 [ 10.626446] which belongs to the cache kmalloc-8k of size 8192 [ 10.626872] The buggy address is located 0 bytes to the right of [ 10.626872] allocated 7936-byte region [ffff8881038e8000, ffff8881038e9f00) [ 10.627469] [ 10.627555] The buggy address belongs to the physical page: [ 10.627794] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e8 [ 10.628167] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.628518] flags: 0x200000000000040(head|node=0|zone=2) [ 10.628825] page_type: f5(slab) [ 10.628969] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.629343] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.629709] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.630018] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.630397] head: 0200000000000003 ffffea00040e3a01 00000000ffffffff 00000000ffffffff [ 10.630726] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.631045] page dumped because: kasan: bad access detected [ 10.631345] [ 10.631430] Memory state around the buggy address: [ 10.631652] ffff8881038e9e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.631955] ffff8881038e9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.633041] >ffff8881038e9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.633775] ^ [ 10.633900] ffff8881038e9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.634423] ffff8881038ea000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.634810] ==================================================================