Date
July 3, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.598686] ================================================================== [ 22.598874] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 22.599014] Read of size 1 at addr fff00000c6376cd0 by task kunit_try_catch/259 [ 22.599265] [ 22.599369] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 22.599991] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.600087] Hardware name: linux,dummy-virt (DT) [ 22.600173] Call trace: [ 22.600232] show_stack+0x20/0x38 (C) [ 22.600344] dump_stack_lvl+0x8c/0xd0 [ 22.600462] print_report+0x118/0x608 [ 22.600594] kasan_report+0xdc/0x128 [ 22.600712] __asan_report_load1_noabort+0x20/0x30 [ 22.600833] kasan_strings+0x95c/0xb00 [ 22.600945] kunit_try_run_case+0x170/0x3f0 [ 22.601069] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.601184] kthread+0x328/0x630 [ 22.601291] ret_from_fork+0x10/0x20 [ 22.601404] [ 22.601452] Allocated by task 259: [ 22.601519] kasan_save_stack+0x3c/0x68 [ 22.601617] kasan_save_track+0x20/0x40 [ 22.602255] kasan_save_alloc_info+0x40/0x58 [ 22.602531] __kasan_kmalloc+0xd4/0xd8 [ 22.603244] __kmalloc_cache_noprof+0x16c/0x3c0 [ 22.603391] kasan_strings+0xc8/0xb00 [ 22.603483] kunit_try_run_case+0x170/0x3f0 [ 22.603560] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.603901] kthread+0x328/0x630 [ 22.604165] ret_from_fork+0x10/0x20 [ 22.604368] [ 22.604535] Freed by task 259: [ 22.604846] kasan_save_stack+0x3c/0x68 [ 22.605335] kasan_save_track+0x20/0x40 [ 22.605461] kasan_save_free_info+0x4c/0x78 [ 22.605558] __kasan_slab_free+0x6c/0x98 [ 22.605654] kfree+0x214/0x3c8 [ 22.605778] kasan_strings+0x24c/0xb00 [ 22.605857] kunit_try_run_case+0x170/0x3f0 [ 22.605927] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.606055] kthread+0x328/0x630 [ 22.606125] ret_from_fork+0x10/0x20 [ 22.606192] [ 22.606237] The buggy address belongs to the object at fff00000c6376cc0 [ 22.606237] which belongs to the cache kmalloc-32 of size 32 [ 22.606386] The buggy address is located 16 bytes inside of [ 22.606386] freed 32-byte region [fff00000c6376cc0, fff00000c6376ce0) [ 22.606535] [ 22.606585] The buggy address belongs to the physical page: [ 22.606662] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106376 [ 22.606791] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.606953] page_type: f5(slab) [ 22.607080] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 22.607206] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 22.607338] page dumped because: kasan: bad access detected [ 22.607414] [ 22.607480] Memory state around the buggy address: [ 22.607599] fff00000c6376b80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 22.607750] fff00000c6376c00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 22.607855] >fff00000c6376c80: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 22.607947] ^ [ 22.608045] fff00000c6376d00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 22.608142] fff00000c6376d80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 22.608224] ==================================================================
[ 13.541985] ================================================================== [ 13.542757] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 13.543186] Read of size 1 at addr ffff8881039c45d0 by task kunit_try_catch/276 [ 13.543619] [ 13.543738] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.543783] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.543797] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.543817] Call Trace: [ 13.543831] <TASK> [ 13.543846] dump_stack_lvl+0x73/0xb0 [ 13.543874] print_report+0xd1/0x650 [ 13.543896] ? __virt_addr_valid+0x1db/0x2d0 [ 13.543918] ? kasan_strings+0xcbc/0xe80 [ 13.543937] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.543959] ? kasan_strings+0xcbc/0xe80 [ 13.543979] kasan_report+0x141/0x180 [ 13.544000] ? kasan_strings+0xcbc/0xe80 [ 13.544025] __asan_report_load1_noabort+0x18/0x20 [ 13.544048] kasan_strings+0xcbc/0xe80 [ 13.544068] ? trace_hardirqs_on+0x37/0xe0 [ 13.544090] ? __pfx_kasan_strings+0x10/0x10 [ 13.544112] ? __kasan_check_write+0x18/0x20 [ 13.544143] ? queued_spin_lock_slowpath+0x116/0xb40 [ 13.544190] ? irqentry_exit+0x2a/0x60 [ 13.544212] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 13.544235] ? trace_hardirqs_on+0x37/0xe0 [ 13.544255] ? __pfx_read_tsc+0x10/0x10 [ 13.544275] ? ktime_get_ts64+0x86/0x230 [ 13.544298] kunit_try_run_case+0x1a5/0x480 [ 13.544321] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.544344] ? queued_spin_lock_slowpath+0x116/0xb40 [ 13.544365] ? __kthread_parkme+0x82/0x180 [ 13.544385] ? preempt_count_sub+0x50/0x80 [ 13.544408] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.544431] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.544587] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.544612] kthread+0x337/0x6f0 [ 13.544632] ? trace_preempt_on+0x20/0xc0 [ 13.544653] ? __pfx_kthread+0x10/0x10 [ 13.544673] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.544694] ? calculate_sigpending+0x7b/0xa0 [ 13.544718] ? __pfx_kthread+0x10/0x10 [ 13.544739] ret_from_fork+0x116/0x1d0 [ 13.544757] ? __pfx_kthread+0x10/0x10 [ 13.544777] ret_from_fork_asm+0x1a/0x30 [ 13.544806] </TASK> [ 13.544817] [ 13.552970] Allocated by task 276: [ 13.553296] kasan_save_stack+0x45/0x70 [ 13.553513] kasan_save_track+0x18/0x40 [ 13.553785] kasan_save_alloc_info+0x3b/0x50 [ 13.553954] __kasan_kmalloc+0xb7/0xc0 [ 13.554167] __kmalloc_cache_noprof+0x189/0x420 [ 13.554527] kasan_strings+0xc0/0xe80 [ 13.554706] kunit_try_run_case+0x1a5/0x480 [ 13.554895] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.555165] kthread+0x337/0x6f0 [ 13.555365] ret_from_fork+0x116/0x1d0 [ 13.555538] ret_from_fork_asm+0x1a/0x30 [ 13.555773] [ 13.555863] Freed by task 276: [ 13.555976] kasan_save_stack+0x45/0x70 [ 13.556112] kasan_save_track+0x18/0x40 [ 13.556504] kasan_save_free_info+0x3f/0x60 [ 13.556730] __kasan_slab_free+0x56/0x70 [ 13.556931] kfree+0x222/0x3f0 [ 13.557113] kasan_strings+0x2aa/0xe80 [ 13.557379] kunit_try_run_case+0x1a5/0x480 [ 13.557539] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.557800] kthread+0x337/0x6f0 [ 13.557987] ret_from_fork+0x116/0x1d0 [ 13.558199] ret_from_fork_asm+0x1a/0x30 [ 13.558455] [ 13.558547] The buggy address belongs to the object at ffff8881039c45c0 [ 13.558547] which belongs to the cache kmalloc-32 of size 32 [ 13.558903] The buggy address is located 16 bytes inside of [ 13.558903] freed 32-byte region [ffff8881039c45c0, ffff8881039c45e0) [ 13.559392] [ 13.559485] The buggy address belongs to the physical page: [ 13.559788] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c4 [ 13.560032] flags: 0x200000000000000(node=0|zone=2) [ 13.560367] page_type: f5(slab) [ 13.560556] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.561058] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.561473] page dumped because: kasan: bad access detected [ 13.561963] [ 13.562035] Memory state around the buggy address: [ 13.562202] ffff8881039c4480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.562707] ffff8881039c4500: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.563040] >ffff8881039c4580: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 13.563401] ^ [ 13.564381] ffff8881039c4600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.564748] ffff8881039c4680: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 13.565089] ==================================================================