Date
July 8, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.150537] ================================================================== [ 31.150592] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 31.150641] Write of size 128 at addr fff00000c9a9c200 by task kunit_try_catch/201 [ 31.150689] [ 31.150720] CPU: 0 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT [ 31.150803] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.150828] Hardware name: linux,dummy-virt (DT) [ 31.150858] Call trace: [ 31.150880] show_stack+0x20/0x38 (C) [ 31.150926] dump_stack_lvl+0x8c/0xd0 [ 31.150971] print_report+0x118/0x5d0 [ 31.151016] kasan_report+0xdc/0x128 [ 31.151061] kasan_check_range+0x100/0x1a8 [ 31.151105] __asan_memset+0x34/0x78 [ 31.151147] kmalloc_oob_in_memset+0x144/0x2d0 [ 31.151193] kunit_try_run_case+0x170/0x3f0 [ 31.151284] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.151354] kthread+0x328/0x630 [ 31.151402] ret_from_fork+0x10/0x20 [ 31.151475] [ 31.151494] Allocated by task 201: [ 31.151521] kasan_save_stack+0x3c/0x68 [ 31.151561] kasan_save_track+0x20/0x40 [ 31.151599] kasan_save_alloc_info+0x40/0x58 [ 31.151635] __kasan_kmalloc+0xd4/0xd8 [ 31.151671] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.151711] kmalloc_oob_in_memset+0xb0/0x2d0 [ 31.151748] kunit_try_run_case+0x170/0x3f0 [ 31.151809] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.151853] kthread+0x328/0x630 [ 31.151885] ret_from_fork+0x10/0x20 [ 31.151920] [ 31.151939] The buggy address belongs to the object at fff00000c9a9c200 [ 31.151939] which belongs to the cache kmalloc-128 of size 128 [ 31.151993] The buggy address is located 0 bytes inside of [ 31.151993] allocated 120-byte region [fff00000c9a9c200, fff00000c9a9c278) [ 31.152051] [ 31.152071] The buggy address belongs to the physical page: [ 31.152100] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a9c [ 31.152149] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.152194] page_type: f5(slab) [ 31.152338] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.152442] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.152491] page dumped because: kasan: bad access detected [ 31.152529] [ 31.152610] Memory state around the buggy address: [ 31.152651] fff00000c9a9c100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.152695] fff00000c9a9c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.152736] >fff00000c9a9c200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.152772] ^ [ 31.152812] fff00000c9a9c280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.152852] fff00000c9a9c300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.152888] ==================================================================
[ 23.399198] ================================================================== [ 23.399652] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 23.399992] Write of size 128 at addr ffff88810595dc00 by task kunit_try_catch/218 [ 23.400705] [ 23.400820] CPU: 1 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) [ 23.400888] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.400901] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.400925] Call Trace: [ 23.400939] <TASK> [ 23.400959] dump_stack_lvl+0x73/0xb0 [ 23.400995] print_report+0xd1/0x610 [ 23.401020] ? __virt_addr_valid+0x1db/0x2d0 [ 23.401047] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.401069] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.401098] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.401120] kasan_report+0x141/0x180 [ 23.401143] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.401170] kasan_check_range+0x10c/0x1c0 [ 23.401202] __asan_memset+0x27/0x50 [ 23.401228] kmalloc_oob_in_memset+0x15f/0x320 [ 23.401262] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 23.401286] ? __schedule+0x10cc/0x2b60 [ 23.401316] ? __pfx_read_tsc+0x10/0x10 [ 23.401341] ? ktime_get_ts64+0x86/0x230 [ 23.401370] kunit_try_run_case+0x1a5/0x480 [ 23.401395] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.401415] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.401438] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.401467] ? __kthread_parkme+0x82/0x180 [ 23.401489] ? preempt_count_sub+0x50/0x80 [ 23.401514] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.401536] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.401564] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.401590] kthread+0x337/0x6f0 [ 23.401612] ? trace_preempt_on+0x20/0xc0 [ 23.401638] ? __pfx_kthread+0x10/0x10 [ 23.401661] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.401687] ? calculate_sigpending+0x7b/0xa0 [ 23.401715] ? __pfx_kthread+0x10/0x10 [ 23.401739] ret_from_fork+0x116/0x1d0 [ 23.401758] ? __pfx_kthread+0x10/0x10 [ 23.401782] ret_from_fork_asm+0x1a/0x30 [ 23.401817] </TASK> [ 23.401840] [ 23.409107] Allocated by task 218: [ 23.409313] kasan_save_stack+0x45/0x70 [ 23.409517] kasan_save_track+0x18/0x40 [ 23.409713] kasan_save_alloc_info+0x3b/0x50 [ 23.409880] __kasan_kmalloc+0xb7/0xc0 [ 23.410172] __kmalloc_cache_noprof+0x189/0x420 [ 23.410392] kmalloc_oob_in_memset+0xac/0x320 [ 23.410565] kunit_try_run_case+0x1a5/0x480 [ 23.410703] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.410901] kthread+0x337/0x6f0 [ 23.411161] ret_from_fork+0x116/0x1d0 [ 23.411353] ret_from_fork_asm+0x1a/0x30 [ 23.411551] [ 23.411647] The buggy address belongs to the object at ffff88810595dc00 [ 23.411647] which belongs to the cache kmalloc-128 of size 128 [ 23.412160] The buggy address is located 0 bytes inside of [ 23.412160] allocated 120-byte region [ffff88810595dc00, ffff88810595dc78) [ 23.412561] [ 23.412653] The buggy address belongs to the physical page: [ 23.412974] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10595d [ 23.413344] flags: 0x200000000000000(node=0|zone=2) [ 23.413548] page_type: f5(slab) [ 23.413695] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.414187] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.414468] page dumped because: kasan: bad access detected [ 23.414698] [ 23.414762] Memory state around the buggy address: [ 23.414998] ffff88810595db00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.415212] ffff88810595db80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.415429] >ffff88810595dc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.415634] ^ [ 23.415881] ffff88810595dc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.416187] ffff88810595dd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.416663] ==================================================================