Hay
Date
July 13, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   15.933723] ==================================================================
[   15.933781] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   15.934085] Write of size 8 at addr fff00000c5866471 by task kunit_try_catch/177
[   15.934189] 
[   15.934237] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.934573] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.934698] Hardware name: linux,dummy-virt (DT)
[   15.934731] Call trace:
[   15.934752]  show_stack+0x20/0x38 (C)
[   15.934803]  dump_stack_lvl+0x8c/0xd0
[   15.934849]  print_report+0x118/0x5d0
[   15.934893]  kasan_report+0xdc/0x128
[   15.934937]  kasan_check_range+0x100/0x1a8
[   15.934982]  __asan_memset+0x34/0x78
[   15.935277]  kmalloc_oob_memset_8+0x150/0x2f8
[   15.935597]  kunit_try_run_case+0x170/0x3f0
[   15.935677]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.935730]  kthread+0x328/0x630
[   15.935771]  ret_from_fork+0x10/0x20
[   15.935986] 
[   15.936052] Allocated by task 177:
[   15.936246]  kasan_save_stack+0x3c/0x68
[   15.936345]  kasan_save_track+0x20/0x40
[   15.936383]  kasan_save_alloc_info+0x40/0x58
[   15.936429]  __kasan_kmalloc+0xd4/0xd8
[   15.936464]  __kmalloc_cache_noprof+0x16c/0x3c0
[   15.936752]  kmalloc_oob_memset_8+0xb0/0x2f8
[   15.936875]  kunit_try_run_case+0x170/0x3f0
[   15.936936]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.937038]  kthread+0x328/0x630
[   15.937096]  ret_from_fork+0x10/0x20
[   15.937141] 
[   15.937161] The buggy address belongs to the object at fff00000c5866400
[   15.937161]  which belongs to the cache kmalloc-128 of size 128
[   15.937507] The buggy address is located 113 bytes inside of
[   15.937507]  allocated 120-byte region [fff00000c5866400, fff00000c5866478)
[   15.937649] 
[   15.937707] The buggy address belongs to the physical page:
[   15.937737] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105866
[   15.937956] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.938128] page_type: f5(slab)
[   15.938269] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.938348] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.938563] page dumped because: kasan: bad access detected
[   15.938744] 
[   15.938799] Memory state around the buggy address:
[   15.938921]  fff00000c5866300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.938985]  fff00000c5866380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.939041] >fff00000c5866400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   15.939379]                                                                 ^
[   15.939529]  fff00000c5866480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.939608]  fff00000c5866500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.939943] ==================================================================

[   16.714553] ==================================================================
[   16.714646] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   16.714731] Write of size 8 at addr fff00000c5aae471 by task kunit_try_catch/177
[   16.714783] 
[   16.714838] CPU: 1 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   16.714919] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.715098] Hardware name: linux,dummy-virt (DT)
[   16.715154] Call trace:
[   16.715218]  show_stack+0x20/0x38 (C)
[   16.715270]  dump_stack_lvl+0x8c/0xd0
[   16.715315]  print_report+0x118/0x5d0
[   16.715359]  kasan_report+0xdc/0x128
[   16.715580]  kasan_check_range+0x100/0x1a8
[   16.715637]  __asan_memset+0x34/0x78
[   16.715678]  kmalloc_oob_memset_8+0x150/0x2f8
[   16.715723]  kunit_try_run_case+0x170/0x3f0
[   16.715768]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.715851]  kthread+0x328/0x630
[   16.715996]  ret_from_fork+0x10/0x20
[   16.716106] 
[   16.716252] Allocated by task 177:
[   16.716319]  kasan_save_stack+0x3c/0x68
[   16.716368]  kasan_save_track+0x20/0x40
[   16.716405]  kasan_save_alloc_info+0x40/0x58
[   16.716444]  __kasan_kmalloc+0xd4/0xd8
[   16.716479]  __kmalloc_cache_noprof+0x16c/0x3c0
[   16.716517]  kmalloc_oob_memset_8+0xb0/0x2f8
[   16.716721]  kunit_try_run_case+0x170/0x3f0
[   16.716788]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.716831]  kthread+0x328/0x630
[   16.716862]  ret_from_fork+0x10/0x20
[   16.716897] 
[   16.717062] The buggy address belongs to the object at fff00000c5aae400
[   16.717062]  which belongs to the cache kmalloc-128 of size 128
[   16.717214] The buggy address is located 113 bytes inside of
[   16.717214]  allocated 120-byte region [fff00000c5aae400, fff00000c5aae478)
[   16.717343] 
[   16.717411] The buggy address belongs to the physical page:
[   16.717498] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105aae
[   16.717610] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.717739] page_type: f5(slab)
[   16.717795] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   16.717866] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.718119] page dumped because: kasan: bad access detected
[   16.718303] 
[   16.718412] Memory state around the buggy address:
[   16.718500]  fff00000c5aae300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.718632]  fff00000c5aae380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.718747] >fff00000c5aae400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.718870]                                                                 ^
[   16.718955]  fff00000c5aae480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.719049]  fff00000c5aae500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.719085] ==================================================================

