Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.277316] ================================================================== [ 18.277398] BUG: KASAN: slab-use-after-free in strlen+0xa8/0xb0 [ 18.277454] Read of size 1 at addr fff00000c63569d0 by task kunit_try_catch/259 [ 18.278392] [ 18.278436] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.278525] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.278555] Hardware name: linux,dummy-virt (DT) [ 18.278590] Call trace: [ 18.278823] show_stack+0x20/0x38 (C) [ 18.279923] dump_stack_lvl+0x8c/0xd0 [ 18.280022] print_report+0x118/0x608 [ 18.280660] kasan_report+0xdc/0x128 [ 18.280823] __asan_report_load1_noabort+0x20/0x30 [ 18.280897] strlen+0xa8/0xb0 [ 18.280990] kasan_strings+0x418/0xb00 [ 18.281364] kunit_try_run_case+0x170/0x3f0 [ 18.281485] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.281942] kthread+0x328/0x630 [ 18.282003] ret_from_fork+0x10/0x20 [ 18.282059] [ 18.282090] Allocated by task 259: [ 18.282122] kasan_save_stack+0x3c/0x68 [ 18.282165] kasan_save_track+0x20/0x40 [ 18.282207] kasan_save_alloc_info+0x40/0x58 [ 18.282250] __kasan_kmalloc+0xd4/0xd8 [ 18.282833] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.282989] kasan_strings+0xc8/0xb00 [ 18.283171] kunit_try_run_case+0x170/0x3f0 [ 18.283259] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.283397] kthread+0x328/0x630 [ 18.283446] ret_from_fork+0x10/0x20 [ 18.283753] [ 18.283914] Freed by task 259: [ 18.283981] kasan_save_stack+0x3c/0x68 [ 18.284029] kasan_save_track+0x20/0x40 [ 18.284192] kasan_save_free_info+0x4c/0x78 [ 18.284477] __kasan_slab_free+0x6c/0x98 [ 18.284581] kfree+0x214/0x3c8 [ 18.284621] kasan_strings+0x24c/0xb00 [ 18.284703] kunit_try_run_case+0x170/0x3f0 [ 18.284941] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.285127] kthread+0x328/0x630 [ 18.285463] ret_from_fork+0x10/0x20 [ 18.285740] [ 18.285915] The buggy address belongs to the object at fff00000c63569c0 [ 18.285915] which belongs to the cache kmalloc-32 of size 32 [ 18.285985] The buggy address is located 16 bytes inside of [ 18.285985] freed 32-byte region [fff00000c63569c0, fff00000c63569e0) [ 18.286060] [ 18.286091] The buggy address belongs to the physical page: [ 18.286130] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106356 [ 18.286188] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.286413] page_type: f5(slab) [ 18.286688] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.287023] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.287312] page dumped because: kasan: bad access detected [ 18.287351] [ 18.287391] Memory state around the buggy address: [ 18.287620] fff00000c6356880: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.287885] fff00000c6356900: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 18.287943] >fff00000c6356980: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 18.288009] ^ [ 18.288114] fff00000c6356a00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.288195] fff00000c6356a80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 18.288237] ==================================================================
[ 14.648662] ================================================================== [ 14.648942] BUG: KASAN: slab-use-after-free in strlen+0x8f/0xb0 [ 14.649186] Read of size 1 at addr ffff8881039ba750 by task kunit_try_catch/277 [ 14.649679] [ 14.649765] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.649804] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.649815] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.649835] Call Trace: [ 14.649849] <TASK> [ 14.649861] dump_stack_lvl+0x73/0xb0 [ 14.649889] print_report+0xd1/0x650 [ 14.649911] ? __virt_addr_valid+0x1db/0x2d0 [ 14.649935] ? strlen+0x8f/0xb0 [ 14.649951] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.649975] ? strlen+0x8f/0xb0 [ 14.649992] kasan_report+0x141/0x180 [ 14.650014] ? strlen+0x8f/0xb0 [ 14.650035] __asan_report_load1_noabort+0x18/0x20 [ 14.650060] strlen+0x8f/0xb0 [ 14.650078] kasan_strings+0x57b/0xe80 [ 14.650100] ? __pfx_kasan_strings+0x10/0x10 [ 14.650120] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 14.650152] ? __pfx_kasan_strings+0x10/0x10 [ 14.650178] kunit_try_run_case+0x1a5/0x480 [ 14.650202] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.650225] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.650249] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.650274] ? __kthread_parkme+0x82/0x180 [ 14.650295] ? preempt_count_sub+0x50/0x80 [ 14.650318] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.650343] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.650380] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.650405] kthread+0x337/0x6f0 [ 14.650424] ? trace_preempt_on+0x20/0xc0 [ 14.650448] ? __pfx_kthread+0x10/0x10 [ 14.650469] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.650491] ? calculate_sigpending+0x7b/0xa0 [ 14.650641] ? __pfx_kthread+0x10/0x10 [ 14.650671] ret_from_fork+0x116/0x1d0 [ 14.650692] ? __pfx_kthread+0x10/0x10 [ 14.650713] ret_from_fork_asm+0x1a/0x30 [ 14.650744] </TASK> [ 14.650754] [ 14.658315] Allocated by task 277: [ 14.658581] kasan_save_stack+0x45/0x70 [ 14.658771] kasan_save_track+0x18/0x40 [ 14.658944] kasan_save_alloc_info+0x3b/0x50 [ 14.659096] __kasan_kmalloc+0xb7/0xc0 [ 14.659230] __kmalloc_cache_noprof+0x189/0x420 [ 14.659401] kasan_strings+0xc0/0xe80 [ 14.659535] kunit_try_run_case+0x1a5/0x480 [ 14.659682] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.659859] kthread+0x337/0x6f0 [ 14.660026] ret_from_fork+0x116/0x1d0 [ 14.660217] ret_from_fork_asm+0x1a/0x30 [ 14.660599] [ 14.660709] Freed by task 277: [ 14.660864] kasan_save_stack+0x45/0x70 [ 14.661061] kasan_save_track+0x18/0x40 [ 14.661251] kasan_save_free_info+0x3f/0x60 [ 14.661661] __kasan_slab_free+0x56/0x70 [ 14.661826] kfree+0x222/0x3f0 [ 14.661944] kasan_strings+0x2aa/0xe80 [ 14.662076] kunit_try_run_case+0x1a5/0x480 [ 14.662222] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.662473] kthread+0x337/0x6f0 [ 14.662651] ret_from_fork+0x116/0x1d0 [ 14.662839] ret_from_fork_asm+0x1a/0x30 [ 14.663035] [ 14.663130] The buggy address belongs to the object at ffff8881039ba740 [ 14.663130] which belongs to the cache kmalloc-32 of size 32 [ 14.664133] The buggy address is located 16 bytes inside of [ 14.664133] freed 32-byte region [ffff8881039ba740, ffff8881039ba760) [ 14.664661] [ 14.664760] The buggy address belongs to the physical page: [ 14.664977] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039ba [ 14.665282] flags: 0x200000000000000(node=0|zone=2) [ 14.665529] page_type: f5(slab) [ 14.665692] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.666000] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.666291] page dumped because: kasan: bad access detected [ 14.666537] [ 14.666630] Memory state around the buggy address: [ 14.666816] ffff8881039ba600: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.667065] ffff8881039ba680: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.667388] >ffff8881039ba700: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.667683] ^ [ 14.667872] ffff8881039ba780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.668197] ffff8881039ba800: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.668773] ==================================================================