Date
July 25, 2025, 3:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.422465] ================================================================== [ 32.422989] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 32.423197] Write of size 8 at addr fff00000c9726771 by task kunit_try_catch/208 [ 32.423428] [ 32.423553] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250725 #1 PREEMPT [ 32.423729] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 32.423864] Hardware name: linux,dummy-virt (DT) [ 32.423923] Call trace: [ 32.424153] show_stack+0x20/0x38 (C) [ 32.424334] dump_stack_lvl+0x8c/0xd0 [ 32.424523] print_report+0x118/0x5e8 [ 32.424798] kasan_report+0xdc/0x128 [ 32.424878] kasan_check_range+0x100/0x1a8 [ 32.425086] __asan_memset+0x34/0x78 [ 32.425221] kmalloc_oob_memset_8+0x150/0x2f8 [ 32.425460] kunit_try_run_case+0x170/0x3f0 [ 32.425716] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.425804] kthread+0x328/0x630 [ 32.426016] ret_from_fork+0x10/0x20 [ 32.426177] [ 32.426257] Allocated by task 208: [ 32.426294] kasan_save_stack+0x3c/0x68 [ 32.426352] kasan_save_track+0x20/0x40 [ 32.426660] kasan_save_alloc_info+0x40/0x58 [ 32.426881] __kasan_kmalloc+0xd4/0xd8 [ 32.426951] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.427066] kmalloc_oob_memset_8+0xb0/0x2f8 [ 32.427209] kunit_try_run_case+0x170/0x3f0 [ 32.427358] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.427403] kthread+0x328/0x630 [ 32.427445] ret_from_fork+0x10/0x20 [ 32.427481] [ 32.427552] The buggy address belongs to the object at fff00000c9726700 [ 32.427552] which belongs to the cache kmalloc-128 of size 128 [ 32.427796] The buggy address is located 113 bytes inside of [ 32.427796] allocated 120-byte region [fff00000c9726700, fff00000c9726778) [ 32.428057] [ 32.428200] The buggy address belongs to the physical page: [ 32.428311] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109726 [ 32.428474] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.428578] page_type: f5(slab) [ 32.428960] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.429092] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.429250] page dumped because: kasan: bad access detected [ 32.429362] [ 32.429432] Memory state around the buggy address: [ 32.429772] fff00000c9726600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.429992] fff00000c9726680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.430079] >fff00000c9726700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.430160] ^ [ 32.430569] fff00000c9726780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.430742] fff00000c9726800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.430946] ==================================================================
[ 25.891100] ================================================================== [ 25.891481] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 25.891719] Write of size 8 at addr ffff888105800471 by task kunit_try_catch/225 [ 25.892501] [ 25.892691] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) [ 25.892777] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.892790] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.892812] Call Trace: [ 25.892824] <TASK> [ 25.892869] dump_stack_lvl+0x73/0xb0 [ 25.892902] print_report+0xd1/0x640 [ 25.892927] ? __virt_addr_valid+0x1db/0x2d0 [ 25.892962] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.892984] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.893011] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.893033] kasan_report+0x141/0x180 [ 25.893079] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.893107] kasan_check_range+0x10c/0x1c0 [ 25.893134] __asan_memset+0x27/0x50 [ 25.893188] kmalloc_oob_memset_8+0x166/0x330 [ 25.893212] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 25.893235] ? __schedule+0x10da/0x2b60 [ 25.893268] ? __pfx_read_tsc+0x10/0x10 [ 25.893291] ? ktime_get_ts64+0x86/0x230 [ 25.893317] kunit_try_run_case+0x1a5/0x480 [ 25.893344] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.893368] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.893421] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.893448] ? __kthread_parkme+0x82/0x180 [ 25.893479] ? preempt_count_sub+0x50/0x80 [ 25.893503] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.893528] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.893552] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.893576] kthread+0x337/0x6f0 [ 25.893596] ? trace_preempt_on+0x20/0xc0 [ 25.893621] ? __pfx_kthread+0x10/0x10 [ 25.893642] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.893666] ? calculate_sigpending+0x7b/0xa0 [ 25.893690] ? __pfx_kthread+0x10/0x10 [ 25.893712] ret_from_fork+0x116/0x1d0 [ 25.893731] ? __pfx_kthread+0x10/0x10 [ 25.893752] ret_from_fork_asm+0x1a/0x30 [ 25.893808] </TASK> [ 25.893828] [ 25.906930] Allocated by task 225: [ 25.907074] kasan_save_stack+0x45/0x70 [ 25.907272] kasan_save_track+0x18/0x40 [ 25.907739] kasan_save_alloc_info+0x3b/0x50 [ 25.908272] __kasan_kmalloc+0xb7/0xc0 [ 25.908700] __kmalloc_cache_noprof+0x189/0x420 [ 25.909226] kmalloc_oob_memset_8+0xac/0x330 [ 25.909616] kunit_try_run_case+0x1a5/0x480 [ 25.909770] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.910624] kthread+0x337/0x6f0 [ 25.911028] ret_from_fork+0x116/0x1d0 [ 25.911173] ret_from_fork_asm+0x1a/0x30 [ 25.911320] [ 25.911389] The buggy address belongs to the object at ffff888105800400 [ 25.911389] which belongs to the cache kmalloc-128 of size 128 [ 25.911766] The buggy address is located 113 bytes inside of [ 25.911766] allocated 120-byte region [ffff888105800400, ffff888105800478) [ 25.913020] [ 25.913260] The buggy address belongs to the physical page: [ 25.913793] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105800 [ 25.914632] flags: 0x200000000000000(node=0|zone=2) [ 25.915257] page_type: f5(slab) [ 25.915397] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.915636] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.916052] page dumped because: kasan: bad access detected [ 25.916580] [ 25.916763] Memory state around the buggy address: [ 25.917311] ffff888105800300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.918066] ffff888105800380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.918770] >ffff888105800400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.919286] ^ [ 25.919711] ffff888105800480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.920333] ffff888105800500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.920566] ==================================================================