Date
July 25, 2025, 3:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.632765] ================================================================== [ 34.632834] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 34.632889] Read of size 1 at addr fff00000c9a94390 by task kunit_try_catch/291 [ 34.632970] [ 34.633027] CPU: 0 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250725 #1 PREEMPT [ 34.633117] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 34.633149] Hardware name: linux,dummy-virt (DT) [ 34.633182] Call trace: [ 34.633357] show_stack+0x20/0x38 (C) [ 34.633431] dump_stack_lvl+0x8c/0xd0 [ 34.633487] print_report+0x118/0x5e8 [ 34.633545] kasan_report+0xdc/0x128 [ 34.633597] __asan_report_load1_noabort+0x20/0x30 [ 34.633657] kasan_strings+0x95c/0xb00 [ 34.633714] kunit_try_run_case+0x170/0x3f0 [ 34.633782] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.633866] kthread+0x328/0x630 [ 34.633948] ret_from_fork+0x10/0x20 [ 34.633999] [ 34.634040] Allocated by task 291: [ 34.634087] kasan_save_stack+0x3c/0x68 [ 34.634130] kasan_save_track+0x20/0x40 [ 34.634166] kasan_save_alloc_info+0x40/0x58 [ 34.634243] __kasan_kmalloc+0xd4/0xd8 [ 34.634279] __kmalloc_cache_noprof+0x16c/0x3c0 [ 34.634323] kasan_strings+0xc8/0xb00 [ 34.634360] kunit_try_run_case+0x170/0x3f0 [ 34.634618] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.634692] kthread+0x328/0x630 [ 34.634727] ret_from_fork+0x10/0x20 [ 34.634794] [ 34.634822] Freed by task 291: [ 34.634853] kasan_save_stack+0x3c/0x68 [ 34.634940] kasan_save_track+0x20/0x40 [ 34.635020] kasan_save_free_info+0x4c/0x78 [ 34.635117] __kasan_slab_free+0x7c/0xa8 [ 34.635259] kfree+0x214/0x3c8 [ 34.635424] kasan_strings+0x24c/0xb00 [ 34.635531] kunit_try_run_case+0x170/0x3f0 [ 34.635589] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.635905] kthread+0x328/0x630 [ 34.635986] ret_from_fork+0x10/0x20 [ 34.636163] [ 34.636234] The buggy address belongs to the object at fff00000c9a94380 [ 34.636234] which belongs to the cache kmalloc-32 of size 32 [ 34.636356] The buggy address is located 16 bytes inside of [ 34.636356] freed 32-byte region [fff00000c9a94380, fff00000c9a943a0) [ 34.636454] [ 34.636526] The buggy address belongs to the physical page: [ 34.636593] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a94 [ 34.636658] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.636712] page_type: f5(slab) [ 34.636763] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 34.636816] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 34.636868] page dumped because: kasan: bad access detected [ 34.636911] [ 34.636940] Memory state around the buggy address: [ 34.636975] fff00000c9a94280: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 34.637036] fff00000c9a94300: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 34.637084] >fff00000c9a94380: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.637124] ^ [ 34.637157] fff00000c9a94400: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 34.637213] fff00000c9a94480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.637254] ==================================================================
[ 27.757374] ================================================================== [ 27.757708] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 27.758138] Read of size 1 at addr ffff88810625ff90 by task kunit_try_catch/308 [ 27.758405] [ 27.758498] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) [ 27.758544] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.758556] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.758577] Call Trace: [ 27.758590] <TASK> [ 27.758604] dump_stack_lvl+0x73/0xb0 [ 27.758632] print_report+0xd1/0x640 [ 27.758656] ? __virt_addr_valid+0x1db/0x2d0 [ 27.758680] ? kasan_strings+0xcbc/0xe80 [ 27.758702] ? kasan_complete_mode_report_info+0x64/0x200 [ 27.758729] ? kasan_strings+0xcbc/0xe80 [ 27.758753] kasan_report+0x141/0x180 [ 27.758843] ? kasan_strings+0xcbc/0xe80 [ 27.758875] __asan_report_load1_noabort+0x18/0x20 [ 27.758903] kasan_strings+0xcbc/0xe80 [ 27.758924] ? trace_hardirqs_on+0x37/0xe0 [ 27.758959] ? __pfx_kasan_strings+0x10/0x10 [ 27.758981] ? finish_task_switch.isra.0+0x153/0x700 [ 27.759005] ? __switch_to+0x47/0xf80 [ 27.759031] ? __schedule+0x10da/0x2b60 [ 27.759054] ? __pfx_read_tsc+0x10/0x10 [ 27.759093] ? ktime_get_ts64+0x86/0x230 [ 27.759120] kunit_try_run_case+0x1a5/0x480 [ 27.759146] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.759170] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.759193] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.759220] ? __kthread_parkme+0x82/0x180 [ 27.759241] ? preempt_count_sub+0x50/0x80 [ 27.759265] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.759291] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.759315] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.759340] kthread+0x337/0x6f0 [ 27.759361] ? trace_preempt_on+0x20/0xc0 [ 27.759384] ? __pfx_kthread+0x10/0x10 [ 27.759406] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.759431] ? calculate_sigpending+0x7b/0xa0 [ 27.759456] ? __pfx_kthread+0x10/0x10 [ 27.759478] ret_from_fork+0x116/0x1d0 [ 27.759498] ? __pfx_kthread+0x10/0x10 [ 27.759519] ret_from_fork_asm+0x1a/0x30 [ 27.759553] </TASK> [ 27.759563] [ 27.767552] Allocated by task 308: [ 27.767736] kasan_save_stack+0x45/0x70 [ 27.768096] kasan_save_track+0x18/0x40 [ 27.768246] kasan_save_alloc_info+0x3b/0x50 [ 27.768396] __kasan_kmalloc+0xb7/0xc0 [ 27.768531] __kmalloc_cache_noprof+0x189/0x420 [ 27.768688] kasan_strings+0xc0/0xe80 [ 27.768887] kunit_try_run_case+0x1a5/0x480 [ 27.769160] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.769418] kthread+0x337/0x6f0 [ 27.769587] ret_from_fork+0x116/0x1d0 [ 27.769835] ret_from_fork_asm+0x1a/0x30 [ 27.770056] [ 27.770187] Freed by task 308: [ 27.770341] kasan_save_stack+0x45/0x70 [ 27.770532] kasan_save_track+0x18/0x40 [ 27.770721] kasan_save_free_info+0x3f/0x60 [ 27.771014] __kasan_slab_free+0x5e/0x80 [ 27.771212] kfree+0x222/0x3f0 [ 27.771370] kasan_strings+0x2aa/0xe80 [ 27.771504] kunit_try_run_case+0x1a5/0x480 [ 27.771653] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.771988] kthread+0x337/0x6f0 [ 27.772179] ret_from_fork+0x116/0x1d0 [ 27.772366] ret_from_fork_asm+0x1a/0x30 [ 27.772561] [ 27.772652] The buggy address belongs to the object at ffff88810625ff80 [ 27.772652] which belongs to the cache kmalloc-32 of size 32 [ 27.773348] The buggy address is located 16 bytes inside of [ 27.773348] freed 32-byte region [ffff88810625ff80, ffff88810625ffa0) [ 27.773937] [ 27.774022] The buggy address belongs to the physical page: [ 27.774220] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10625f [ 27.774508] flags: 0x200000000000000(node=0|zone=2) [ 27.774754] page_type: f5(slab) [ 27.775017] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 27.775393] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 27.775732] page dumped because: kasan: bad access detected [ 27.776182] [ 27.776309] Memory state around the buggy address: [ 27.776513] ffff88810625fe80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 27.776737] ffff88810625ff00: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 27.777069] >ffff88810625ff80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 27.777395] ^ [ 27.777679] ffff888106260000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.778022] ffff888106260080: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb [ 27.778391] ==================================================================