Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.788628] ================================================================== [ 20.789043] BUG: KASAN: slab-use-after-free in kasan_strings+0x838/0x8d8 [ 20.789604] Read of size 1 at addr fff00000c66e72d0 by task kunit_try_catch/248 [ 20.789975] [ 20.790156] CPU: 1 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 20.790280] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.790318] Hardware name: linux,dummy-virt (DT) [ 20.790357] Call trace: [ 20.790390] show_stack+0x20/0x38 (C) [ 20.790472] dump_stack_lvl+0x8c/0xd0 [ 20.790556] print_report+0x118/0x608 [ 20.790621] kasan_report+0xdc/0x128 [ 20.790676] __asan_report_load1_noabort+0x20/0x30 [ 20.790732] kasan_strings+0x838/0x8d8 [ 20.790971] kunit_try_run_case+0x170/0x3f0 [ 20.791034] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.791097] kthread+0x318/0x620 [ 20.791149] ret_from_fork+0x10/0x20 [ 20.791209] [ 20.794289] Allocated by task 248: [ 20.794617] kasan_save_stack+0x3c/0x68 [ 20.795147] kasan_save_track+0x20/0x40 [ 20.795419] kasan_save_alloc_info+0x40/0x58 [ 20.795720] __kasan_kmalloc+0xd4/0xd8 [ 20.796021] __kmalloc_cache_noprof+0x15c/0x3c0 [ 20.796260] kasan_strings+0xb0/0x8d8 [ 20.796492] kunit_try_run_case+0x170/0x3f0 [ 20.796791] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.797092] kthread+0x318/0x620 [ 20.797326] ret_from_fork+0x10/0x20 [ 20.797678] [ 20.797803] Freed by task 248: [ 20.798140] kasan_save_stack+0x3c/0x68 [ 20.798551] kasan_save_track+0x20/0x40 [ 20.798825] kasan_save_free_info+0x4c/0x78 [ 20.799080] __kasan_slab_free+0x6c/0x98 [ 20.799332] kfree+0x214/0x3c8 [ 20.799567] kasan_strings+0x124/0x8d8 [ 20.799785] kunit_try_run_case+0x170/0x3f0 [ 20.800036] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.800544] kthread+0x318/0x620 [ 20.800864] ret_from_fork+0x10/0x20 [ 20.801037] [ 20.801268] The buggy address belongs to the object at fff00000c66e72c0 [ 20.801268] which belongs to the cache kmalloc-32 of size 32 [ 20.802088] The buggy address is located 16 bytes inside of [ 20.802088] freed 32-byte region [fff00000c66e72c0, fff00000c66e72e0) [ 20.803092] [ 20.803340] The buggy address belongs to the physical page: [ 20.803767] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1066e7 [ 20.804267] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.804671] page_type: f5(slab) [ 20.804917] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.805407] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.805917] page dumped because: kasan: bad access detected [ 20.806244] [ 20.806453] Memory state around the buggy address: [ 20.807640] fff00000c66e7180: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.808076] fff00000c66e7200: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.808453] >fff00000c66e7280: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.808991] ^ [ 20.809322] fff00000c66e7300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.809787] fff00000c66e7380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.810218] ==================================================================
[ 14.333035] ================================================================== [ 14.333414] BUG: KASAN: slab-use-after-free in kasan_strings+0xa0c/0xb60 [ 14.333649] Read of size 1 at addr ffff888101b3b550 by task kunit_try_catch/267 [ 14.333894] [ 14.333985] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 14.334029] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.334067] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.334090] Call Trace: [ 14.334111] <TASK> [ 14.334132] dump_stack_lvl+0x73/0xb0 [ 14.334161] print_report+0xd1/0x650 [ 14.334182] ? __virt_addr_valid+0x1db/0x2d0 [ 14.334205] ? kasan_strings+0xa0c/0xb60 [ 14.334224] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.334249] ? kasan_strings+0xa0c/0xb60 [ 14.334268] kasan_report+0x140/0x180 [ 14.334291] ? kasan_strings+0xa0c/0xb60 [ 14.334560] __asan_report_load1_noabort+0x18/0x20 [ 14.334596] kasan_strings+0xa0c/0xb60 [ 14.334617] ? __pfx_kasan_strings+0x10/0x10 [ 14.334640] ? ktime_get_ts64+0xfb/0x230 [ 14.334663] ? ktime_get_ts64+0x86/0x230 [ 14.334687] kunit_try_run_case+0x1a6/0x480 [ 14.334711] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.334731] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 14.334753] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.334778] ? __kthread_parkme+0x82/0x160 [ 14.334800] ? preempt_count_sub+0x50/0x80 [ 14.334825] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.334964] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.334990] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.335016] kthread+0x324/0x6e0 [ 14.335062] ? trace_preempt_on+0x20/0xc0 [ 14.335087] ? __pfx_kthread+0x10/0x10 [ 14.335109] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.335133] ? calculate_sigpending+0x7b/0xa0 [ 14.335155] ? __pfx_kthread+0x10/0x10 [ 14.335176] ret_from_fork+0x41/0x80 [ 14.335196] ? __pfx_kthread+0x10/0x10 [ 14.335217] ret_from_fork_asm+0x1a/0x30 [ 14.335250] </TASK> [ 14.335260] [ 14.344432] Allocated by task 267: [ 14.344683] kasan_save_stack+0x45/0x70 [ 14.345076] kasan_save_track+0x18/0x40 [ 14.345285] kasan_save_alloc_info+0x3b/0x50 [ 14.345459] __kasan_kmalloc+0xb7/0xc0 [ 14.345615] __kmalloc_cache_noprof+0x18a/0x420 [ 14.345805] kasan_strings+0xb9/0xb60 [ 14.345943] kunit_try_run_case+0x1a6/0x480 [ 14.346088] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.346388] kthread+0x324/0x6e0 [ 14.346565] ret_from_fork+0x41/0x80 [ 14.346750] ret_from_fork_asm+0x1a/0x30 [ 14.346958] [ 14.347052] Freed by task 267: [ 14.347276] kasan_save_stack+0x45/0x70 [ 14.347564] kasan_save_track+0x18/0x40 [ 14.347790] kasan_save_free_info+0x3f/0x60 [ 14.347947] __kasan_slab_free+0x56/0x70 [ 14.348085] kfree+0x224/0x3f0 [ 14.348204] kasan_strings+0x13c/0xb60 [ 14.348336] kunit_try_run_case+0x1a6/0x480 [ 14.348745] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.349011] kthread+0x324/0x6e0 [ 14.349776] ret_from_fork+0x41/0x80 [ 14.350233] ret_from_fork_asm+0x1a/0x30 [ 14.350658] [ 14.351078] The buggy address belongs to the object at ffff888101b3b540 [ 14.351078] which belongs to the cache kmalloc-32 of size 32 [ 14.351945] The buggy address is located 16 bytes inside of [ 14.351945] freed 32-byte region [ffff888101b3b540, ffff888101b3b560) [ 14.352864] [ 14.352964] The buggy address belongs to the physical page: [ 14.353624] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101b3b [ 14.353969] flags: 0x200000000000000(node=0|zone=2) [ 14.354404] page_type: f5(slab) [ 14.354737] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.355317] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.355989] page dumped because: kasan: bad access detected [ 14.356326] [ 14.356587] Memory state around the buggy address: [ 14.356913] ffff888101b3b400: 00 00 00 04 fc fc fc fc fa fb fb fb fc fc fc fc [ 14.357314] ffff888101b3b480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.357530] >ffff888101b3b500: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.357737] ^ [ 14.357938] ffff888101b3b580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.358688] ffff888101b3b600: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.359478] ==================================================================