Date
April 22, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 20.322019] ================================================================== [ 20.322198] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 20.322332] Read of size 1 at addr fff00000c42a8690 by task kunit_try_catch/261 [ 20.322456] [ 20.322599] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 20.322986] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.323072] Hardware name: linux,dummy-virt (DT) [ 20.323148] Call trace: [ 20.323207] show_stack+0x20/0x38 (C) [ 20.323340] dump_stack_lvl+0x8c/0xd0 [ 20.323452] print_report+0x118/0x608 [ 20.323568] kasan_report+0xdc/0x128 [ 20.323743] __asan_report_load1_noabort+0x20/0x30 [ 20.323887] kasan_strings+0x95c/0xb00 [ 20.323974] kunit_try_run_case+0x170/0x3f0 [ 20.324068] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.324202] kthread+0x328/0x630 [ 20.324320] ret_from_fork+0x10/0x20 [ 20.324477] [ 20.324523] Allocated by task 261: [ 20.324599] kasan_save_stack+0x3c/0x68 [ 20.324704] kasan_save_track+0x20/0x40 [ 20.324790] kasan_save_alloc_info+0x40/0x58 [ 20.324882] __kasan_kmalloc+0xd4/0xd8 [ 20.324976] __kmalloc_cache_noprof+0x15c/0x3c0 [ 20.325078] kasan_strings+0xc8/0xb00 [ 20.325193] kunit_try_run_case+0x170/0x3f0 [ 20.325316] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.325455] kthread+0x328/0x630 [ 20.325568] ret_from_fork+0x10/0x20 [ 20.325645] [ 20.325690] Freed by task 261: [ 20.325755] kasan_save_stack+0x3c/0x68 [ 20.325939] kasan_save_track+0x20/0x40 [ 20.326174] kasan_save_free_info+0x4c/0x78 [ 20.326481] __kasan_slab_free+0x6c/0x98 [ 20.326617] kfree+0x214/0x3c8 [ 20.326707] kasan_strings+0x24c/0xb00 [ 20.326794] kunit_try_run_case+0x170/0x3f0 [ 20.326879] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.327072] kthread+0x328/0x630 [ 20.327162] ret_from_fork+0x10/0x20 [ 20.327236] [ 20.327285] The buggy address belongs to the object at fff00000c42a8680 [ 20.327285] which belongs to the cache kmalloc-32 of size 32 [ 20.327429] The buggy address is located 16 bytes inside of [ 20.327429] freed 32-byte region [fff00000c42a8680, fff00000c42a86a0) [ 20.327606] [ 20.327684] The buggy address belongs to the physical page: [ 20.327809] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1042a8 [ 20.327973] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.328126] page_type: f5(slab) [ 20.328198] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.328315] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.328415] page dumped because: kasan: bad access detected [ 20.328487] [ 20.328541] Memory state around the buggy address: [ 20.328614] fff00000c42a8580: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.328713] fff00000c42a8600: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.328807] >fff00000c42a8680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.328890] ^ [ 20.328995] fff00000c42a8700: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.329121] fff00000c42a8780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.329386] ==================================================================
[ 21.164327] ================================================================== [ 21.164762] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 21.165199] Read of size 1 at addr ffff888103c72750 by task kunit_try_catch/279 [ 21.165931] [ 21.166298] CPU: 0 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 21.166517] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.166560] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.166621] Call Trace: [ 21.166675] <TASK> [ 21.166760] dump_stack_lvl+0x73/0xb0 [ 21.166852] print_report+0xd1/0x650 [ 21.166935] ? __virt_addr_valid+0x1db/0x2d0 [ 21.167051] ? kasan_strings+0xcbc/0xe80 [ 21.167122] ? kasan_complete_mode_report_info+0x64/0x200 [ 21.167201] ? kasan_strings+0xcbc/0xe80 [ 21.167276] kasan_report+0x141/0x180 [ 21.167358] ? kasan_strings+0xcbc/0xe80 [ 21.167504] __asan_report_load1_noabort+0x18/0x20 [ 21.167629] kasan_strings+0xcbc/0xe80 [ 21.167705] ? trace_hardirqs_on+0x37/0xe0 [ 21.167819] ? __pfx_kasan_strings+0x10/0x10 [ 21.167896] ? finish_task_switch.isra.0+0x153/0x700 [ 21.168220] ? __switch_to+0x5d9/0xf60 [ 21.168287] ? dequeue_task_fair+0x156/0x4e0 [ 21.168365] ? __schedule+0x10cc/0x2b30 [ 21.168503] ? __pfx_read_tsc+0x10/0x10 [ 21.168576] ? ktime_get_ts64+0x86/0x230 [ 21.168661] kunit_try_run_case+0x1a5/0x480 [ 21.168705] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.168740] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.168775] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.168809] ? __kthread_parkme+0x82/0x180 [ 21.168843] ? preempt_count_sub+0x50/0x80 [ 21.168878] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.168912] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.168944] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.168977] kthread+0x337/0x6f0 [ 21.169009] ? trace_preempt_on+0x20/0xc0 [ 21.169040] ? __pfx_kthread+0x10/0x10 [ 21.169073] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.169105] ? calculate_sigpending+0x7b/0xa0 [ 21.169137] ? __pfx_kthread+0x10/0x10 [ 21.169170] ret_from_fork+0x41/0x80 [ 21.169201] ? __pfx_kthread+0x10/0x10 [ 21.169232] ret_from_fork_asm+0x1a/0x30 [ 21.169275] </TASK> [ 21.169289] [ 21.189403] Allocated by task 279: [ 21.190061] kasan_save_stack+0x45/0x70 [ 21.190958] kasan_save_track+0x18/0x40 [ 21.191798] kasan_save_alloc_info+0x3b/0x50 [ 21.192134] __kasan_kmalloc+0xb7/0xc0 [ 21.192513] __kmalloc_cache_noprof+0x189/0x420 [ 21.192952] kasan_strings+0xc0/0xe80 [ 21.193346] kunit_try_run_case+0x1a5/0x480 [ 21.194231] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.194886] kthread+0x337/0x6f0 [ 21.195048] ret_from_fork+0x41/0x80 [ 21.195201] ret_from_fork_asm+0x1a/0x30 [ 21.195360] [ 21.195480] Freed by task 279: [ 21.196036] kasan_save_stack+0x45/0x70 [ 21.196436] kasan_save_track+0x18/0x40 [ 21.196774] kasan_save_free_info+0x3f/0x60 [ 21.197092] __kasan_slab_free+0x56/0x70 [ 21.197507] kfree+0x222/0x3f0 [ 21.197889] kasan_strings+0x2aa/0xe80 [ 21.198792] kunit_try_run_case+0x1a5/0x480 [ 21.199379] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.199939] kthread+0x337/0x6f0 [ 21.200361] ret_from_fork+0x41/0x80 [ 21.200774] ret_from_fork_asm+0x1a/0x30 [ 21.201149] [ 21.201383] The buggy address belongs to the object at ffff888103c72740 [ 21.201383] which belongs to the cache kmalloc-32 of size 32 [ 21.202280] The buggy address is located 16 bytes inside of [ 21.202280] freed 32-byte region [ffff888103c72740, ffff888103c72760) [ 21.203203] [ 21.203412] The buggy address belongs to the physical page: [ 21.203938] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c72 [ 21.204684] flags: 0x200000000000000(node=0|zone=2) [ 21.205067] page_type: f5(slab) [ 21.205480] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 21.206186] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 21.206746] page dumped because: kasan: bad access detected [ 21.207273] [ 21.207575] Memory state around the buggy address: [ 21.207971] ffff888103c72600: 00 00 00 04 fc fc fc fc fa fb fb fb fc fc fc fc [ 21.208564] ffff888103c72680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.209167] >ffff888103c72700: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 21.209809] ^ [ 21.210351] ffff888103c72780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.210962] ffff888103c72800: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 21.211641] ==================================================================
[ 21.843317] ================================================================== [ 21.843994] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 21.844625] Read of size 1 at addr ffff000010ac0b10 by task kunit_try_catch/317 [ 21.845296] [ 21.845458] CPU: 2 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 21.845502] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.845514] Hardware name: Radxa ROCK Pi 4B (DT) [ 21.845530] Call trace: [ 21.845541] show_stack+0x20/0x38 (C) [ 21.845570] dump_stack_lvl+0x8c/0xd0 [ 21.845598] print_report+0x118/0x608 [ 21.845624] kasan_report+0xdc/0x128 [ 21.845649] __asan_report_load1_noabort+0x20/0x30 [ 21.845679] kasan_strings+0x95c/0xb00 [ 21.845708] kunit_try_run_case+0x170/0x3f0 [ 21.845739] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.845773] kthread+0x328/0x630 [ 21.845803] ret_from_fork+0x10/0x20 [ 21.845832] [ 21.851353] Allocated by task 317: [ 21.851682] kasan_save_stack+0x3c/0x68 [ 21.852052] kasan_save_track+0x20/0x40 [ 21.852420] kasan_save_alloc_info+0x40/0x58 [ 21.852827] __kasan_kmalloc+0xd4/0xd8 [ 21.853185] __kmalloc_cache_noprof+0x15c/0x3c0 [ 21.853620] kasan_strings+0xc8/0xb00 [ 21.853976] kunit_try_run_case+0x170/0x3f0 [ 21.854377] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.854895] kthread+0x328/0x630 [ 21.855214] ret_from_fork+0x10/0x20 [ 21.855558] [ 21.855708] Freed by task 317: [ 21.855999] kasan_save_stack+0x3c/0x68 [ 21.856366] kasan_save_track+0x20/0x40 [ 21.856733] kasan_save_free_info+0x4c/0x78 [ 21.857132] __kasan_slab_free+0x6c/0x98 [ 21.857506] kfree+0x214/0x3c8 [ 21.857807] kasan_strings+0x24c/0xb00 [ 21.858169] kunit_try_run_case+0x170/0x3f0 [ 21.858569] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.859085] kthread+0x328/0x630 [ 21.859402] ret_from_fork+0x10/0x20 [ 21.859747] [ 21.859897] The buggy address belongs to the object at ffff000010ac0b00 [ 21.859897] which belongs to the cache kmalloc-32 of size 32 [ 21.861009] The buggy address is located 16 bytes inside of [ 21.861009] freed 32-byte region [ffff000010ac0b00, ffff000010ac0b20) [ 21.862098] [ 21.862249] The buggy address belongs to the physical page: [ 21.862762] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ac0 [ 21.863487] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff) [ 21.864094] page_type: f5(slab) [ 21.864402] raw: 03fffe0000000000 ffff000000402780 dead000000000122 0000000000000000 [ 21.865112] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 21.865816] page dumped because: kasan: bad access detected [ 21.866327] [ 21.866477] Memory state around the buggy address: [ 21.866922] ffff000010ac0a00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.867583] ffff000010ac0a80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.868243] >ffff000010ac0b00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.868900] ^ [ 21.869252] ffff000010ac0b80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.869913] ffff000010ac0c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.870570] ==================================================================