Date
July 18, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.173692] ================================================================== [ 17.173786] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 17.174112] Read of size 1 at addr fff00000c7894fa8 by task kunit_try_catch/188 [ 17.174185] [ 17.174231] CPU: 1 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.174484] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.174607] Hardware name: linux,dummy-virt (DT) [ 17.174663] Call trace: [ 17.174745] show_stack+0x20/0x38 (C) [ 17.174806] dump_stack_lvl+0x8c/0xd0 [ 17.175101] print_report+0x118/0x5d0 [ 17.175173] kasan_report+0xdc/0x128 [ 17.175265] __asan_report_load1_noabort+0x20/0x30 [ 17.175367] kmalloc_uaf2+0x3f4/0x468 [ 17.175536] kunit_try_run_case+0x170/0x3f0 [ 17.175602] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.175659] kthread+0x328/0x630 [ 17.175939] ret_from_fork+0x10/0x20 [ 17.176167] [ 17.176249] Allocated by task 188: [ 17.176309] kasan_save_stack+0x3c/0x68 [ 17.176407] kasan_save_track+0x20/0x40 [ 17.176525] kasan_save_alloc_info+0x40/0x58 [ 17.176631] __kasan_kmalloc+0xd4/0xd8 [ 17.176734] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.176973] kmalloc_uaf2+0xc4/0x468 [ 17.177160] kunit_try_run_case+0x170/0x3f0 [ 17.177291] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.177388] kthread+0x328/0x630 [ 17.177514] ret_from_fork+0x10/0x20 [ 17.177593] [ 17.177658] Freed by task 188: [ 17.177747] kasan_save_stack+0x3c/0x68 [ 17.177789] kasan_save_track+0x20/0x40 [ 17.178076] kasan_save_free_info+0x4c/0x78 [ 17.178244] __kasan_slab_free+0x6c/0x98 [ 17.178466] kfree+0x214/0x3c8 [ 17.178590] kmalloc_uaf2+0x134/0x468 [ 17.178678] kunit_try_run_case+0x170/0x3f0 [ 17.178770] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.179012] kthread+0x328/0x630 [ 17.179170] ret_from_fork+0x10/0x20 [ 17.179289] [ 17.179358] The buggy address belongs to the object at fff00000c7894f80 [ 17.179358] which belongs to the cache kmalloc-64 of size 64 [ 17.179434] The buggy address is located 40 bytes inside of [ 17.179434] freed 64-byte region [fff00000c7894f80, fff00000c7894fc0) [ 17.179652] [ 17.179693] The buggy address belongs to the physical page: [ 17.179916] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107894 [ 17.180124] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.180188] page_type: f5(slab) [ 17.180334] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 17.180524] raw: 0000000000000000 0000000000200020 00000000f5000000 0000000000000000 [ 17.180600] page dumped because: kasan: bad access detected [ 17.180632] [ 17.180651] Memory state around the buggy address: [ 17.180683] fff00000c7894e80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 17.180747] fff00000c7894f00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 17.180800] >fff00000c7894f80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 17.180862] ^ [ 17.180896] fff00000c7895000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.180938] fff00000c7895080: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.180987] ==================================================================
[ 16.801149] ================================================================== [ 16.801212] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 16.801267] Read of size 1 at addr fff00000c7951628 by task kunit_try_catch/188 [ 16.801333] [ 16.801373] CPU: 1 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.802144] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.802232] Hardware name: linux,dummy-virt (DT) [ 16.802427] Call trace: [ 16.802734] show_stack+0x20/0x38 (C) [ 16.802829] dump_stack_lvl+0x8c/0xd0 [ 16.802908] print_report+0x118/0x5d0 [ 16.802996] kasan_report+0xdc/0x128 [ 16.803068] __asan_report_load1_noabort+0x20/0x30 [ 16.803140] kmalloc_uaf2+0x3f4/0x468 [ 16.803228] kunit_try_run_case+0x170/0x3f0 [ 16.803810] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.803910] kthread+0x328/0x630 [ 16.803972] ret_from_fork+0x10/0x20 [ 16.804061] [ 16.804104] Allocated by task 188: [ 16.804135] kasan_save_stack+0x3c/0x68 [ 16.804455] kasan_save_track+0x20/0x40 [ 16.804580] kasan_save_alloc_info+0x40/0x58 [ 16.804620] __kasan_kmalloc+0xd4/0xd8 [ 16.804658] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.804698] kmalloc_uaf2+0xc4/0x468 [ 16.805166] kunit_try_run_case+0x170/0x3f0 [ 16.805252] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.805461] kthread+0x328/0x630 [ 16.805619] ret_from_fork+0x10/0x20 [ 16.805687] [ 16.805744] Freed by task 188: [ 16.805783] kasan_save_stack+0x3c/0x68 [ 16.805898] kasan_save_track+0x20/0x40 [ 16.806246] kasan_save_free_info+0x4c/0x78 [ 16.806454] __kasan_slab_free+0x6c/0x98 [ 16.806626] kfree+0x214/0x3c8 [ 16.806693] kmalloc_uaf2+0x134/0x468 [ 16.806818] kunit_try_run_case+0x170/0x3f0 [ 16.806879] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.807163] kthread+0x328/0x630 [ 16.807230] ret_from_fork+0x10/0x20 [ 16.807305] [ 16.807440] The buggy address belongs to the object at fff00000c7951600 [ 16.807440] which belongs to the cache kmalloc-64 of size 64 [ 16.807828] The buggy address is located 40 bytes inside of [ 16.807828] freed 64-byte region [fff00000c7951600, fff00000c7951640) [ 16.807970] [ 16.808007] The buggy address belongs to the physical page: [ 16.808077] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107951 [ 16.808224] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.808335] page_type: f5(slab) [ 16.808537] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 16.808767] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 16.808815] page dumped because: kasan: bad access detected [ 16.809025] [ 16.809151] Memory state around the buggy address: [ 16.809240] fff00000c7951500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.809413] fff00000c7951580: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.809797] >fff00000c7951600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.809889] ^ [ 16.809948] fff00000c7951680: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 16.810058] fff00000c7951700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.810127] ==================================================================
[ 16.809878] ================================================================== [ 16.809980] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 16.810034] Read of size 1 at addr fff00000c7752228 by task kunit_try_catch/188 [ 16.810282] [ 16.810326] CPU: 0 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.810526] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.810560] Hardware name: linux,dummy-virt (DT) [ 16.810609] Call trace: [ 16.810648] show_stack+0x20/0x38 (C) [ 16.810767] dump_stack_lvl+0x8c/0xd0 [ 16.810854] print_report+0x118/0x5d0 [ 16.810903] kasan_report+0xdc/0x128 [ 16.810978] __asan_report_load1_noabort+0x20/0x30 [ 16.811053] kmalloc_uaf2+0x3f4/0x468 [ 16.811186] kunit_try_run_case+0x170/0x3f0 [ 16.811282] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.811365] kthread+0x328/0x630 [ 16.811406] ret_from_fork+0x10/0x20 [ 16.811704] [ 16.811739] Allocated by task 188: [ 16.811769] kasan_save_stack+0x3c/0x68 [ 16.811944] kasan_save_track+0x20/0x40 [ 16.812069] kasan_save_alloc_info+0x40/0x58 [ 16.812189] __kasan_kmalloc+0xd4/0xd8 [ 16.812270] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.812310] kmalloc_uaf2+0xc4/0x468 [ 16.812355] kunit_try_run_case+0x170/0x3f0 [ 16.812392] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.812435] kthread+0x328/0x630 [ 16.812477] ret_from_fork+0x10/0x20 [ 16.812514] [ 16.812532] Freed by task 188: [ 16.812559] kasan_save_stack+0x3c/0x68 [ 16.812603] kasan_save_track+0x20/0x40 [ 16.812641] kasan_save_free_info+0x4c/0x78 [ 16.812689] __kasan_slab_free+0x6c/0x98 [ 16.812736] kfree+0x214/0x3c8 [ 16.812767] kmalloc_uaf2+0x134/0x468 [ 16.812812] kunit_try_run_case+0x170/0x3f0 [ 16.812848] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.812889] kthread+0x328/0x630 [ 16.812921] ret_from_fork+0x10/0x20 [ 16.812966] [ 16.812984] The buggy address belongs to the object at fff00000c7752200 [ 16.812984] which belongs to the cache kmalloc-64 of size 64 [ 16.813047] The buggy address is located 40 bytes inside of [ 16.813047] freed 64-byte region [fff00000c7752200, fff00000c7752240) [ 16.813117] [ 16.813138] The buggy address belongs to the physical page: [ 16.813186] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107752 [ 16.813239] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.813296] page_type: f5(slab) [ 16.813344] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 16.813394] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 16.813447] page dumped because: kasan: bad access detected [ 16.813482] [ 16.813516] Memory state around the buggy address: [ 16.813545] fff00000c7752100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.813597] fff00000c7752180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.813639] >fff00000c7752200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.813687] ^ [ 16.813727] fff00000c7752280: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 16.813768] fff00000c7752300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.813806] ==================================================================
[ 12.551124] ================================================================== [ 12.552679] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x4a8/0x520 [ 12.553299] Read of size 1 at addr ffff888102e2d9a8 by task kunit_try_catch/205 [ 12.554265] [ 12.554369] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.554415] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.554427] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.554448] Call Trace: [ 12.554461] <TASK> [ 12.554479] dump_stack_lvl+0x73/0xb0 [ 12.554510] print_report+0xd1/0x610 [ 12.554734] ? __virt_addr_valid+0x1db/0x2d0 [ 12.554792] ? kmalloc_uaf2+0x4a8/0x520 [ 12.554820] ? kasan_complete_mode_report_info+0x64/0x200 [ 12.554842] ? kmalloc_uaf2+0x4a8/0x520 [ 12.554913] kasan_report+0x141/0x180 [ 12.554936] ? kmalloc_uaf2+0x4a8/0x520 [ 12.554962] __asan_report_load1_noabort+0x18/0x20 [ 12.554986] kmalloc_uaf2+0x4a8/0x520 [ 12.555006] ? __pfx_kmalloc_uaf2+0x10/0x10 [ 12.555025] ? finish_task_switch.isra.0+0x153/0x700 [ 12.555049] ? __switch_to+0x47/0xf50 [ 12.555076] ? __schedule+0x10cc/0x2b60 [ 12.555099] ? __pfx_read_tsc+0x10/0x10 [ 12.555120] ? ktime_get_ts64+0x86/0x230 [ 12.555146] kunit_try_run_case+0x1a5/0x480 [ 12.555170] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.555192] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.555216] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.555239] ? __kthread_parkme+0x82/0x180 [ 12.555260] ? preempt_count_sub+0x50/0x80 [ 12.555283] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.555306] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.555329] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.555352] kthread+0x337/0x6f0 [ 12.555371] ? trace_preempt_on+0x20/0xc0 [ 12.555395] ? __pfx_kthread+0x10/0x10 [ 12.555415] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.555436] ? calculate_sigpending+0x7b/0xa0 [ 12.555460] ? __pfx_kthread+0x10/0x10 [ 12.555481] ret_from_fork+0x116/0x1d0 [ 12.555500] ? __pfx_kthread+0x10/0x10 [ 12.555520] ret_from_fork_asm+0x1a/0x30 [ 12.555560] </TASK> [ 12.555571] [ 12.569176] Allocated by task 205: [ 12.569531] kasan_save_stack+0x45/0x70 [ 12.569909] kasan_save_track+0x18/0x40 [ 12.570188] kasan_save_alloc_info+0x3b/0x50 [ 12.570339] __kasan_kmalloc+0xb7/0xc0 [ 12.570470] __kmalloc_cache_noprof+0x189/0x420 [ 12.570855] kmalloc_uaf2+0xc6/0x520 [ 12.571232] kunit_try_run_case+0x1a5/0x480 [ 12.571804] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.572458] kthread+0x337/0x6f0 [ 12.572859] ret_from_fork+0x116/0x1d0 [ 12.573252] ret_from_fork_asm+0x1a/0x30 [ 12.573599] [ 12.573842] Freed by task 205: [ 12.574253] kasan_save_stack+0x45/0x70 [ 12.574693] kasan_save_track+0x18/0x40 [ 12.574983] kasan_save_free_info+0x3f/0x60 [ 12.575229] __kasan_slab_free+0x56/0x70 [ 12.575655] kfree+0x222/0x3f0 [ 12.575965] kmalloc_uaf2+0x14c/0x520 [ 12.576356] kunit_try_run_case+0x1a5/0x480 [ 12.576794] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.577034] kthread+0x337/0x6f0 [ 12.577384] ret_from_fork+0x116/0x1d0 [ 12.577781] ret_from_fork_asm+0x1a/0x30 [ 12.578063] [ 12.578283] The buggy address belongs to the object at ffff888102e2d980 [ 12.578283] which belongs to the cache kmalloc-64 of size 64 [ 12.579225] The buggy address is located 40 bytes inside of [ 12.579225] freed 64-byte region [ffff888102e2d980, ffff888102e2d9c0) [ 12.580273] [ 12.580350] The buggy address belongs to the physical page: [ 12.580525] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102e2d [ 12.580771] flags: 0x200000000000000(node=0|zone=2) [ 12.580955] page_type: f5(slab) [ 12.581119] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.581419] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.581694] page dumped because: kasan: bad access detected [ 12.582090] [ 12.582185] Memory state around the buggy address: [ 12.582349] ffff888102e2d880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.582975] ffff888102e2d900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.583227] >ffff888102e2d980: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.583577] ^ [ 12.583804] ffff888102e2da00: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 12.584174] ffff888102e2da80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.584458] ==================================================================
[ 12.330702] ================================================================== [ 12.331145] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x4a8/0x520 [ 12.331609] Read of size 1 at addr ffff888102ae7628 by task kunit_try_catch/206 [ 12.331914] [ 12.332014] CPU: 0 UID: 0 PID: 206 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.332058] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.332069] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.332090] Call Trace: [ 12.332101] <TASK> [ 12.332116] dump_stack_lvl+0x73/0xb0 [ 12.332147] print_report+0xd1/0x610 [ 12.332169] ? __virt_addr_valid+0x1db/0x2d0 [ 12.332191] ? kmalloc_uaf2+0x4a8/0x520 [ 12.332210] ? kasan_complete_mode_report_info+0x64/0x200 [ 12.332232] ? kmalloc_uaf2+0x4a8/0x520 [ 12.332252] kasan_report+0x141/0x180 [ 12.332273] ? kmalloc_uaf2+0x4a8/0x520 [ 12.332298] __asan_report_load1_noabort+0x18/0x20 [ 12.332322] kmalloc_uaf2+0x4a8/0x520 [ 12.332341] ? __pfx_kmalloc_uaf2+0x10/0x10 [ 12.332361] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.332391] ? __pfx_kmalloc_uaf2+0x10/0x10 [ 12.332416] kunit_try_run_case+0x1a5/0x480 [ 12.332452] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.332474] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.332498] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.332521] ? __kthread_parkme+0x82/0x180 [ 12.332558] ? preempt_count_sub+0x50/0x80 [ 12.332583] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.332607] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.332630] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.332654] kthread+0x337/0x6f0 [ 12.332672] ? trace_preempt_on+0x20/0xc0 [ 12.332695] ? __pfx_kthread+0x10/0x10 [ 12.332715] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.332735] ? calculate_sigpending+0x7b/0xa0 [ 12.332759] ? __pfx_kthread+0x10/0x10 [ 12.332779] ret_from_fork+0x116/0x1d0 [ 12.332797] ? __pfx_kthread+0x10/0x10 [ 12.332817] ret_from_fork_asm+0x1a/0x30 [ 12.332849] </TASK> [ 12.332859] [ 12.342095] Allocated by task 206: [ 12.342408] kasan_save_stack+0x45/0x70 [ 12.342826] kasan_save_track+0x18/0x40 [ 12.343025] kasan_save_alloc_info+0x3b/0x50 [ 12.343230] __kasan_kmalloc+0xb7/0xc0 [ 12.343401] __kmalloc_cache_noprof+0x189/0x420 [ 12.343969] kmalloc_uaf2+0xc6/0x520 [ 12.344118] kunit_try_run_case+0x1a5/0x480 [ 12.344547] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.344897] kthread+0x337/0x6f0 [ 12.345180] ret_from_fork+0x116/0x1d0 [ 12.345350] ret_from_fork_asm+0x1a/0x30 [ 12.345800] [ 12.345899] Freed by task 206: [ 12.346019] kasan_save_stack+0x45/0x70 [ 12.346219] kasan_save_track+0x18/0x40 [ 12.346386] kasan_save_free_info+0x3f/0x60 [ 12.347018] __kasan_slab_free+0x56/0x70 [ 12.347301] kfree+0x222/0x3f0 [ 12.347505] kmalloc_uaf2+0x14c/0x520 [ 12.347729] kunit_try_run_case+0x1a5/0x480 [ 12.348109] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.348463] kthread+0x337/0x6f0 [ 12.348598] ret_from_fork+0x116/0x1d0 [ 12.349001] ret_from_fork_asm+0x1a/0x30 [ 12.349276] [ 12.349359] The buggy address belongs to the object at ffff888102ae7600 [ 12.349359] which belongs to the cache kmalloc-64 of size 64 [ 12.349855] The buggy address is located 40 bytes inside of [ 12.349855] freed 64-byte region [ffff888102ae7600, ffff888102ae7640) [ 12.350328] [ 12.350422] The buggy address belongs to the physical page: [ 12.350644] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ae7 [ 12.350988] flags: 0x200000000000000(node=0|zone=2) [ 12.351195] page_type: f5(slab) [ 12.351365] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.352239] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.352612] page dumped because: kasan: bad access detected [ 12.352964] [ 12.353058] Memory state around the buggy address: [ 12.353510] ffff888102ae7500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.354091] ffff888102ae7580: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.354378] >ffff888102ae7600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.354887] ^ [ 12.355105] ffff888102ae7680: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 12.355749] ffff888102ae7700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.356103] ==================================================================
[ 12.501993] ================================================================== [ 12.502583] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x4a8/0x520 [ 12.503131] Read of size 1 at addr ffff8881034125a8 by task kunit_try_catch/205 [ 12.503377] [ 12.503504] CPU: 1 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.503553] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.503564] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.503586] Call Trace: [ 12.503599] <TASK> [ 12.503618] dump_stack_lvl+0x73/0xb0 [ 12.503649] print_report+0xd1/0x610 [ 12.503672] ? __virt_addr_valid+0x1db/0x2d0 [ 12.503696] ? kmalloc_uaf2+0x4a8/0x520 [ 12.503715] ? kasan_complete_mode_report_info+0x64/0x200 [ 12.503738] ? kmalloc_uaf2+0x4a8/0x520 [ 12.503757] kasan_report+0x141/0x180 [ 12.503779] ? kmalloc_uaf2+0x4a8/0x520 [ 12.503803] __asan_report_load1_noabort+0x18/0x20 [ 12.503827] kmalloc_uaf2+0x4a8/0x520 [ 12.503847] ? __pfx_kmalloc_uaf2+0x10/0x10 [ 12.503866] ? finish_task_switch.isra.0+0x153/0x700 [ 12.503889] ? __switch_to+0x47/0xf50 [ 12.503914] ? __schedule+0x10cc/0x2b60 [ 12.503937] ? __pfx_read_tsc+0x10/0x10 [ 12.503957] ? ktime_get_ts64+0x86/0x230 [ 12.503981] kunit_try_run_case+0x1a5/0x480 [ 12.504006] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.504083] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.504109] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.504132] ? __kthread_parkme+0x82/0x180 [ 12.504153] ? preempt_count_sub+0x50/0x80 [ 12.504176] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.504200] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.504223] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.504248] kthread+0x337/0x6f0 [ 12.504266] ? trace_preempt_on+0x20/0xc0 [ 12.504289] ? __pfx_kthread+0x10/0x10 [ 12.504308] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.504329] ? calculate_sigpending+0x7b/0xa0 [ 12.504353] ? __pfx_kthread+0x10/0x10 [ 12.504373] ret_from_fork+0x116/0x1d0 [ 12.504391] ? __pfx_kthread+0x10/0x10 [ 12.504411] ret_from_fork_asm+0x1a/0x30 [ 12.504442] </TASK> [ 12.504451] [ 12.511993] Allocated by task 205: [ 12.512469] kasan_save_stack+0x45/0x70 [ 12.512748] kasan_save_track+0x18/0x40 [ 12.513126] kasan_save_alloc_info+0x3b/0x50 [ 12.513315] __kasan_kmalloc+0xb7/0xc0 [ 12.513500] __kmalloc_cache_noprof+0x189/0x420 [ 12.513728] kmalloc_uaf2+0xc6/0x520 [ 12.513909] kunit_try_run_case+0x1a5/0x480 [ 12.514168] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.514382] kthread+0x337/0x6f0 [ 12.514618] ret_from_fork+0x116/0x1d0 [ 12.514751] ret_from_fork_asm+0x1a/0x30 [ 12.514891] [ 12.514978] Freed by task 205: [ 12.515305] kasan_save_stack+0x45/0x70 [ 12.515499] kasan_save_track+0x18/0x40 [ 12.515732] kasan_save_free_info+0x3f/0x60 [ 12.515943] __kasan_slab_free+0x56/0x70 [ 12.516177] kfree+0x222/0x3f0 [ 12.516346] kmalloc_uaf2+0x14c/0x520 [ 12.516525] kunit_try_run_case+0x1a5/0x480 [ 12.516715] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.516922] kthread+0x337/0x6f0 [ 12.517228] ret_from_fork+0x116/0x1d0 [ 12.517374] ret_from_fork_asm+0x1a/0x30 [ 12.517646] [ 12.517823] The buggy address belongs to the object at ffff888103412580 [ 12.517823] which belongs to the cache kmalloc-64 of size 64 [ 12.518331] The buggy address is located 40 bytes inside of [ 12.518331] freed 64-byte region [ffff888103412580, ffff8881034125c0) [ 12.518784] [ 12.518909] The buggy address belongs to the physical page: [ 12.519183] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103412 [ 12.519722] flags: 0x200000000000000(node=0|zone=2) [ 12.519988] page_type: f5(slab) [ 12.520183] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.520563] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.520870] page dumped because: kasan: bad access detected [ 12.521111] [ 12.521182] Memory state around the buggy address: [ 12.521338] ffff888103412480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.521562] ffff888103412500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.521777] >ffff888103412580: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.521985] ^ [ 12.522264] ffff888103412600: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 12.522713] ffff888103412680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.523032] ==================================================================