Hay
Date
July 23, 2025, 2:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   15.655916] ==================================================================
[   15.655979] BUG: KASAN: slab-use-after-free in ksize_uaf+0x168/0x5f8
[   15.656465] Read of size 1 at addr fff00000c3f39a00 by task kunit_try_catch/196
[   15.656628] 
[   15.656662] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   15.656992] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.657064] Hardware name: linux,dummy-virt (DT)
[   15.657101] Call trace:
[   15.657145]  show_stack+0x20/0x38 (C)
[   15.657292]  dump_stack_lvl+0x8c/0xd0
[   15.657345]  print_report+0x118/0x5d0
[   15.657433]  kasan_report+0xdc/0x128
[   15.657498]  __kasan_check_byte+0x54/0x70
[   15.657985]  ksize+0x30/0x88
[   15.658101]  ksize_uaf+0x168/0x5f8
[   15.658190]  kunit_try_run_case+0x170/0x3f0
[   15.658245]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.658360]  kthread+0x328/0x630
[   15.658428]  ret_from_fork+0x10/0x20
[   15.658489] 
[   15.658507] Allocated by task 196:
[   15.658677]  kasan_save_stack+0x3c/0x68
[   15.659015]  kasan_save_track+0x20/0x40
[   15.659107]  kasan_save_alloc_info+0x40/0x58
[   15.659222]  __kasan_kmalloc+0xd4/0xd8
[   15.659265]  __kmalloc_cache_noprof+0x16c/0x3c0
[   15.659304]  ksize_uaf+0xb8/0x5f8
[   15.659475]  kunit_try_run_case+0x170/0x3f0
[   15.659648]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.659722]  kthread+0x328/0x630
[   15.659889]  ret_from_fork+0x10/0x20
[   15.659987] 
[   15.660098] Freed by task 196:
[   15.660176]  kasan_save_stack+0x3c/0x68
[   15.660266]  kasan_save_track+0x20/0x40
[   15.660307]  kasan_save_free_info+0x4c/0x78
[   15.660581]  __kasan_slab_free+0x6c/0x98
[   15.660843]  kfree+0x214/0x3c8
[   15.661028]  ksize_uaf+0x11c/0x5f8
[   15.661127]  kunit_try_run_case+0x170/0x3f0
[   15.661224]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.661271]  kthread+0x328/0x630
[   15.661304]  ret_from_fork+0x10/0x20
[   15.661341] 
[   15.661361] The buggy address belongs to the object at fff00000c3f39a00
[   15.661361]  which belongs to the cache kmalloc-128 of size 128
[   15.661447] The buggy address is located 0 bytes inside of
[   15.661447]  freed 128-byte region [fff00000c3f39a00, fff00000c3f39a80)
[   15.661541] 
[   15.661570] The buggy address belongs to the physical page:
[   15.661617] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f39
[   15.661672] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.661722] page_type: f5(slab)
[   15.661771] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.661822] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.661884] page dumped because: kasan: bad access detected
[   15.661940] 
[   15.661959] Memory state around the buggy address:
[   15.661991]  fff00000c3f39900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.662036]  fff00000c3f39980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.662091] >fff00000c3f39a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.662131]                    ^
[   15.662157]  fff00000c3f39a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.662200]  fff00000c3f39b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.662242] ==================================================================
[   15.677460] ==================================================================
[   15.677519] BUG: KASAN: slab-use-after-free in ksize_uaf+0x544/0x5f8
[   15.677719] Read of size 1 at addr fff00000c3f39a78 by task kunit_try_catch/196
[   15.677774] 
[   15.677805] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   15.678042] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.678082] Hardware name: linux,dummy-virt (DT)
[   15.678134] Call trace:
[   15.678157]  show_stack+0x20/0x38 (C)
[   15.678206]  dump_stack_lvl+0x8c/0xd0
[   15.678253]  print_report+0x118/0x5d0
[   15.678297]  kasan_report+0xdc/0x128
[   15.678342]  __asan_report_load1_noabort+0x20/0x30
[   15.678393]  ksize_uaf+0x544/0x5f8
[   15.678443]  kunit_try_run_case+0x170/0x3f0
[   15.678491]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.678782]  kthread+0x328/0x630
[   15.678887]  ret_from_fork+0x10/0x20
[   15.679487] 
[   15.679716] Allocated by task 196:
[   15.679783]  kasan_save_stack+0x3c/0x68
[   15.679915]  kasan_save_track+0x20/0x40
[   15.680015]  kasan_save_alloc_info+0x40/0x58
[   15.680092]  __kasan_kmalloc+0xd4/0xd8
[   15.680239]  __kmalloc_cache_noprof+0x16c/0x3c0
[   15.680324]  ksize_uaf+0xb8/0x5f8
[   15.680525]  kunit_try_run_case+0x170/0x3f0
[   15.680929]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.681035]  kthread+0x328/0x630
[   15.681367]  ret_from_fork+0x10/0x20
[   15.681562] 
[   15.681719] Freed by task 196:
[   15.681909]  kasan_save_stack+0x3c/0x68
[   15.681984]  kasan_save_track+0x20/0x40
[   15.682023]  kasan_save_free_info+0x4c/0x78
[   15.682276]  __kasan_slab_free+0x6c/0x98
[   15.682464]  kfree+0x214/0x3c8
[   15.682642]  ksize_uaf+0x11c/0x5f8
[   15.682738]  kunit_try_run_case+0x170/0x3f0
[   15.682860]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.682946]  kthread+0x328/0x630
[   15.683359]  ret_from_fork+0x10/0x20
[   15.683429] 
[   15.683506] The buggy address belongs to the object at fff00000c3f39a00
[   15.683506]  which belongs to the cache kmalloc-128 of size 128
[   15.683610] The buggy address is located 120 bytes inside of
[   15.683610]  freed 128-byte region [fff00000c3f39a00, fff00000c3f39a80)
[   15.683750] 
[   15.683876] The buggy address belongs to the physical page:
[   15.684009] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f39
[   15.684284] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.684512] page_type: f5(slab)
[   15.684597] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.684779] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.684865] page dumped because: kasan: bad access detected
[   15.684972] 
[   15.684994] Memory state around the buggy address:
[   15.685058]  fff00000c3f39900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.685122]  fff00000c3f39980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.685429] >fff00000c3f39a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.685704]                                                                 ^
[   15.685910]  fff00000c3f39a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.686001]  fff00000c3f39b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.686219] ==================================================================
[   15.665017] ==================================================================
[   15.665143] BUG: KASAN: slab-use-after-free in ksize_uaf+0x598/0x5f8
[   15.665195] Read of size 1 at addr fff00000c3f39a00 by task kunit_try_catch/196
[   15.665249] 
[   15.665278] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   15.665361] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.666035] Hardware name: linux,dummy-virt (DT)
[   15.666287] Call trace:
[   15.666324]  show_stack+0x20/0x38 (C)
[   15.666567]  dump_stack_lvl+0x8c/0xd0
[   15.666652]  print_report+0x118/0x5d0
[   15.666698]  kasan_report+0xdc/0x128
[   15.666940]  __asan_report_load1_noabort+0x20/0x30
[   15.667128]  ksize_uaf+0x598/0x5f8
[   15.667181]  kunit_try_run_case+0x170/0x3f0
[   15.667541]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.667806]  kthread+0x328/0x630
[   15.668018]  ret_from_fork+0x10/0x20
[   15.668153] 
[   15.668246] Allocated by task 196:
[   15.668277]  kasan_save_stack+0x3c/0x68
[   15.668522]  kasan_save_track+0x20/0x40
[   15.668631]  kasan_save_alloc_info+0x40/0x58
[   15.668844]  __kasan_kmalloc+0xd4/0xd8
[   15.668937]  __kmalloc_cache_noprof+0x16c/0x3c0
[   15.669230]  ksize_uaf+0xb8/0x5f8
[   15.669316]  kunit_try_run_case+0x170/0x3f0
[   15.669360]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.669918]  kthread+0x328/0x630
[   15.670011]  ret_from_fork+0x10/0x20
[   15.670372] 
[   15.670529] Freed by task 196:
[   15.670562]  kasan_save_stack+0x3c/0x68
[   15.670666]  kasan_save_track+0x20/0x40
[   15.670705]  kasan_save_free_info+0x4c/0x78
[   15.670747]  __kasan_slab_free+0x6c/0x98
[   15.670784]  kfree+0x214/0x3c8
[   15.671021]  ksize_uaf+0x11c/0x5f8
[   15.671235]  kunit_try_run_case+0x170/0x3f0
[   15.671593]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.671976]  kthread+0x328/0x630
[   15.672196]  ret_from_fork+0x10/0x20
[   15.672445] 
[   15.672512] The buggy address belongs to the object at fff00000c3f39a00
[   15.672512]  which belongs to the cache kmalloc-128 of size 128
[   15.672847] The buggy address is located 0 bytes inside of
[   15.672847]  freed 128-byte region [fff00000c3f39a00, fff00000c3f39a80)
[   15.672939] 
[   15.672959] The buggy address belongs to the physical page:
[   15.673400] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f39
[   15.673827] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.674150] page_type: f5(slab)
[   15.674371] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.674500] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.674647] page dumped because: kasan: bad access detected
[   15.675017] 
[   15.675095] Memory state around the buggy address:
[   15.675213]  fff00000c3f39900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.675271]  fff00000c3f39980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.675471] >fff00000c3f39a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.675671]                    ^
[   15.675745]  fff00000c3f39a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.675801]  fff00000c3f39b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.676103] ==================================================================

