Date
June 16, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.250763] ================================================================== [ 22.250860] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 22.250941] Read of size 1 at addr fff00000c63fb310 by task kunit_try_catch/268 [ 22.251008] [ 22.251062] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT [ 22.251176] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.251214] Hardware name: linux,dummy-virt (DT) [ 22.251261] Call trace: [ 22.251296] show_stack+0x20/0x38 (C) [ 22.251361] dump_stack_lvl+0x8c/0xd0 [ 22.251422] print_report+0x118/0x608 [ 22.251483] kasan_report+0xdc/0x128 [ 22.252953] __asan_report_load1_noabort+0x20/0x30 [ 22.253813] kasan_strings+0x95c/0xb00 [ 22.254336] kunit_try_run_case+0x170/0x3f0 [ 22.254766] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.255451] kthread+0x328/0x630 [ 22.255561] ret_from_fork+0x10/0x20 [ 22.255631] [ 22.255664] Allocated by task 268: [ 22.255704] kasan_save_stack+0x3c/0x68 [ 22.255762] kasan_save_track+0x20/0x40 [ 22.255811] kasan_save_alloc_info+0x40/0x58 [ 22.255873] __kasan_kmalloc+0xd4/0xd8 [ 22.255923] __kmalloc_cache_noprof+0x16c/0x3c0 [ 22.258010] kasan_strings+0xc8/0xb00 [ 22.258555] kunit_try_run_case+0x170/0x3f0 [ 22.258932] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.259334] kthread+0x328/0x630 [ 22.259477] ret_from_fork+0x10/0x20 [ 22.259532] [ 22.259562] Freed by task 268: [ 22.259601] kasan_save_stack+0x3c/0x68 [ 22.259653] kasan_save_track+0x20/0x40 [ 22.259700] kasan_save_free_info+0x4c/0x78 [ 22.260604] __kasan_slab_free+0x6c/0x98 [ 22.260658] kfree+0x214/0x3c8 [ 22.261440] kasan_strings+0x24c/0xb00 [ 22.261846] kunit_try_run_case+0x170/0x3f0 [ 22.261923] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.261995] kthread+0x328/0x630 [ 22.262493] ret_from_fork+0x10/0x20 [ 22.262987] [ 22.263090] The buggy address belongs to the object at fff00000c63fb300 [ 22.263090] which belongs to the cache kmalloc-32 of size 32 [ 22.263168] The buggy address is located 16 bytes inside of [ 22.263168] freed 32-byte region [fff00000c63fb300, fff00000c63fb320) [ 22.263670] [ 22.263932] The buggy address belongs to the physical page: [ 22.264673] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063fb [ 22.265129] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.265465] page_type: f5(slab) [ 22.265543] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 22.265623] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 22.265682] page dumped because: kasan: bad access detected [ 22.266174] [ 22.266344] Memory state around the buggy address: [ 22.266693] fff00000c63fb200: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 22.266760] fff00000c63fb280: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 22.266820] >fff00000c63fb300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 22.266889] ^ [ 22.266934] fff00000c63fb380: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 22.266993] fff00000c63fb400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 22.267044] ==================================================================
[ 13.446395] ================================================================== [ 13.446841] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 13.447165] Read of size 1 at addr ffff8881028dc250 by task kunit_try_catch/284 [ 13.447437] [ 13.447755] CPU: 1 UID: 0 PID: 284 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) [ 13.447808] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.447821] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.447842] Call Trace: [ 13.447860] <TASK> [ 13.447878] dump_stack_lvl+0x73/0xb0 [ 13.447908] print_report+0xd1/0x650 [ 13.448070] ? __virt_addr_valid+0x1db/0x2d0 [ 13.448105] ? kasan_strings+0xcbc/0xe80 [ 13.448125] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.448147] ? kasan_strings+0xcbc/0xe80 [ 13.448167] kasan_report+0x141/0x180 [ 13.448189] ? kasan_strings+0xcbc/0xe80 [ 13.448214] __asan_report_load1_noabort+0x18/0x20 [ 13.448237] kasan_strings+0xcbc/0xe80 [ 13.448255] ? trace_hardirqs_on+0x37/0xe0 [ 13.448279] ? __pfx_kasan_strings+0x10/0x10 [ 13.448299] ? finish_task_switch.isra.0+0x153/0x700 [ 13.448321] ? __switch_to+0x47/0xf50 [ 13.448346] ? __schedule+0x10cc/0x2b60 [ 13.448367] ? __pfx_read_tsc+0x10/0x10 [ 13.448387] ? ktime_get_ts64+0x86/0x230 [ 13.448469] kunit_try_run_case+0x1a5/0x480 [ 13.448493] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.448514] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.448535] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.448558] ? __kthread_parkme+0x82/0x180 [ 13.448634] ? preempt_count_sub+0x50/0x80 [ 13.448656] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.448679] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.448701] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.448742] kthread+0x337/0x6f0 [ 13.448760] ? trace_preempt_on+0x20/0xc0 [ 13.448782] ? __pfx_kthread+0x10/0x10 [ 13.448802] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.448822] ? calculate_sigpending+0x7b/0xa0 [ 13.448845] ? __pfx_kthread+0x10/0x10 [ 13.448866] ret_from_fork+0x116/0x1d0 [ 13.448883] ? __pfx_kthread+0x10/0x10 [ 13.448903] ret_from_fork_asm+0x1a/0x30 [ 13.448966] </TASK> [ 13.448977] [ 13.456759] Allocated by task 284: [ 13.457279] kasan_save_stack+0x45/0x70 [ 13.457677] kasan_save_track+0x18/0x40 [ 13.457851] kasan_save_alloc_info+0x3b/0x50 [ 13.458067] __kasan_kmalloc+0xb7/0xc0 [ 13.458250] __kmalloc_cache_noprof+0x189/0x420 [ 13.458545] kasan_strings+0xc0/0xe80 [ 13.458720] kunit_try_run_case+0x1a5/0x480 [ 13.458916] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.459156] kthread+0x337/0x6f0 [ 13.459320] ret_from_fork+0x116/0x1d0 [ 13.459444] ret_from_fork_asm+0x1a/0x30 [ 13.459575] [ 13.459638] Freed by task 284: [ 13.459833] kasan_save_stack+0x45/0x70 [ 13.460029] kasan_save_track+0x18/0x40 [ 13.460208] kasan_save_free_info+0x3f/0x60 [ 13.460562] __kasan_slab_free+0x56/0x70 [ 13.460772] kfree+0x222/0x3f0 [ 13.460942] kasan_strings+0x2aa/0xe80 [ 13.461132] kunit_try_run_case+0x1a5/0x480 [ 13.461316] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.461760] kthread+0x337/0x6f0 [ 13.461879] ret_from_fork+0x116/0x1d0 [ 13.462013] ret_from_fork_asm+0x1a/0x30 [ 13.462199] [ 13.462286] The buggy address belongs to the object at ffff8881028dc240 [ 13.462286] which belongs to the cache kmalloc-32 of size 32 [ 13.462927] The buggy address is located 16 bytes inside of [ 13.462927] freed 32-byte region [ffff8881028dc240, ffff8881028dc260) [ 13.463276] [ 13.463353] The buggy address belongs to the physical page: [ 13.463900] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028dc [ 13.464302] flags: 0x200000000000000(node=0|zone=2) [ 13.464659] page_type: f5(slab) [ 13.464993] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.465281] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.465817] page dumped because: kasan: bad access detected [ 13.466028] [ 13.466093] Memory state around the buggy address: [ 13.466289] ffff8881028dc100: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 13.466738] ffff8881028dc180: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.467093] >ffff8881028dc200: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 13.467382] ^ [ 13.467712] ffff8881028dc280: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.467923] ffff8881028dc300: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 13.468240] ==================================================================