Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.696516] ================================================================== [ 19.696734] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 19.696833] Read of size 1 at addr fff00000c79f3950 by task kunit_try_catch/259 [ 19.696932] [ 19.696979] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 19.697069] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.697099] Hardware name: linux,dummy-virt (DT) [ 19.697197] Call trace: [ 19.697223] show_stack+0x20/0x38 (C) [ 19.697273] dump_stack_lvl+0x8c/0xd0 [ 19.697363] print_report+0x118/0x608 [ 19.697412] kasan_report+0xdc/0x128 [ 19.697510] __asan_report_load1_noabort+0x20/0x30 [ 19.697917] kasan_strings+0x95c/0xb00 [ 19.697984] kunit_try_run_case+0x170/0x3f0 [ 19.698342] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.698583] kthread+0x328/0x630 [ 19.698697] ret_from_fork+0x10/0x20 [ 19.698766] [ 19.698787] Allocated by task 259: [ 19.698821] kasan_save_stack+0x3c/0x68 [ 19.698864] kasan_save_track+0x20/0x40 [ 19.699339] kasan_save_alloc_info+0x40/0x58 [ 19.699726] __kasan_kmalloc+0xd4/0xd8 [ 19.699947] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.700574] kasan_strings+0xc8/0xb00 [ 19.700916] kunit_try_run_case+0x170/0x3f0 [ 19.701158] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.701493] kthread+0x328/0x630 [ 19.701676] ret_from_fork+0x10/0x20 [ 19.701917] [ 19.701998] Freed by task 259: [ 19.702075] kasan_save_stack+0x3c/0x68 [ 19.702469] kasan_save_track+0x20/0x40 [ 19.702635] kasan_save_free_info+0x4c/0x78 [ 19.702913] __kasan_slab_free+0x6c/0x98 [ 19.702982] kfree+0x214/0x3c8 [ 19.703153] kasan_strings+0x24c/0xb00 [ 19.703238] kunit_try_run_case+0x170/0x3f0 [ 19.703281] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.703337] kthread+0x328/0x630 [ 19.703374] ret_from_fork+0x10/0x20 [ 19.703932] [ 19.704072] The buggy address belongs to the object at fff00000c79f3940 [ 19.704072] which belongs to the cache kmalloc-32 of size 32 [ 19.704576] The buggy address is located 16 bytes inside of [ 19.704576] freed 32-byte region [fff00000c79f3940, fff00000c79f3960) [ 19.704655] [ 19.704746] The buggy address belongs to the physical page: [ 19.704808] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079f3 [ 19.704879] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.704932] page_type: f5(slab) [ 19.704981] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.705035] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.705082] page dumped because: kasan: bad access detected [ 19.705125] [ 19.705155] Memory state around the buggy address: [ 19.705202] fff00000c79f3800: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.705248] fff00000c79f3880: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 19.705306] >fff00000c79f3900: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 19.705369] ^ [ 19.705410] fff00000c79f3980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.705469] fff00000c79f3a00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 19.705510] ==================================================================
[ 13.359851] ================================================================== [ 13.360103] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 13.360460] Read of size 1 at addr ffff888103124410 by task kunit_try_catch/276 [ 13.360718] [ 13.360822] CPU: 0 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.360863] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.360875] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.360894] Call Trace: [ 13.360908] <TASK> [ 13.360922] dump_stack_lvl+0x73/0xb0 [ 13.360949] print_report+0xd1/0x650 [ 13.360970] ? __virt_addr_valid+0x1db/0x2d0 [ 13.360991] ? kasan_strings+0xcbc/0xe80 [ 13.361011] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.361044] ? kasan_strings+0xcbc/0xe80 [ 13.361064] kasan_report+0x141/0x180 [ 13.361086] ? kasan_strings+0xcbc/0xe80 [ 13.361110] __asan_report_load1_noabort+0x18/0x20 [ 13.361134] kasan_strings+0xcbc/0xe80 [ 13.361152] ? trace_hardirqs_on+0x37/0xe0 [ 13.361175] ? __pfx_kasan_strings+0x10/0x10 [ 13.361194] ? finish_task_switch.isra.0+0x153/0x700 [ 13.361216] ? __switch_to+0x47/0xf50 [ 13.361240] ? __schedule+0x10cc/0x2b60 [ 13.361260] ? __pfx_read_tsc+0x10/0x10 [ 13.361280] ? ktime_get_ts64+0x86/0x230 [ 13.361303] kunit_try_run_case+0x1a5/0x480 [ 13.361325] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.361346] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.361367] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.361390] ? __kthread_parkme+0x82/0x180 [ 13.361409] ? preempt_count_sub+0x50/0x80 [ 13.361430] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.361453] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.361475] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.361497] kthread+0x337/0x6f0 [ 13.361515] ? trace_preempt_on+0x20/0xc0 [ 13.361536] ? __pfx_kthread+0x10/0x10 [ 13.361555] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.361574] ? calculate_sigpending+0x7b/0xa0 [ 13.361598] ? __pfx_kthread+0x10/0x10 [ 13.361617] ret_from_fork+0x116/0x1d0 [ 13.361635] ? __pfx_kthread+0x10/0x10 [ 13.361654] ret_from_fork_asm+0x1a/0x30 [ 13.361683] </TASK> [ 13.361693] [ 13.368505] Allocated by task 276: [ 13.368678] kasan_save_stack+0x45/0x70 [ 13.368813] kasan_save_track+0x18/0x40 [ 13.368942] kasan_save_alloc_info+0x3b/0x50 [ 13.369145] __kasan_kmalloc+0xb7/0xc0 [ 13.369327] __kmalloc_cache_noprof+0x189/0x420 [ 13.369549] kasan_strings+0xc0/0xe80 [ 13.369732] kunit_try_run_case+0x1a5/0x480 [ 13.369906] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.370085] kthread+0x337/0x6f0 [ 13.370380] ret_from_fork+0x116/0x1d0 [ 13.370567] ret_from_fork_asm+0x1a/0x30 [ 13.370745] [ 13.370835] Freed by task 276: [ 13.370960] kasan_save_stack+0x45/0x70 [ 13.371129] kasan_save_track+0x18/0x40 [ 13.371320] kasan_save_free_info+0x3f/0x60 [ 13.371510] __kasan_slab_free+0x56/0x70 [ 13.371654] kfree+0x222/0x3f0 [ 13.371805] kasan_strings+0x2aa/0xe80 [ 13.371992] kunit_try_run_case+0x1a5/0x480 [ 13.372206] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.372419] kthread+0x337/0x6f0 [ 13.372576] ret_from_fork+0x116/0x1d0 [ 13.372703] ret_from_fork_asm+0x1a/0x30 [ 13.372834] [ 13.372902] The buggy address belongs to the object at ffff888103124400 [ 13.372902] which belongs to the cache kmalloc-32 of size 32 [ 13.373301] The buggy address is located 16 bytes inside of [ 13.373301] freed 32-byte region [ffff888103124400, ffff888103124420) [ 13.373860] [ 13.373954] The buggy address belongs to the physical page: [ 13.374273] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103124 [ 13.374529] flags: 0x200000000000000(node=0|zone=2) [ 13.374685] page_type: f5(slab) [ 13.374799] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.375060] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.375725] page dumped because: kasan: bad access detected [ 13.375940] [ 13.376045] Memory state around the buggy address: [ 13.376250] ffff888103124300: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.376532] ffff888103124380: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 13.376782] >ffff888103124400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.377064] ^ [ 13.377244] ffff888103124480: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.377512] ffff888103124500: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.377786] ==================================================================