Date
June 26, 2025, 11:12 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 40.167440] ================================================================== [ 40.191005] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 40.196903] Read of size 1 at addr ffff0008066bd2d0 by task kunit_try_catch/308 [ 40.204196] [ 40.205681] CPU: 7 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 40.205741] Tainted: [B]=BAD_PAGE, [N]=TEST [ 40.205761] Hardware name: WinLink E850-96 board (DT) [ 40.205784] Call trace: [ 40.205799] show_stack+0x20/0x38 (C) [ 40.205836] dump_stack_lvl+0x8c/0xd0 [ 40.205876] print_report+0x118/0x608 [ 40.205912] kasan_report+0xdc/0x128 [ 40.205944] __asan_report_load1_noabort+0x20/0x30 [ 40.205982] strcmp+0xc0/0xc8 [ 40.206014] kasan_strings+0x340/0xb00 [ 40.206049] kunit_try_run_case+0x170/0x3f0 [ 40.206090] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.206132] kthread+0x328/0x630 [ 40.206171] ret_from_fork+0x10/0x20 [ 40.206209] [ 40.271033] Allocated by task 308: [ 40.274423] kasan_save_stack+0x3c/0x68 [ 40.278238] kasan_save_track+0x20/0x40 [ 40.282057] kasan_save_alloc_info+0x40/0x58 [ 40.286311] __kasan_kmalloc+0xd4/0xd8 [ 40.290045] __kmalloc_cache_noprof+0x16c/0x3c0 [ 40.294557] kasan_strings+0xc8/0xb00 [ 40.298203] kunit_try_run_case+0x170/0x3f0 [ 40.302370] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.307838] kthread+0x328/0x630 [ 40.311050] ret_from_fork+0x10/0x20 [ 40.314609] [ 40.316084] Freed by task 308: [ 40.319125] kasan_save_stack+0x3c/0x68 [ 40.322942] kasan_save_track+0x20/0x40 [ 40.326763] kasan_save_free_info+0x4c/0x78 [ 40.330928] __kasan_slab_free+0x6c/0x98 [ 40.334835] kfree+0x214/0x3c8 [ 40.337873] kasan_strings+0x24c/0xb00 [ 40.341605] kunit_try_run_case+0x170/0x3f0 [ 40.345772] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.351241] kthread+0x328/0x630 [ 40.354454] ret_from_fork+0x10/0x20 [ 40.358011] [ 40.359488] The buggy address belongs to the object at ffff0008066bd2c0 [ 40.359488] which belongs to the cache kmalloc-32 of size 32 [ 40.371816] The buggy address is located 16 bytes inside of [ 40.371816] freed 32-byte region [ffff0008066bd2c0, ffff0008066bd2e0) [ 40.383879] [ 40.385359] The buggy address belongs to the physical page: [ 40.390914] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8866bd [ 40.398898] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 40.405408] page_type: f5(slab) [ 40.408546] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000 [ 40.416264] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 40.423983] page dumped because: kasan: bad access detected [ 40.429539] [ 40.431015] Memory state around the buggy address: [ 40.435795] ffff0008066bd180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 40.442996] ffff0008066bd200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 40.450203] >ffff0008066bd280: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 40.457402] ^ [ 40.463222] ffff0008066bd300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 40.470426] ffff0008066bd380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 40.477629] ==================================================================
[ 20.294801] ================================================================== [ 20.294883] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 20.294991] Read of size 1 at addr fff00000c5be7090 by task kunit_try_catch/261 [ 20.295074] [ 20.295202] CPU: 1 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 20.295310] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.295350] Hardware name: linux,dummy-virt (DT) [ 20.295449] Call trace: [ 20.295474] show_stack+0x20/0x38 (C) [ 20.295562] dump_stack_lvl+0x8c/0xd0 [ 20.295614] print_report+0x118/0x608 [ 20.295793] kasan_report+0xdc/0x128 [ 20.295866] __asan_report_load1_noabort+0x20/0x30 [ 20.296230] strcmp+0xc0/0xc8 [ 20.296296] kasan_strings+0x340/0xb00 [ 20.296549] kunit_try_run_case+0x170/0x3f0 [ 20.296606] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.296700] kthread+0x328/0x630 [ 20.296748] ret_from_fork+0x10/0x20 [ 20.297681] [ 20.297939] Allocated by task 261: [ 20.298180] kasan_save_stack+0x3c/0x68 [ 20.298377] kasan_save_track+0x20/0x40 [ 20.298706] kasan_save_alloc_info+0x40/0x58 [ 20.298873] __kasan_kmalloc+0xd4/0xd8 [ 20.299071] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.299768] kasan_strings+0xc8/0xb00 [ 20.299949] kunit_try_run_case+0x170/0x3f0 [ 20.300057] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.300348] kthread+0x328/0x630 [ 20.300388] ret_from_fork+0x10/0x20 [ 20.300960] [ 20.301027] Freed by task 261: [ 20.301334] kasan_save_stack+0x3c/0x68 [ 20.301604] kasan_save_track+0x20/0x40 [ 20.301711] kasan_save_free_info+0x4c/0x78 [ 20.301771] __kasan_slab_free+0x6c/0x98 [ 20.302262] kfree+0x214/0x3c8 [ 20.302446] kasan_strings+0x24c/0xb00 [ 20.302621] kunit_try_run_case+0x170/0x3f0 [ 20.302779] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.303041] kthread+0x328/0x630 [ 20.303113] ret_from_fork+0x10/0x20 [ 20.303186] [ 20.303593] The buggy address belongs to the object at fff00000c5be7080 [ 20.303593] which belongs to the cache kmalloc-32 of size 32 [ 20.303687] The buggy address is located 16 bytes inside of [ 20.303687] freed 32-byte region [fff00000c5be7080, fff00000c5be70a0) [ 20.304068] [ 20.304162] The buggy address belongs to the physical page: [ 20.304211] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105be7 [ 20.304296] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.304474] page_type: f5(slab) [ 20.304883] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.304962] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.305299] page dumped because: kasan: bad access detected [ 20.305382] [ 20.305525] Memory state around the buggy address: [ 20.305592] fff00000c5be6f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.305973] fff00000c5be7000: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.306167] >fff00000c5be7080: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.306214] ^ [ 20.306529] fff00000c5be7100: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.306813] fff00000c5be7180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.306928] ==================================================================
[ 12.830590] ================================================================== [ 12.831615] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 12.832081] Read of size 1 at addr ffff888102a07fd0 by task kunit_try_catch/278 [ 12.832368] [ 12.832488] CPU: 0 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT(voluntary) [ 12.832538] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.832553] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.832576] Call Trace: [ 12.832588] <TASK> [ 12.832608] dump_stack_lvl+0x73/0xb0 [ 12.832634] print_report+0xd1/0x650 [ 12.832659] ? __virt_addr_valid+0x1db/0x2d0 [ 12.832682] ? strcmp+0xb0/0xc0 [ 12.832699] ? kasan_complete_mode_report_info+0x64/0x200 [ 12.832722] ? strcmp+0xb0/0xc0 [ 12.832741] kasan_report+0x141/0x180 [ 12.832763] ? strcmp+0xb0/0xc0 [ 12.832785] __asan_report_load1_noabort+0x18/0x20 [ 12.832805] strcmp+0xb0/0xc0 [ 12.832824] kasan_strings+0x431/0xe80 [ 12.832844] ? trace_hardirqs_on+0x37/0xe0 [ 12.832867] ? __pfx_kasan_strings+0x10/0x10 [ 12.832888] ? finish_task_switch.isra.0+0x153/0x700 [ 12.832912] ? __switch_to+0x5d9/0xf60 [ 12.832944] ? dequeue_task_fair+0x156/0x4e0 [ 12.832968] ? __schedule+0x10cc/0x2b60 [ 12.832991] ? __pfx_read_tsc+0x10/0x10 [ 12.833011] ? ktime_get_ts64+0x86/0x230 [ 12.833035] kunit_try_run_case+0x1a5/0x480 [ 12.833061] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.833083] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.833107] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.833129] ? __kthread_parkme+0x82/0x180 [ 12.833152] ? preempt_count_sub+0x50/0x80 [ 12.833177] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.833199] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.833222] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.833245] kthread+0x337/0x6f0 [ 12.833261] ? trace_preempt_on+0x20/0xc0 [ 12.833283] ? __pfx_kthread+0x10/0x10 [ 12.833300] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.833322] ? calculate_sigpending+0x7b/0xa0 [ 12.833343] ? __pfx_kthread+0x10/0x10 [ 12.833361] ret_from_fork+0x41/0x80 [ 12.833382] ? __pfx_kthread+0x10/0x10 [ 12.833399] ret_from_fork_asm+0x1a/0x30 [ 12.833430] </TASK> [ 12.833441] [ 12.841678] Allocated by task 278: [ 12.841953] kasan_save_stack+0x45/0x70 [ 12.842329] kasan_save_track+0x18/0x40 [ 12.842501] kasan_save_alloc_info+0x3b/0x50 [ 12.842647] __kasan_kmalloc+0xb7/0xc0 [ 12.842779] __kmalloc_cache_noprof+0x189/0x420 [ 12.842942] kasan_strings+0xc0/0xe80 [ 12.843074] kunit_try_run_case+0x1a5/0x480 [ 12.843461] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.843799] kthread+0x337/0x6f0 [ 12.843975] ret_from_fork+0x41/0x80 [ 12.844157] ret_from_fork_asm+0x1a/0x30 [ 12.844381] [ 12.844468] Freed by task 278: [ 12.844593] kasan_save_stack+0x45/0x70 [ 12.844834] kasan_save_track+0x18/0x40 [ 12.845041] kasan_save_free_info+0x3f/0x60 [ 12.845308] __kasan_slab_free+0x56/0x70 [ 12.845444] kfree+0x222/0x3f0 [ 12.845593] kasan_strings+0x2aa/0xe80 [ 12.845780] kunit_try_run_case+0x1a5/0x480 [ 12.845997] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.846198] kthread+0x337/0x6f0 [ 12.846346] ret_from_fork+0x41/0x80 [ 12.846533] ret_from_fork_asm+0x1a/0x30 [ 12.846764] [ 12.846834] The buggy address belongs to the object at ffff888102a07fc0 [ 12.846834] which belongs to the cache kmalloc-32 of size 32 [ 12.847509] The buggy address is located 16 bytes inside of [ 12.847509] freed 32-byte region [ffff888102a07fc0, ffff888102a07fe0) [ 12.848072] [ 12.848145] The buggy address belongs to the physical page: [ 12.848329] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a07 [ 12.848579] flags: 0x200000000000000(node=0|zone=2) [ 12.848751] page_type: f5(slab) [ 12.848906] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 12.849269] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 12.849621] page dumped because: kasan: bad access detected [ 12.850183] [ 12.850277] Memory state around the buggy address: [ 12.850721] ffff888102a07e80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 12.850951] ffff888102a07f00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 12.851412] >ffff888102a07f80: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 12.851778] ^ [ 12.852027] ffff888102a08000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.852252] ffff888102a08080: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.852466] ==================================================================