Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.763093] ================================================================== [ 20.764121] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 20.764475] Read of size 1 at addr fff00000c66e72d0 by task kunit_try_catch/248 [ 20.764806] [ 20.765021] CPU: 1 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 20.765129] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.765163] Hardware name: linux,dummy-virt (DT) [ 20.765201] Call trace: [ 20.765233] show_stack+0x20/0x38 (C) [ 20.765294] dump_stack_lvl+0x8c/0xd0 [ 20.765351] print_report+0x118/0x608 [ 20.765408] kasan_report+0xdc/0x128 [ 20.765462] __asan_report_load1_noabort+0x20/0x30 [ 20.765516] strcmp+0xc0/0xc8 [ 20.765564] kasan_strings+0x228/0x8d8 [ 20.765615] kunit_try_run_case+0x170/0x3f0 [ 20.765672] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.765732] kthread+0x318/0x620 [ 20.765803] ret_from_fork+0x10/0x20 [ 20.765864] [ 20.769824] Allocated by task 248: [ 20.770018] kasan_save_stack+0x3c/0x68 [ 20.770236] kasan_save_track+0x20/0x40 [ 20.770416] kasan_save_alloc_info+0x40/0x58 [ 20.771231] __kasan_kmalloc+0xd4/0xd8 [ 20.771879] __kmalloc_cache_noprof+0x15c/0x3c0 [ 20.772235] kasan_strings+0xb0/0x8d8 [ 20.772415] kunit_try_run_case+0x170/0x3f0 [ 20.773018] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.773476] kthread+0x318/0x620 [ 20.773855] ret_from_fork+0x10/0x20 [ 20.774152] [ 20.774394] Freed by task 248: [ 20.774555] kasan_save_stack+0x3c/0x68 [ 20.775049] kasan_save_track+0x20/0x40 [ 20.775309] kasan_save_free_info+0x4c/0x78 [ 20.775585] __kasan_slab_free+0x6c/0x98 [ 20.775841] kfree+0x214/0x3c8 [ 20.776092] kasan_strings+0x124/0x8d8 [ 20.776377] kunit_try_run_case+0x170/0x3f0 [ 20.776657] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.777223] kthread+0x318/0x620 [ 20.777711] ret_from_fork+0x10/0x20 [ 20.778033] [ 20.778170] The buggy address belongs to the object at fff00000c66e72c0 [ 20.778170] which belongs to the cache kmalloc-32 of size 32 [ 20.779180] The buggy address is located 16 bytes inside of [ 20.779180] freed 32-byte region [fff00000c66e72c0, fff00000c66e72e0) [ 20.780023] [ 20.780186] The buggy address belongs to the physical page: [ 20.780633] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1066e7 [ 20.781223] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.781622] page_type: f5(slab) [ 20.781899] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.782315] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.782991] page dumped because: kasan: bad access detected [ 20.783264] [ 20.783410] Memory state around the buggy address: [ 20.783647] fff00000c66e7180: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.783979] fff00000c66e7200: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.784291] >fff00000c66e7280: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.784593] ^ [ 20.785721] fff00000c66e7300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.786271] fff00000c66e7380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.787712] ==================================================================
[ 14.302673] ================================================================== [ 14.303915] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 14.304322] Read of size 1 at addr ffff888101b3b550 by task kunit_try_catch/267 [ 14.304805] [ 14.304941] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 14.304991] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.305004] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.305026] Call Trace: [ 14.305041] <TASK> [ 14.305186] dump_stack_lvl+0x73/0xb0 [ 14.305218] print_report+0xd1/0x650 [ 14.305242] ? __virt_addr_valid+0x1db/0x2d0 [ 14.305265] ? strcmp+0xb0/0xc0 [ 14.305286] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.305311] ? strcmp+0xb0/0xc0 [ 14.305331] kasan_report+0x140/0x180 [ 14.305352] ? strcmp+0xb0/0xc0 [ 14.305376] __asan_report_load1_noabort+0x18/0x20 [ 14.305399] strcmp+0xb0/0xc0 [ 14.305420] kasan_strings+0x2d3/0xb60 [ 14.305441] ? __pfx_kasan_strings+0x10/0x10 [ 14.305462] ? ktime_get_ts64+0xfb/0x230 [ 14.305487] ? ktime_get_ts64+0x86/0x230 [ 14.305510] kunit_try_run_case+0x1a6/0x480 [ 14.305536] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.305557] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 14.305579] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.305604] ? __kthread_parkme+0x82/0x160 [ 14.305627] ? preempt_count_sub+0x50/0x80 [ 14.305652] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.305674] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.305700] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.305725] kthread+0x324/0x6e0 [ 14.305753] ? trace_preempt_on+0x20/0xc0 [ 14.305776] ? __pfx_kthread+0x10/0x10 [ 14.305799] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.305821] ? calculate_sigpending+0x7b/0xa0 [ 14.305854] ? __pfx_kthread+0x10/0x10 [ 14.305877] ret_from_fork+0x41/0x80 [ 14.305896] ? __pfx_kthread+0x10/0x10 [ 14.305918] ret_from_fork_asm+0x1a/0x30 [ 14.305950] </TASK> [ 14.305961] [ 14.315797] Allocated by task 267: [ 14.316011] kasan_save_stack+0x45/0x70 [ 14.316209] kasan_save_track+0x18/0x40 [ 14.316388] kasan_save_alloc_info+0x3b/0x50 [ 14.316582] __kasan_kmalloc+0xb7/0xc0 [ 14.316749] __kmalloc_cache_noprof+0x18a/0x420 [ 14.316956] kasan_strings+0xb9/0xb60 [ 14.317455] kunit_try_run_case+0x1a6/0x480 [ 14.317889] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.318368] kthread+0x324/0x6e0 [ 14.318610] ret_from_fork+0x41/0x80 [ 14.318929] ret_from_fork_asm+0x1a/0x30 [ 14.319321] [ 14.319416] Freed by task 267: [ 14.319823] kasan_save_stack+0x45/0x70 [ 14.320032] kasan_save_track+0x18/0x40 [ 14.320330] kasan_save_free_info+0x3f/0x60 [ 14.320530] __kasan_slab_free+0x56/0x70 [ 14.320708] kfree+0x224/0x3f0 [ 14.320858] kasan_strings+0x13c/0xb60 [ 14.321027] kunit_try_run_case+0x1a6/0x480 [ 14.321593] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.321923] kthread+0x324/0x6e0 [ 14.322350] ret_from_fork+0x41/0x80 [ 14.322605] ret_from_fork_asm+0x1a/0x30 [ 14.322799] [ 14.322897] The buggy address belongs to the object at ffff888101b3b540 [ 14.322897] which belongs to the cache kmalloc-32 of size 32 [ 14.323777] The buggy address is located 16 bytes inside of [ 14.323777] freed 32-byte region [ffff888101b3b540, ffff888101b3b560) [ 14.324705] [ 14.324792] The buggy address belongs to the physical page: [ 14.325261] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101b3b [ 14.325801] flags: 0x200000000000000(node=0|zone=2) [ 14.326469] page_type: f5(slab) [ 14.326716] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.327220] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.327651] page dumped because: kasan: bad access detected [ 14.327896] [ 14.327983] Memory state around the buggy address: [ 14.328607] ffff888101b3b400: 00 00 00 04 fc fc fc fc fa fb fb fb fc fc fc fc [ 14.329078] ffff888101b3b480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.329583] >ffff888101b3b500: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.330110] ^ [ 14.330377] ffff888101b3b580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.330671] ffff888101b3b600: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.330965] ==================================================================