Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.163283] ================================================================== [ 26.163939] BUG: KASAN: slab-use-after-free in kasan_strings+0x838/0x8d8 [ 26.164741] Read of size 1 at addr fff00000c64bc790 by task kunit_try_catch/248 [ 26.165584] [ 26.166377] CPU: 0 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 26.166592] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.166679] Hardware name: linux,dummy-virt (DT) [ 26.166725] Call trace: [ 26.166755] show_stack+0x20/0x38 (C) [ 26.166840] dump_stack_lvl+0x8c/0xd0 [ 26.166991] print_report+0x118/0x608 [ 26.167107] kasan_report+0xdc/0x128 [ 26.167226] __asan_report_load1_noabort+0x20/0x30 [ 26.167371] kasan_strings+0x838/0x8d8 [ 26.167510] kunit_try_run_case+0x170/0x3f0 [ 26.167655] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.167730] kthread+0x318/0x620 [ 26.167789] ret_from_fork+0x10/0x20 [ 26.167854] [ 26.175182] Allocated by task 248: [ 26.175661] kasan_save_stack+0x3c/0x68 [ 26.176162] kasan_save_track+0x20/0x40 [ 26.176699] kasan_save_alloc_info+0x40/0x58 [ 26.177358] __kasan_kmalloc+0xd4/0xd8 [ 26.178739] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.179322] kasan_strings+0xb0/0x8d8 [ 26.179818] kunit_try_run_case+0x170/0x3f0 [ 26.180384] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.181029] kthread+0x318/0x620 [ 26.181510] ret_from_fork+0x10/0x20 [ 26.182028] [ 26.182338] Freed by task 248: [ 26.182808] kasan_save_stack+0x3c/0x68 [ 26.183778] kasan_save_track+0x20/0x40 [ 26.184357] kasan_save_free_info+0x4c/0x78 [ 26.184900] __kasan_slab_free+0x6c/0x98 [ 26.186230] kfree+0x214/0x3c8 [ 26.186858] kasan_strings+0x124/0x8d8 [ 26.187334] kunit_try_run_case+0x170/0x3f0 [ 26.187811] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.188585] kthread+0x318/0x620 [ 26.189073] ret_from_fork+0x10/0x20 [ 26.189506] [ 26.189857] The buggy address belongs to the object at fff00000c64bc780 [ 26.189857] which belongs to the cache kmalloc-32 of size 32 [ 26.191103] The buggy address is located 16 bytes inside of [ 26.191103] freed 32-byte region [fff00000c64bc780, fff00000c64bc7a0) [ 26.192768] [ 26.193328] The buggy address belongs to the physical page: [ 26.194462] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064bc [ 26.194832] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.195988] page_type: f5(slab) [ 26.196638] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 26.197553] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 26.198498] page dumped because: kasan: bad access detected [ 26.199248] [ 26.199598] Memory state around the buggy address: [ 26.200185] fff00000c64bc680: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 26.200986] fff00000c64bc700: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 26.202418] >fff00000c64bc780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 26.203148] ^ [ 26.203644] fff00000c64bc800: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 26.204405] fff00000c64bc880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 26.205112] ==================================================================
[ 20.233151] ================================================================== [ 20.234186] BUG: KASAN: slab-use-after-free in kasan_strings+0xa0c/0xb60 [ 20.234994] Read of size 1 at addr ffff888102bd9550 by task kunit_try_catch/267 [ 20.235490] [ 20.235800] CPU: 0 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 20.235920] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.235952] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.236002] Call Trace: [ 20.236043] <TASK> [ 20.236085] dump_stack_lvl+0x73/0xb0 [ 20.236157] print_report+0xd1/0x650 [ 20.236207] ? __virt_addr_valid+0x1db/0x2d0 [ 20.236258] ? kasan_strings+0xa0c/0xb60 [ 20.236308] ? kasan_complete_mode_report_info+0x64/0x200 [ 20.236369] ? kasan_strings+0xa0c/0xb60 [ 20.236426] kasan_report+0x140/0x180 [ 20.236488] ? kasan_strings+0xa0c/0xb60 [ 20.236555] __asan_report_load1_noabort+0x18/0x20 [ 20.236617] kasan_strings+0xa0c/0xb60 [ 20.236668] ? __pfx_kasan_strings+0x10/0x10 [ 20.236702] ? __schedule+0xce8/0x2840 [ 20.236734] ? __pfx_read_tsc+0x10/0x10 [ 20.236763] ? ktime_get_ts64+0x86/0x230 [ 20.236796] kunit_try_run_case+0x1a6/0x480 [ 20.236828] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.236877] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.236909] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.236939] ? __kthread_parkme+0x82/0x160 [ 20.236968] ? preempt_count_sub+0x50/0x80 [ 20.237001] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.237030] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.237063] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.237103] kthread+0x324/0x6e0 [ 20.237138] ? trace_preempt_on+0x20/0xc0 [ 20.237168] ? __pfx_kthread+0x10/0x10 [ 20.237196] ? _raw_spin_unlock_irq+0x47/0x80 [ 20.237224] ? calculate_sigpending+0x7b/0xa0 [ 20.237252] ? __pfx_kthread+0x10/0x10 [ 20.237281] ret_from_fork+0x41/0x80 [ 20.237313] ? __pfx_kthread+0x10/0x10 [ 20.237349] ret_from_fork_asm+0x1a/0x30 [ 20.237389] </TASK> [ 20.237403] [ 20.252095] Allocated by task 267: [ 20.252806] kasan_save_stack+0x45/0x70 [ 20.253140] kasan_save_track+0x18/0x40 [ 20.253551] kasan_save_alloc_info+0x3b/0x50 [ 20.254105] __kasan_kmalloc+0xb7/0xc0 [ 20.254484] __kmalloc_cache_noprof+0x18a/0x420 [ 20.254806] kasan_strings+0xb9/0xb60 [ 20.255070] kunit_try_run_case+0x1a6/0x480 [ 20.255875] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.256693] kthread+0x324/0x6e0 [ 20.256936] ret_from_fork+0x41/0x80 [ 20.257254] ret_from_fork_asm+0x1a/0x30 [ 20.257664] [ 20.257809] Freed by task 267: [ 20.258110] kasan_save_stack+0x45/0x70 [ 20.258410] kasan_save_track+0x18/0x40 [ 20.259034] kasan_save_free_info+0x3f/0x60 [ 20.259597] __kasan_slab_free+0x56/0x70 [ 20.260038] kfree+0x224/0x3f0 [ 20.260286] kasan_strings+0x13c/0xb60 [ 20.260551] kunit_try_run_case+0x1a6/0x480 [ 20.260822] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.261335] kthread+0x324/0x6e0 [ 20.261893] ret_from_fork+0x41/0x80 [ 20.262268] ret_from_fork_asm+0x1a/0x30 [ 20.262560] [ 20.262694] The buggy address belongs to the object at ffff888102bd9540 [ 20.262694] which belongs to the cache kmalloc-32 of size 32 [ 20.263376] The buggy address is located 16 bytes inside of [ 20.263376] freed 32-byte region [ffff888102bd9540, ffff888102bd9560) [ 20.265028] [ 20.265635] The buggy address belongs to the physical page: [ 20.266100] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bd9 [ 20.266650] flags: 0x200000000000000(node=0|zone=2) [ 20.267123] page_type: f5(slab) [ 20.267413] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 20.267975] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.268492] page dumped because: kasan: bad access detected [ 20.268936] [ 20.269137] Memory state around the buggy address: [ 20.269596] ffff888102bd9400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.270062] ffff888102bd9480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.270530] >ffff888102bd9500: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.270944] ^ [ 20.271493] ffff888102bd9580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.271959] ffff888102bd9600: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.272476] ==================================================================