Date
July 16, 2025, 12:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.658645] ================================================================== [ 30.658706] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 30.658792] Write of size 8 at addr fff00000c6361c71 by task kunit_try_catch/207 [ 30.658845] [ 30.658922] CPU: 0 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT [ 30.659342] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.659477] Hardware name: linux,dummy-virt (DT) [ 30.659624] Call trace: [ 30.659650] show_stack+0x20/0x38 (C) [ 30.659716] dump_stack_lvl+0x8c/0xd0 [ 30.659809] print_report+0x118/0x5d0 [ 30.659905] kasan_report+0xdc/0x128 [ 30.659947] kasan_check_range+0x100/0x1a8 [ 30.660127] __asan_memset+0x34/0x78 [ 30.660329] kmalloc_oob_memset_8+0x150/0x2f8 [ 30.660549] kunit_try_run_case+0x170/0x3f0 [ 30.660675] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.660808] kthread+0x328/0x630 [ 30.660937] ret_from_fork+0x10/0x20 [ 30.661066] [ 30.661086] Allocated by task 207: [ 30.661376] kasan_save_stack+0x3c/0x68 [ 30.661653] kasan_save_track+0x20/0x40 [ 30.661898] kasan_save_alloc_info+0x40/0x58 [ 30.661998] __kasan_kmalloc+0xd4/0xd8 [ 30.662213] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.662432] kmalloc_oob_memset_8+0xb0/0x2f8 [ 30.662675] kunit_try_run_case+0x170/0x3f0 [ 30.662744] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.663000] kthread+0x328/0x630 [ 30.663185] ret_from_fork+0x10/0x20 [ 30.663297] [ 30.663418] The buggy address belongs to the object at fff00000c6361c00 [ 30.663418] which belongs to the cache kmalloc-128 of size 128 [ 30.663538] The buggy address is located 113 bytes inside of [ 30.663538] allocated 120-byte region [fff00000c6361c00, fff00000c6361c78) [ 30.663811] [ 30.663907] The buggy address belongs to the physical page: [ 30.663986] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106361 [ 30.664390] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.664459] page_type: f5(slab) [ 30.664496] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 30.664693] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.664812] page dumped because: kasan: bad access detected [ 30.664988] [ 30.665031] Memory state around the buggy address: [ 30.665179] fff00000c6361b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.665457] fff00000c6361b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.665667] >fff00000c6361c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.665758] ^ [ 30.665916] fff00000c6361c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.665989] fff00000c6361d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.666204] ==================================================================
[ 23.400607] ================================================================== [ 23.400994] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 23.401446] Write of size 8 at addr ffff88810539fa71 by task kunit_try_catch/225 [ 23.401896] [ 23.402020] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) [ 23.402086] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.402098] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.402119] Call Trace: [ 23.402131] <TASK> [ 23.402150] dump_stack_lvl+0x73/0xb0 [ 23.402181] print_report+0xd1/0x610 [ 23.402203] ? __virt_addr_valid+0x1db/0x2d0 [ 23.402226] ? kmalloc_oob_memset_8+0x166/0x330 [ 23.402246] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.402283] ? kmalloc_oob_memset_8+0x166/0x330 [ 23.402304] kasan_report+0x141/0x180 [ 23.402325] ? kmalloc_oob_memset_8+0x166/0x330 [ 23.402350] kasan_check_range+0x10c/0x1c0 [ 23.402373] __asan_memset+0x27/0x50 [ 23.402395] kmalloc_oob_memset_8+0x166/0x330 [ 23.402416] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 23.402438] ? __schedule+0x10c6/0x2b60 [ 23.402460] ? __pfx_read_tsc+0x10/0x10 [ 23.402492] ? ktime_get_ts64+0x86/0x230 [ 23.402517] kunit_try_run_case+0x1a5/0x480 [ 23.402541] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.402588] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.402610] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.402632] ? __kthread_parkme+0x82/0x180 [ 23.402652] ? preempt_count_sub+0x50/0x80 [ 23.402675] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.402698] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.402723] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.402749] kthread+0x337/0x6f0 [ 23.402767] ? trace_preempt_on+0x20/0xc0 [ 23.402791] ? __pfx_kthread+0x10/0x10 [ 23.402810] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.402830] ? calculate_sigpending+0x7b/0xa0 [ 23.402853] ? __pfx_kthread+0x10/0x10 [ 23.402874] ret_from_fork+0x116/0x1d0 [ 23.402892] ? __pfx_kthread+0x10/0x10 [ 23.402912] ret_from_fork_asm+0x1a/0x30 [ 23.403150] </TASK> [ 23.403167] [ 23.411175] Allocated by task 225: [ 23.411332] kasan_save_stack+0x45/0x70 [ 23.411536] kasan_save_track+0x18/0x40 [ 23.411764] kasan_save_alloc_info+0x3b/0x50 [ 23.412023] __kasan_kmalloc+0xb7/0xc0 [ 23.412182] __kmalloc_cache_noprof+0x189/0x420 [ 23.412429] kmalloc_oob_memset_8+0xac/0x330 [ 23.412660] kunit_try_run_case+0x1a5/0x480 [ 23.412798] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.412967] kthread+0x337/0x6f0 [ 23.413188] ret_from_fork+0x116/0x1d0 [ 23.413407] ret_from_fork_asm+0x1a/0x30 [ 23.413609] [ 23.413742] The buggy address belongs to the object at ffff88810539fa00 [ 23.413742] which belongs to the cache kmalloc-128 of size 128 [ 23.414229] The buggy address is located 113 bytes inside of [ 23.414229] allocated 120-byte region [ffff88810539fa00, ffff88810539fa78) [ 23.414949] [ 23.415039] The buggy address belongs to the physical page: [ 23.415344] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10539f [ 23.415587] flags: 0x200000000000000(node=0|zone=2) [ 23.415752] page_type: f5(slab) [ 23.415914] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.416249] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.416585] page dumped because: kasan: bad access detected [ 23.416824] [ 23.416969] Memory state around the buggy address: [ 23.417500] ffff88810539f900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.417952] ffff88810539f980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.418209] >ffff88810539fa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.418483] ^ [ 23.418964] ffff88810539fa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.419331] ffff88810539fb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.419719] ==================================================================