Date
July 4, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.341382] ================================================================== [ 29.341443] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 29.341493] Write of size 1 at addr fff00000c65edf00 by task kunit_try_catch/177 [ 29.341572] [ 29.341610] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT [ 29.341695] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.341741] Hardware name: linux,dummy-virt (DT) [ 29.341772] Call trace: [ 29.341955] show_stack+0x20/0x38 (C) [ 29.342009] dump_stack_lvl+0x8c/0xd0 [ 29.342053] print_report+0x118/0x608 [ 29.342098] kasan_report+0xdc/0x128 [ 29.342142] __asan_report_store1_noabort+0x20/0x30 [ 29.342189] kmalloc_big_oob_right+0x2a4/0x2f0 [ 29.342234] kunit_try_run_case+0x170/0x3f0 [ 29.342281] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.342360] kthread+0x328/0x630 [ 29.342484] ret_from_fork+0x10/0x20 [ 29.342588] [ 29.342697] Allocated by task 177: [ 29.342796] kasan_save_stack+0x3c/0x68 [ 29.342838] kasan_save_track+0x20/0x40 [ 29.342877] kasan_save_alloc_info+0x40/0x58 [ 29.342924] __kasan_kmalloc+0xd4/0xd8 [ 29.342961] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.343158] kmalloc_big_oob_right+0xb8/0x2f0 [ 29.343271] kunit_try_run_case+0x170/0x3f0 [ 29.343398] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.343524] kthread+0x328/0x630 [ 29.343639] ret_from_fork+0x10/0x20 [ 29.343677] [ 29.343697] The buggy address belongs to the object at fff00000c65ec000 [ 29.343697] which belongs to the cache kmalloc-8k of size 8192 [ 29.343875] The buggy address is located 0 bytes to the right of [ 29.343875] allocated 7936-byte region [fff00000c65ec000, fff00000c65edf00) [ 29.343948] [ 29.343969] The buggy address belongs to the physical page: [ 29.344000] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065e8 [ 29.344068] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.344166] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.344250] page_type: f5(slab) [ 29.344288] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 29.344372] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 29.344420] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 29.344467] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 29.344703] head: 0bfffe0000000003 ffffc1ffc3197a01 00000000ffffffff 00000000ffffffff [ 29.344772] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 29.344892] page dumped because: kasan: bad access detected [ 29.345044] [ 29.345073] Memory state around the buggy address: [ 29.345104] fff00000c65ede00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.345208] fff00000c65ede80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.345371] >fff00000c65edf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.345509] ^ [ 29.345662] fff00000c65edf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.345784] fff00000c65ee000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.345878] ==================================================================
[ 24.304323] ================================================================== [ 24.304906] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 24.305279] Write of size 1 at addr ffff888106091f00 by task kunit_try_catch/193 [ 24.305647] [ 24.305766] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) [ 24.305823] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.305836] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.305863] Call Trace: [ 24.305877] <TASK> [ 24.305898] dump_stack_lvl+0x73/0xb0 [ 24.305928] print_report+0xd1/0x650 [ 24.305953] ? __virt_addr_valid+0x1db/0x2d0 [ 24.305980] ? kmalloc_big_oob_right+0x316/0x370 [ 24.306004] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.306032] ? kmalloc_big_oob_right+0x316/0x370 [ 24.306057] kasan_report+0x141/0x180 [ 24.306081] ? kmalloc_big_oob_right+0x316/0x370 [ 24.306111] __asan_report_store1_noabort+0x1b/0x30 [ 24.306589] kmalloc_big_oob_right+0x316/0x370 [ 24.306621] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 24.306648] ? __schedule+0x10cc/0x2b60 [ 24.306677] ? __pfx_read_tsc+0x10/0x10 [ 24.306702] ? ktime_get_ts64+0x86/0x230 [ 24.306731] kunit_try_run_case+0x1a5/0x480 [ 24.306761] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.306787] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.306814] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.306841] ? __kthread_parkme+0x82/0x180 [ 24.306865] ? preempt_count_sub+0x50/0x80 [ 24.306892] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.306920] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.306948] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.306975] kthread+0x337/0x6f0 [ 24.306998] ? trace_preempt_on+0x20/0xc0 [ 24.307026] ? __pfx_kthread+0x10/0x10 [ 24.307050] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.307075] ? calculate_sigpending+0x7b/0xa0 [ 24.307103] ? __pfx_kthread+0x10/0x10 [ 24.307128] ret_from_fork+0x116/0x1d0 [ 24.307149] ? __pfx_kthread+0x10/0x10 [ 24.307172] ret_from_fork_asm+0x1a/0x30 [ 24.307210] </TASK> [ 24.307225] [ 24.319206] Allocated by task 193: [ 24.319674] kasan_save_stack+0x45/0x70 [ 24.319966] kasan_save_track+0x18/0x40 [ 24.320214] kasan_save_alloc_info+0x3b/0x50 [ 24.320417] __kasan_kmalloc+0xb7/0xc0 [ 24.320574] __kmalloc_cache_noprof+0x189/0x420 [ 24.321088] kmalloc_big_oob_right+0xa9/0x370 [ 24.321342] kunit_try_run_case+0x1a5/0x480 [ 24.321850] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.322127] kthread+0x337/0x6f0 [ 24.322474] ret_from_fork+0x116/0x1d0 [ 24.322747] ret_from_fork_asm+0x1a/0x30 [ 24.323028] [ 24.323135] The buggy address belongs to the object at ffff888106090000 [ 24.323135] which belongs to the cache kmalloc-8k of size 8192 [ 24.323722] The buggy address is located 0 bytes to the right of [ 24.323722] allocated 7936-byte region [ffff888106090000, ffff888106091f00) [ 24.324383] [ 24.324513] The buggy address belongs to the physical page: [ 24.324926] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106090 [ 24.325314] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.325789] flags: 0x200000000000040(head|node=0|zone=2) [ 24.326097] page_type: f5(slab) [ 24.326590] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.327053] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.327566] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.327989] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.328416] head: 0200000000000003 ffffea0004182401 00000000ffffffff 00000000ffffffff [ 24.328760] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.329202] page dumped because: kasan: bad access detected [ 24.329627] [ 24.329701] Memory state around the buggy address: [ 24.330128] ffff888106091e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.330778] ffff888106091e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.331528] >ffff888106091f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.331883] ^ [ 24.332014] ffff888106091f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.332459] ffff888106092000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.333012] ==================================================================