Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.440824] ================================================================== [ 20.440960] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 20.441154] Write of size 16 at addr fff00000c6423a69 by task kunit_try_catch/188 [ 20.441288] [ 20.441547] CPU: 0 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 20.442336] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.442395] Hardware name: linux,dummy-virt (DT) [ 20.442467] Call trace: [ 20.443068] show_stack+0x20/0x38 (C) [ 20.443246] dump_stack_lvl+0x8c/0xd0 [ 20.443590] print_report+0x118/0x608 [ 20.443746] kasan_report+0xdc/0x128 [ 20.443887] kasan_check_range+0x100/0x1a8 [ 20.444050] __asan_memset+0x34/0x78 [ 20.444192] kmalloc_oob_memset_16+0x150/0x2f8 [ 20.444343] kunit_try_run_case+0x170/0x3f0 [ 20.444468] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.444636] kthread+0x328/0x630 [ 20.444776] ret_from_fork+0x10/0x20 [ 20.444934] [ 20.444996] Allocated by task 188: [ 20.445067] kasan_save_stack+0x3c/0x68 [ 20.445153] kasan_save_track+0x20/0x40 [ 20.445789] kasan_save_alloc_info+0x40/0x58 [ 20.446025] __kasan_kmalloc+0xd4/0xd8 [ 20.446297] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.446384] kmalloc_oob_memset_16+0xb0/0x2f8 [ 20.446501] kunit_try_run_case+0x170/0x3f0 [ 20.446698] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.446805] kthread+0x328/0x630 [ 20.446872] ret_from_fork+0x10/0x20 [ 20.446947] [ 20.446993] The buggy address belongs to the object at fff00000c6423a00 [ 20.446993] which belongs to the cache kmalloc-128 of size 128 [ 20.447133] The buggy address is located 105 bytes inside of [ 20.447133] allocated 120-byte region [fff00000c6423a00, fff00000c6423a78) [ 20.447269] [ 20.447313] The buggy address belongs to the physical page: [ 20.447379] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106423 [ 20.447494] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.447600] page_type: f5(slab) [ 20.447685] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 20.447794] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 20.447890] page dumped because: kasan: bad access detected [ 20.447955] [ 20.447993] Memory state around the buggy address: [ 20.448151] fff00000c6423900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.448248] fff00000c6423980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.448707] >fff00000c6423a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 20.448872] ^ [ 20.448993] fff00000c6423a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.449137] fff00000c6423b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.449218] ==================================================================
[ 11.283539] ================================================================== [ 11.285131] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 11.286362] Write of size 16 at addr ffff888102c54969 by task kunit_try_catch/204 [ 11.287335] [ 11.287705] CPU: 1 UID: 0 PID: 204 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 11.287864] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.287878] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.287899] Call Trace: [ 11.287910] <TASK> [ 11.287938] dump_stack_lvl+0x73/0xb0 [ 11.287967] print_report+0xd1/0x650 [ 11.288019] ? __virt_addr_valid+0x1db/0x2d0 [ 11.288041] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.288061] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.288085] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.288106] kasan_report+0x141/0x180 [ 11.288126] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.288150] kasan_check_range+0x10c/0x1c0 [ 11.288190] __asan_memset+0x27/0x50 [ 11.288220] kmalloc_oob_memset_16+0x166/0x330 [ 11.288240] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 11.288261] ? __schedule+0x10cc/0x2b60 [ 11.288283] ? __pfx_read_tsc+0x10/0x10 [ 11.288302] ? ktime_get_ts64+0x86/0x230 [ 11.288328] kunit_try_run_case+0x1a5/0x480 [ 11.288350] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.288371] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.288392] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.288413] ? __kthread_parkme+0x82/0x180 [ 11.288450] ? preempt_count_sub+0x50/0x80 [ 11.288473] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.288495] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.288516] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.288538] kthread+0x337/0x6f0 [ 11.288556] ? trace_preempt_on+0x20/0xc0 [ 11.288577] ? __pfx_kthread+0x10/0x10 [ 11.288597] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.288616] ? calculate_sigpending+0x7b/0xa0 [ 11.288638] ? __pfx_kthread+0x10/0x10 [ 11.288663] ret_from_fork+0x116/0x1d0 [ 11.288680] ? __pfx_kthread+0x10/0x10 [ 11.288699] ret_from_fork_asm+0x1a/0x30 [ 11.288727] </TASK> [ 11.288738] [ 11.299503] Allocated by task 204: [ 11.299850] kasan_save_stack+0x45/0x70 [ 11.300087] kasan_save_track+0x18/0x40 [ 11.300315] kasan_save_alloc_info+0x3b/0x50 [ 11.300521] __kasan_kmalloc+0xb7/0xc0 [ 11.300813] __kmalloc_cache_noprof+0x189/0x420 [ 11.301342] kmalloc_oob_memset_16+0xac/0x330 [ 11.301500] kunit_try_run_case+0x1a5/0x480 [ 11.301692] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.302010] kthread+0x337/0x6f0 [ 11.302130] ret_from_fork+0x116/0x1d0 [ 11.302506] ret_from_fork_asm+0x1a/0x30 [ 11.302746] [ 11.302838] The buggy address belongs to the object at ffff888102c54900 [ 11.302838] which belongs to the cache kmalloc-128 of size 128 [ 11.303408] The buggy address is located 105 bytes inside of [ 11.303408] allocated 120-byte region [ffff888102c54900, ffff888102c54978) [ 11.303806] [ 11.303886] The buggy address belongs to the physical page: [ 11.304134] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c54 [ 11.304824] flags: 0x200000000000000(node=0|zone=2) [ 11.305069] page_type: f5(slab) [ 11.305188] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.305439] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.305799] page dumped because: kasan: bad access detected [ 11.306300] [ 11.306372] Memory state around the buggy address: [ 11.306676] ffff888102c54800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.306910] ffff888102c54880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.307355] >ffff888102c54900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.307813] ^ [ 11.308197] ffff888102c54980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.308539] ffff888102c54a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.308991] ==================================================================