Date
May 23, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 27.562251] ================================================================== [ 27.562570] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 27.562762] Write of size 2 at addr fff00000c5a34b77 by task kunit_try_catch/174 [ 27.562946] [ 27.563081] CPU: 0 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT [ 27.563415] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.563504] Hardware name: linux,dummy-virt (DT) [ 27.563579] Call trace: [ 27.563641] show_stack+0x20/0x38 (C) [ 27.563812] dump_stack_lvl+0x8c/0xd0 [ 27.563985] print_report+0x118/0x608 [ 27.564125] kasan_report+0xdc/0x128 [ 27.564297] kasan_check_range+0x100/0x1a8 [ 27.564463] __asan_memset+0x34/0x78 [ 27.564671] kmalloc_oob_memset_2+0x150/0x2f8 [ 27.564877] kunit_try_run_case+0x170/0x3f0 [ 27.565066] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.565197] kthread+0x328/0x630 [ 27.565328] ret_from_fork+0x10/0x20 [ 27.565470] [ 27.565523] Allocated by task 174: [ 27.565624] kasan_save_stack+0x3c/0x68 [ 27.565744] kasan_save_track+0x20/0x40 [ 27.565845] kasan_save_alloc_info+0x40/0x58 [ 27.565944] __kasan_kmalloc+0xd4/0xd8 [ 27.566033] __kmalloc_cache_noprof+0x15c/0x3c0 [ 27.566129] kmalloc_oob_memset_2+0xb0/0x2f8 [ 27.566226] kunit_try_run_case+0x170/0x3f0 [ 27.566326] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.566480] kthread+0x328/0x630 [ 27.566653] ret_from_fork+0x10/0x20 [ 27.566762] [ 27.566987] The buggy address belongs to the object at fff00000c5a34b00 [ 27.566987] which belongs to the cache kmalloc-128 of size 128 [ 27.567341] The buggy address is located 119 bytes inside of [ 27.567341] allocated 120-byte region [fff00000c5a34b00, fff00000c5a34b78) [ 27.567636] [ 27.567996] The buggy address belongs to the physical page: [ 27.568094] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a34 [ 27.568361] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 27.568851] page_type: f5(slab) [ 27.569007] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 27.569154] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 27.569273] page dumped because: kasan: bad access detected [ 27.569352] [ 27.569394] Memory state around the buggy address: [ 27.569706] fff00000c5a34a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.570026] fff00000c5a34a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.570411] >fff00000c5a34b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 27.570683] ^ [ 27.570855] fff00000c5a34b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.571327] fff00000c5a34c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.571481] ==================================================================
[ 12.647363] ================================================================== [ 12.648889] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 12.650621] Write of size 2 at addr ffff888102a2d477 by task kunit_try_catch/191 [ 12.650935] [ 12.651043] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT(voluntary) [ 12.651090] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.651102] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.651123] Call Trace: [ 12.651135] <TASK> [ 12.651152] dump_stack_lvl+0x73/0xb0 [ 12.651181] print_report+0xd1/0x650 [ 12.651203] ? __virt_addr_valid+0x1db/0x2d0 [ 12.651224] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.651246] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.651267] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.651303] kasan_report+0x141/0x180 [ 12.651325] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.651352] kasan_check_range+0x10c/0x1c0 [ 12.651371] __asan_memset+0x27/0x50 [ 12.651391] kmalloc_oob_memset_2+0x166/0x330 [ 12.651413] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.651500] ? __schedule+0x10cc/0x2b30 [ 12.651527] ? __pfx_read_tsc+0x10/0x10 [ 12.651547] ? ktime_get_ts64+0x86/0x230 [ 12.651573] kunit_try_run_case+0x1a5/0x480 [ 12.651598] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.651619] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.651642] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.651664] ? __kthread_parkme+0x82/0x180 [ 12.651685] ? preempt_count_sub+0x50/0x80 [ 12.651710] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.651733] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.651754] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.651776] kthread+0x337/0x6f0 [ 12.651793] ? trace_preempt_on+0x20/0xc0 [ 12.651816] ? __pfx_kthread+0x10/0x10 [ 12.651834] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.651854] ? calculate_sigpending+0x7b/0xa0 [ 12.651874] ? __pfx_kthread+0x10/0x10 [ 12.651956] ret_from_fork+0x41/0x80 [ 12.651976] ? __pfx_kthread+0x10/0x10 [ 12.651994] ret_from_fork_asm+0x1a/0x30 [ 12.652025] </TASK> [ 12.652037] [ 12.659498] Allocated by task 191: [ 12.659703] kasan_save_stack+0x45/0x70 [ 12.659905] kasan_save_track+0x18/0x40 [ 12.660096] kasan_save_alloc_info+0x3b/0x50 [ 12.660308] __kasan_kmalloc+0xb7/0xc0 [ 12.660628] __kmalloc_cache_noprof+0x189/0x420 [ 12.660839] kmalloc_oob_memset_2+0xac/0x330 [ 12.661078] kunit_try_run_case+0x1a5/0x480 [ 12.661253] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.661442] kthread+0x337/0x6f0 [ 12.661564] ret_from_fork+0x41/0x80 [ 12.661699] ret_from_fork_asm+0x1a/0x30 [ 12.662097] [ 12.662195] The buggy address belongs to the object at ffff888102a2d400 [ 12.662195] which belongs to the cache kmalloc-128 of size 128 [ 12.662685] The buggy address is located 119 bytes inside of [ 12.662685] allocated 120-byte region [ffff888102a2d400, ffff888102a2d478) [ 12.663281] [ 12.663384] The buggy address belongs to the physical page: [ 12.663618] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a2d [ 12.664048] flags: 0x200000000000000(node=0|zone=2) [ 12.664219] page_type: f5(slab) [ 12.664362] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.664609] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.665067] page dumped because: kasan: bad access detected [ 12.665341] [ 12.665439] Memory state around the buggy address: [ 12.665665] ffff888102a2d300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.666232] ffff888102a2d380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.666555] >ffff888102a2d400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.666814] ^ [ 12.667391] ffff888102a2d480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.667701] ffff888102a2d500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.668087] ==================================================================