Date
June 25, 2025, 8:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.616273] ================================================================== [ 26.616601] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 26.617050] Write of size 128 at addr fff00000c3fadd00 by task kunit_try_catch/182 [ 26.617413] [ 26.617464] CPU: 1 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT [ 26.617648] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.617682] Hardware name: linux,dummy-virt (DT) [ 26.618049] Call trace: [ 26.618195] show_stack+0x20/0x38 (C) [ 26.618259] dump_stack_lvl+0x8c/0xd0 [ 26.618307] print_report+0x118/0x608 [ 26.618352] kasan_report+0xdc/0x128 [ 26.618770] kasan_check_range+0x100/0x1a8 [ 26.619176] __asan_memset+0x34/0x78 [ 26.619488] kmalloc_oob_in_memset+0x144/0x2d0 [ 26.619626] kunit_try_run_case+0x170/0x3f0 [ 26.619680] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.619767] kthread+0x328/0x630 [ 26.619971] ret_from_fork+0x10/0x20 [ 26.620129] [ 26.620251] Allocated by task 182: [ 26.620406] kasan_save_stack+0x3c/0x68 [ 26.620467] kasan_save_track+0x20/0x40 [ 26.620511] kasan_save_alloc_info+0x40/0x58 [ 26.620992] __kasan_kmalloc+0xd4/0xd8 [ 26.621133] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.621310] kmalloc_oob_in_memset+0xb0/0x2d0 [ 26.621509] kunit_try_run_case+0x170/0x3f0 [ 26.621658] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.621826] kthread+0x328/0x630 [ 26.622054] ret_from_fork+0x10/0x20 [ 26.622228] [ 26.622461] The buggy address belongs to the object at fff00000c3fadd00 [ 26.622461] which belongs to the cache kmalloc-128 of size 128 [ 26.622665] The buggy address is located 0 bytes inside of [ 26.622665] allocated 120-byte region [fff00000c3fadd00, fff00000c3fadd78) [ 26.622980] [ 26.623074] The buggy address belongs to the physical page: [ 26.623254] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103fad [ 26.623415] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.623538] page_type: f5(slab) [ 26.623602] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 26.623650] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.623696] page dumped because: kasan: bad access detected [ 26.623741] [ 26.623760] Memory state around the buggy address: [ 26.623799] fff00000c3fadc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.623841] fff00000c3fadc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.623900] >fff00000c3fadd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.623953] ^ [ 26.624130] fff00000c3fadd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.624356] fff00000c3fade00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.624521] ==================================================================
[ 21.894620] ================================================================== [ 21.895923] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 21.896721] Write of size 128 at addr ffff88810257e900 by task kunit_try_catch/199 [ 21.897355] [ 21.897544] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) [ 21.897594] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.897607] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.897770] Call Trace: [ 21.897789] <TASK> [ 21.897808] dump_stack_lvl+0x73/0xb0 [ 21.897889] print_report+0xd1/0x650 [ 21.897912] ? __virt_addr_valid+0x1db/0x2d0 [ 21.897948] ? kmalloc_oob_in_memset+0x15f/0x320 [ 21.897971] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.897998] ? kmalloc_oob_in_memset+0x15f/0x320 [ 21.898021] kasan_report+0x141/0x180 [ 21.898043] ? kmalloc_oob_in_memset+0x15f/0x320 [ 21.898069] kasan_check_range+0x10c/0x1c0 [ 21.898093] __asan_memset+0x27/0x50 [ 21.898128] kmalloc_oob_in_memset+0x15f/0x320 [ 21.898151] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 21.898174] ? __schedule+0x10cc/0x2b60 [ 21.898200] ? __pfx_read_tsc+0x10/0x10 [ 21.898222] ? ktime_get_ts64+0x86/0x230 [ 21.898248] kunit_try_run_case+0x1a5/0x480 [ 21.898275] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.898299] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.898320] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.898346] ? __kthread_parkme+0x82/0x180 [ 21.898368] ? preempt_count_sub+0x50/0x80 [ 21.898393] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.898418] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.898441] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.898466] kthread+0x337/0x6f0 [ 21.898486] ? trace_preempt_on+0x20/0xc0 [ 21.898510] ? __pfx_kthread+0x10/0x10 [ 21.898532] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.898555] ? calculate_sigpending+0x7b/0xa0 [ 21.898580] ? __pfx_kthread+0x10/0x10 [ 21.898602] ret_from_fork+0x116/0x1d0 [ 21.898622] ? __pfx_kthread+0x10/0x10 [ 21.898643] ret_from_fork_asm+0x1a/0x30 [ 21.898673] </TASK> [ 21.898685] [ 21.911917] Allocated by task 199: [ 21.912268] kasan_save_stack+0x45/0x70 [ 21.912648] kasan_save_track+0x18/0x40 [ 21.913061] kasan_save_alloc_info+0x3b/0x50 [ 21.913442] __kasan_kmalloc+0xb7/0xc0 [ 21.913674] __kmalloc_cache_noprof+0x189/0x420 [ 21.913960] kmalloc_oob_in_memset+0xac/0x320 [ 21.914442] kunit_try_run_case+0x1a5/0x480 [ 21.914828] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.915300] kthread+0x337/0x6f0 [ 21.915541] ret_from_fork+0x116/0x1d0 [ 21.915665] ret_from_fork_asm+0x1a/0x30 [ 21.915793] [ 21.916143] The buggy address belongs to the object at ffff88810257e900 [ 21.916143] which belongs to the cache kmalloc-128 of size 128 [ 21.917371] The buggy address is located 0 bytes inside of [ 21.917371] allocated 120-byte region [ffff88810257e900, ffff88810257e978) [ 21.918063] [ 21.918166] The buggy address belongs to the physical page: [ 21.918663] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10257e [ 21.919234] flags: 0x200000000000000(node=0|zone=2) [ 21.919401] page_type: f5(slab) [ 21.919516] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 21.919736] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.920383] page dumped because: kasan: bad access detected [ 21.920998] [ 21.921152] Memory state around the buggy address: [ 21.921744] ffff88810257e800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.922505] ffff88810257e880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.923341] >ffff88810257e900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.924092] ^ [ 21.924868] ffff88810257e980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.925265] ffff88810257ea00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.925824] ==================================================================