Date
July 22, 2025, 5:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.411150] ================================================================== [ 30.411426] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 30.411490] Write of size 16 at addr fff00000c3f71e69 by task kunit_try_catch/209 [ 30.411789] [ 30.411844] CPU: 1 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250722 #1 PREEMPT [ 30.412317] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 30.412379] Hardware name: linux,dummy-virt (DT) [ 30.412639] Call trace: [ 30.412676] show_stack+0x20/0x38 (C) [ 30.412894] dump_stack_lvl+0x8c/0xd0 [ 30.413081] print_report+0x118/0x5e8 [ 30.413134] kasan_report+0xdc/0x128 [ 30.413423] kasan_check_range+0x100/0x1a8 [ 30.413659] __asan_memset+0x34/0x78 [ 30.414107] kmalloc_oob_memset_16+0x150/0x2f8 [ 30.414192] kunit_try_run_case+0x170/0x3f0 [ 30.414339] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.414428] kthread+0x328/0x630 [ 30.414580] ret_from_fork+0x10/0x20 [ 30.414723] [ 30.414793] Allocated by task 209: [ 30.415224] kasan_save_stack+0x3c/0x68 [ 30.415292] kasan_save_track+0x20/0x40 [ 30.415405] kasan_save_alloc_info+0x40/0x58 [ 30.415561] __kasan_kmalloc+0xd4/0xd8 [ 30.415620] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.415685] kmalloc_oob_memset_16+0xb0/0x2f8 [ 30.416053] kunit_try_run_case+0x170/0x3f0 [ 30.416121] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.416245] kthread+0x328/0x630 [ 30.416285] ret_from_fork+0x10/0x20 [ 30.416344] [ 30.416640] The buggy address belongs to the object at fff00000c3f71e00 [ 30.416640] which belongs to the cache kmalloc-128 of size 128 [ 30.416868] The buggy address is located 105 bytes inside of [ 30.416868] allocated 120-byte region [fff00000c3f71e00, fff00000c3f71e78) [ 30.417057] [ 30.417162] The buggy address belongs to the physical page: [ 30.417210] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f71 [ 30.417282] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.417595] page_type: f5(slab) [ 30.417672] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 30.417833] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.417878] page dumped because: kasan: bad access detected [ 30.418219] [ 30.418265] Memory state around the buggy address: [ 30.418324] fff00000c3f71d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.418659] fff00000c3f71d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.418732] >fff00000c3f71e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.418836] ^ [ 30.418915] fff00000c3f71e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.418960] fff00000c3f71f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.419291] ==================================================================
[ 25.276899] ================================================================== [ 25.277388] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 25.277955] Write of size 16 at addr ffff888104975069 by task kunit_try_catch/226 [ 25.278691] [ 25.278808] CPU: 0 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) [ 25.278868] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.278882] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.278938] Call Trace: [ 25.278951] <TASK> [ 25.278966] dump_stack_lvl+0x73/0xb0 [ 25.279010] print_report+0xd1/0x640 [ 25.279033] ? __virt_addr_valid+0x1db/0x2d0 [ 25.279058] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.279080] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.279132] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.279156] kasan_report+0x141/0x180 [ 25.279200] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.279227] kasan_check_range+0x10c/0x1c0 [ 25.279251] __asan_memset+0x27/0x50 [ 25.279275] kmalloc_oob_memset_16+0x166/0x330 [ 25.279298] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 25.279322] ? __schedule+0x2070/0x2b60 [ 25.279348] ? __pfx_read_tsc+0x10/0x10 [ 25.279369] ? ktime_get_ts64+0x86/0x230 [ 25.279393] kunit_try_run_case+0x1a5/0x480 [ 25.279420] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.279442] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.279467] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.279493] ? __kthread_parkme+0x82/0x180 [ 25.279514] ? preempt_count_sub+0x50/0x80 [ 25.279538] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.279562] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.279585] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.279609] kthread+0x337/0x6f0 [ 25.279629] ? trace_preempt_on+0x20/0xc0 [ 25.279652] ? __pfx_kthread+0x10/0x10 [ 25.279673] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.279696] ? calculate_sigpending+0x7b/0xa0 [ 25.279719] ? __pfx_kthread+0x10/0x10 [ 25.279741] ret_from_fork+0x116/0x1d0 [ 25.279760] ? __pfx_kthread+0x10/0x10 [ 25.279781] ret_from_fork_asm+0x1a/0x30 [ 25.279812] </TASK> [ 25.279823] [ 25.287548] Allocated by task 226: [ 25.287755] kasan_save_stack+0x45/0x70 [ 25.287961] kasan_save_track+0x18/0x40 [ 25.288149] kasan_save_alloc_info+0x3b/0x50 [ 25.288309] __kasan_kmalloc+0xb7/0xc0 [ 25.288439] __kmalloc_cache_noprof+0x189/0x420 [ 25.288847] kmalloc_oob_memset_16+0xac/0x330 [ 25.289044] kunit_try_run_case+0x1a5/0x480 [ 25.289254] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.289568] kthread+0x337/0x6f0 [ 25.289687] ret_from_fork+0x116/0x1d0 [ 25.289814] ret_from_fork_asm+0x1a/0x30 [ 25.289958] [ 25.290061] The buggy address belongs to the object at ffff888104975000 [ 25.290061] which belongs to the cache kmalloc-128 of size 128 [ 25.290981] The buggy address is located 105 bytes inside of [ 25.290981] allocated 120-byte region [ffff888104975000, ffff888104975078) [ 25.291572] [ 25.291717] The buggy address belongs to the physical page: [ 25.291957] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104975 [ 25.292317] flags: 0x200000000000000(node=0|zone=2) [ 25.292604] page_type: f5(slab) [ 25.292741] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.293122] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.293495] page dumped because: kasan: bad access detected [ 25.293807] [ 25.293907] Memory state around the buggy address: [ 25.294136] ffff888104974f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.294528] ffff888104974f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.294825] >ffff888104975000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.295136] ^ [ 25.295452] ffff888104975080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.295774] ffff888104975100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.296075] ==================================================================