Date
July 18, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.433118] ================================================================== [ 15.433180] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 15.433535] Write of size 8 at addr fff00000c3f17f71 by task kunit_try_catch/176 [ 15.433671] [ 15.433736] CPU: 1 UID: 0 PID: 176 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.433983] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.434073] Hardware name: linux,dummy-virt (DT) [ 15.434288] Call trace: [ 15.434429] show_stack+0x20/0x38 (C) [ 15.434772] dump_stack_lvl+0x8c/0xd0 [ 15.434914] print_report+0x118/0x5d0 [ 15.435293] kasan_report+0xdc/0x128 [ 15.435481] kasan_check_range+0x100/0x1a8 [ 15.435624] __asan_memset+0x34/0x78 [ 15.435726] kmalloc_oob_memset_8+0x150/0x2f8 [ 15.435799] kunit_try_run_case+0x170/0x3f0 [ 15.436022] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.436085] kthread+0x328/0x630 [ 15.436146] ret_from_fork+0x10/0x20 [ 15.436219] [ 15.436266] Allocated by task 176: [ 15.436294] kasan_save_stack+0x3c/0x68 [ 15.436346] kasan_save_track+0x20/0x40 [ 15.436393] kasan_save_alloc_info+0x40/0x58 [ 15.436446] __kasan_kmalloc+0xd4/0xd8 [ 15.436482] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.436521] kmalloc_oob_memset_8+0xb0/0x2f8 [ 15.436565] kunit_try_run_case+0x170/0x3f0 [ 15.436607] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.436664] kthread+0x328/0x630 [ 15.436696] ret_from_fork+0x10/0x20 [ 15.436731] [ 15.436759] The buggy address belongs to the object at fff00000c3f17f00 [ 15.436759] which belongs to the cache kmalloc-128 of size 128 [ 15.436815] The buggy address is located 113 bytes inside of [ 15.436815] allocated 120-byte region [fff00000c3f17f00, fff00000c3f17f78) [ 15.436876] [ 15.436896] The buggy address belongs to the physical page: [ 15.436940] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f17 [ 15.436991] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.437036] page_type: f5(slab) [ 15.437081] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.437138] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.437176] page dumped because: kasan: bad access detected [ 15.437222] [ 15.437250] Memory state around the buggy address: [ 15.437280] fff00000c3f17e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.437810] fff00000c3f17e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.437869] >fff00000c3f17f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.437907] ^ [ 15.437949] fff00000c3f17f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.438194] fff00000c3f18000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.439039] ==================================================================
[ 12.300910] ================================================================== [ 12.301709] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 12.303071] Write of size 8 at addr ffff8881030d9971 by task kunit_try_catch/195 [ 12.303724] [ 12.303829] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.303876] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.303888] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.303909] Call Trace: [ 12.303921] <TASK> [ 12.303938] dump_stack_lvl+0x73/0xb0 [ 12.303971] print_report+0xd1/0x610 [ 12.303992] ? __virt_addr_valid+0x1db/0x2d0 [ 12.304015] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.304036] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.304059] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.304080] kasan_report+0x141/0x180 [ 12.304101] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.304126] kasan_check_range+0x10c/0x1c0 [ 12.304149] __asan_memset+0x27/0x50 [ 12.304167] kmalloc_oob_memset_8+0x166/0x330 [ 12.304189] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 12.304210] ? __schedule+0x10cc/0x2b60 [ 12.304232] ? __pfx_read_tsc+0x10/0x10 [ 12.304252] ? ktime_get_ts64+0x86/0x230 [ 12.304287] kunit_try_run_case+0x1a5/0x480 [ 12.304312] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.304333] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.304355] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.304378] ? __kthread_parkme+0x82/0x180 [ 12.304397] ? preempt_count_sub+0x50/0x80 [ 12.304420] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.304443] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.304848] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.304876] kthread+0x337/0x6f0 [ 12.304897] ? trace_preempt_on+0x20/0xc0 [ 12.304921] ? __pfx_kthread+0x10/0x10 [ 12.304947] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.304969] ? calculate_sigpending+0x7b/0xa0 [ 12.304992] ? __pfx_kthread+0x10/0x10 [ 12.305013] ret_from_fork+0x116/0x1d0 [ 12.305031] ? __pfx_kthread+0x10/0x10 [ 12.305050] ret_from_fork_asm+0x1a/0x30 [ 12.305081] </TASK> [ 12.305091] [ 12.316242] Allocated by task 195: [ 12.316481] kasan_save_stack+0x45/0x70 [ 12.316685] kasan_save_track+0x18/0x40 [ 12.316875] kasan_save_alloc_info+0x3b/0x50 [ 12.317267] __kasan_kmalloc+0xb7/0xc0 [ 12.317521] __kmalloc_cache_noprof+0x189/0x420 [ 12.317689] kmalloc_oob_memset_8+0xac/0x330 [ 12.317838] kunit_try_run_case+0x1a5/0x480 [ 12.318131] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.318409] kthread+0x337/0x6f0 [ 12.318596] ret_from_fork+0x116/0x1d0 [ 12.318789] ret_from_fork_asm+0x1a/0x30 [ 12.318989] [ 12.319169] The buggy address belongs to the object at ffff8881030d9900 [ 12.319169] which belongs to the cache kmalloc-128 of size 128 [ 12.319681] The buggy address is located 113 bytes inside of [ 12.319681] allocated 120-byte region [ffff8881030d9900, ffff8881030d9978) [ 12.320317] [ 12.320429] The buggy address belongs to the physical page: [ 12.320680] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1030d9 [ 12.321156] flags: 0x200000000000000(node=0|zone=2) [ 12.321533] page_type: f5(slab) [ 12.321733] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.322148] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.322504] page dumped because: kasan: bad access detected [ 12.322761] [ 12.322860] Memory state around the buggy address: [ 12.323043] ffff8881030d9800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.323261] ffff8881030d9880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.323676] >ffff8881030d9900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.324049] ^ [ 12.324385] ffff8881030d9980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.324740] ffff8881030d9a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.325241] ==================================================================