Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.643024] ================================================================== [ 24.643198] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 24.643353] Read of size 1 at addr fff00000c73a8610 by task kunit_try_catch/261 [ 24.643494] [ 24.643600] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 24.643977] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.644059] Hardware name: linux,dummy-virt (DT) [ 24.644177] Call trace: [ 24.644253] show_stack+0x20/0x38 (C) [ 24.644363] dump_stack_lvl+0x8c/0xd0 [ 24.644485] print_report+0x118/0x608 [ 24.644596] kasan_report+0xdc/0x128 [ 24.644704] __asan_report_load1_noabort+0x20/0x30 [ 24.644894] kasan_strings+0x95c/0xb00 [ 24.645007] kunit_try_run_case+0x170/0x3f0 [ 24.645123] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.645255] kthread+0x328/0x630 [ 24.645359] ret_from_fork+0x10/0x20 [ 24.645476] [ 24.645520] Allocated by task 261: [ 24.645584] kasan_save_stack+0x3c/0x68 [ 24.645687] kasan_save_track+0x20/0x40 [ 24.645795] kasan_save_alloc_info+0x40/0x58 [ 24.645878] __kasan_kmalloc+0xd4/0xd8 [ 24.645962] __kmalloc_cache_noprof+0x16c/0x3c0 [ 24.646145] kasan_strings+0xc8/0xb00 [ 24.646224] kunit_try_run_case+0x170/0x3f0 [ 24.646306] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.646410] kthread+0x328/0x630 [ 24.646503] ret_from_fork+0x10/0x20 [ 24.646594] [ 24.646646] Freed by task 261: [ 24.647753] kasan_save_stack+0x3c/0x68 [ 24.647882] kasan_save_track+0x20/0x40 [ 24.648045] kasan_save_free_info+0x4c/0x78 [ 24.648213] __kasan_slab_free+0x6c/0x98 [ 24.648359] kfree+0x214/0x3c8 [ 24.648449] kasan_strings+0x24c/0xb00 [ 24.648547] kunit_try_run_case+0x170/0x3f0 [ 24.648662] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.648840] kthread+0x328/0x630 [ 24.648924] ret_from_fork+0x10/0x20 [ 24.649038] [ 24.649098] The buggy address belongs to the object at fff00000c73a8600 [ 24.649098] which belongs to the cache kmalloc-32 of size 32 [ 24.649252] The buggy address is located 16 bytes inside of [ 24.649252] freed 32-byte region [fff00000c73a8600, fff00000c73a8620) [ 24.649423] [ 24.649500] The buggy address belongs to the physical page: [ 24.649610] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1073a8 [ 24.649780] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.649899] page_type: f5(slab) [ 24.650021] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 24.650134] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 24.650258] page dumped because: kasan: bad access detected [ 24.650353] [ 24.650402] Memory state around the buggy address: [ 24.650497] fff00000c73a8500: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 24.650608] fff00000c73a8580: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 24.650739] >fff00000c73a8600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 24.651010] ^ [ 24.651122] fff00000c73a8680: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 24.651217] fff00000c73a8700: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 24.651434] ==================================================================
[ 22.414877] ================================================================== [ 22.415360] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 22.416643] Read of size 1 at addr ffff888102ef0050 by task kunit_try_catch/279 [ 22.417551] [ 22.417788] CPU: 1 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 22.417967] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.418126] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.418192] Call Trace: [ 22.418281] <TASK> [ 22.418359] dump_stack_lvl+0x73/0xb0 [ 22.418452] print_report+0xd1/0x650 [ 22.418537] ? __virt_addr_valid+0x1db/0x2d0 [ 22.418650] ? kasan_strings+0xcbc/0xe80 [ 22.418721] ? kasan_complete_mode_report_info+0x64/0x200 [ 22.418794] ? kasan_strings+0xcbc/0xe80 [ 22.418866] kasan_report+0x141/0x180 [ 22.418943] ? kasan_strings+0xcbc/0xe80 [ 22.419166] __asan_report_load1_noabort+0x18/0x20 [ 22.419248] kasan_strings+0xcbc/0xe80 [ 22.419338] ? trace_hardirqs_on+0x37/0xe0 [ 22.419423] ? __pfx_kasan_strings+0x10/0x10 [ 22.419466] ? finish_task_switch.isra.0+0x153/0x700 [ 22.419505] ? __switch_to+0x5d9/0xf60 [ 22.419538] ? dequeue_task_fair+0x166/0x4e0 [ 22.419577] ? __schedule+0x10cc/0x2b60 [ 22.419614] ? __pfx_read_tsc+0x10/0x10 [ 22.419646] ? ktime_get_ts64+0x86/0x230 [ 22.419685] kunit_try_run_case+0x1a5/0x480 [ 22.419725] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.419763] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.419802] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.419839] ? __kthread_parkme+0x82/0x180 [ 22.419872] ? preempt_count_sub+0x50/0x80 [ 22.419929] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.420270] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.420347] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.420388] kthread+0x337/0x6f0 [ 22.420417] ? trace_preempt_on+0x20/0xc0 [ 22.420454] ? __pfx_kthread+0x10/0x10 [ 22.420482] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.420517] ? calculate_sigpending+0x7b/0xa0 [ 22.420553] ? __pfx_kthread+0x10/0x10 [ 22.420581] ret_from_fork+0x41/0x80 [ 22.420616] ? __pfx_kthread+0x10/0x10 [ 22.420644] ret_from_fork_asm+0x1a/0x30 [ 22.420690] </TASK> [ 22.420709] [ 22.439046] Allocated by task 279: [ 22.439554] kasan_save_stack+0x45/0x70 [ 22.439966] kasan_save_track+0x18/0x40 [ 22.440589] kasan_save_alloc_info+0x3b/0x50 [ 22.441819] __kasan_kmalloc+0xb7/0xc0 [ 22.442272] __kmalloc_cache_noprof+0x189/0x420 [ 22.442687] kasan_strings+0xc0/0xe80 [ 22.442993] kunit_try_run_case+0x1a5/0x480 [ 22.443375] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.443789] kthread+0x337/0x6f0 [ 22.445706] ret_from_fork+0x41/0x80 [ 22.446041] ret_from_fork_asm+0x1a/0x30 [ 22.446391] [ 22.446576] Freed by task 279: [ 22.446838] kasan_save_stack+0x45/0x70 [ 22.447384] kasan_save_track+0x18/0x40 [ 22.448005] kasan_save_free_info+0x3f/0x60 [ 22.448646] __kasan_slab_free+0x56/0x70 [ 22.449687] kfree+0x222/0x3f0 [ 22.450174] kasan_strings+0x2aa/0xe80 [ 22.450755] kunit_try_run_case+0x1a5/0x480 [ 22.451347] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.451945] kthread+0x337/0x6f0 [ 22.452440] ret_from_fork+0x41/0x80 [ 22.452846] ret_from_fork_asm+0x1a/0x30 [ 22.453829] [ 22.454252] The buggy address belongs to the object at ffff888102ef0040 [ 22.454252] which belongs to the cache kmalloc-32 of size 32 [ 22.455402] The buggy address is located 16 bytes inside of [ 22.455402] freed 32-byte region [ffff888102ef0040, ffff888102ef0060) [ 22.456719] [ 22.456969] The buggy address belongs to the physical page: [ 22.457996] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ef0 [ 22.458529] flags: 0x200000000000000(node=0|zone=2) [ 22.459002] page_type: f5(slab) [ 22.459569] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 22.460226] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 22.460979] page dumped because: kasan: bad access detected [ 22.461918] [ 22.462166] Memory state around the buggy address: [ 22.462661] ffff888102eeff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.463436] ffff888102eeff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.464121] >ffff888102ef0000: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 22.464777] ^ [ 22.465270] ffff888102ef0080: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 22.465990] ffff888102ef0100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 22.467033] ==================================================================