Date
July 11, 2025, 10:11 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 57.295711] ================================================================== [ 57.319335] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 57.325235] Read of size 1 at addr ffff0008016ffe10 by task kunit_try_catch/343 [ 57.332524] [ 57.334013] CPU: 5 UID: 0 PID: 343 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 57.334069] Tainted: [B]=BAD_PAGE, [N]=TEST [ 57.334086] Hardware name: WinLink E850-96 board (DT) [ 57.334109] Call trace: [ 57.334125] show_stack+0x20/0x38 (C) [ 57.334163] dump_stack_lvl+0x8c/0xd0 [ 57.334194] print_report+0x118/0x5d0 [ 57.334226] kasan_report+0xdc/0x128 [ 57.334254] __asan_report_load1_noabort+0x20/0x30 [ 57.334289] strcmp+0xc0/0xc8 [ 57.334321] kasan_strings+0x340/0xb00 [ 57.334357] kunit_try_run_case+0x170/0x3f0 [ 57.334394] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 57.334430] kthread+0x328/0x630 [ 57.334461] ret_from_fork+0x10/0x20 [ 57.334494] [ 57.400580] Allocated by task 343: [ 57.403968] kasan_save_stack+0x3c/0x68 [ 57.407784] kasan_save_track+0x20/0x40 [ 57.411603] kasan_save_alloc_info+0x40/0x58 [ 57.415857] __kasan_kmalloc+0xd4/0xd8 [ 57.419589] __kmalloc_cache_noprof+0x16c/0x3c0 [ 57.424103] kasan_strings+0xc8/0xb00 [ 57.427749] kunit_try_run_case+0x170/0x3f0 [ 57.431915] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 57.437385] kthread+0x328/0x630 [ 57.440596] ret_from_fork+0x10/0x20 [ 57.444155] [ 57.445632] Freed by task 343: [ 57.448670] kasan_save_stack+0x3c/0x68 [ 57.452488] kasan_save_track+0x20/0x40 [ 57.456309] kasan_save_free_info+0x4c/0x78 [ 57.460474] __kasan_slab_free+0x6c/0x98 [ 57.464380] kfree+0x214/0x3c8 [ 57.467418] kasan_strings+0x24c/0xb00 [ 57.471152] kunit_try_run_case+0x170/0x3f0 [ 57.475317] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 57.480786] kthread+0x328/0x630 [ 57.483998] ret_from_fork+0x10/0x20 [ 57.487557] [ 57.489034] The buggy address belongs to the object at ffff0008016ffe00 [ 57.489034] which belongs to the cache kmalloc-32 of size 32 [ 57.501360] The buggy address is located 16 bytes inside of [ 57.501360] freed 32-byte region [ffff0008016ffe00, ffff0008016ffe20) [ 57.513426] [ 57.514902] The buggy address belongs to the physical page: [ 57.520460] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8816ff [ 57.528446] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 57.534954] page_type: f5(slab) [ 57.538089] raw: 0bfffe0000000000 ffff000800002780 dead000000000100 dead000000000122 [ 57.545809] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 57.553529] page dumped because: kasan: bad access detected [ 57.559083] [ 57.560559] Memory state around the buggy address: [ 57.565342] ffff0008016ffd00: 00 00 00 00 fc fc fc fc fa fb fb fb fc fc fc fc [ 57.572542] ffff0008016ffd80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 57.579750] >ffff0008016ffe00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 57.586948] ^ [ 57.590684] ffff0008016ffe80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 57.597889] ffff0008016fff00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 57.605091] ==================================================================
[ 32.660206] ================================================================== [ 32.660462] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 32.660567] Read of size 1 at addr fff00000c99f7010 by task kunit_try_catch/290 [ 32.660684] [ 32.660755] CPU: 0 UID: 0 PID: 290 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 32.660991] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.661088] Hardware name: linux,dummy-virt (DT) [ 32.661127] Call trace: [ 32.661175] show_stack+0x20/0x38 (C) [ 32.661249] dump_stack_lvl+0x8c/0xd0 [ 32.661395] print_report+0x118/0x5d0 [ 32.661464] kasan_report+0xdc/0x128 [ 32.662165] kunit_try_run_case+0x170/0x3f0 [ 32.663687] kthread+0x328/0x630 [ 32.664945] kunit_try_run_case+0x170/0x3f0 [ 32.665081] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.665175] kthread+0x328/0x630 [ 32.665587] The buggy address is located 16 bytes inside of [ 32.665587] freed 32-byte region [fff00000c99f7000, fff00000c99f7020) [ 32.666958] fff00000c99f6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.670451] Hardware name: linux,dummy-virt (DT) [ 32.670907] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.672186] kthread+0x328/0x630 [ 32.672221] ret_from_fork+0x10/0x20 [ 32.672313] [ 32.672348] Freed by task 290: [ 32.672580] __kasan_slab_free+0x6c/0x98 [ 32.673226] [ 32.673575] [ 32.674389] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 32.676550] ==================================================================
[ 25.772200] ================================================================== [ 25.773263] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 25.773768] Read of size 1 at addr ffff88810613f2d0 by task kunit_try_catch/309 [ 25.774329] [ 25.774503] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT(voluntary) [ 25.774572] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.774585] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.774609] Call Trace: [ 25.774624] <TASK> [ 25.774643] dump_stack_lvl+0x73/0xb0 [ 25.774676] print_report+0xd1/0x610 [ 25.774701] ? __virt_addr_valid+0x1db/0x2d0 [ 25.774728] ? strcmp+0xb0/0xc0 [ 25.774771] ? kasan_complete_mode_report_info+0x64/0x200 [ 25.774797] ? strcmp+0xb0/0xc0 [ 25.774819] kasan_report+0x141/0x180 [ 25.775393] ? strcmp+0xb0/0xc0 [ 25.775435] __asan_report_load1_noabort+0x18/0x20 [ 25.775464] strcmp+0xb0/0xc0 [ 25.775490] kasan_strings+0x431/0xe80 [ 25.775511] ? trace_hardirqs_on+0x37/0xe0 [ 25.775536] ? __pfx_kasan_strings+0x10/0x10 [ 25.775557] ? finish_task_switch.isra.0+0x153/0x700 [ 25.775582] ? __switch_to+0x47/0xf80 [ 25.775609] ? __schedule+0x10cc/0x2b60 [ 25.775633] ? __pfx_read_tsc+0x10/0x10 [ 25.775656] ? ktime_get_ts64+0x86/0x230 [ 25.775682] kunit_try_run_case+0x1a5/0x480 [ 25.775706] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.775727] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.775762] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.775786] ? __kthread_parkme+0x82/0x180 [ 25.775806] ? preempt_count_sub+0x50/0x80 [ 25.775829] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.775851] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.775876] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.775901] kthread+0x337/0x6f0 [ 25.775922] ? trace_preempt_on+0x20/0xc0 [ 25.775943] ? __pfx_kthread+0x10/0x10 [ 25.775965] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.775987] ? calculate_sigpending+0x7b/0xa0 [ 25.776013] ? __pfx_kthread+0x10/0x10 [ 25.776035] ret_from_fork+0x116/0x1d0 [ 25.776055] ? __pfx_kthread+0x10/0x10 [ 25.776079] ret_from_fork_asm+0x1a/0x30 [ 25.776112] </TASK> [ 25.776125] [ 25.786455] Allocated by task 309: [ 25.786798] kasan_save_stack+0x45/0x70 [ 25.787152] kasan_save_track+0x18/0x40 [ 25.787523] kasan_save_alloc_info+0x3b/0x50 [ 25.787920] __kasan_kmalloc+0xb7/0xc0 [ 25.788254] __kmalloc_cache_noprof+0x189/0x420 [ 25.788687] kasan_strings+0xc0/0xe80 [ 25.789035] kunit_try_run_case+0x1a5/0x480 [ 25.789396] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.789668] kthread+0x337/0x6f0 [ 25.789797] ret_from_fork+0x116/0x1d0 [ 25.789923] ret_from_fork_asm+0x1a/0x30 [ 25.790055] [ 25.790118] Freed by task 309: [ 25.790221] kasan_save_stack+0x45/0x70 [ 25.790348] kasan_save_track+0x18/0x40 [ 25.790480] kasan_save_free_info+0x3f/0x60 [ 25.790623] __kasan_slab_free+0x56/0x70 [ 25.790866] kfree+0x222/0x3f0 [ 25.790978] kasan_strings+0x2aa/0xe80 [ 25.791103] kunit_try_run_case+0x1a5/0x480 [ 25.791239] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.791407] kthread+0x337/0x6f0 [ 25.791713] ret_from_fork+0x116/0x1d0 [ 25.792051] ret_from_fork_asm+0x1a/0x30 [ 25.792392] [ 25.792552] The buggy address belongs to the object at ffff88810613f2c0 [ 25.792552] which belongs to the cache kmalloc-32 of size 32 [ 25.793587] The buggy address is located 16 bytes inside of [ 25.793587] freed 32-byte region [ffff88810613f2c0, ffff88810613f2e0) [ 25.794564] [ 25.794643] The buggy address belongs to the physical page: [ 25.794821] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10613f [ 25.795056] flags: 0x200000000000000(node=0|zone=2) [ 25.795215] page_type: f5(slab) [ 25.795334] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 25.795606] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 25.795973] page dumped because: kasan: bad access detected [ 25.796229] [ 25.796322] Memory state around the buggy address: [ 25.796555] ffff88810613f180: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.796831] ffff88810613f200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.797040] >ffff88810613f280: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.797357] ^ [ 25.797742] ffff88810613f300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.797957] ffff88810613f380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.798248] ==================================================================