[   12.757786] ==================================================================
[   12.758897] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330
[   12.759644] Write of size 8 at addr ffff888103434071 by task kunit_try_catch/193
[   12.760422] 
[   12.760649] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.760696] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.760708] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.760729] Call Trace:
[   12.760741]  <TASK>
[   12.760758]  dump_stack_lvl+0x73/0xb0
[   12.760788]  print_report+0xd1/0x610
[   12.760811]  ? __virt_addr_valid+0x1db/0x2d0
[   12.760835]  ? kmalloc_oob_memset_8+0x166/0x330
[   12.760856]  ? kasan_complete_mode_report_info+0x2a/0x200
[   12.760880]  ? kmalloc_oob_memset_8+0x166/0x330
[   12.760903]  kasan_report+0x141/0x180
[   12.760925]  ? kmalloc_oob_memset_8+0x166/0x330
[   12.760952]  kasan_check_range+0x10c/0x1c0
[   12.760976]  __asan_memset+0x27/0x50
[   12.760996]  kmalloc_oob_memset_8+0x166/0x330
[   12.761018]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   12.761045]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   12.761072]  kunit_try_run_case+0x1a5/0x480
[   12.761098]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.761121]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.761145]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.761169]  ? __kthread_parkme+0x82/0x180
[   12.761190]  ? preempt_count_sub+0x50/0x80
[   12.761214]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.761238]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.761263]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.761288]  kthread+0x337/0x6f0
[   12.761307]  ? trace_preempt_on+0x20/0xc0
[   12.761330]  ? __pfx_kthread+0x10/0x10
[   12.761351]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.761382]  ? calculate_sigpending+0x7b/0xa0
[   12.761414]  ? __pfx_kthread+0x10/0x10
[   12.761457]  ret_from_fork+0x116/0x1d0
[   12.761477]  ? __pfx_kthread+0x10/0x10
[   12.761498]  ret_from_fork_asm+0x1a/0x30
[   12.761529]  </TASK>
[   12.761539] 
[   12.772887] Allocated by task 193:
[   12.773032]  kasan_save_stack+0x45/0x70
[   12.773182]  kasan_save_track+0x18/0x40
[   12.773316]  kasan_save_alloc_info+0x3b/0x50
[   12.773597]  __kasan_kmalloc+0xb7/0xc0
[   12.773937]  __kmalloc_cache_noprof+0x189/0x420
[   12.774397]  kmalloc_oob_memset_8+0xac/0x330
[   12.774950]  kunit_try_run_case+0x1a5/0x480
[   12.775351]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.775922]  kthread+0x337/0x6f0
[   12.776231]  ret_from_fork+0x116/0x1d0
[   12.776653]  ret_from_fork_asm+0x1a/0x30
[   12.777021] 
[   12.777178] The buggy address belongs to the object at ffff888103434000
[   12.777178]  which belongs to the cache kmalloc-128 of size 128
[   12.777976] The buggy address is located 113 bytes inside of
[   12.777976]  allocated 120-byte region [ffff888103434000, ffff888103434078)
[   12.778338] 
[   12.778424] The buggy address belongs to the physical page:
[   12.779093] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103434
[   12.779828] flags: 0x200000000000000(node=0|zone=2)
[   12.780320] page_type: f5(slab)
[   12.780699] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   12.781338] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   12.782099] page dumped because: kasan: bad access detected
[   12.782278] 
[   12.782349] Memory state around the buggy address:
[   12.782709]  ffff888103433f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.783511]  ffff888103433f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.784297] >ffff888103434000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   12.784727]                                                                 ^
[   12.785319]  ffff888103434080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.785726]  ffff888103434100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.785940] ==================================================================

