Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.390481] ================================================================== [ 30.390928] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 30.391228] Write of size 128 at addr fff00000c99bc900 by task kunit_try_catch/203 [ 30.391500] [ 30.391600] CPU: 0 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 30.391762] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.391846] Hardware name: linux,dummy-virt (DT) [ 30.391880] Call trace: [ 30.391914] show_stack+0x20/0x38 (C) [ 30.391967] dump_stack_lvl+0x8c/0xd0 [ 30.392193] print_report+0x118/0x5e8 [ 30.392240] kasan_report+0xdc/0x128 [ 30.392283] kasan_check_range+0x100/0x1a8 [ 30.392564] __asan_memset+0x34/0x78 [ 30.392651] kmalloc_oob_in_memset+0x144/0x2d0 [ 30.392745] kunit_try_run_case+0x170/0x3f0 [ 30.392974] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.393231] kthread+0x328/0x630 [ 30.393318] ret_from_fork+0x10/0x20 [ 30.393450] [ 30.393499] Allocated by task 203: [ 30.393545] kasan_save_stack+0x3c/0x68 [ 30.393681] kasan_save_track+0x20/0x40 [ 30.393758] kasan_save_alloc_info+0x40/0x58 [ 30.393913] __kasan_kmalloc+0xd4/0xd8 [ 30.393965] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.394219] kmalloc_oob_in_memset+0xb0/0x2d0 [ 30.394428] kunit_try_run_case+0x170/0x3f0 [ 30.394503] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.394713] kthread+0x328/0x630 [ 30.394965] ret_from_fork+0x10/0x20 [ 30.395110] [ 30.395213] The buggy address belongs to the object at fff00000c99bc900 [ 30.395213] which belongs to the cache kmalloc-128 of size 128 [ 30.395343] The buggy address is located 0 bytes inside of [ 30.395343] allocated 120-byte region [fff00000c99bc900, fff00000c99bc978) [ 30.395831] [ 30.395875] The buggy address belongs to the physical page: [ 30.395935] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099bc [ 30.396294] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.396515] page_type: f5(slab) [ 30.396732] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 30.397068] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.397145] page dumped because: kasan: bad access detected [ 30.397200] [ 30.397338] Memory state around the buggy address: [ 30.397447] fff00000c99bc800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.397604] fff00000c99bc880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.397776] >fff00000c99bc900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.397956] ^ [ 30.398117] fff00000c99bc980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.398199] fff00000c99bca00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.398289] ==================================================================
[ 25.197328] ================================================================== [ 25.197720] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 25.197974] Write of size 128 at addr ffff888104657b00 by task kunit_try_catch/219 [ 25.198578] [ 25.198694] CPU: 1 UID: 0 PID: 219 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 25.198749] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.198762] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.198784] Call Trace: [ 25.198796] <TASK> [ 25.198816] dump_stack_lvl+0x73/0xb0 [ 25.198848] print_report+0xd1/0x640 [ 25.198871] ? __virt_addr_valid+0x1db/0x2d0 [ 25.198896] ? kmalloc_oob_in_memset+0x15f/0x320 [ 25.198917] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.199299] ? kmalloc_oob_in_memset+0x15f/0x320 [ 25.199338] kasan_report+0x141/0x180 [ 25.199363] ? kmalloc_oob_in_memset+0x15f/0x320 [ 25.199496] kasan_check_range+0x10c/0x1c0 [ 25.199522] __asan_memset+0x27/0x50 [ 25.199545] kmalloc_oob_in_memset+0x15f/0x320 [ 25.199568] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 25.199590] ? __schedule+0x10da/0x2b60 [ 25.199615] ? __pfx_read_tsc+0x10/0x10 [ 25.199644] ? ktime_get_ts64+0x86/0x230 [ 25.199669] kunit_try_run_case+0x1a5/0x480 [ 25.199695] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.199716] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.199741] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.199765] ? __kthread_parkme+0x82/0x180 [ 25.199786] ? preempt_count_sub+0x50/0x80 [ 25.199810] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.199834] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.199857] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.199880] kthread+0x337/0x6f0 [ 25.199900] ? trace_preempt_on+0x20/0xc0 [ 25.199927] ? __pfx_kthread+0x10/0x10 [ 25.199956] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.199980] ? calculate_sigpending+0x7b/0xa0 [ 25.200004] ? __pfx_kthread+0x10/0x10 [ 25.200025] ret_from_fork+0x116/0x1d0 [ 25.200045] ? __pfx_kthread+0x10/0x10 [ 25.200065] ret_from_fork_asm+0x1a/0x30 [ 25.200096] </TASK> [ 25.200108] [ 25.213252] Allocated by task 219: [ 25.213415] kasan_save_stack+0x45/0x70 [ 25.213813] kasan_save_track+0x18/0x40 [ 25.214177] kasan_save_alloc_info+0x3b/0x50 [ 25.214641] __kasan_kmalloc+0xb7/0xc0 [ 25.214982] __kmalloc_cache_noprof+0x189/0x420 [ 25.215178] kmalloc_oob_in_memset+0xac/0x320 [ 25.215325] kunit_try_run_case+0x1a5/0x480 [ 25.215860] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.216532] kthread+0x337/0x6f0 [ 25.216845] ret_from_fork+0x116/0x1d0 [ 25.217203] ret_from_fork_asm+0x1a/0x30 [ 25.217609] [ 25.217820] The buggy address belongs to the object at ffff888104657b00 [ 25.217820] which belongs to the cache kmalloc-128 of size 128 [ 25.218421] The buggy address is located 0 bytes inside of [ 25.218421] allocated 120-byte region [ffff888104657b00, ffff888104657b78) [ 25.219703] [ 25.219875] The buggy address belongs to the physical page: [ 25.220285] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104657 [ 25.220852] flags: 0x200000000000000(node=0|zone=2) [ 25.221323] page_type: f5(slab) [ 25.221688] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.222200] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.222927] page dumped because: kasan: bad access detected [ 25.223360] [ 25.223668] Memory state around the buggy address: [ 25.223855] ffff888104657a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.224341] ffff888104657a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.225018] >ffff888104657b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.225414] ^ [ 25.226220] ffff888104657b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.226683] ffff888104657c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.226897] ==================================================================