[   13.118333] ==================================================================
[   13.118702] BUG: KASAN: slab-use-after-free in ksize_uaf+0x5e4/0x6c0
[   13.119541] Read of size 1 at addr ffff888102af7a78 by task kunit_try_catch/213
[   13.119882] 
[   13.119973] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   13.120015] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.120027] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.120047] Call Trace:
[   13.120060]  <TASK>
[   13.120074]  dump_stack_lvl+0x73/0xb0
[   13.120102]  print_report+0xd1/0x610
[   13.120123]  ? __virt_addr_valid+0x1db/0x2d0
[   13.120144]  ? ksize_uaf+0x5e4/0x6c0
[   13.120164]  ? kasan_complete_mode_report_info+0x64/0x200
[   13.120185]  ? ksize_uaf+0x5e4/0x6c0
[   13.120205]  kasan_report+0x141/0x180
[   13.120226]  ? ksize_uaf+0x5e4/0x6c0
[   13.120251]  __asan_report_load1_noabort+0x18/0x20
[   13.120274]  ksize_uaf+0x5e4/0x6c0
[   13.120294]  ? __pfx_ksize_uaf+0x10/0x10
[   13.120326]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   13.120351]  ? trace_hardirqs_on+0x37/0xe0
[   13.120373]  ? __pfx_read_tsc+0x10/0x10
[   13.120404]  ? ktime_get_ts64+0x86/0x230
[   13.120426]  kunit_try_run_case+0x1a5/0x480
[   13.120450]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.120473]  ? queued_spin_lock_slowpath+0x116/0xb40
[   13.120497]  ? __kthread_parkme+0x82/0x180
[   13.120517]  ? preempt_count_sub+0x50/0x80
[   13.120539]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.120563]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.120585]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.120608]  kthread+0x337/0x6f0
[   13.120627]  ? trace_preempt_on+0x20/0xc0
[   13.120648]  ? __pfx_kthread+0x10/0x10
[   13.120668]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.120689]  ? calculate_sigpending+0x7b/0xa0
[   13.120712]  ? __pfx_kthread+0x10/0x10
[   13.120732]  ret_from_fork+0x116/0x1d0
[   13.120750]  ? __pfx_kthread+0x10/0x10
[   13.120770]  ret_from_fork_asm+0x1a/0x30
[   13.120799]  </TASK>
[   13.120808] 
[   13.129093] Allocated by task 213:
[   13.129312]  kasan_save_stack+0x45/0x70
[   13.129463]  kasan_save_track+0x18/0x40
[   13.129600]  kasan_save_alloc_info+0x3b/0x50
[   13.129752]  __kasan_kmalloc+0xb7/0xc0
[   13.131423]  __kmalloc_cache_noprof+0x189/0x420
[   13.132037]  ksize_uaf+0xaa/0x6c0
[   13.132618]  kunit_try_run_case+0x1a5/0x480
[   13.133048]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.133259]  kthread+0x337/0x6f0
[   13.133386]  ret_from_fork+0x116/0x1d0
[   13.133522]  ret_from_fork_asm+0x1a/0x30
[   13.133662] 
[   13.133735] Freed by task 213:
[   13.133988]  kasan_save_stack+0x45/0x70
[   13.134495]  kasan_save_track+0x18/0x40
[   13.134696]  kasan_save_free_info+0x3f/0x60
[   13.134954]  __kasan_slab_free+0x56/0x70
[   13.135180]  kfree+0x222/0x3f0
[   13.135520]  ksize_uaf+0x12c/0x6c0
[   13.135702]  kunit_try_run_case+0x1a5/0x480
[   13.135957]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.136371]  kthread+0x337/0x6f0
[   13.136542]  ret_from_fork+0x116/0x1d0
[   13.136758]  ret_from_fork_asm+0x1a/0x30
[   13.136976] 
[   13.137119] The buggy address belongs to the object at ffff888102af7a00
[   13.137119]  which belongs to the cache kmalloc-128 of size 128
[   13.137758] The buggy address is located 120 bytes inside of
[   13.137758]  freed 128-byte region [ffff888102af7a00, ffff888102af7a80)
[   13.138555] 
[   13.138682] The buggy address belongs to the physical page:
[   13.138932] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102af7
[   13.139190] flags: 0x200000000000000(node=0|zone=2)
[   13.139433] page_type: f5(slab)
[   13.139604] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   13.140148] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   13.140485] page dumped because: kasan: bad access detected
[   13.140662] 
[   13.140734] Memory state around the buggy address:
[   13.141112]  ffff888102af7900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   13.141665]  ffff888102af7980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.142009] >ffff888102af7a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   13.142330]                                                                 ^
[   13.142841]  ffff888102af7a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.143161]  ffff888102af7b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.143634] ==================================================================
[   13.095862] ==================================================================
[   13.096179] BUG: KASAN: slab-use-after-free in ksize_uaf+0x5fe/0x6c0
[   13.096624] Read of size 1 at addr ffff888102af7a00 by task kunit_try_catch/213
[   13.097050] 
[   13.097191] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   13.097244] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.097255] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.097274] Call Trace:
[   13.097288]  <TASK>
[   13.097302]  dump_stack_lvl+0x73/0xb0
[   13.097388]  print_report+0xd1/0x610
[   13.097409]  ? __virt_addr_valid+0x1db/0x2d0
[   13.097429]  ? ksize_uaf+0x5fe/0x6c0
[   13.097449]  ? kasan_complete_mode_report_info+0x64/0x200
[   13.097481]  ? ksize_uaf+0x5fe/0x6c0
[   13.097502]  kasan_report+0x141/0x180
[   13.097523]  ? ksize_uaf+0x5fe/0x6c0
[   13.097559]  __asan_report_load1_noabort+0x18/0x20
[   13.097582]  ksize_uaf+0x5fe/0x6c0
[   13.097602]  ? __pfx_ksize_uaf+0x10/0x10
[   13.097622]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   13.097646]  ? trace_hardirqs_on+0x37/0xe0
[   13.097668]  ? __pfx_read_tsc+0x10/0x10
[   13.097688]  ? ktime_get_ts64+0x86/0x230
[   13.097710]  kunit_try_run_case+0x1a5/0x480
[   13.097734]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.097765]  ? queued_spin_lock_slowpath+0x116/0xb40
[   13.097788]  ? __kthread_parkme+0x82/0x180
[   13.097807]  ? preempt_count_sub+0x50/0x80
[   13.097845]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.097869]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.097891]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.097913]  kthread+0x337/0x6f0
[   13.097932]  ? trace_preempt_on+0x20/0xc0
[   13.097953]  ? __pfx_kthread+0x10/0x10
[   13.097982]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.098003]  ? calculate_sigpending+0x7b/0xa0
[   13.098025]  ? __pfx_kthread+0x10/0x10
[   13.098056]  ret_from_fork+0x116/0x1d0
[   13.098074]  ? __pfx_kthread+0x10/0x10
[   13.098094]  ret_from_fork_asm+0x1a/0x30
[   13.098123]  </TASK>
[   13.098133] 
[   13.106002] Allocated by task 213:
[   13.106293]  kasan_save_stack+0x45/0x70
[   13.106535]  kasan_save_track+0x18/0x40
[   13.106717]  kasan_save_alloc_info+0x3b/0x50
[   13.106880]  __kasan_kmalloc+0xb7/0xc0
[   13.107109]  __kmalloc_cache_noprof+0x189/0x420
[   13.107416]  ksize_uaf+0xaa/0x6c0
[   13.107591]  kunit_try_run_case+0x1a5/0x480
[   13.107801]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.108057]  kthread+0x337/0x6f0
[   13.108437]  ret_from_fork+0x116/0x1d0
[   13.108583]  ret_from_fork_asm+0x1a/0x30
[   13.108728] 
[   13.108801] Freed by task 213:
[   13.108930]  kasan_save_stack+0x45/0x70
[   13.109073]  kasan_save_track+0x18/0x40
[   13.109272]  kasan_save_free_info+0x3f/0x60
[   13.109504]  __kasan_slab_free+0x56/0x70
[   13.109699]  kfree+0x222/0x3f0
[   13.109866]  ksize_uaf+0x12c/0x6c0
[   13.110040]  kunit_try_run_case+0x1a5/0x480
[   13.110245]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.110633]  kthread+0x337/0x6f0
[   13.110823]  ret_from_fork+0x116/0x1d0
[   13.111011]  ret_from_fork_asm+0x1a/0x30
[   13.111307] 
[   13.111391] The buggy address belongs to the object at ffff888102af7a00
[   13.111391]  which belongs to the cache kmalloc-128 of size 128
[   13.111866] The buggy address is located 0 bytes inside of
[   13.111866]  freed 128-byte region [ffff888102af7a00, ffff888102af7a80)
[   13.112788] 
[   13.112908] The buggy address belongs to the physical page:
[   13.113148] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102af7
[   13.113649] flags: 0x200000000000000(node=0|zone=2)
[   13.113908] page_type: f5(slab)
[   13.114076] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   13.114443] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   13.114712] page dumped because: kasan: bad access detected
[   13.114934] 
[   13.115030] Memory state around the buggy address:
[   13.115415]  ffff888102af7900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   13.115668]  ffff888102af7980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.116026] >ffff888102af7a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   13.116512]                    ^
[   13.116720]  ffff888102af7a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.117037]  ffff888102af7b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.117294] ==================================================================
[   13.072408] ==================================================================
[   13.073139] BUG: KASAN: slab-use-after-free in ksize_uaf+0x19d/0x6c0
[   13.073494] Read of size 1 at addr ffff888102af7a00 by task kunit_try_catch/213
[   13.073961] 
[   13.074070] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   13.074130] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.074142] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.074177] Call Trace:
[   13.074189]  <TASK>
[   13.074205]  dump_stack_lvl+0x73/0xb0
[   13.074237]  print_report+0xd1/0x610
[   13.074259]  ? __virt_addr_valid+0x1db/0x2d0
[   13.074282]  ? ksize_uaf+0x19d/0x6c0
[   13.074302]  ? kasan_complete_mode_report_info+0x64/0x200
[   13.074392]  ? ksize_uaf+0x19d/0x6c0
[   13.074433]  kasan_report+0x141/0x180
[   13.074455]  ? ksize_uaf+0x19d/0x6c0
[   13.074479]  ? ksize_uaf+0x19d/0x6c0
[   13.074499]  __kasan_check_byte+0x3d/0x50
[   13.074520]  ksize+0x20/0x60
[   13.074541]  ksize_uaf+0x19d/0x6c0
[   13.074561]  ? __pfx_ksize_uaf+0x10/0x10
[   13.074582]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   13.074607]  ? trace_hardirqs_on+0x37/0xe0
[   13.074629]  ? __pfx_read_tsc+0x10/0x10
[   13.074650]  ? ktime_get_ts64+0x86/0x230
[   13.074686]  kunit_try_run_case+0x1a5/0x480
[   13.074711]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.074746]  ? queued_spin_lock_slowpath+0x116/0xb40
[   13.074771]  ? __kthread_parkme+0x82/0x180
[   13.074791]  ? preempt_count_sub+0x50/0x80
[   13.074829]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.074853]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.074875]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.074909]  kthread+0x337/0x6f0
[   13.074928]  ? trace_preempt_on+0x20/0xc0
[   13.074949]  ? __pfx_kthread+0x10/0x10
[   13.074981]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.075004]  ? calculate_sigpending+0x7b/0xa0
[   13.075028]  ? __pfx_kthread+0x10/0x10
[   13.075060]  ret_from_fork+0x116/0x1d0
[   13.075078]  ? __pfx_kthread+0x10/0x10
[   13.075109]  ret_from_fork_asm+0x1a/0x30
[   13.075150]  </TASK>
[   13.075162] 
[   13.083747] Allocated by task 213:
[   13.083927]  kasan_save_stack+0x45/0x70
[   13.084154]  kasan_save_track+0x18/0x40
[   13.084598]  kasan_save_alloc_info+0x3b/0x50
[   13.084808]  __kasan_kmalloc+0xb7/0xc0
[   13.085034]  __kmalloc_cache_noprof+0x189/0x420
[   13.085362]  ksize_uaf+0xaa/0x6c0
[   13.085518]  kunit_try_run_case+0x1a5/0x480
[   13.085742]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.085982]  kthread+0x337/0x6f0
[   13.086163]  ret_from_fork+0x116/0x1d0
[   13.086424]  ret_from_fork_asm+0x1a/0x30
[   13.086633] 
[   13.086705] Freed by task 213:
[   13.086829]  kasan_save_stack+0x45/0x70
[   13.086966]  kasan_save_track+0x18/0x40
[   13.087194]  kasan_save_free_info+0x3f/0x60
[   13.087457]  __kasan_slab_free+0x56/0x70
[   13.087835]  kfree+0x222/0x3f0
[   13.088005]  ksize_uaf+0x12c/0x6c0
[   13.088328]  kunit_try_run_case+0x1a5/0x480
[   13.088501]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.088783]  kthread+0x337/0x6f0
[   13.088932]  ret_from_fork+0x116/0x1d0
[   13.089148]  ret_from_fork_asm+0x1a/0x30
[   13.089455] 
[   13.089544] The buggy address belongs to the object at ffff888102af7a00
[   13.089544]  which belongs to the cache kmalloc-128 of size 128
[   13.089976] The buggy address is located 0 bytes inside of
[   13.089976]  freed 128-byte region [ffff888102af7a00, ffff888102af7a80)
[   13.090494] 
[   13.090592] The buggy address belongs to the physical page:
[   13.090998] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102af7
[   13.091394] flags: 0x200000000000000(node=0|zone=2)
[   13.091648] page_type: f5(slab)
[   13.091861] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   13.092274] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   13.092759] page dumped because: kasan: bad access detected
[   13.093007] 
[   13.093103] Memory state around the buggy address:
[   13.093446]  ffff888102af7900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   13.093765]  ffff888102af7980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.094017] >ffff888102af7a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   13.094336]                    ^
[   13.094501]  ffff888102af7a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.094909]  ffff888102af7b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.095341] ==================================================================