Date
June 2, 2025, 2:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.017114] ================================================================== [ 20.017789] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x15c/0x310 [ 20.018857] Write of size 8 at addr fff00000c5cb7871 by task kunit_try_catch/163 [ 20.019770] [ 20.020008] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.12.32-rc1 #1 [ 20.020204] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.020278] Hardware name: linux,dummy-virt (DT) [ 20.020346] Call trace: [ 20.020392] dump_backtrace+0x9c/0x128 [ 20.020496] show_stack+0x20/0x38 [ 20.020582] dump_stack_lvl+0x8c/0xd0 [ 20.020663] print_report+0x118/0x5f0 [ 20.020741] kasan_report+0xdc/0x128 [ 20.020818] kasan_check_range+0x100/0x1a8 [ 20.020865] __asan_memset+0x34/0x78 [ 20.020907] kmalloc_oob_memset_8+0x15c/0x310 [ 20.020952] kunit_try_run_case+0x170/0x3f0 [ 20.020997] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.021045] kthread+0x24c/0x2d0 [ 20.021087] ret_from_fork+0x10/0x20 [ 20.021134] [ 20.027923] Allocated by task 163: [ 20.028298] kasan_save_stack+0x3c/0x68 [ 20.028671] kasan_save_track+0x20/0x40 [ 20.028994] kasan_save_alloc_info+0x40/0x58 [ 20.029822] __kasan_kmalloc+0xd4/0xd8 [ 20.030366] __kmalloc_cache_noprof+0x154/0x320 [ 20.030816] kmalloc_oob_memset_8+0xb0/0x310 [ 20.031199] kunit_try_run_case+0x170/0x3f0 [ 20.031696] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.032972] kthread+0x24c/0x2d0 [ 20.033366] ret_from_fork+0x10/0x20 [ 20.033870] [ 20.034165] The buggy address belongs to the object at fff00000c5cb7800 [ 20.034165] which belongs to the cache kmalloc-128 of size 128 [ 20.035000] The buggy address is located 113 bytes inside of [ 20.035000] allocated 120-byte region [fff00000c5cb7800, fff00000c5cb7878) [ 20.035898] [ 20.036662] The buggy address belongs to the physical page: [ 20.036987] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105cb7 [ 20.037829] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.038476] page_type: f5(slab) [ 20.038830] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 20.039662] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 20.040222] page dumped because: kasan: bad access detected [ 20.040642] [ 20.040870] Memory state around the buggy address: [ 20.042448] fff00000c5cb7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 20.043630] fff00000c5cb7780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.044378] >fff00000c5cb7800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 20.044896] ^ [ 20.045497] fff00000c5cb7880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.046045] fff00000c5cb7900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.046692] ==================================================================
[ 12.196452] ================================================================== [ 12.197204] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x167/0x330 [ 12.198053] Write of size 8 at addr ffff88810297aa71 by task kunit_try_catch/181 [ 12.198473] [ 12.198925] CPU: 1 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.12.32-rc1 #1 [ 12.198987] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.199006] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.199038] Call Trace: [ 12.199059] <TASK> [ 12.199146] dump_stack_lvl+0x73/0xb0 [ 12.199213] print_report+0xd1/0x640 [ 12.199245] ? __virt_addr_valid+0x1db/0x2d0 [ 12.199286] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.199321] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.199362] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.199405] kasan_report+0x140/0x180 [ 12.199448] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.199480] kasan_check_range+0x10c/0x1c0 [ 12.199500] __asan_memset+0x27/0x50 [ 12.199519] kmalloc_oob_memset_8+0x167/0x330 [ 12.199540] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 12.199562] ? __schedule+0xc49/0x27a0 [ 12.199583] ? __pfx_read_tsc+0x10/0x10 [ 12.199600] ? ktime_get_ts64+0x84/0x230 [ 12.199625] kunit_try_run_case+0x1a6/0x480 [ 12.199646] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.199685] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.199706] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.199727] ? __kthread_parkme+0x82/0x160 [ 12.199745] ? preempt_count_sub+0x50/0x80 [ 12.199767] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.199785] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.199807] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.199830] kthread+0x257/0x310 [ 12.199847] ? __pfx_kthread+0x10/0x10 [ 12.199865] ret_from_fork+0x41/0x80 [ 12.199883] ? __pfx_kthread+0x10/0x10 [ 12.199900] ret_from_fork_asm+0x1a/0x30 [ 12.199929] </TASK> [ 12.199941] [ 12.211021] Allocated by task 181: [ 12.211398] kasan_save_stack+0x45/0x70 [ 12.211629] kasan_save_track+0x18/0x40 [ 12.211799] kasan_save_alloc_info+0x3b/0x50 [ 12.212513] __kasan_kmalloc+0xb7/0xc0 [ 12.213000] __kmalloc_cache_noprof+0x168/0x350 [ 12.213537] kmalloc_oob_memset_8+0xad/0x330 [ 12.213735] kunit_try_run_case+0x1a6/0x480 [ 12.213916] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.214414] kthread+0x257/0x310 [ 12.214882] ret_from_fork+0x41/0x80 [ 12.215123] ret_from_fork_asm+0x1a/0x30 [ 12.215498] [ 12.215641] The buggy address belongs to the object at ffff88810297aa00 [ 12.215641] which belongs to the cache kmalloc-128 of size 128 [ 12.216649] The buggy address is located 113 bytes inside of [ 12.216649] allocated 120-byte region [ffff88810297aa00, ffff88810297aa78) [ 12.217563] [ 12.217724] The buggy address belongs to the physical page: [ 12.217950] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10297a [ 12.218706] flags: 0x200000000000000(node=0|zone=2) [ 12.218967] page_type: f5(slab) [ 12.219233] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.219744] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 12.220018] page dumped because: kasan: bad access detected [ 12.220303] [ 12.220638] Memory state around the buggy address: [ 12.221233] ffff88810297a900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 12.221756] ffff88810297a980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.222405] >ffff88810297aa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.222777] ^ [ 12.223244] ffff88810297aa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.223720] ffff88810297ab00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.224037] ==================================================================