Date
July 15, 2025, 11:35 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 57.835942] ================================================================== [ 57.842874] BUG: KASAN: slab-use-after-free in strlen+0xa8/0xb0 [ 57.848774] Read of size 1 at addr ffff0008085305d0 by task kunit_try_catch/340 [ 57.856065] [ 57.857549] CPU: 0 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT [ 57.857600] Tainted: [B]=BAD_PAGE, [N]=TEST [ 57.857616] Hardware name: WinLink E850-96 board (DT) [ 57.857635] Call trace: [ 57.857649] show_stack+0x20/0x38 (C) [ 57.857683] dump_stack_lvl+0x8c/0xd0 [ 57.857717] print_report+0x118/0x5d0 [ 57.857744] kasan_report+0xdc/0x128 [ 57.857774] __asan_report_load1_noabort+0x20/0x30 [ 57.857805] strlen+0xa8/0xb0 [ 57.857832] kasan_strings+0x418/0xb00 [ 57.857862] kunit_try_run_case+0x170/0x3f0 [ 57.857895] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 57.857929] kthread+0x328/0x630 [ 57.857956] ret_from_fork+0x10/0x20 [ 57.857987] [ 57.924120] Allocated by task 340: [ 57.927507] kasan_save_stack+0x3c/0x68 [ 57.931325] kasan_save_track+0x20/0x40 [ 57.935144] kasan_save_alloc_info+0x40/0x58 [ 57.939398] __kasan_kmalloc+0xd4/0xd8 [ 57.943130] __kmalloc_cache_noprof+0x16c/0x3c0 [ 57.947644] kasan_strings+0xc8/0xb00 [ 57.951290] kunit_try_run_case+0x170/0x3f0 [ 57.955457] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 57.960925] kthread+0x328/0x630 [ 57.964137] ret_from_fork+0x10/0x20 [ 57.967696] [ 57.969171] Freed by task 340: [ 57.972213] kasan_save_stack+0x3c/0x68 [ 57.976029] kasan_save_track+0x20/0x40 [ 57.979849] kasan_save_free_info+0x4c/0x78 [ 57.984015] __kasan_slab_free+0x6c/0x98 [ 57.987921] kfree+0x214/0x3c8 [ 57.990960] kasan_strings+0x24c/0xb00 [ 57.994692] kunit_try_run_case+0x170/0x3f0 [ 57.998859] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 58.004329] kthread+0x328/0x630 [ 58.007539] ret_from_fork+0x10/0x20 [ 58.011098] [ 58.012573] The buggy address belongs to the object at ffff0008085305c0 [ 58.012573] which belongs to the cache kmalloc-32 of size 32 [ 58.024900] The buggy address is located 16 bytes inside of [ 58.024900] freed 32-byte region [ffff0008085305c0, ffff0008085305e0) [ 58.036966] [ 58.038443] The buggy address belongs to the physical page: [ 58.044000] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x888530 [ 58.051985] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 58.058494] page_type: f5(slab) [ 58.061630] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000 [ 58.069352] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 58.077069] page dumped because: kasan: bad access detected [ 58.082625] [ 58.084100] Memory state around the buggy address: [ 58.088881] ffff000808530480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 58.096083] ffff000808530500: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 58.103288] >ffff000808530580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 58.110489] ^ [ 58.116308] ffff000808530600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 58.123513] ffff000808530680: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 58.130714] ==================================================================
[ 32.960334] ================================================================== [ 32.960389] BUG: KASAN: slab-use-after-free in strlen+0xa8/0xb0 [ 32.960448] Read of size 1 at addr fff00000c64fae50 by task kunit_try_catch/291 [ 32.960712] [ 32.960919] CPU: 1 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT [ 32.961086] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.961146] Hardware name: linux,dummy-virt (DT) [ 32.961181] Call trace: [ 32.961220] show_stack+0x20/0x38 (C) [ 32.961275] dump_stack_lvl+0x8c/0xd0 [ 32.961325] print_report+0x118/0x5d0 [ 32.961371] kasan_report+0xdc/0x128 [ 32.961422] __asan_report_load1_noabort+0x20/0x30 [ 32.961487] strlen+0xa8/0xb0 [ 32.961530] kasan_strings+0x418/0xb00 [ 32.961588] kunit_try_run_case+0x170/0x3f0 [ 32.962391] ret_from_fork+0x10/0x20 [ 32.964400] kthread+0x328/0x630 [ 32.966385] ret_from_fork+0x10/0x20 [ 32.967575] [ 32.970536] BUG: KASAN: slab-use-after-free in strnlen+0x80/0x88 [ 32.971658] dump_stack_lvl+0x8c/0xd0 [ 32.972324] kasan_save_alloc_info+0x40/0x58 [ 32.974245] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.976338] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 32.990979] BUG: KASAN: slab-out-of-bounds in kasan_bitops_modify.constprop.0+0x100/0xbc0 [ 32.994308] kunit_try_run_case+0x170/0x3f0 [ 32.995994] kasan_bitops_generic+0xa0/0x1c8 [ 32.996817] page_type: f5(slab) [ 32.999567] [ 33.003208] ret_from_fork+0x10/0x20 [ 33.005303] fff00000c912f200: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 33.008663] Call trace: [ 33.009852] kasan_bitops_generic+0x110/0x1c8 [ 33.010286] kasan_save_alloc_info+0x40/0x58 [ 33.010950] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.013466] ==================================================================
[ 26.054264] ================================================================== [ 26.054642] BUG: KASAN: slab-use-after-free in strlen+0x8f/0xb0 [ 26.054846] Read of size 1 at addr ffff88810591fe50 by task kunit_try_catch/307 [ 26.055070] [ 26.055150] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) [ 26.055200] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.055215] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.055239] Call Trace: [ 26.055254] <TASK> [ 26.055270] dump_stack_lvl+0x73/0xb0 [ 26.055299] print_report+0xd1/0x610 [ 26.055326] ? __virt_addr_valid+0x1db/0x2d0 [ 26.055354] ? strlen+0x8f/0xb0 [ 26.055380] ? kasan_complete_mode_report_info+0x64/0x200 [ 26.055411] ? strlen+0x8f/0xb0 [ 26.055437] kasan_report+0x141/0x180 [ 26.055465] ? strlen+0x8f/0xb0 [ 26.055498] __asan_report_load1_noabort+0x18/0x20 [ 26.055541] strlen+0x8f/0xb0 [ 26.055568] kasan_strings+0x57b/0xe80 [ 26.055593] ? trace_hardirqs_on+0x37/0xe0 [ 26.055621] ? __pfx_kasan_strings+0x10/0x10 [ 26.055646] ? finish_task_switch.isra.0+0x153/0x700 [ 26.055672] ? __switch_to+0x47/0xf80 [ 26.055704] ? __schedule+0x10cc/0x2b60 [ 26.055731] ? __pfx_read_tsc+0x10/0x10 [ 26.055757] ? ktime_get_ts64+0x86/0x230 [ 26.055787] kunit_try_run_case+0x1a5/0x480 [ 26.055816] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.055843] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.055869] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.055897] ? __kthread_parkme+0x82/0x180 [ 26.055921] ? preempt_count_sub+0x50/0x80 [ 26.055950] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.056013] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.056058] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.056099] kthread+0x337/0x6f0 [ 26.056123] ? trace_preempt_on+0x20/0xc0 [ 26.056169] ? __pfx_kthread+0x10/0x10 [ 26.056195] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.056225] ? calculate_sigpending+0x7b/0xa0 [ 26.056264] ? __pfx_kthread+0x10/0x10 [ 26.056291] ret_from_fork+0x116/0x1d0 [ 26.056314] ? __pfx_kthread+0x10/0x10 [ 26.056340] ret_from_fork_asm+0x1a/0x30 [ 26.056389] </TASK> [ 26.056402] [ 26.065160] Allocated by task 307: [ 26.065340] kasan_save_stack+0x45/0x70 [ 26.065555] kasan_save_track+0x18/0x40 [ 26.065970] kasan_save_alloc_info+0x3b/0x50 [ 26.066262] __kasan_kmalloc+0xb7/0xc0 [ 26.066460] __kmalloc_cache_noprof+0x189/0x420 [ 26.066786] kasan_strings+0xc0/0xe80 [ 26.066978] kunit_try_run_case+0x1a5/0x480 [ 26.067129] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.067311] kthread+0x337/0x6f0 [ 26.067434] ret_from_fork+0x116/0x1d0 [ 26.067662] ret_from_fork_asm+0x1a/0x30 [ 26.067928] [ 26.068043] Freed by task 307: [ 26.068224] kasan_save_stack+0x45/0x70 [ 26.068442] kasan_save_track+0x18/0x40 [ 26.068720] kasan_save_free_info+0x3f/0x60 [ 26.068994] __kasan_slab_free+0x56/0x70 [ 26.069193] kfree+0x222/0x3f0 [ 26.069371] kasan_strings+0x2aa/0xe80 [ 26.069522] kunit_try_run_case+0x1a5/0x480 [ 26.069861] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.070052] kthread+0x337/0x6f0 [ 26.070174] ret_from_fork+0x116/0x1d0 [ 26.070330] ret_from_fork_asm+0x1a/0x30 [ 26.070729] [ 26.070823] The buggy address belongs to the object at ffff88810591fe40 [ 26.070823] which belongs to the cache kmalloc-32 of size 32 [ 26.071345] The buggy address is located 16 bytes inside of [ 26.071345] freed 32-byte region [ffff88810591fe40, ffff88810591fe60) [ 26.071902] [ 26.072000] The buggy address belongs to the physical page: [ 26.072252] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10591f [ 26.072592] flags: 0x200000000000000(node=0|zone=2) [ 26.072927] page_type: f5(slab) [ 26.073124] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 26.073445] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 26.073876] page dumped because: kasan: bad access detected [ 26.074124] [ 26.074230] Memory state around the buggy address: [ 26.074406] ffff88810591fd00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 26.074852] ffff88810591fd80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 26.075130] >ffff88810591fe00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 26.075381] ^ [ 26.075808] ffff88810591fe80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 26.076168] ffff88810591ff00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 26.076459] ==================================================================