Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.401135] ================================================================== [ 19.401660] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 19.401873] Write of size 128 at addr fff00000c4569c00 by task kunit_try_catch/171 [ 19.402022] [ 19.402117] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.402746] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.402876] Hardware name: linux,dummy-virt (DT) [ 19.402962] Call trace: [ 19.403023] show_stack+0x20/0x38 (C) [ 19.403144] dump_stack_lvl+0x8c/0xd0 [ 19.403258] print_report+0x118/0x608 [ 19.403369] kasan_report+0xdc/0x128 [ 19.403478] kasan_check_range+0x100/0x1a8 [ 19.403602] __asan_memset+0x34/0x78 [ 19.403705] kmalloc_oob_in_memset+0x144/0x2d0 [ 19.403811] kunit_try_run_case+0x170/0x3f0 [ 19.404668] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.404814] kthread+0x328/0x630 [ 19.404936] ret_from_fork+0x10/0x20 [ 19.405298] [ 19.405364] Allocated by task 171: [ 19.405761] kasan_save_stack+0x3c/0x68 [ 19.406108] kasan_save_track+0x20/0x40 [ 19.406213] kasan_save_alloc_info+0x40/0x58 [ 19.406312] __kasan_kmalloc+0xd4/0xd8 [ 19.406815] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.407141] kmalloc_oob_in_memset+0xb0/0x2d0 [ 19.407268] kunit_try_run_case+0x170/0x3f0 [ 19.407372] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.407476] kthread+0x328/0x630 [ 19.407920] ret_from_fork+0x10/0x20 [ 19.408107] [ 19.408155] The buggy address belongs to the object at fff00000c4569c00 [ 19.408155] which belongs to the cache kmalloc-128 of size 128 [ 19.408495] The buggy address is located 0 bytes inside of [ 19.408495] allocated 120-byte region [fff00000c4569c00, fff00000c4569c78) [ 19.409102] [ 19.409183] The buggy address belongs to the physical page: [ 19.409389] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104569 [ 19.409514] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.409606] page_type: f5(slab) [ 19.409919] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.410273] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.410596] page dumped because: kasan: bad access detected [ 19.410846] [ 19.410958] Memory state around the buggy address: [ 19.411067] fff00000c4569b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.411173] fff00000c4569b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.411465] >fff00000c4569c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.411624] ^ [ 19.411966] fff00000c4569c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.412076] fff00000c4569d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.412535] ==================================================================
[ 12.694330] ================================================================== [ 12.695031] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.695379] Write of size 128 at addr ffff888102b92500 by task kunit_try_catch/188 [ 12.695828] [ 12.695914] CPU: 0 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.695956] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.695967] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.695986] Call Trace: [ 12.695998] <TASK> [ 12.696012] dump_stack_lvl+0x73/0xb0 [ 12.696068] print_report+0xd1/0x650 [ 12.696090] ? __virt_addr_valid+0x1db/0x2d0 [ 12.696114] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.696136] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.696159] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.696181] kasan_report+0x141/0x180 [ 12.696203] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.696229] kasan_check_range+0x10c/0x1c0 [ 12.696253] __asan_memset+0x27/0x50 [ 12.696272] kmalloc_oob_in_memset+0x15f/0x320 [ 12.696296] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.696320] ? __schedule+0x10cc/0x2b60 [ 12.696356] ? __pfx_read_tsc+0x10/0x10 [ 12.696380] ? ktime_get_ts64+0x86/0x230 [ 12.696405] kunit_try_run_case+0x1a5/0x480 [ 12.696430] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.696453] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.696476] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.696500] ? __kthread_parkme+0x82/0x180 [ 12.696521] ? preempt_count_sub+0x50/0x80 [ 12.696545] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.696569] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.696593] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.696618] kthread+0x337/0x6f0 [ 12.696655] ? trace_preempt_on+0x20/0xc0 [ 12.696688] ? __pfx_kthread+0x10/0x10 [ 12.696708] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.696729] ? calculate_sigpending+0x7b/0xa0 [ 12.696763] ? __pfx_kthread+0x10/0x10 [ 12.696785] ret_from_fork+0x116/0x1d0 [ 12.696803] ? __pfx_kthread+0x10/0x10 [ 12.696823] ret_from_fork_asm+0x1a/0x30 [ 12.696854] </TASK> [ 12.696864] [ 12.704920] Allocated by task 188: [ 12.705098] kasan_save_stack+0x45/0x70 [ 12.705313] kasan_save_track+0x18/0x40 [ 12.705448] kasan_save_alloc_info+0x3b/0x50 [ 12.705596] __kasan_kmalloc+0xb7/0xc0 [ 12.705926] __kmalloc_cache_noprof+0x189/0x420 [ 12.706321] kmalloc_oob_in_memset+0xac/0x320 [ 12.706579] kunit_try_run_case+0x1a5/0x480 [ 12.706796] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.706970] kthread+0x337/0x6f0 [ 12.707087] ret_from_fork+0x116/0x1d0 [ 12.707216] ret_from_fork_asm+0x1a/0x30 [ 12.707374] [ 12.707469] The buggy address belongs to the object at ffff888102b92500 [ 12.707469] which belongs to the cache kmalloc-128 of size 128 [ 12.708188] The buggy address is located 0 bytes inside of [ 12.708188] allocated 120-byte region [ffff888102b92500, ffff888102b92578) [ 12.708722] [ 12.708912] The buggy address belongs to the physical page: [ 12.709134] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b92 [ 12.709456] flags: 0x200000000000000(node=0|zone=2) [ 12.709618] page_type: f5(slab) [ 12.709737] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.710338] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.710570] page dumped because: kasan: bad access detected [ 12.710740] [ 12.710817] Memory state around the buggy address: [ 12.710970] ffff888102b92400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.711263] ffff888102b92480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.711932] >ffff888102b92500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.712247] ^ [ 12.712772] ffff888102b92580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.713041] ffff888102b92600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.713253] ==================================================================