Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.278977] ================================================================== [ 31.279271] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 31.279462] Write of size 1 at addr fff00000c5979f00 by task kunit_try_catch/155 [ 31.279697] [ 31.279800] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 31.280039] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.280107] Hardware name: linux,dummy-virt (DT) [ 31.280190] Call trace: [ 31.280248] show_stack+0x20/0x38 (C) [ 31.280582] dump_stack_lvl+0x8c/0xd0 [ 31.280800] print_report+0x118/0x608 [ 31.280892] kasan_report+0xdc/0x128 [ 31.280989] __asan_report_store1_noabort+0x20/0x30 [ 31.281444] kmalloc_big_oob_right+0x2a4/0x2f0 [ 31.281713] kunit_try_run_case+0x170/0x3f0 [ 31.281964] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.282243] kthread+0x328/0x630 [ 31.282350] ret_from_fork+0x10/0x20 [ 31.282471] [ 31.282522] Allocated by task 155: [ 31.282593] kasan_save_stack+0x3c/0x68 [ 31.282711] kasan_save_track+0x20/0x40 [ 31.283234] kasan_save_alloc_info+0x40/0x58 [ 31.283354] __kasan_kmalloc+0xd4/0xd8 [ 31.283582] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.283971] kmalloc_big_oob_right+0xb8/0x2f0 [ 31.284218] kunit_try_run_case+0x170/0x3f0 [ 31.284371] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.284642] kthread+0x328/0x630 [ 31.284734] ret_from_fork+0x10/0x20 [ 31.284901] [ 31.284957] The buggy address belongs to the object at fff00000c5978000 [ 31.284957] which belongs to the cache kmalloc-8k of size 8192 [ 31.285171] The buggy address is located 0 bytes to the right of [ 31.285171] allocated 7936-byte region [fff00000c5978000, fff00000c5979f00) [ 31.285294] [ 31.285341] The buggy address belongs to the physical page: [ 31.285416] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105978 [ 31.285859] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 31.286086] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 31.286414] page_type: f5(slab) [ 31.286676] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 31.286848] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 31.287303] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 31.287446] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 31.287747] head: 0bfffe0000000003 ffffc1ffc3165e01 00000000ffffffff 00000000ffffffff [ 31.288057] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 31.288205] page dumped because: kasan: bad access detected [ 31.288285] [ 31.288791] Memory state around the buggy address: [ 31.289084] fff00000c5979e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.289293] fff00000c5979e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.289502] >fff00000c5979f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.289594] ^ [ 31.289668] fff00000c5979f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.289747] fff00000c597a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.289829] ==================================================================
[ 24.796050] ================================================================== [ 24.796640] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 24.797541] Write of size 1 at addr ffff888103971f00 by task kunit_try_catch/173 [ 24.798683] [ 24.798871] CPU: 1 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 24.798937] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.798952] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.798977] Call Trace: [ 24.798994] <TASK> [ 24.799017] dump_stack_lvl+0x73/0xb0 [ 24.799060] print_report+0xd1/0x650 [ 24.799084] ? __virt_addr_valid+0x1db/0x2d0 [ 24.799111] ? kmalloc_big_oob_right+0x316/0x370 [ 24.799134] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.799174] ? kmalloc_big_oob_right+0x316/0x370 [ 24.799208] kasan_report+0x141/0x180 [ 24.799243] ? kmalloc_big_oob_right+0x316/0x370 [ 24.799292] __asan_report_store1_noabort+0x1b/0x30 [ 24.799337] kmalloc_big_oob_right+0x316/0x370 [ 24.799381] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 24.799422] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 24.799479] ? trace_hardirqs_on+0x37/0xe0 [ 24.799526] ? __pfx_read_tsc+0x10/0x10 [ 24.799568] ? ktime_get_ts64+0x86/0x230 [ 24.799619] kunit_try_run_case+0x1a5/0x480 [ 24.799670] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.799720] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.799760] ? __kthread_parkme+0x82/0x180 [ 24.799799] ? preempt_count_sub+0x50/0x80 [ 24.799840] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.799884] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.799931] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.799980] kthread+0x337/0x6f0 [ 24.800021] ? trace_preempt_on+0x20/0xc0 [ 24.800069] ? __pfx_kthread+0x10/0x10 [ 24.800106] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.800140] ? calculate_sigpending+0x7b/0xa0 [ 24.800178] ? __pfx_kthread+0x10/0x10 [ 24.800214] ret_from_fork+0x116/0x1d0 [ 24.800245] ? __pfx_kthread+0x10/0x10 [ 24.800278] ret_from_fork_asm+0x1a/0x30 [ 24.800331] </TASK> [ 24.800351] [ 24.812517] Allocated by task 173: [ 24.812816] kasan_save_stack+0x45/0x70 [ 24.813968] kasan_save_track+0x18/0x40 [ 24.814414] kasan_save_alloc_info+0x3b/0x50 [ 24.814718] __kasan_kmalloc+0xb7/0xc0 [ 24.814921] __kmalloc_cache_noprof+0x189/0x420 [ 24.815126] kmalloc_big_oob_right+0xa9/0x370 [ 24.815303] kunit_try_run_case+0x1a5/0x480 [ 24.815533] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.815954] kthread+0x337/0x6f0 [ 24.816243] ret_from_fork+0x116/0x1d0 [ 24.816510] ret_from_fork_asm+0x1a/0x30 [ 24.816691] [ 24.816862] The buggy address belongs to the object at ffff888103970000 [ 24.816862] which belongs to the cache kmalloc-8k of size 8192 [ 24.818339] The buggy address is located 0 bytes to the right of [ 24.818339] allocated 7936-byte region [ffff888103970000, ffff888103971f00) [ 24.819365] [ 24.819858] The buggy address belongs to the physical page: [ 24.820386] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103970 [ 24.821322] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.821932] flags: 0x200000000000040(head|node=0|zone=2) [ 24.822150] page_type: f5(slab) [ 24.822295] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.823335] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.823626] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.824181] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.824617] head: 0200000000000003 ffffea00040e5c01 00000000ffffffff 00000000ffffffff [ 24.824953] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.825305] page dumped because: kasan: bad access detected [ 24.825666] [ 24.825768] Memory state around the buggy address: [ 24.825967] ffff888103971e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.827151] ffff888103971e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.827732] >ffff888103971f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.828188] ^ [ 24.828479] ffff888103971f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.828889] ffff888103972000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.829237] ==================================================================