Date
July 13, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.892637] ================================================================== [ 18.892693] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 18.892743] Read of size 1 at addr fff00000c5ae3c90 by task kunit_try_catch/260 [ 18.892794] [ 18.892831] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.892917] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.892948] Hardware name: linux,dummy-virt (DT) [ 18.892982] Call trace: [ 18.893014] show_stack+0x20/0x38 (C) [ 18.893064] dump_stack_lvl+0x8c/0xd0 [ 18.893111] print_report+0x118/0x5d0 [ 18.893800] kasan_report+0xdc/0x128 [ 18.894086] __asan_report_load1_noabort+0x20/0x30 [ 18.894150] strcmp+0xc0/0xc8 [ 18.894275] kasan_strings+0x340/0xb00 [ 18.894368] kunit_try_run_case+0x170/0x3f0 [ 18.894442] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.894546] kthread+0x328/0x630 [ 18.894671] ret_from_fork+0x10/0x20 [ 18.894736] [ 18.894818] Allocated by task 260: [ 18.894859] kasan_save_stack+0x3c/0x68 [ 18.894997] kasan_save_track+0x20/0x40 [ 18.895068] kasan_save_alloc_info+0x40/0x58 [ 18.895134] __kasan_kmalloc+0xd4/0xd8 [ 18.895173] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.895233] kasan_strings+0xc8/0xb00 [ 18.895892] kunit_try_run_case+0x170/0x3f0 [ 18.895982] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.896030] kthread+0x328/0x630 [ 18.896065] ret_from_fork+0x10/0x20 [ 18.896105] [ 18.896176] Freed by task 260: [ 18.897224] kasan_save_stack+0x3c/0x68 [ 18.897296] kasan_save_track+0x20/0x40 [ 18.897336] kasan_save_free_info+0x4c/0x78 [ 18.897380] __kasan_slab_free+0x6c/0x98 [ 18.897751] kfree+0x214/0x3c8 [ 18.898049] kasan_strings+0x24c/0xb00 [ 18.898111] kunit_try_run_case+0x170/0x3f0 [ 18.898200] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.898248] kthread+0x328/0x630 [ 18.898442] ret_from_fork+0x10/0x20 [ 18.898586] [ 18.898614] The buggy address belongs to the object at fff00000c5ae3c80 [ 18.898614] which belongs to the cache kmalloc-32 of size 32 [ 18.898677] The buggy address is located 16 bytes inside of [ 18.898677] freed 32-byte region [fff00000c5ae3c80, fff00000c5ae3ca0) [ 18.899173] [ 18.899246] The buggy address belongs to the physical page: [ 18.899295] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ae3 [ 18.899413] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.899468] page_type: f5(slab) [ 18.899733] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.899801] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.899948] page dumped because: kasan: bad access detected [ 18.900017] [ 18.900092] Memory state around the buggy address: [ 18.900129] fff00000c5ae3b80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.900175] fff00000c5ae3c00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.900231] >fff00000c5ae3c80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.900297] ^ [ 18.900571] fff00000c5ae3d00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.900772] fff00000c5ae3d80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.900820] ==================================================================
[ 14.555406] ================================================================== [ 14.556395] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 14.557183] Read of size 1 at addr ffff888103445d50 by task kunit_try_catch/277 [ 14.557516] [ 14.557637] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.557684] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.557695] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.557782] Call Trace: [ 14.557796] <TASK> [ 14.557812] dump_stack_lvl+0x73/0xb0 [ 14.557842] print_report+0xd1/0x610 [ 14.557867] ? __virt_addr_valid+0x1db/0x2d0 [ 14.557892] ? strcmp+0xb0/0xc0 [ 14.557909] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.557934] ? strcmp+0xb0/0xc0 [ 14.557952] kasan_report+0x141/0x180 [ 14.557974] ? strcmp+0xb0/0xc0 [ 14.557996] __asan_report_load1_noabort+0x18/0x20 [ 14.558022] strcmp+0xb0/0xc0 [ 14.558041] kasan_strings+0x431/0xe80 [ 14.558061] ? trace_hardirqs_on+0x37/0xe0 [ 14.558085] ? __pfx_kasan_strings+0x10/0x10 [ 14.558106] ? finish_task_switch.isra.0+0x153/0x700 [ 14.558131] ? __switch_to+0x47/0xf50 [ 14.558157] ? __schedule+0x10cc/0x2b60 [ 14.558181] ? __pfx_read_tsc+0x10/0x10 [ 14.558203] ? ktime_get_ts64+0x86/0x230 [ 14.558229] kunit_try_run_case+0x1a5/0x480 [ 14.558254] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.558279] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.558304] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.558330] ? __kthread_parkme+0x82/0x180 [ 14.558352] ? preempt_count_sub+0x50/0x80 [ 14.558377] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.558402] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.558427] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.558468] kthread+0x337/0x6f0 [ 14.558488] ? trace_preempt_on+0x20/0xc0 [ 14.558511] ? __pfx_kthread+0x10/0x10 [ 14.558532] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.558555] ? calculate_sigpending+0x7b/0xa0 [ 14.558625] ? __pfx_kthread+0x10/0x10 [ 14.558647] ret_from_fork+0x116/0x1d0 [ 14.558668] ? __pfx_kthread+0x10/0x10 [ 14.558688] ret_from_fork_asm+0x1a/0x30 [ 14.558719] </TASK> [ 14.558729] [ 14.566740] Allocated by task 277: [ 14.566926] kasan_save_stack+0x45/0x70 [ 14.567133] kasan_save_track+0x18/0x40 [ 14.567270] kasan_save_alloc_info+0x3b/0x50 [ 14.567717] __kasan_kmalloc+0xb7/0xc0 [ 14.567868] __kmalloc_cache_noprof+0x189/0x420 [ 14.568029] kasan_strings+0xc0/0xe80 [ 14.568190] kunit_try_run_case+0x1a5/0x480 [ 14.568403] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.568653] kthread+0x337/0x6f0 [ 14.568775] ret_from_fork+0x116/0x1d0 [ 14.569063] ret_from_fork_asm+0x1a/0x30 [ 14.569268] [ 14.569351] Freed by task 277: [ 14.569646] kasan_save_stack+0x45/0x70 [ 14.569807] kasan_save_track+0x18/0x40 [ 14.569942] kasan_save_free_info+0x3f/0x60 [ 14.570090] __kasan_slab_free+0x56/0x70 [ 14.570260] kfree+0x222/0x3f0 [ 14.570427] kasan_strings+0x2aa/0xe80 [ 14.570820] kunit_try_run_case+0x1a5/0x480 [ 14.571046] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.571311] kthread+0x337/0x6f0 [ 14.571520] ret_from_fork+0x116/0x1d0 [ 14.571865] ret_from_fork_asm+0x1a/0x30 [ 14.572015] [ 14.572088] The buggy address belongs to the object at ffff888103445d40 [ 14.572088] which belongs to the cache kmalloc-32 of size 32 [ 14.572573] The buggy address is located 16 bytes inside of [ 14.572573] freed 32-byte region [ffff888103445d40, ffff888103445d60) [ 14.573289] [ 14.573364] The buggy address belongs to the physical page: [ 14.573551] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103445 [ 14.573970] flags: 0x200000000000000(node=0|zone=2) [ 14.574221] page_type: f5(slab) [ 14.574393] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.574761] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.575156] page dumped because: kasan: bad access detected [ 14.575380] [ 14.575500] Memory state around the buggy address: [ 14.575656] ffff888103445c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.576249] ffff888103445c80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.576609] >ffff888103445d00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.576939] ^ [ 14.577127] ffff888103445d80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.577438] ffff888103445e00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.577801] ==================================================================
[ 14.775333] ================================================================== [ 14.776417] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 14.776663] Read of size 1 at addr ffff8881025b0450 by task kunit_try_catch/277 [ 14.777822] [ 14.777923] CPU: 0 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.777970] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.777983] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.778005] Call Trace: [ 14.778019] <TASK> [ 14.778034] dump_stack_lvl+0x73/0xb0 [ 14.778080] print_report+0xd1/0x610 [ 14.778106] ? __virt_addr_valid+0x1db/0x2d0 [ 14.778150] ? strcmp+0xb0/0xc0 [ 14.778168] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.778192] ? strcmp+0xb0/0xc0 [ 14.778210] kasan_report+0x141/0x180 [ 14.778232] ? strcmp+0xb0/0xc0 [ 14.778254] __asan_report_load1_noabort+0x18/0x20 [ 14.778280] strcmp+0xb0/0xc0 [ 14.778298] kasan_strings+0x431/0xe80 [ 14.778319] ? trace_hardirqs_on+0x37/0xe0 [ 14.778345] ? __pfx_kasan_strings+0x10/0x10 [ 14.778367] ? finish_task_switch.isra.0+0x153/0x700 [ 14.778391] ? __switch_to+0x47/0xf50 [ 14.778419] ? __schedule+0x10cc/0x2b60 [ 14.778443] ? __pfx_read_tsc+0x10/0x10 [ 14.778465] ? ktime_get_ts64+0x86/0x230 [ 14.778490] kunit_try_run_case+0x1a5/0x480 [ 14.778516] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.778541] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.778567] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.778591] ? __kthread_parkme+0x82/0x180 [ 14.778613] ? preempt_count_sub+0x50/0x80 [ 14.778637] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.778663] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.778689] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.778722] kthread+0x337/0x6f0 [ 14.778741] ? trace_preempt_on+0x20/0xc0 [ 14.778764] ? __pfx_kthread+0x10/0x10 [ 14.778785] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.778808] ? calculate_sigpending+0x7b/0xa0 [ 14.778833] ? __pfx_kthread+0x10/0x10 [ 14.778854] ret_from_fork+0x116/0x1d0 [ 14.778874] ? __pfx_kthread+0x10/0x10 [ 14.778895] ret_from_fork_asm+0x1a/0x30 [ 14.778927] </TASK> [ 14.778937] [ 14.788011] Allocated by task 277: [ 14.788214] kasan_save_stack+0x45/0x70 [ 14.788424] kasan_save_track+0x18/0x40 [ 14.788584] kasan_save_alloc_info+0x3b/0x50 [ 14.788888] __kasan_kmalloc+0xb7/0xc0 [ 14.789028] __kmalloc_cache_noprof+0x189/0x420 [ 14.789323] kasan_strings+0xc0/0xe80 [ 14.789554] kunit_try_run_case+0x1a5/0x480 [ 14.789909] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.790240] kthread+0x337/0x6f0 [ 14.790368] ret_from_fork+0x116/0x1d0 [ 14.790563] ret_from_fork_asm+0x1a/0x30 [ 14.790726] [ 14.790843] Freed by task 277: [ 14.790979] kasan_save_stack+0x45/0x70 [ 14.791235] kasan_save_track+0x18/0x40 [ 14.791382] kasan_save_free_info+0x3f/0x60 [ 14.791594] __kasan_slab_free+0x56/0x70 [ 14.791792] kfree+0x222/0x3f0 [ 14.791915] kasan_strings+0x2aa/0xe80 [ 14.792126] kunit_try_run_case+0x1a5/0x480 [ 14.792303] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.792541] kthread+0x337/0x6f0 [ 14.792713] ret_from_fork+0x116/0x1d0 [ 14.792886] ret_from_fork_asm+0x1a/0x30 [ 14.793034] [ 14.793116] The buggy address belongs to the object at ffff8881025b0440 [ 14.793116] which belongs to the cache kmalloc-32 of size 32 [ 14.793473] The buggy address is located 16 bytes inside of [ 14.793473] freed 32-byte region [ffff8881025b0440, ffff8881025b0460) [ 14.794379] [ 14.794577] The buggy address belongs to the physical page: [ 14.794795] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025b0 [ 14.795039] flags: 0x200000000000000(node=0|zone=2) [ 14.795369] page_type: f5(slab) [ 14.795540] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.796206] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.796439] page dumped because: kasan: bad access detected [ 14.796770] [ 14.796872] Memory state around the buggy address: [ 14.797117] ffff8881025b0300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.797423] ffff8881025b0380: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.797917] >ffff8881025b0400: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.798318] ^ [ 14.798549] ffff8881025b0480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.798961] ffff8881025b0500: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.799282] ==================================================================