Date
April 22, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 20.305776] ================================================================== [ 20.305920] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 20.306055] Read of size 1 at addr fff00000c42a8690 by task kunit_try_catch/261 [ 20.306177] [ 20.306272] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 20.306563] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.306659] Hardware name: linux,dummy-virt (DT) [ 20.306813] Call trace: [ 20.307176] show_stack+0x20/0x38 (C) [ 20.307607] dump_stack_lvl+0x8c/0xd0 [ 20.307764] print_report+0x118/0x608 [ 20.307970] kasan_report+0xdc/0x128 [ 20.308169] __asan_report_load1_noabort+0x20/0x30 [ 20.308395] strcmp+0xc0/0xc8 [ 20.308573] kasan_strings+0x340/0xb00 [ 20.308754] kunit_try_run_case+0x170/0x3f0 [ 20.308965] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.309098] kthread+0x328/0x630 [ 20.309608] ret_from_fork+0x10/0x20 [ 20.309741] [ 20.309818] Allocated by task 261: [ 20.309911] kasan_save_stack+0x3c/0x68 [ 20.310132] kasan_save_track+0x20/0x40 [ 20.310662] kasan_save_alloc_info+0x40/0x58 [ 20.311155] __kasan_kmalloc+0xd4/0xd8 [ 20.311454] __kmalloc_cache_noprof+0x15c/0x3c0 [ 20.312006] kasan_strings+0xc8/0xb00 [ 20.312497] kunit_try_run_case+0x170/0x3f0 [ 20.312604] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.312707] kthread+0x328/0x630 [ 20.312788] ret_from_fork+0x10/0x20 [ 20.312868] [ 20.312917] Freed by task 261: [ 20.313564] kasan_save_stack+0x3c/0x68 [ 20.313673] kasan_save_track+0x20/0x40 [ 20.313755] kasan_save_free_info+0x4c/0x78 [ 20.313846] __kasan_slab_free+0x6c/0x98 [ 20.313935] kfree+0x214/0x3c8 [ 20.314061] kasan_strings+0x24c/0xb00 [ 20.314276] kunit_try_run_case+0x170/0x3f0 [ 20.314425] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.314640] kthread+0x328/0x630 [ 20.314725] ret_from_fork+0x10/0x20 [ 20.315204] [ 20.315608] The buggy address belongs to the object at fff00000c42a8680 [ 20.315608] which belongs to the cache kmalloc-32 of size 32 [ 20.316054] The buggy address is located 16 bytes inside of [ 20.316054] freed 32-byte region [fff00000c42a8680, fff00000c42a86a0) [ 20.316904] [ 20.316976] The buggy address belongs to the physical page: [ 20.317059] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1042a8 [ 20.317197] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.317322] page_type: f5(slab) [ 20.317419] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.317564] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.319310] page dumped because: kasan: bad access detected [ 20.319413] [ 20.319469] Memory state around the buggy address: [ 20.319557] fff00000c42a8580: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.319679] fff00000c42a8600: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.319777] >fff00000c42a8680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.319867] ^ [ 20.319940] fff00000c42a8700: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.320112] fff00000c42a8780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.320210] ==================================================================
[ 21.112887] ================================================================== [ 21.114928] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 21.115661] Read of size 1 at addr ffff888103c72750 by task kunit_try_catch/279 [ 21.116277] [ 21.116582] CPU: 0 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 21.116719] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.116756] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.116819] Call Trace: [ 21.116914] <TASK> [ 21.116981] dump_stack_lvl+0x73/0xb0 [ 21.117070] print_report+0xd1/0x650 [ 21.117149] ? __virt_addr_valid+0x1db/0x2d0 [ 21.117224] ? strcmp+0xb0/0xc0 [ 21.117289] ? kasan_complete_mode_report_info+0x64/0x200 [ 21.117362] ? strcmp+0xb0/0xc0 [ 21.117430] kasan_report+0x141/0x180 [ 21.117524] ? strcmp+0xb0/0xc0 [ 21.117619] __asan_report_load1_noabort+0x18/0x20 [ 21.117688] strcmp+0xb0/0xc0 [ 21.117720] kasan_strings+0x431/0xe80 [ 21.117750] ? trace_hardirqs_on+0x37/0xe0 [ 21.117785] ? __pfx_kasan_strings+0x10/0x10 [ 21.117814] ? finish_task_switch.isra.0+0x153/0x700 [ 21.117849] ? __switch_to+0x5d9/0xf60 [ 21.117880] ? dequeue_task_fair+0x156/0x4e0 [ 21.117915] ? __schedule+0x10cc/0x2b30 [ 21.117950] ? __pfx_read_tsc+0x10/0x10 [ 21.117979] ? ktime_get_ts64+0x86/0x230 [ 21.118015] kunit_try_run_case+0x1a5/0x480 [ 21.118050] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.118080] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.118115] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.118150] ? __kthread_parkme+0x82/0x180 [ 21.118180] ? preempt_count_sub+0x50/0x80 [ 21.118214] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.118246] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.118277] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.118308] kthread+0x337/0x6f0 [ 21.118337] ? trace_preempt_on+0x20/0xc0 [ 21.118369] ? __pfx_kthread+0x10/0x10 [ 21.118400] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.118473] ? calculate_sigpending+0x7b/0xa0 [ 21.118536] ? __pfx_kthread+0x10/0x10 [ 21.118570] ret_from_fork+0x41/0x80 [ 21.118600] ? __pfx_kthread+0x10/0x10 [ 21.118632] ret_from_fork_asm+0x1a/0x30 [ 21.118676] </TASK> [ 21.118691] [ 21.133955] Allocated by task 279: [ 21.134401] kasan_save_stack+0x45/0x70 [ 21.134895] kasan_save_track+0x18/0x40 [ 21.135258] kasan_save_alloc_info+0x3b/0x50 [ 21.135978] __kasan_kmalloc+0xb7/0xc0 [ 21.136362] __kmalloc_cache_noprof+0x189/0x420 [ 21.137115] kasan_strings+0xc0/0xe80 [ 21.137595] kunit_try_run_case+0x1a5/0x480 [ 21.138113] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.138560] kthread+0x337/0x6f0 [ 21.138957] ret_from_fork+0x41/0x80 [ 21.139339] ret_from_fork_asm+0x1a/0x30 [ 21.139810] [ 21.140045] Freed by task 279: [ 21.140385] kasan_save_stack+0x45/0x70 [ 21.140831] kasan_save_track+0x18/0x40 [ 21.141291] kasan_save_free_info+0x3f/0x60 [ 21.141883] __kasan_slab_free+0x56/0x70 [ 21.142289] kfree+0x222/0x3f0 [ 21.142826] kasan_strings+0x2aa/0xe80 [ 21.143263] kunit_try_run_case+0x1a5/0x480 [ 21.144451] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.145681] kthread+0x337/0x6f0 [ 21.146107] ret_from_fork+0x41/0x80 [ 21.147583] ret_from_fork_asm+0x1a/0x30 [ 21.147956] [ 21.148139] The buggy address belongs to the object at ffff888103c72740 [ 21.148139] which belongs to the cache kmalloc-32 of size 32 [ 21.150071] The buggy address is located 16 bytes inside of [ 21.150071] freed 32-byte region [ffff888103c72740, ffff888103c72760) [ 21.151398] [ 21.152116] The buggy address belongs to the physical page: [ 21.153089] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c72 [ 21.153929] flags: 0x200000000000000(node=0|zone=2) [ 21.154504] page_type: f5(slab) [ 21.155088] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 21.155959] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 21.157088] page dumped because: kasan: bad access detected [ 21.157478] [ 21.158048] Memory state around the buggy address: [ 21.158675] ffff888103c72600: 00 00 00 04 fc fc fc fc fa fb fb fb fc fc fc fc [ 21.159404] ffff888103c72680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.160125] >ffff888103c72700: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 21.160745] ^ [ 21.161622] ffff888103c72780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.162341] ffff888103c72800: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 21.163155] ==================================================================
[ 21.813391] ================================================================== [ 21.815507] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 21.816074] Read of size 1 at addr ffff000010ac0b10 by task kunit_try_catch/317 [ 21.816746] [ 21.816910] CPU: 2 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 21.816954] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.816968] Hardware name: Radxa ROCK Pi 4B (DT) [ 21.816984] Call trace: [ 21.816995] show_stack+0x20/0x38 (C) [ 21.817025] dump_stack_lvl+0x8c/0xd0 [ 21.817051] print_report+0x118/0x608 [ 21.817079] kasan_report+0xdc/0x128 [ 21.817103] __asan_report_load1_noabort+0x20/0x30 [ 21.817135] strcmp+0xc0/0xc8 [ 21.817160] kasan_strings+0x340/0xb00 [ 21.817189] kunit_try_run_case+0x170/0x3f0 [ 21.817220] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.817255] kthread+0x328/0x630 [ 21.817285] ret_from_fork+0x10/0x20 [ 21.817315] [ 21.823100] Allocated by task 317: [ 21.823422] kasan_save_stack+0x3c/0x68 [ 21.823791] kasan_save_track+0x20/0x40 [ 21.824157] kasan_save_alloc_info+0x40/0x58 [ 21.824565] __kasan_kmalloc+0xd4/0xd8 [ 21.824924] __kmalloc_cache_noprof+0x15c/0x3c0 [ 21.825358] kasan_strings+0xc8/0xb00 [ 21.825713] kunit_try_run_case+0x170/0x3f0 [ 21.826114] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.826632] kthread+0x328/0x630 [ 21.826949] ret_from_fork+0x10/0x20 [ 21.827293] [ 21.827444] Freed by task 317: [ 21.827735] kasan_save_stack+0x3c/0x68 [ 21.828102] kasan_save_track+0x20/0x40 [ 21.828467] kasan_save_free_info+0x4c/0x78 [ 21.828867] __kasan_slab_free+0x6c/0x98 [ 21.829240] kfree+0x214/0x3c8 [ 21.829541] kasan_strings+0x24c/0xb00 [ 21.829904] kunit_try_run_case+0x170/0x3f0 [ 21.830304] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.830822] kthread+0x328/0x630 [ 21.831138] ret_from_fork+0x10/0x20 [ 21.831484] [ 21.831634] The buggy address belongs to the object at ffff000010ac0b00 [ 21.831634] which belongs to the cache kmalloc-32 of size 32 [ 21.832745] The buggy address is located 16 bytes inside of [ 21.832745] freed 32-byte region [ffff000010ac0b00, ffff000010ac0b20) [ 21.833835] [ 21.833988] The buggy address belongs to the physical page: [ 21.834501] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ac0 [ 21.835229] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff) [ 21.835836] page_type: f5(slab) [ 21.836144] raw: 03fffe0000000000 ffff000000402780 dead000000000122 0000000000000000 [ 21.836855] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 21.837557] page dumped because: kasan: bad access detected [ 21.838068] [ 21.838218] Memory state around the buggy address: [ 21.838663] ffff000010ac0a00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.839323] ffff000010ac0a80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.839984] >ffff000010ac0b00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.840640] ^ [ 21.840994] ffff000010ac0b80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.841654] ffff000010ac0c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.842312] ==================================================================