Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 28.122655] ================================================================== [ 28.122918] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 28.123034] Read of size 1 at addr fff00000c7043110 by task kunit_try_catch/261 [ 28.123279] [ 28.123368] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 28.123872] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.124329] Hardware name: linux,dummy-virt (DT) [ 28.124596] Call trace: [ 28.124738] show_stack+0x20/0x38 (C) [ 28.124868] dump_stack_lvl+0x8c/0xd0 [ 28.124990] print_report+0x118/0x608 [ 28.125112] kasan_report+0xdc/0x128 [ 28.125333] __asan_report_load1_noabort+0x20/0x30 [ 28.125490] kasan_strings+0x95c/0xb00 [ 28.125612] kunit_try_run_case+0x170/0x3f0 [ 28.125756] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.125901] kthread+0x328/0x630 [ 28.126016] ret_from_fork+0x10/0x20 [ 28.126510] [ 28.126801] Allocated by task 261: [ 28.126878] kasan_save_stack+0x3c/0x68 [ 28.127019] kasan_save_track+0x20/0x40 [ 28.127125] kasan_save_alloc_info+0x40/0x58 [ 28.127453] __kasan_kmalloc+0xd4/0xd8 [ 28.127546] __kmalloc_cache_noprof+0x16c/0x3c0 [ 28.127843] kasan_strings+0xc8/0xb00 [ 28.128116] kunit_try_run_case+0x170/0x3f0 [ 28.128236] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.128340] kthread+0x328/0x630 [ 28.128446] ret_from_fork+0x10/0x20 [ 28.128536] [ 28.128586] Freed by task 261: [ 28.128647] kasan_save_stack+0x3c/0x68 [ 28.128741] kasan_save_track+0x20/0x40 [ 28.128834] kasan_save_free_info+0x4c/0x78 [ 28.128948] __kasan_slab_free+0x6c/0x98 [ 28.129059] kfree+0x214/0x3c8 [ 28.129694] kasan_strings+0x24c/0xb00 [ 28.130122] kunit_try_run_case+0x170/0x3f0 [ 28.130250] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.130464] kthread+0x328/0x630 [ 28.130573] ret_from_fork+0x10/0x20 [ 28.131003] [ 28.131407] The buggy address belongs to the object at fff00000c7043100 [ 28.131407] which belongs to the cache kmalloc-32 of size 32 [ 28.131755] The buggy address is located 16 bytes inside of [ 28.131755] freed 32-byte region [fff00000c7043100, fff00000c7043120) [ 28.132118] [ 28.132521] The buggy address belongs to the physical page: [ 28.132656] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107043 [ 28.132882] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 28.132997] page_type: f5(slab) [ 28.133097] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 28.133231] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 28.133329] page dumped because: kasan: bad access detected [ 28.133418] [ 28.133522] Memory state around the buggy address: [ 28.133750] fff00000c7043000: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.134040] fff00000c7043080: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 28.134174] >fff00000c7043100: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 28.134408] ^ [ 28.134484] fff00000c7043180: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.134596] fff00000c7043200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 28.134746] ==================================================================
[ 20.167092] ================================================================== [ 20.168014] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 20.168919] Read of size 1 at addr ffff88810a08ac10 by task kunit_try_catch/280 [ 20.169597] [ 20.169838] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 20.169959] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.170034] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.170093] Call Trace: [ 20.170131] <TASK> [ 20.170175] dump_stack_lvl+0x73/0xb0 [ 20.170284] print_report+0xd1/0x650 [ 20.170362] ? __virt_addr_valid+0x1db/0x2d0 [ 20.170436] ? kasan_strings+0xcbc/0xe80 [ 20.170513] ? kasan_complete_mode_report_info+0x64/0x200 [ 20.170587] ? kasan_strings+0xcbc/0xe80 [ 20.170679] kasan_report+0x141/0x180 [ 20.170792] ? kasan_strings+0xcbc/0xe80 [ 20.170883] __asan_report_load1_noabort+0x18/0x20 [ 20.170963] kasan_strings+0xcbc/0xe80 [ 20.171031] ? trace_hardirqs_on+0x37/0xe0 [ 20.171106] ? __pfx_kasan_strings+0x10/0x10 [ 20.171176] ? finish_task_switch.isra.0+0x153/0x700 [ 20.171293] ? __switch_to+0x5d9/0xf60 [ 20.171366] ? dequeue_task_fair+0x166/0x4e0 [ 20.171433] ? __schedule+0x10cc/0x2b60 [ 20.171471] ? __pfx_read_tsc+0x10/0x10 [ 20.171501] ? ktime_get_ts64+0x86/0x230 [ 20.171539] kunit_try_run_case+0x1a5/0x480 [ 20.171577] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.171636] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 20.171675] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.171711] ? __kthread_parkme+0x82/0x180 [ 20.171743] ? preempt_count_sub+0x50/0x80 [ 20.171780] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.171816] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.171851] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.171887] kthread+0x337/0x6f0 [ 20.171911] ? trace_preempt_on+0x20/0xc0 [ 20.171944] ? __pfx_kthread+0x10/0x10 [ 20.171969] ? _raw_spin_unlock_irq+0x47/0x80 [ 20.171999] ? calculate_sigpending+0x7b/0xa0 [ 20.172031] ? __pfx_kthread+0x10/0x10 [ 20.172056] ret_from_fork+0x41/0x80 [ 20.172085] ? __pfx_kthread+0x10/0x10 [ 20.172111] ret_from_fork_asm+0x1a/0x30 [ 20.172153] </TASK> [ 20.172168] [ 20.189953] Allocated by task 280: [ 20.190786] kasan_save_stack+0x45/0x70 [ 20.191358] kasan_save_track+0x18/0x40 [ 20.191899] kasan_save_alloc_info+0x3b/0x50 [ 20.192376] __kasan_kmalloc+0xb7/0xc0 [ 20.192789] __kmalloc_cache_noprof+0x189/0x420 [ 20.193502] kasan_strings+0xc0/0xe80 [ 20.193831] kunit_try_run_case+0x1a5/0x480 [ 20.194455] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.195096] kthread+0x337/0x6f0 [ 20.195638] ret_from_fork+0x41/0x80 [ 20.196013] ret_from_fork_asm+0x1a/0x30 [ 20.196540] [ 20.196891] Freed by task 280: [ 20.197399] kasan_save_stack+0x45/0x70 [ 20.197758] kasan_save_track+0x18/0x40 [ 20.198165] kasan_save_free_info+0x3f/0x60 [ 20.198978] __kasan_slab_free+0x56/0x70 [ 20.199523] kfree+0x222/0x3f0 [ 20.199837] kasan_strings+0x2aa/0xe80 [ 20.200220] kunit_try_run_case+0x1a5/0x480 [ 20.200658] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.201179] kthread+0x337/0x6f0 [ 20.201544] ret_from_fork+0x41/0x80 [ 20.201958] ret_from_fork_asm+0x1a/0x30 [ 20.202636] [ 20.202866] The buggy address belongs to the object at ffff88810a08ac00 [ 20.202866] which belongs to the cache kmalloc-32 of size 32 [ 20.203690] The buggy address is located 16 bytes inside of [ 20.203690] freed 32-byte region [ffff88810a08ac00, ffff88810a08ac20) [ 20.205136] [ 20.205766] The buggy address belongs to the physical page: [ 20.206140] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a08a [ 20.206972] flags: 0x200000000000000(node=0|zone=2) [ 20.207354] page_type: f5(slab) [ 20.207726] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 20.208321] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.208993] page dumped because: kasan: bad access detected [ 20.209529] [ 20.209793] Memory state around the buggy address: [ 20.210137] ffff88810a08ab00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.210815] ffff88810a08ab80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.211408] >ffff88810a08ac00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.211905] ^ [ 20.212335] ffff88810a08ac80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.212935] ffff88810a08ad00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.213519] ==================================================================