[   13.000219] ==================================================================
[   13.001306] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330
[   13.001636] Write of size 8 at addr ffff888102b2e671 by task kunit_try_catch/194
[   13.001997] 
[   13.002123] CPU: 1 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.002168] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.002180] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.002201] Call Trace:
[   13.002213]  <TASK>
[   13.002230]  dump_stack_lvl+0x73/0xb0
[   13.002262]  print_report+0xd1/0x610
[   13.002285]  ? __virt_addr_valid+0x1db/0x2d0
[   13.002309]  ? kmalloc_oob_memset_8+0x166/0x330
[   13.002330]  ? kasan_complete_mode_report_info+0x2a/0x200
[   13.002353]  ? kmalloc_oob_memset_8+0x166/0x330
[   13.002376]  kasan_report+0x141/0x180
[   13.002398]  ? kmalloc_oob_memset_8+0x166/0x330
[   13.002424]  kasan_check_range+0x10c/0x1c0
[   13.002479]  __asan_memset+0x27/0x50
[   13.002499]  kmalloc_oob_memset_8+0x166/0x330
[   13.002522]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   13.002546]  ? __schedule+0x10cc/0x2b60
[   13.002569]  ? __pfx_read_tsc+0x10/0x10
[   13.002591]  ? ktime_get_ts64+0x86/0x230
[   13.002617]  kunit_try_run_case+0x1a5/0x480
[   13.002643]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.002667]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.002691]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.002868]  ? __kthread_parkme+0x82/0x180
[   13.002890]  ? preempt_count_sub+0x50/0x80
[   13.002915]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.002939]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.002964]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.002990]  kthread+0x337/0x6f0
[   13.003009]  ? trace_preempt_on+0x20/0xc0
[   13.003033]  ? __pfx_kthread+0x10/0x10
[   13.003069]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.003091]  ? calculate_sigpending+0x7b/0xa0
[   13.003115]  ? __pfx_kthread+0x10/0x10
[   13.003136]  ret_from_fork+0x116/0x1d0
[   13.003156]  ? __pfx_kthread+0x10/0x10
[   13.003176]  ret_from_fork_asm+0x1a/0x30
[   13.003207]  </TASK>
[   13.003217] 
[   13.011000] Allocated by task 194:
[   13.011307]  kasan_save_stack+0x45/0x70
[   13.011501]  kasan_save_track+0x18/0x40
[   13.011765]  kasan_save_alloc_info+0x3b/0x50
[   13.011958]  __kasan_kmalloc+0xb7/0xc0
[   13.012104]  __kmalloc_cache_noprof+0x189/0x420
[   13.012356]  kmalloc_oob_memset_8+0xac/0x330
[   13.012567]  kunit_try_run_case+0x1a5/0x480
[   13.012733]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.013086]  kthread+0x337/0x6f0
[   13.013207]  ret_from_fork+0x116/0x1d0
[   13.013342]  ret_from_fork_asm+0x1a/0x30
[   13.013482] 
[   13.013639] The buggy address belongs to the object at ffff888102b2e600
[   13.013639]  which belongs to the cache kmalloc-128 of size 128
[   13.014439] The buggy address is located 113 bytes inside of
[   13.014439]  allocated 120-byte region [ffff888102b2e600, ffff888102b2e678)
[   13.015143] 
[   13.015260] The buggy address belongs to the physical page:
[   13.015446] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b2e
[   13.015686] flags: 0x200000000000000(node=0|zone=2)
[   13.015853] page_type: f5(slab)
[   13.016529] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   13.016881] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   13.017398] page dumped because: kasan: bad access detected
[   13.017713] 
[   13.017814] Memory state around the buggy address:
[   13.018074]  ffff888102b2e500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   13.018353]  ffff888102b2e580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.018624] >ffff888102b2e600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   13.019092]                                                                 ^
[   13.019413]  ffff888102b2e680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.019687]  ffff888102b2e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.019933] ==================================================================