Hay
Date
April 20, 2025, 11:09 p.m.

Environment
x15
x86

[   54.934478] ==================================================================
[   54.945861] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x1b0/0x35c
[   54.953124] Write of size 8 at addr cc228c71 by task kunit_try_catch/232
[   54.959869] 
[   54.961395] CPU: 1 UID: 0 PID: 232 Comm: kunit_try_catch Tainted: G    B   W        N  6.15.0-rc3 #1 NONE 
[   54.961425] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   54.961425] Hardware name: Generic DRA74X (Flattened Device Tree)
[   54.961425] Call trace: 
[   54.961425]  unwind_backtrace from show_stack+0x18/0x1c
[   54.961456]  show_stack from dump_stack_lvl+0x70/0x90
[   54.961486]  dump_stack_lvl from print_report+0x158/0x528
[   54.961517]  print_report from kasan_report+0xdc/0x118
[   54.961547]  kasan_report from kasan_check_range+0x14c/0x198
[   54.961547]  kasan_check_range from __asan_memset+0x20/0x3c
[   54.961578]  __asan_memset from kmalloc_oob_memset_8+0x1b0/0x35c
[   54.961608]  kmalloc_oob_memset_8 from kunit_try_run_case+0x22c/0x5a8
[   54.961608]  kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128
[   54.961639]  kunit_generic_run_threadfn_adapter from kthread+0x464/0x810
[   54.961669]  kthread from ret_from_fork+0x14/0x20
[   54.961700] Exception stack(0xf245bfb0 to 0xf245bff8)
[   54.961700] bfa0:                                     00000000 00000000 00000000 00000000
[   54.961730] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   54.961730] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   54.961761] 
[   55.078491] Allocated by task 232:
[   55.081939]  kasan_save_track+0x30/0x5c
[   55.085784]  __kasan_kmalloc+0x8c/0x94
[   55.089569]  kmalloc_oob_memset_8+0xcc/0x35c
[   55.093872]  kunit_try_run_case+0x22c/0x5a8
[   55.098114]  kunit_generic_run_threadfn_adapter+0xc4/0x128
[   55.103637]  kthread+0x464/0x810
[   55.106872]  ret_from_fork+0x14/0x20
[   55.110473] 
[   55.111999] The buggy address belongs to the object at cc228c00
[   55.111999]  which belongs to the cache kmalloc-128 of size 128
[   55.123901] The buggy address is located 113 bytes inside of
[   55.123901]  allocated 120-byte region [cc228c00, cc228c78)
[   55.135162] 
[   55.136688] The buggy address belongs to the physical page:
[   55.142272] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c228
[   55.149566] flags: 0x0(zone=0)
[   55.152648] page_type: f5(slab)
[   55.155792] raw: 00000000 c7001400 00000122 00000000 00000000 80100010 f5000000 00000000
[   55.163940] raw: 00000000
[   55.166595] page dumped because: kasan: bad access detected
[   55.172180] 
[   55.173706] Memory state around the buggy address:
[   55.178527]  cc228b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   55.185089]  cc228b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   55.191650] >cc228c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   55.198242]                                                         ^
[   55.204711]  cc228c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   55.211273]  cc228d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   55.217864] ==================================================================

[   25.545320] ==================================================================
[   25.556644] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330
[   25.563871] Write of size 8 at addr ffff888107f05171 by task kunit_try_catch/219
[   25.571263] 
[   25.572764] CPU: 1 UID: 0 PID: 219 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   25.572772] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.572774] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021
[   25.572778] Call Trace:
[   25.572779]  <TASK>
[   25.572781]  dump_stack_lvl+0x73/0xb0
[   25.572785]  print_report+0xd1/0x650
[   25.572789]  ? __virt_addr_valid+0x1db/0x2d0
[   25.572793]  ? kmalloc_oob_memset_8+0x166/0x330
[   25.572797]  ? kasan_complete_mode_report_info+0x2a/0x200
[   25.572801]  ? kmalloc_oob_memset_8+0x166/0x330
[   25.572806]  kasan_report+0x141/0x180
[   25.572810]  ? kmalloc_oob_memset_8+0x166/0x330
[   25.572815]  kasan_check_range+0x10c/0x1c0
[   25.572819]  __asan_memset+0x27/0x50
[   25.572823]  kmalloc_oob_memset_8+0x166/0x330
[   25.572827]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   25.572832]  ? __schedule+0x10cc/0x2b30
[   25.572836]  ? ktime_get_ts64+0x83/0x230
[   25.572841]  kunit_try_run_case+0x1a2/0x480
[   25.572845]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.572849]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.572854]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.572858]  ? __kthread_parkme+0x82/0x180
[   25.572862]  ? preempt_count_sub+0x50/0x80
[   25.572867]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.572871]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   25.572875]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.572879]  kthread+0x334/0x6f0
[   25.572883]  ? trace_preempt_on+0x20/0xc0
[   25.572887]  ? __pfx_kthread+0x10/0x10
[   25.572891]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.572895]  ? calculate_sigpending+0x7b/0xa0
[   25.572899]  ? __pfx_kthread+0x10/0x10
[   25.572903]  ret_from_fork+0x3e/0x80
[   25.572907]  ? __pfx_kthread+0x10/0x10
[   25.572912]  ret_from_fork_asm+0x1a/0x30
[   25.572917]  </TASK>
[   25.572919] 
[   25.739900] Allocated by task 219:
[   25.743308]  kasan_save_stack+0x45/0x70
[   25.747153]  kasan_save_track+0x18/0x40
[   25.750995]  kasan_save_alloc_info+0x3b/0x50
[   25.755265]  __kasan_kmalloc+0xb7/0xc0
[   25.759018]  __kmalloc_cache_noprof+0x189/0x420
[   25.763550]  kmalloc_oob_memset_8+0xac/0x330
[   25.767822]  kunit_try_run_case+0x1a2/0x480
[   25.772009]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   25.777410]  kthread+0x334/0x6f0
[   25.780649]  ret_from_fork+0x3e/0x80
[   25.784228]  ret_from_fork_asm+0x1a/0x30
[   25.788156] 
[   25.789654] The buggy address belongs to the object at ffff888107f05100
[   25.789654]  which belongs to the cache kmalloc-128 of size 128
[   25.802194] The buggy address is located 113 bytes inside of
[   25.802194]  allocated 120-byte region [ffff888107f05100, ffff888107f05178)
[   25.814795] 
[   25.816293] The buggy address belongs to the physical page:
[   25.821868] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107f05
[   25.829873] flags: 0x200000000000000(node=0|zone=2)
[   25.834754] page_type: f5(slab)
[   25.837902] raw: 0200000000000000 ffff888100042a00 dead000000000122 0000000000000000
[   25.845648] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   25.853395] page dumped because: kasan: bad access detected
[   25.858966] 
[   25.860467] Memory state around the buggy address:
[   25.865260]  ffff888107f05000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   25.872478]  ffff888107f05080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.879701] >ffff888107f05100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   25.886923]                                                                 ^
[   25.894058]  ffff888107f05180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.901277]  ffff888107f05200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.908502] ==================================================================