Date
July 13, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.925852] ================================================================== [ 18.925921] BUG: KASAN: slab-use-after-free in strnlen+0x80/0x88 [ 18.926090] Read of size 1 at addr fff00000c5ae3c90 by task kunit_try_catch/260 [ 18.926605] [ 18.926757] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.926958] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.927091] Hardware name: linux,dummy-virt (DT) [ 18.927132] Call trace: [ 18.927156] show_stack+0x20/0x38 (C) [ 18.927220] dump_stack_lvl+0x8c/0xd0 [ 18.927268] print_report+0x118/0x5d0 [ 18.928036] kasan_report+0xdc/0x128 [ 18.928090] __asan_report_load1_noabort+0x20/0x30 [ 18.928142] strnlen+0x80/0x88 [ 18.928195] kasan_strings+0x478/0xb00 [ 18.928246] kunit_try_run_case+0x170/0x3f0 [ 18.928329] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.928530] kthread+0x328/0x630 [ 18.928578] ret_from_fork+0x10/0x20 [ 18.928723] [ 18.928860] Allocated by task 260: [ 18.928936] kasan_save_stack+0x3c/0x68 [ 18.929002] kasan_save_track+0x20/0x40 [ 18.929051] kasan_save_alloc_info+0x40/0x58 [ 18.929237] __kasan_kmalloc+0xd4/0xd8 [ 18.929279] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.929319] kasan_strings+0xc8/0xb00 [ 18.929356] kunit_try_run_case+0x170/0x3f0 [ 18.929683] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.929740] kthread+0x328/0x630 [ 18.929785] ret_from_fork+0x10/0x20 [ 18.930170] [ 18.930232] Freed by task 260: [ 18.930264] kasan_save_stack+0x3c/0x68 [ 18.930308] kasan_save_track+0x20/0x40 [ 18.930389] kasan_save_free_info+0x4c/0x78 [ 18.930597] __kasan_slab_free+0x6c/0x98 [ 18.930643] kfree+0x214/0x3c8 [ 18.930717] kasan_strings+0x24c/0xb00 [ 18.931588] kunit_try_run_case+0x170/0x3f0 [ 18.932221] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.932362] kthread+0x328/0x630 [ 18.932536] ret_from_fork+0x10/0x20 [ 18.933532] [ 18.934028] The buggy address belongs to the object at fff00000c5ae3c80 [ 18.934028] which belongs to the cache kmalloc-32 of size 32 [ 18.934292] The buggy address is located 16 bytes inside of [ 18.934292] freed 32-byte region [fff00000c5ae3c80, fff00000c5ae3ca0) [ 18.934404] [ 18.936078] The buggy address belongs to the physical page: [ 18.936125] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ae3 [ 18.936748] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.937137] page_type: f5(slab) [ 18.937347] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.937408] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.937454] page dumped because: kasan: bad access detected [ 18.937489] [ 18.937510] Memory state around the buggy address: [ 18.940062] fff00000c5ae3b80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.940127] fff00000c5ae3c00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.940692] >fff00000c5ae3c80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.941112] ^ [ 18.941773] fff00000c5ae3d00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.943234] fff00000c5ae3d80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.943746] ==================================================================
[ 14.624313] ================================================================== [ 14.624864] BUG: KASAN: slab-use-after-free in strnlen+0x73/0x80 [ 14.625135] Read of size 1 at addr ffff888103445d50 by task kunit_try_catch/277 [ 14.625497] [ 14.625728] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.625777] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.625803] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.625838] Call Trace: [ 14.625852] <TASK> [ 14.625867] dump_stack_lvl+0x73/0xb0 [ 14.625897] print_report+0xd1/0x610 [ 14.625921] ? __virt_addr_valid+0x1db/0x2d0 [ 14.625946] ? strnlen+0x73/0x80 [ 14.625964] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.625988] ? strnlen+0x73/0x80 [ 14.626007] kasan_report+0x141/0x180 [ 14.626029] ? strnlen+0x73/0x80 [ 14.626051] __asan_report_load1_noabort+0x18/0x20 [ 14.626077] strnlen+0x73/0x80 [ 14.626096] kasan_strings+0x615/0xe80 [ 14.626117] ? trace_hardirqs_on+0x37/0xe0 [ 14.626141] ? __pfx_kasan_strings+0x10/0x10 [ 14.626162] ? finish_task_switch.isra.0+0x153/0x700 [ 14.626185] ? __switch_to+0x47/0xf50 [ 14.626212] ? __schedule+0x10cc/0x2b60 [ 14.626235] ? __pfx_read_tsc+0x10/0x10 [ 14.626257] ? ktime_get_ts64+0x86/0x230 [ 14.626281] kunit_try_run_case+0x1a5/0x480 [ 14.626306] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.626331] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.626357] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.626382] ? __kthread_parkme+0x82/0x180 [ 14.626425] ? preempt_count_sub+0x50/0x80 [ 14.626459] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.626485] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.626510] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.626537] kthread+0x337/0x6f0 [ 14.626627] ? trace_preempt_on+0x20/0xc0 [ 14.626652] ? __pfx_kthread+0x10/0x10 [ 14.626675] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.626698] ? calculate_sigpending+0x7b/0xa0 [ 14.626723] ? __pfx_kthread+0x10/0x10 [ 14.626745] ret_from_fork+0x116/0x1d0 [ 14.626765] ? __pfx_kthread+0x10/0x10 [ 14.626786] ret_from_fork_asm+0x1a/0x30 [ 14.626818] </TASK> [ 14.626829] [ 14.635152] Allocated by task 277: [ 14.635358] kasan_save_stack+0x45/0x70 [ 14.635598] kasan_save_track+0x18/0x40 [ 14.635802] kasan_save_alloc_info+0x3b/0x50 [ 14.636214] __kasan_kmalloc+0xb7/0xc0 [ 14.636408] __kmalloc_cache_noprof+0x189/0x420 [ 14.636656] kasan_strings+0xc0/0xe80 [ 14.636843] kunit_try_run_case+0x1a5/0x480 [ 14.637046] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.637297] kthread+0x337/0x6f0 [ 14.637612] ret_from_fork+0x116/0x1d0 [ 14.637875] ret_from_fork_asm+0x1a/0x30 [ 14.638089] [ 14.638183] Freed by task 277: [ 14.638339] kasan_save_stack+0x45/0x70 [ 14.638634] kasan_save_track+0x18/0x40 [ 14.638827] kasan_save_free_info+0x3f/0x60 [ 14.639032] __kasan_slab_free+0x56/0x70 [ 14.639223] kfree+0x222/0x3f0 [ 14.639345] kasan_strings+0x2aa/0xe80 [ 14.639516] kunit_try_run_case+0x1a5/0x480 [ 14.639901] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.640188] kthread+0x337/0x6f0 [ 14.640382] ret_from_fork+0x116/0x1d0 [ 14.640720] ret_from_fork_asm+0x1a/0x30 [ 14.640870] [ 14.640945] The buggy address belongs to the object at ffff888103445d40 [ 14.640945] which belongs to the cache kmalloc-32 of size 32 [ 14.641634] The buggy address is located 16 bytes inside of [ 14.641634] freed 32-byte region [ffff888103445d40, ffff888103445d60) [ 14.642137] [ 14.642235] The buggy address belongs to the physical page: [ 14.642503] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103445 [ 14.642940] flags: 0x200000000000000(node=0|zone=2) [ 14.643135] page_type: f5(slab) [ 14.643324] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.643725] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.644011] page dumped because: kasan: bad access detected [ 14.644508] [ 14.644753] Memory state around the buggy address: [ 14.644978] ffff888103445c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.645195] ffff888103445c80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.645513] >ffff888103445d00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.645953] ^ [ 14.646244] ffff888103445d80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.646648] ffff888103445e00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.646974] ==================================================================
[ 14.857640] ================================================================== [ 14.857883] BUG: KASAN: slab-use-after-free in strnlen+0x73/0x80 [ 14.858569] Read of size 1 at addr ffff8881025b0450 by task kunit_try_catch/277 [ 14.858991] [ 14.859245] CPU: 0 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.859291] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.859304] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.859325] Call Trace: [ 14.859338] <TASK> [ 14.859354] dump_stack_lvl+0x73/0xb0 [ 14.859383] print_report+0xd1/0x610 [ 14.859406] ? __virt_addr_valid+0x1db/0x2d0 [ 14.859429] ? strnlen+0x73/0x80 [ 14.859446] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.859470] ? strnlen+0x73/0x80 [ 14.859489] kasan_report+0x141/0x180 [ 14.859510] ? strnlen+0x73/0x80 [ 14.859533] __asan_report_load1_noabort+0x18/0x20 [ 14.859558] strnlen+0x73/0x80 [ 14.859577] kasan_strings+0x615/0xe80 [ 14.859597] ? trace_hardirqs_on+0x37/0xe0 [ 14.859621] ? __pfx_kasan_strings+0x10/0x10 [ 14.859881] ? finish_task_switch.isra.0+0x153/0x700 [ 14.859909] ? __switch_to+0x47/0xf50 [ 14.859935] ? __schedule+0x10cc/0x2b60 [ 14.859958] ? __pfx_read_tsc+0x10/0x10 [ 14.859980] ? ktime_get_ts64+0x86/0x230 [ 14.860004] kunit_try_run_case+0x1a5/0x480 [ 14.860029] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.860067] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.860093] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.860119] ? __kthread_parkme+0x82/0x180 [ 14.860140] ? preempt_count_sub+0x50/0x80 [ 14.860164] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.860190] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.860217] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.860243] kthread+0x337/0x6f0 [ 14.860262] ? trace_preempt_on+0x20/0xc0 [ 14.860285] ? __pfx_kthread+0x10/0x10 [ 14.860306] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.860328] ? calculate_sigpending+0x7b/0xa0 [ 14.860353] ? __pfx_kthread+0x10/0x10 [ 14.860375] ret_from_fork+0x116/0x1d0 [ 14.860395] ? __pfx_kthread+0x10/0x10 [ 14.860417] ret_from_fork_asm+0x1a/0x30 [ 14.860448] </TASK> [ 14.860458] [ 14.871136] Allocated by task 277: [ 14.871541] kasan_save_stack+0x45/0x70 [ 14.871823] kasan_save_track+0x18/0x40 [ 14.871976] kasan_save_alloc_info+0x3b/0x50 [ 14.872208] __kasan_kmalloc+0xb7/0xc0 [ 14.872624] __kmalloc_cache_noprof+0x189/0x420 [ 14.872970] kasan_strings+0xc0/0xe80 [ 14.873158] kunit_try_run_case+0x1a5/0x480 [ 14.873584] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.874075] kthread+0x337/0x6f0 [ 14.874435] ret_from_fork+0x116/0x1d0 [ 14.874590] ret_from_fork_asm+0x1a/0x30 [ 14.874995] [ 14.875089] Freed by task 277: [ 14.875433] kasan_save_stack+0x45/0x70 [ 14.875603] kasan_save_track+0x18/0x40 [ 14.875953] kasan_save_free_info+0x3f/0x60 [ 14.876304] __kasan_slab_free+0x56/0x70 [ 14.876468] kfree+0x222/0x3f0 [ 14.876635] kasan_strings+0x2aa/0xe80 [ 14.876885] kunit_try_run_case+0x1a5/0x480 [ 14.877076] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.877595] kthread+0x337/0x6f0 [ 14.877987] ret_from_fork+0x116/0x1d0 [ 14.878159] ret_from_fork_asm+0x1a/0x30 [ 14.878474] [ 14.878578] The buggy address belongs to the object at ffff8881025b0440 [ 14.878578] which belongs to the cache kmalloc-32 of size 32 [ 14.879271] The buggy address is located 16 bytes inside of [ 14.879271] freed 32-byte region [ffff8881025b0440, ffff8881025b0460) [ 14.879969] [ 14.880094] The buggy address belongs to the physical page: [ 14.880583] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025b0 [ 14.880982] flags: 0x200000000000000(node=0|zone=2) [ 14.881410] page_type: f5(slab) [ 14.881580] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.882074] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.882730] page dumped because: kasan: bad access detected [ 14.883065] [ 14.883144] Memory state around the buggy address: [ 14.883422] ffff8881025b0300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.883729] ffff8881025b0380: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.884358] >ffff8881025b0400: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.884708] ^ [ 14.884944] ffff8881025b0480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.885436] ffff8881025b0500: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.885991] ==================================================================