Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.237257] ================================================================== [ 19.237313] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 19.237365] Read of size 1 at addr fff00000c5211590 by task kunit_try_catch/268 [ 19.237417] [ 19.237450] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 19.237729] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.237883] Hardware name: linux,dummy-virt (DT) [ 19.238098] Call trace: [ 19.238243] show_stack+0x20/0x38 (C) [ 19.238442] dump_stack_lvl+0x8c/0xd0 [ 19.238744] print_report+0x118/0x608 [ 19.238797] kasan_report+0xdc/0x128 [ 19.238844] __asan_report_load1_noabort+0x20/0x30 [ 19.238894] kasan_strings+0x95c/0xb00 [ 19.238960] kunit_try_run_case+0x170/0x3f0 [ 19.239431] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.239829] kthread+0x328/0x630 [ 19.239884] ret_from_fork+0x10/0x20 [ 19.240224] [ 19.240248] Allocated by task 268: [ 19.240375] kasan_save_stack+0x3c/0x68 [ 19.240479] kasan_save_track+0x20/0x40 [ 19.240543] kasan_save_alloc_info+0x40/0x58 [ 19.240698] __kasan_kmalloc+0xd4/0xd8 [ 19.240778] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.240920] kasan_strings+0xc8/0xb00 [ 19.241003] kunit_try_run_case+0x170/0x3f0 [ 19.241045] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.241092] kthread+0x328/0x630 [ 19.241127] ret_from_fork+0x10/0x20 [ 19.241204] [ 19.241229] Freed by task 268: [ 19.241643] kasan_save_stack+0x3c/0x68 [ 19.241844] kasan_save_track+0x20/0x40 [ 19.242117] kasan_save_free_info+0x4c/0x78 [ 19.242175] __kasan_slab_free+0x6c/0x98 [ 19.242215] kfree+0x214/0x3c8 [ 19.242252] kasan_strings+0x24c/0xb00 [ 19.242290] kunit_try_run_case+0x170/0x3f0 [ 19.242330] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.242466] kthread+0x328/0x630 [ 19.242520] ret_from_fork+0x10/0x20 [ 19.242560] [ 19.242583] The buggy address belongs to the object at fff00000c5211580 [ 19.242583] which belongs to the cache kmalloc-32 of size 32 [ 19.242646] The buggy address is located 16 bytes inside of [ 19.242646] freed 32-byte region [fff00000c5211580, fff00000c52115a0) [ 19.242711] [ 19.242733] The buggy address belongs to the physical page: [ 19.242767] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105211 [ 19.242823] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.242898] page_type: f5(slab) [ 19.242952] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.243071] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.243167] page dumped because: kasan: bad access detected [ 19.243215] [ 19.243235] Memory state around the buggy address: [ 19.243271] fff00000c5211480: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.243318] fff00000c5211500: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 19.243403] >fff00000c5211580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.243491] ^ [ 19.243655] fff00000c5211600: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.243867] fff00000c5211680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.243910] ==================================================================
[ 20.851194] ================================================================== [ 20.852697] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 20.853638] Read of size 1 at addr ffff88810383f710 by task kunit_try_catch/286 [ 20.854635] [ 20.854822] CPU: 1 UID: 0 PID: 286 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 20.855010] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.855050] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.855108] Call Trace: [ 20.855159] <TASK> [ 20.855210] dump_stack_lvl+0x73/0xb0 [ 20.855334] print_report+0xd1/0x650 [ 20.855414] ? __virt_addr_valid+0x1db/0x2d0 [ 20.855489] ? kasan_strings+0xcbc/0xe80 [ 20.855572] ? kasan_complete_mode_report_info+0x64/0x200 [ 20.855650] ? kasan_strings+0xcbc/0xe80 [ 20.855729] kasan_report+0x141/0x180 [ 20.855808] ? kasan_strings+0xcbc/0xe80 [ 20.855899] __asan_report_load1_noabort+0x18/0x20 [ 20.855940] kasan_strings+0xcbc/0xe80 [ 20.855968] ? trace_hardirqs_on+0x37/0xe0 [ 20.856005] ? __pfx_kasan_strings+0x10/0x10 [ 20.856033] ? finish_task_switch.isra.0+0x153/0x700 [ 20.856065] ? __switch_to+0x47/0xf50 [ 20.856100] ? __schedule+0x10cc/0x2b60 [ 20.856128] ? __pfx_read_tsc+0x10/0x10 [ 20.856158] ? ktime_get_ts64+0x86/0x230 [ 20.856192] kunit_try_run_case+0x1a5/0x480 [ 20.856247] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.856320] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 20.856371] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.856409] ? __kthread_parkme+0x82/0x180 [ 20.856437] ? preempt_count_sub+0x50/0x80 [ 20.856471] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.856505] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.856535] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.856568] kthread+0x337/0x6f0 [ 20.856595] ? trace_preempt_on+0x20/0xc0 [ 20.856627] ? __pfx_kthread+0x10/0x10 [ 20.856655] ? _raw_spin_unlock_irq+0x47/0x80 [ 20.856687] ? calculate_sigpending+0x7b/0xa0 [ 20.856721] ? __pfx_kthread+0x10/0x10 [ 20.856750] ret_from_fork+0x116/0x1d0 [ 20.856774] ? __pfx_kthread+0x10/0x10 [ 20.856803] ret_from_fork_asm+0x1a/0x30 [ 20.856898] </TASK> [ 20.856916] [ 20.875733] Allocated by task 286: [ 20.876167] kasan_save_stack+0x45/0x70 [ 20.876720] kasan_save_track+0x18/0x40 [ 20.877450] kasan_save_alloc_info+0x3b/0x50 [ 20.877961] __kasan_kmalloc+0xb7/0xc0 [ 20.878546] __kmalloc_cache_noprof+0x189/0x420 [ 20.879050] kasan_strings+0xc0/0xe80 [ 20.879949] kunit_try_run_case+0x1a5/0x480 [ 20.880552] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.881156] kthread+0x337/0x6f0 [ 20.881620] ret_from_fork+0x116/0x1d0 [ 20.882082] ret_from_fork_asm+0x1a/0x30 [ 20.882655] [ 20.882962] Freed by task 286: [ 20.883252] kasan_save_stack+0x45/0x70 [ 20.884146] kasan_save_track+0x18/0x40 [ 20.884615] kasan_save_free_info+0x3f/0x60 [ 20.885042] __kasan_slab_free+0x56/0x70 [ 20.885618] kfree+0x222/0x3f0 [ 20.885935] kasan_strings+0x2aa/0xe80 [ 20.886522] kunit_try_run_case+0x1a5/0x480 [ 20.887019] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.888015] kthread+0x337/0x6f0 [ 20.888585] ret_from_fork+0x116/0x1d0 [ 20.888987] ret_from_fork_asm+0x1a/0x30 [ 20.889585] [ 20.889788] The buggy address belongs to the object at ffff88810383f700 [ 20.889788] which belongs to the cache kmalloc-32 of size 32 [ 20.890898] The buggy address is located 16 bytes inside of [ 20.890898] freed 32-byte region [ffff88810383f700, ffff88810383f720) [ 20.892195] [ 20.892421] The buggy address belongs to the physical page: [ 20.893167] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10383f [ 20.893901] flags: 0x200000000000000(node=0|zone=2) [ 20.894555] page_type: f5(slab) [ 20.894820] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 20.896024] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.896588] page dumped because: kasan: bad access detected [ 20.897055] [ 20.897248] Memory state around the buggy address: [ 20.897645] ffff88810383f600: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.898462] ffff88810383f680: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.898926] >ffff88810383f700: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.899910] ^ [ 20.900404] ffff88810383f780: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.901009] ffff88810383f800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.901685] ==================================================================