Date
May 29, 2025, 7:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.117451] ================================================================== [ 22.117587] BUG: KASAN: slab-use-after-free in ksize_uaf+0x544/0x5f8 [ 22.117713] Read of size 1 at addr fff00000c7883078 by task kunit_try_catch/196 [ 22.117839] [ 22.117925] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 22.118139] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.118211] Hardware name: linux,dummy-virt (DT) [ 22.118291] Call trace: [ 22.118346] show_stack+0x20/0x38 (C) [ 22.119382] dump_stack_lvl+0x8c/0xd0 [ 22.119598] print_report+0x118/0x608 [ 22.119727] kasan_report+0xdc/0x128 [ 22.119843] __asan_report_load1_noabort+0x20/0x30 [ 22.120162] ksize_uaf+0x544/0x5f8 [ 22.120603] kunit_try_run_case+0x170/0x3f0 [ 22.120893] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.121161] kthread+0x328/0x630 [ 22.121486] ret_from_fork+0x10/0x20 [ 22.121917] [ 22.121987] Allocated by task 196: [ 22.122194] kasan_save_stack+0x3c/0x68 [ 22.122441] kasan_save_track+0x20/0x40 [ 22.122665] kasan_save_alloc_info+0x40/0x58 [ 22.122867] __kasan_kmalloc+0xd4/0xd8 [ 22.123355] __kmalloc_cache_noprof+0x15c/0x3c0 [ 22.123488] ksize_uaf+0xb8/0x5f8 [ 22.123608] kunit_try_run_case+0x170/0x3f0 [ 22.123718] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.123881] kthread+0x328/0x630 [ 22.123998] ret_from_fork+0x10/0x20 [ 22.124131] [ 22.124227] Freed by task 196: [ 22.124302] kasan_save_stack+0x3c/0x68 [ 22.124412] kasan_save_track+0x20/0x40 [ 22.124509] kasan_save_free_info+0x4c/0x78 [ 22.124627] __kasan_slab_free+0x6c/0x98 [ 22.124774] kfree+0x214/0x3c8 [ 22.124863] ksize_uaf+0x11c/0x5f8 [ 22.124951] kunit_try_run_case+0x170/0x3f0 [ 22.125052] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.125166] kthread+0x328/0x630 [ 22.125250] ret_from_fork+0x10/0x20 [ 22.125350] [ 22.125426] The buggy address belongs to the object at fff00000c7883000 [ 22.125426] which belongs to the cache kmalloc-128 of size 128 [ 22.125573] The buggy address is located 120 bytes inside of [ 22.125573] freed 128-byte region [fff00000c7883000, fff00000c7883080) [ 22.126171] [ 22.126252] The buggy address belongs to the physical page: [ 22.126336] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107883 [ 22.126486] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.126617] page_type: f5(slab) [ 22.126721] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.126867] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.126971] page dumped because: kasan: bad access detected [ 22.127308] [ 22.127453] Memory state around the buggy address: [ 22.127561] fff00000c7882f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.127719] fff00000c7882f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.127845] >fff00000c7883000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.128040] ^ [ 22.128164] fff00000c7883080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.128268] fff00000c7883100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.128537] ================================================================== [ 22.089802] ================================================================== [ 22.090422] BUG: KASAN: slab-use-after-free in ksize_uaf+0x168/0x5f8 [ 22.090755] Read of size 1 at addr fff00000c7883000 by task kunit_try_catch/196 [ 22.090918] [ 22.091028] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 22.091253] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.091321] Hardware name: linux,dummy-virt (DT) [ 22.091407] Call trace: [ 22.091459] show_stack+0x20/0x38 (C) [ 22.091560] dump_stack_lvl+0x8c/0xd0 [ 22.091662] print_report+0x118/0x608 [ 22.091788] kasan_report+0xdc/0x128 [ 22.091955] __kasan_check_byte+0x54/0x70 [ 22.092120] ksize+0x30/0x88 [ 22.092271] ksize_uaf+0x168/0x5f8 [ 22.092447] kunit_try_run_case+0x170/0x3f0 [ 22.092564] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.092753] kthread+0x328/0x630 [ 22.092979] ret_from_fork+0x10/0x20 [ 22.093290] [ 22.093335] Allocated by task 196: [ 22.093416] kasan_save_stack+0x3c/0x68 [ 22.093512] kasan_save_track+0x20/0x40 [ 22.093639] kasan_save_alloc_info+0x40/0x58 [ 22.093909] __kasan_kmalloc+0xd4/0xd8 [ 22.094168] __kmalloc_cache_noprof+0x15c/0x3c0 [ 22.094318] ksize_uaf+0xb8/0x5f8 [ 22.094450] kunit_try_run_case+0x170/0x3f0 [ 22.094592] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.094741] kthread+0x328/0x630 [ 22.094844] ret_from_fork+0x10/0x20 [ 22.094933] [ 22.095001] Freed by task 196: [ 22.095103] kasan_save_stack+0x3c/0x68 [ 22.095239] kasan_save_track+0x20/0x40 [ 22.095367] kasan_save_free_info+0x4c/0x78 [ 22.095463] __kasan_slab_free+0x6c/0x98 [ 22.095546] kfree+0x214/0x3c8 [ 22.095786] ksize_uaf+0x11c/0x5f8 [ 22.096009] kunit_try_run_case+0x170/0x3f0 [ 22.096161] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.096268] kthread+0x328/0x630 [ 22.096351] ret_from_fork+0x10/0x20 [ 22.096451] [ 22.096751] The buggy address belongs to the object at fff00000c7883000 [ 22.096751] which belongs to the cache kmalloc-128 of size 128 [ 22.096900] The buggy address is located 0 bytes inside of [ 22.096900] freed 128-byte region [fff00000c7883000, fff00000c7883080) [ 22.097064] [ 22.097130] The buggy address belongs to the physical page: [ 22.097326] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107883 [ 22.097488] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.097620] page_type: f5(slab) [ 22.097720] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.097847] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.097955] page dumped because: kasan: bad access detected [ 22.098102] [ 22.098153] Memory state around the buggy address: [ 22.098238] fff00000c7882f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.098379] fff00000c7882f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.098493] >fff00000c7883000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.098696] ^ [ 22.098952] fff00000c7883080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.099048] fff00000c7883100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.099134] ================================================================== [ 22.101072] ================================================================== [ 22.101212] BUG: KASAN: slab-use-after-free in ksize_uaf+0x598/0x5f8 [ 22.101356] Read of size 1 at addr fff00000c7883000 by task kunit_try_catch/196 [ 22.101477] [ 22.102388] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 22.102844] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.102955] Hardware name: linux,dummy-virt (DT) [ 22.103301] Call trace: [ 22.103596] show_stack+0x20/0x38 (C) [ 22.104314] dump_stack_lvl+0x8c/0xd0 [ 22.104913] print_report+0x118/0x608 [ 22.105307] kasan_report+0xdc/0x128 [ 22.106151] __asan_report_load1_noabort+0x20/0x30 [ 22.106339] ksize_uaf+0x598/0x5f8 [ 22.107710] kunit_try_run_case+0x170/0x3f0 [ 22.108076] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.108208] kthread+0x328/0x630 [ 22.108309] ret_from_fork+0x10/0x20 [ 22.108446] [ 22.108494] Allocated by task 196: [ 22.108566] kasan_save_stack+0x3c/0x68 [ 22.108673] kasan_save_track+0x20/0x40 [ 22.110442] kasan_save_alloc_info+0x40/0x58 [ 22.110738] __kasan_kmalloc+0xd4/0xd8 [ 22.110825] __kmalloc_cache_noprof+0x15c/0x3c0 [ 22.111179] ksize_uaf+0xb8/0x5f8 [ 22.111356] kunit_try_run_case+0x170/0x3f0 [ 22.111521] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.111647] kthread+0x328/0x630 [ 22.111757] ret_from_fork+0x10/0x20 [ 22.111852] [ 22.111907] Freed by task 196: [ 22.111972] kasan_save_stack+0x3c/0x68 [ 22.112082] kasan_save_track+0x20/0x40 [ 22.112211] kasan_save_free_info+0x4c/0x78 [ 22.112339] __kasan_slab_free+0x6c/0x98 [ 22.112486] kfree+0x214/0x3c8 [ 22.112568] ksize_uaf+0x11c/0x5f8 [ 22.112657] kunit_try_run_case+0x170/0x3f0 [ 22.112751] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.112861] kthread+0x328/0x630 [ 22.112938] ret_from_fork+0x10/0x20 [ 22.113037] [ 22.113113] The buggy address belongs to the object at fff00000c7883000 [ 22.113113] which belongs to the cache kmalloc-128 of size 128 [ 22.113300] The buggy address is located 0 bytes inside of [ 22.113300] freed 128-byte region [fff00000c7883000, fff00000c7883080) [ 22.113463] [ 22.113515] The buggy address belongs to the physical page: [ 22.113617] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107883 [ 22.113778] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.113922] page_type: f5(slab) [ 22.114012] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.114143] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.114252] page dumped because: kasan: bad access detected [ 22.114358] [ 22.114449] Memory state around the buggy address: [ 22.114555] fff00000c7882f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.114688] fff00000c7882f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.114828] >fff00000c7883000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.114969] ^ [ 22.115114] fff00000c7883080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.115223] fff00000c7883100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.115303] ==================================================================
[ 11.357051] ================================================================== [ 11.357406] BUG: KASAN: slab-use-after-free in ksize_uaf+0x5fe/0x6c0 [ 11.357680] Read of size 1 at addr ffff888102f96200 by task kunit_try_catch/213 [ 11.358065] [ 11.358205] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 11.358252] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.358263] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.358284] Call Trace: [ 11.358295] <TASK> [ 11.358309] dump_stack_lvl+0x73/0xb0 [ 11.358354] print_report+0xd1/0x650 [ 11.358376] ? __virt_addr_valid+0x1db/0x2d0 [ 11.358398] ? ksize_uaf+0x5fe/0x6c0 [ 11.358418] ? kasan_complete_mode_report_info+0x64/0x200 [ 11.358440] ? ksize_uaf+0x5fe/0x6c0 [ 11.358461] kasan_report+0x141/0x180 [ 11.358484] ? ksize_uaf+0x5fe/0x6c0 [ 11.358527] __asan_report_load1_noabort+0x18/0x20 [ 11.358556] ksize_uaf+0x5fe/0x6c0 [ 11.358577] ? __pfx_ksize_uaf+0x10/0x10 [ 11.358600] ? __schedule+0x10cc/0x2b60 [ 11.358634] ? __pfx_read_tsc+0x10/0x10 [ 11.358654] ? ktime_get_ts64+0x86/0x230 [ 11.358678] kunit_try_run_case+0x1a5/0x480 [ 11.358700] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.358719] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.358956] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.358986] ? __kthread_parkme+0x82/0x180 [ 11.359007] ? preempt_count_sub+0x50/0x80 [ 11.359031] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.359073] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.359098] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.359122] kthread+0x337/0x6f0 [ 11.359141] ? trace_preempt_on+0x20/0xc0 [ 11.359164] ? __pfx_kthread+0x10/0x10 [ 11.359184] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.359207] ? calculate_sigpending+0x7b/0xa0 [ 11.359230] ? __pfx_kthread+0x10/0x10 [ 11.359252] ret_from_fork+0x116/0x1d0 [ 11.359270] ? __pfx_kthread+0x10/0x10 [ 11.359290] ret_from_fork_asm+0x1a/0x30 [ 11.359319] </TASK> [ 11.359330] [ 11.366689] Allocated by task 213: [ 11.367087] kasan_save_stack+0x45/0x70 [ 11.367299] kasan_save_track+0x18/0x40 [ 11.367487] kasan_save_alloc_info+0x3b/0x50 [ 11.367682] __kasan_kmalloc+0xb7/0xc0 [ 11.367853] __kmalloc_cache_noprof+0x189/0x420 [ 11.368057] ksize_uaf+0xaa/0x6c0 [ 11.368182] kunit_try_run_case+0x1a5/0x480 [ 11.368348] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.368605] kthread+0x337/0x6f0 [ 11.368947] ret_from_fork+0x116/0x1d0 [ 11.369087] ret_from_fork_asm+0x1a/0x30 [ 11.369230] [ 11.369304] Freed by task 213: [ 11.369418] kasan_save_stack+0x45/0x70 [ 11.369569] kasan_save_track+0x18/0x40 [ 11.369872] kasan_save_free_info+0x3f/0x60 [ 11.370090] __kasan_slab_free+0x56/0x70 [ 11.370290] kfree+0x222/0x3f0 [ 11.370474] ksize_uaf+0x12c/0x6c0 [ 11.370692] kunit_try_run_case+0x1a5/0x480 [ 11.371182] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.371479] kthread+0x337/0x6f0 [ 11.371677] ret_from_fork+0x116/0x1d0 [ 11.371940] ret_from_fork_asm+0x1a/0x30 [ 11.372090] [ 11.372165] The buggy address belongs to the object at ffff888102f96200 [ 11.372165] which belongs to the cache kmalloc-128 of size 128 [ 11.372809] The buggy address is located 0 bytes inside of [ 11.372809] freed 128-byte region [ffff888102f96200, ffff888102f96280) [ 11.373286] [ 11.373363] The buggy address belongs to the physical page: [ 11.373629] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f96 [ 11.374080] flags: 0x200000000000000(node=0|zone=2) [ 11.374328] page_type: f5(slab) [ 11.374511] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.375077] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.375383] page dumped because: kasan: bad access detected [ 11.375673] [ 11.375865] Memory state around the buggy address: [ 11.376087] ffff888102f96100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.376377] ffff888102f96180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.376671] >ffff888102f96200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.377087] ^ [ 11.377267] ffff888102f96280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.377588] ffff888102f96300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.377997] ================================================================== [ 11.329548] ================================================================== [ 11.329981] BUG: KASAN: slab-use-after-free in ksize_uaf+0x19d/0x6c0 [ 11.330200] Read of size 1 at addr ffff888102f96200 by task kunit_try_catch/213 [ 11.330424] [ 11.330512] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 11.330564] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.330576] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.330597] Call Trace: [ 11.330607] <TASK> [ 11.330634] dump_stack_lvl+0x73/0xb0 [ 11.330659] print_report+0xd1/0x650 [ 11.330681] ? __virt_addr_valid+0x1db/0x2d0 [ 11.330702] ? ksize_uaf+0x19d/0x6c0 [ 11.330723] ? kasan_complete_mode_report_info+0x64/0x200 [ 11.330745] ? ksize_uaf+0x19d/0x6c0 [ 11.330765] kasan_report+0x141/0x180 [ 11.330787] ? ksize_uaf+0x19d/0x6c0 [ 11.330811] ? ksize_uaf+0x19d/0x6c0 [ 11.330832] __kasan_check_byte+0x3d/0x50 [ 11.330853] ksize+0x20/0x60 [ 11.330874] ksize_uaf+0x19d/0x6c0 [ 11.330895] ? __pfx_ksize_uaf+0x10/0x10 [ 11.330916] ? __schedule+0x10cc/0x2b60 [ 11.330938] ? __pfx_read_tsc+0x10/0x10 [ 11.330958] ? ktime_get_ts64+0x86/0x230 [ 11.330982] kunit_try_run_case+0x1a5/0x480 [ 11.331002] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.331021] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.331044] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.331068] ? __kthread_parkme+0x82/0x180 [ 11.331088] ? preempt_count_sub+0x50/0x80 [ 11.331111] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.331131] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.331154] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.331178] kthread+0x337/0x6f0 [ 11.331196] ? trace_preempt_on+0x20/0xc0 [ 11.331218] ? __pfx_kthread+0x10/0x10 [ 11.331238] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.331260] ? calculate_sigpending+0x7b/0xa0 [ 11.331283] ? __pfx_kthread+0x10/0x10 [ 11.331304] ret_from_fork+0x116/0x1d0 [ 11.331322] ? __pfx_kthread+0x10/0x10 [ 11.331342] ret_from_fork_asm+0x1a/0x30 [ 11.331371] </TASK> [ 11.331380] [ 11.343639] Allocated by task 213: [ 11.344116] kasan_save_stack+0x45/0x70 [ 11.344337] kasan_save_track+0x18/0x40 [ 11.344735] kasan_save_alloc_info+0x3b/0x50 [ 11.345116] __kasan_kmalloc+0xb7/0xc0 [ 11.345315] __kmalloc_cache_noprof+0x189/0x420 [ 11.345534] ksize_uaf+0xaa/0x6c0 [ 11.345721] kunit_try_run_case+0x1a5/0x480 [ 11.346194] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.346522] kthread+0x337/0x6f0 [ 11.346882] ret_from_fork+0x116/0x1d0 [ 11.347218] ret_from_fork_asm+0x1a/0x30 [ 11.347437] [ 11.347537] Freed by task 213: [ 11.347710] kasan_save_stack+0x45/0x70 [ 11.347994] kasan_save_track+0x18/0x40 [ 11.348147] kasan_save_free_info+0x3f/0x60 [ 11.348433] __kasan_slab_free+0x56/0x70 [ 11.348655] kfree+0x222/0x3f0 [ 11.348828] ksize_uaf+0x12c/0x6c0 [ 11.349110] kunit_try_run_case+0x1a5/0x480 [ 11.349269] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.349518] kthread+0x337/0x6f0 [ 11.349724] ret_from_fork+0x116/0x1d0 [ 11.350018] ret_from_fork_asm+0x1a/0x30 [ 11.350231] [ 11.350319] The buggy address belongs to the object at ffff888102f96200 [ 11.350319] which belongs to the cache kmalloc-128 of size 128 [ 11.351075] The buggy address is located 0 bytes inside of [ 11.351075] freed 128-byte region [ffff888102f96200, ffff888102f96280) [ 11.351538] [ 11.351679] The buggy address belongs to the physical page: [ 11.352006] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f96 [ 11.352360] flags: 0x200000000000000(node=0|zone=2) [ 11.352630] page_type: f5(slab) [ 11.352861] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.353211] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.353509] page dumped because: kasan: bad access detected [ 11.353716] [ 11.353918] Memory state around the buggy address: [ 11.354148] ffff888102f96100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.354436] ffff888102f96180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.354999] >ffff888102f96200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.355259] ^ [ 11.355447] ffff888102f96280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.355861] ffff888102f96300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.356163] ================================================================== [ 11.378438] ================================================================== [ 11.378943] BUG: KASAN: slab-use-after-free in ksize_uaf+0x5e4/0x6c0 [ 11.379288] Read of size 1 at addr ffff888102f96278 by task kunit_try_catch/213 [ 11.379548] [ 11.379668] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 11.379711] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.379722] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.379859] Call Trace: [ 11.379875] <TASK> [ 11.379889] dump_stack_lvl+0x73/0xb0 [ 11.379915] print_report+0xd1/0x650 [ 11.379936] ? __virt_addr_valid+0x1db/0x2d0 [ 11.379959] ? ksize_uaf+0x5e4/0x6c0 [ 11.379979] ? kasan_complete_mode_report_info+0x64/0x200 [ 11.380002] ? ksize_uaf+0x5e4/0x6c0 [ 11.380023] kasan_report+0x141/0x180 [ 11.380045] ? ksize_uaf+0x5e4/0x6c0 [ 11.380092] __asan_report_load1_noabort+0x18/0x20 [ 11.380114] ksize_uaf+0x5e4/0x6c0 [ 11.380135] ? __pfx_ksize_uaf+0x10/0x10 [ 11.380158] ? __schedule+0x10cc/0x2b60 [ 11.380181] ? __pfx_read_tsc+0x10/0x10 [ 11.380202] ? ktime_get_ts64+0x86/0x230 [ 11.380244] kunit_try_run_case+0x1a5/0x480 [ 11.380265] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.380285] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.380310] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.380335] ? __kthread_parkme+0x82/0x180 [ 11.380355] ? preempt_count_sub+0x50/0x80 [ 11.380379] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.380400] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.380424] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.380448] kthread+0x337/0x6f0 [ 11.380467] ? trace_preempt_on+0x20/0xc0 [ 11.380489] ? __pfx_kthread+0x10/0x10 [ 11.380511] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.380534] ? calculate_sigpending+0x7b/0xa0 [ 11.380556] ? __pfx_kthread+0x10/0x10 [ 11.380597] ret_from_fork+0x116/0x1d0 [ 11.380624] ? __pfx_kthread+0x10/0x10 [ 11.380645] ret_from_fork_asm+0x1a/0x30 [ 11.380674] </TASK> [ 11.380684] [ 11.388450] Allocated by task 213: [ 11.388635] kasan_save_stack+0x45/0x70 [ 11.388940] kasan_save_track+0x18/0x40 [ 11.389167] kasan_save_alloc_info+0x3b/0x50 [ 11.389380] __kasan_kmalloc+0xb7/0xc0 [ 11.389591] __kmalloc_cache_noprof+0x189/0x420 [ 11.389843] ksize_uaf+0xaa/0x6c0 [ 11.390049] kunit_try_run_case+0x1a5/0x480 [ 11.390259] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.390517] kthread+0x337/0x6f0 [ 11.390677] ret_from_fork+0x116/0x1d0 [ 11.391244] ret_from_fork_asm+0x1a/0x30 [ 11.391446] [ 11.391538] Freed by task 213: [ 11.392304] kasan_save_stack+0x45/0x70 [ 11.392497] kasan_save_track+0x18/0x40 [ 11.392674] kasan_save_free_info+0x3f/0x60 [ 11.393119] __kasan_slab_free+0x56/0x70 [ 11.393320] kfree+0x222/0x3f0 [ 11.393473] ksize_uaf+0x12c/0x6c0 [ 11.393650] kunit_try_run_case+0x1a5/0x480 [ 11.394291] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.395086] kthread+0x337/0x6f0 [ 11.395334] ret_from_fork+0x116/0x1d0 [ 11.395668] ret_from_fork_asm+0x1a/0x30 [ 11.396172] [ 11.396444] The buggy address belongs to the object at ffff888102f96200 [ 11.396444] which belongs to the cache kmalloc-128 of size 128 [ 11.397235] The buggy address is located 120 bytes inside of [ 11.397235] freed 128-byte region [ffff888102f96200, ffff888102f96280) [ 11.398071] [ 11.398313] The buggy address belongs to the physical page: [ 11.398704] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f96 [ 11.399240] flags: 0x200000000000000(node=0|zone=2) [ 11.399460] page_type: f5(slab) [ 11.399630] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.400506] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.401131] page dumped because: kasan: bad access detected [ 11.401656] [ 11.401937] Memory state around the buggy address: [ 11.402294] ffff888102f96100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.402620] ffff888102f96180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.403432] >ffff888102f96200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.404202] ^ [ 11.404507] ffff888102f96280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.405174] ffff888102f96300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.405634] ==================================================================