Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.667432] ================================================================== [ 16.667556] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 16.667673] Write of size 128 at addr fff00000c6f3f400 by task kunit_try_catch/171 [ 16.667813] [ 16.667906] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.668004] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.668034] Hardware name: linux,dummy-virt (DT) [ 16.668064] Call trace: [ 16.668087] show_stack+0x20/0x38 (C) [ 16.668134] dump_stack_lvl+0x8c/0xd0 [ 16.668443] print_report+0x118/0x608 [ 16.668553] kasan_report+0xdc/0x128 [ 16.668621] kasan_check_range+0x100/0x1a8 [ 16.668670] __asan_memset+0x34/0x78 [ 16.668857] kmalloc_oob_in_memset+0x144/0x2d0 [ 16.669031] kunit_try_run_case+0x170/0x3f0 [ 16.669163] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.669289] kthread+0x328/0x630 [ 16.669409] ret_from_fork+0x10/0x20 [ 16.669572] [ 16.669651] Allocated by task 171: [ 16.669762] kasan_save_stack+0x3c/0x68 [ 16.669871] kasan_save_track+0x20/0x40 [ 16.670004] kasan_save_alloc_info+0x40/0x58 [ 16.670043] __kasan_kmalloc+0xd4/0xd8 [ 16.670109] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.670344] kmalloc_oob_in_memset+0xb0/0x2d0 [ 16.670616] kunit_try_run_case+0x170/0x3f0 [ 16.670776] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.670822] kthread+0x328/0x630 [ 16.671092] ret_from_fork+0x10/0x20 [ 16.671359] [ 16.671449] The buggy address belongs to the object at fff00000c6f3f400 [ 16.671449] which belongs to the cache kmalloc-128 of size 128 [ 16.671555] The buggy address is located 0 bytes inside of [ 16.671555] allocated 120-byte region [fff00000c6f3f400, fff00000c6f3f478) [ 16.671663] [ 16.671685] The buggy address belongs to the physical page: [ 16.671716] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106f3f [ 16.671767] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.671813] page_type: f5(slab) [ 16.672295] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.672350] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.672500] page dumped because: kasan: bad access detected [ 16.672668] [ 16.672789] Memory state around the buggy address: [ 16.672922] fff00000c6f3f300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.672998] fff00000c6f3f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.673039] >fff00000c6f3f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.673094] ^ [ 16.673149] fff00000c6f3f480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.673542] fff00000c6f3f500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.673644] ==================================================================
[ 12.439225] ================================================================== [ 12.439664] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.440352] Write of size 128 at addr ffff888100a73e00 by task kunit_try_catch/187 [ 12.440760] [ 12.440863] CPU: 0 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.440906] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.440917] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.440961] Call Trace: [ 12.440973] <TASK> [ 12.440989] dump_stack_lvl+0x73/0xb0 [ 12.441020] print_report+0xd1/0x650 [ 12.441041] ? __virt_addr_valid+0x1db/0x2d0 [ 12.441076] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.441098] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.441120] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.441143] kasan_report+0x141/0x180 [ 12.441164] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.441191] kasan_check_range+0x10c/0x1c0 [ 12.441214] __asan_memset+0x27/0x50 [ 12.441233] kmalloc_oob_in_memset+0x15f/0x320 [ 12.441255] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.441280] ? __schedule+0x10cc/0x2b60 [ 12.441301] ? __pfx_read_tsc+0x10/0x10 [ 12.441322] ? ktime_get_ts64+0x86/0x230 [ 12.441346] kunit_try_run_case+0x1a5/0x480 [ 12.441371] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.441393] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.441416] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.441439] ? __kthread_parkme+0x82/0x180 [ 12.441460] ? preempt_count_sub+0x50/0x80 [ 12.441483] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.441507] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.441531] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.441556] kthread+0x337/0x6f0 [ 12.441582] ? trace_preempt_on+0x20/0xc0 [ 12.441605] ? __pfx_kthread+0x10/0x10 [ 12.441625] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.441646] ? calculate_sigpending+0x7b/0xa0 [ 12.441670] ? __pfx_kthread+0x10/0x10 [ 12.441691] ret_from_fork+0x116/0x1d0 [ 12.441709] ? __pfx_kthread+0x10/0x10 [ 12.441728] ret_from_fork_asm+0x1a/0x30 [ 12.441760] </TASK> [ 12.441769] [ 12.449172] Allocated by task 187: [ 12.449300] kasan_save_stack+0x45/0x70 [ 12.449440] kasan_save_track+0x18/0x40 [ 12.449721] kasan_save_alloc_info+0x3b/0x50 [ 12.449955] __kasan_kmalloc+0xb7/0xc0 [ 12.450143] __kmalloc_cache_noprof+0x189/0x420 [ 12.450335] kmalloc_oob_in_memset+0xac/0x320 [ 12.450484] kunit_try_run_case+0x1a5/0x480 [ 12.450631] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.450896] kthread+0x337/0x6f0 [ 12.451283] ret_from_fork+0x116/0x1d0 [ 12.451491] ret_from_fork_asm+0x1a/0x30 [ 12.451693] [ 12.451820] The buggy address belongs to the object at ffff888100a73e00 [ 12.451820] which belongs to the cache kmalloc-128 of size 128 [ 12.452506] The buggy address is located 0 bytes inside of [ 12.452506] allocated 120-byte region [ffff888100a73e00, ffff888100a73e78) [ 12.452985] [ 12.453058] The buggy address belongs to the physical page: [ 12.453231] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100a73 [ 12.453576] flags: 0x200000000000000(node=0|zone=2) [ 12.453888] page_type: f5(slab) [ 12.454165] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.454444] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.454673] page dumped because: kasan: bad access detected [ 12.454870] [ 12.455005] Memory state around the buggy address: [ 12.455339] ffff888100a73d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.455656] ffff888100a73d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.456165] >ffff888100a73e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.456477] ^ [ 12.456744] ffff888100a73e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.456999] ffff888100a73f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.457244] ==================================================================