Date
May 23, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.870917] ================================================================== [ 26.871122] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 26.871280] Write of size 1 at addr fff00000c64cdf00 by task kunit_try_catch/146 [ 26.871434] [ 26.871537] CPU: 0 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT [ 26.871776] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.871850] Hardware name: linux,dummy-virt (DT) [ 26.871951] Call trace: [ 26.872021] show_stack+0x20/0x38 (C) [ 26.872167] dump_stack_lvl+0x8c/0xd0 [ 26.872333] print_report+0x118/0x608 [ 26.872483] kasan_report+0xdc/0x128 [ 26.872662] __asan_report_store1_noabort+0x20/0x30 [ 26.872839] kmalloc_big_oob_right+0x2a4/0x2f0 [ 26.872969] kunit_try_run_case+0x170/0x3f0 [ 26.873194] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.873355] kthread+0x328/0x630 [ 26.873505] ret_from_fork+0x10/0x20 [ 26.873647] [ 26.873704] Allocated by task 146: [ 26.873783] kasan_save_stack+0x3c/0x68 [ 26.873890] kasan_save_track+0x20/0x40 [ 26.874053] kasan_save_alloc_info+0x40/0x58 [ 26.874213] __kasan_kmalloc+0xd4/0xd8 [ 26.874301] __kmalloc_cache_noprof+0x15c/0x3c0 [ 26.874414] kmalloc_big_oob_right+0xb8/0x2f0 [ 26.874564] kunit_try_run_case+0x170/0x3f0 [ 26.874725] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.874908] kthread+0x328/0x630 [ 26.875055] ret_from_fork+0x10/0x20 [ 26.875202] [ 26.875285] The buggy address belongs to the object at fff00000c64cc000 [ 26.875285] which belongs to the cache kmalloc-8k of size 8192 [ 26.875541] The buggy address is located 0 bytes to the right of [ 26.875541] allocated 7936-byte region [fff00000c64cc000, fff00000c64cdf00) [ 26.875794] [ 26.875850] The buggy address belongs to the physical page: [ 26.875986] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064c8 [ 26.876129] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.876293] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 26.876441] page_type: f5(slab) [ 26.876568] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 26.876747] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 26.876916] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 26.877047] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 26.877206] head: 0bfffe0000000003 ffffc1ffc3193201 00000000ffffffff 00000000ffffffff [ 26.877387] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 26.877552] page dumped because: kasan: bad access detected [ 26.877668] [ 26.877744] Memory state around the buggy address: [ 26.877867] fff00000c64cde00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.877988] fff00000c64cde80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.878105] >fff00000c64cdf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.878212] ^ [ 26.878344] fff00000c64cdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.878510] fff00000c64ce000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.878617] ==================================================================
[ 12.128678] ================================================================== [ 12.129187] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.129485] Write of size 1 at addr ffff8881038e1f00 by task kunit_try_catch/163 [ 12.129831] [ 12.129993] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT(voluntary) [ 12.130038] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.130051] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.130071] Call Trace: [ 12.130082] <TASK> [ 12.130098] dump_stack_lvl+0x73/0xb0 [ 12.130126] print_report+0xd1/0x650 [ 12.130147] ? __virt_addr_valid+0x1db/0x2d0 [ 12.130168] ? kmalloc_big_oob_right+0x316/0x370 [ 12.130189] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.130211] ? kmalloc_big_oob_right+0x316/0x370 [ 12.130234] kasan_report+0x141/0x180 [ 12.130256] ? kmalloc_big_oob_right+0x316/0x370 [ 12.130283] __asan_report_store1_noabort+0x1b/0x30 [ 12.130316] kmalloc_big_oob_right+0x316/0x370 [ 12.130338] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.130361] ? __schedule+0x10cc/0x2b30 [ 12.130383] ? __pfx_read_tsc+0x10/0x10 [ 12.130402] ? ktime_get_ts64+0x86/0x230 [ 12.130427] kunit_try_run_case+0x1a5/0x480 [ 12.130451] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.130472] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.130496] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.130518] ? __kthread_parkme+0x82/0x180 [ 12.130601] ? preempt_count_sub+0x50/0x80 [ 12.130632] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.130654] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.130684] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.130705] kthread+0x337/0x6f0 [ 12.130722] ? trace_preempt_on+0x20/0xc0 [ 12.130745] ? __pfx_kthread+0x10/0x10 [ 12.130763] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.130783] ? calculate_sigpending+0x7b/0xa0 [ 12.130803] ? __pfx_kthread+0x10/0x10 [ 12.130821] ret_from_fork+0x41/0x80 [ 12.130841] ? __pfx_kthread+0x10/0x10 [ 12.130859] ret_from_fork_asm+0x1a/0x30 [ 12.130928] </TASK> [ 12.130942] [ 12.138809] Allocated by task 163: [ 12.138949] kasan_save_stack+0x45/0x70 [ 12.139095] kasan_save_track+0x18/0x40 [ 12.139344] kasan_save_alloc_info+0x3b/0x50 [ 12.139610] __kasan_kmalloc+0xb7/0xc0 [ 12.139804] __kmalloc_cache_noprof+0x189/0x420 [ 12.140348] kmalloc_big_oob_right+0xa9/0x370 [ 12.140617] kunit_try_run_case+0x1a5/0x480 [ 12.140794] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.141051] kthread+0x337/0x6f0 [ 12.141172] ret_from_fork+0x41/0x80 [ 12.141392] ret_from_fork_asm+0x1a/0x30 [ 12.141658] [ 12.141756] The buggy address belongs to the object at ffff8881038e0000 [ 12.141756] which belongs to the cache kmalloc-8k of size 8192 [ 12.142537] The buggy address is located 0 bytes to the right of [ 12.142537] allocated 7936-byte region [ffff8881038e0000, ffff8881038e1f00) [ 12.143180] [ 12.143408] The buggy address belongs to the physical page: [ 12.143595] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e0 [ 12.144081] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.144421] flags: 0x200000000000040(head|node=0|zone=2) [ 12.144657] page_type: f5(slab) [ 12.144792] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.145022] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.145459] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.145808] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.146102] head: 0200000000000003 ffffea00040e3801 00000000ffffffff 00000000ffffffff [ 12.146348] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.147096] page dumped because: kasan: bad access detected [ 12.147374] [ 12.147507] Memory state around the buggy address: [ 12.147698] ffff8881038e1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.147947] ffff8881038e1e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.148365] >ffff8881038e1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.148793] ^ [ 12.148936] ffff8881038e1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.149478] ffff8881038e2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.149750] ==================================================================