Hay
Date
June 17, 2025, 3:39 p.m.

Environment
qemu-arm64
qemu-x86_64

[   92.850447] ==================================================================
[   92.851716] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0xd8/0x1e8
[   92.852450] Write of size 8 at addr ffff0000c5f8ae71 by task kunit_try_catch/155
[   92.853237] 
[   92.853491] CPU: 1 PID: 155 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   92.854139] Hardware name: linux,dummy-virt (DT)
[   92.854614] Call trace:
[   92.854912]  dump_backtrace+0x9c/0x128
[   92.855347]  show_stack+0x20/0x38
[   92.855803]  dump_stack_lvl+0x60/0xb0
[   92.856381]  print_report+0xf8/0x5e8
[   92.856771]  kasan_report+0xdc/0x128
[   92.857298]  kasan_check_range+0xe8/0x190
[   92.857781]  __asan_memset+0x34/0x78
[   92.858159]  kmalloc_oob_memset_8+0xd8/0x1e8
[   92.858524]  kunit_try_run_case+0x114/0x298
[   92.859170]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   92.859854]  kthread+0x18c/0x1a8
[   92.860266]  ret_from_fork+0x10/0x20
[   92.860714] 
[   92.860937] Allocated by task 155:
[   92.861271]  kasan_save_stack+0x3c/0x68
[   92.861798]  kasan_set_track+0x2c/0x40
[   92.862264]  kasan_save_alloc_info+0x24/0x38
[   92.862923]  __kasan_kmalloc+0xd4/0xd8
[   92.863425]  kmalloc_trace+0x68/0x130
[   92.863870]  kmalloc_oob_memset_8+0xa0/0x1e8
[   92.864543]  kunit_try_run_case+0x114/0x298
[   92.865089]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   92.865781]  kthread+0x18c/0x1a8
[   92.866214]  ret_from_fork+0x10/0x20
[   92.866706] 
[   92.866922] The buggy address belongs to the object at ffff0000c5f8ae00
[   92.866922]  which belongs to the cache kmalloc-128 of size 128
[   92.868045] The buggy address is located 113 bytes inside of
[   92.868045]  allocated 120-byte region [ffff0000c5f8ae00, ffff0000c5f8ae78)
[   92.869126] 
[   92.869430] The buggy address belongs to the physical page:
[   92.869949] page:00000000678618b8 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105f8a
[   92.870890] flags: 0xbfffc0000000800(slab|node=0|zone=2|lastcpupid=0xffff)
[   92.871627] page_type: 0xffffffff()
[   92.872126] raw: 0bfffc0000000800 ffff0000c00018c0 dead000000000122 0000000000000000
[   92.872842] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
[   92.873563] page dumped because: kasan: bad access detected
[   92.874104] 
[   92.874348] Memory state around the buggy address:
[   92.874925]  ffff0000c5f8ad00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc
[   92.875427]  ffff0000c5f8ad80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   92.876005] >ffff0000c5f8ae00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   92.876465]                                                                 ^
[   92.877093]  ffff0000c5f8ae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   92.877843]  ffff0000c5f8af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   92.878457] ==================================================================


[   34.002585] ==================================================================
[   34.003195] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0xdd/0x1e0
[   34.003550] Write of size 8 at addr ffff888102797571 by task kunit_try_catch/170
[   34.003912] 
[   34.004161] CPU: 1 PID: 170 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   34.006016] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.007351] Call Trace:
[   34.007834]  <TASK>
[   34.008364]  dump_stack_lvl+0x4e/0x90
[   34.009100]  print_report+0xd2/0x650
[   34.009748]  ? __virt_addr_valid+0x156/0x1e0
[   34.010444]  ? kmalloc_oob_memset_8+0xdd/0x1e0
[   34.011152]  ? kasan_complete_mode_report_info+0x2a/0x200
[   34.012031]  ? kmalloc_oob_memset_8+0xdd/0x1e0
[   34.012795]  kasan_report+0x147/0x180
[   34.013398]  ? kmalloc_oob_memset_8+0xdd/0x1e0
[   34.013980]  kasan_check_range+0x10c/0x1c0
[   34.014284]  __asan_memset+0x27/0x50
[   34.014699]  kmalloc_oob_memset_8+0xdd/0x1e0
[   34.015017]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   34.015320]  ? __schedule+0x715/0x11a0
[   34.015558]  ? ktime_get_ts64+0x118/0x140
[   34.015821]  kunit_try_run_case+0x120/0x290
[   34.016586]  ? __pfx_kunit_try_run_case+0x10/0x10
[   34.016967]  ? __kasan_check_write+0x18/0x20
[   34.017228]  ? trace_preempt_on+0x20/0xa0
[   34.017768]  ? __kthread_parkme+0x4f/0xd0
[   34.018206]  ? preempt_count_sub+0x50/0x80
[   34.018517]  ? __pfx_kunit_try_run_case+0x10/0x10
[   34.019070]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   34.019660]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   34.020158]  kthread+0x19e/0x1e0
[   34.020438]  ? __pfx_kthread+0x10/0x10
[   34.020906]  ret_from_fork+0x41/0x70
[   34.021283]  ? __pfx_kthread+0x10/0x10
[   34.021692]  ret_from_fork_asm+0x1b/0x30
[   34.022162]  </TASK>
[   34.022497] 
[   34.022628] Allocated by task 170:
[   34.023219]  kasan_save_stack+0x44/0x70
[   34.023560]  kasan_set_track+0x29/0x40
[   34.023825]  kasan_save_alloc_info+0x22/0x30
[   34.024394]  __kasan_kmalloc+0xb7/0xc0
[   34.024904]  kmalloc_trace+0x4c/0xb0
[   34.025113]  kmalloc_oob_memset_8+0x9f/0x1e0
[   34.025337]  kunit_try_run_case+0x120/0x290
[   34.026177]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   34.027016]  kthread+0x19e/0x1e0
[   34.027583]  ret_from_fork+0x41/0x70
[   34.028238]  ret_from_fork_asm+0x1b/0x30
[   34.028926] 
[   34.029290] The buggy address belongs to the object at ffff888102797500
[   34.029290]  which belongs to the cache kmalloc-128 of size 128
[   34.030599] The buggy address is located 113 bytes inside of
[   34.030599]  allocated 120-byte region [ffff888102797500, ffff888102797578)
[   34.032168] 
[   34.032526] The buggy address belongs to the physical page:
[   34.033220] page:(____ptrval____) refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102797
[   34.034115] flags: 0x200000000000800(slab|node=0|zone=2)
[   34.034444] page_type: 0xffffffff()
[   34.035153] raw: 0200000000000800 ffff8881000418c0 dead000000000122 0000000000000000
[   34.036160] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
[   34.037177] page dumped because: kasan: bad access detected
[   34.037888] 
[   34.038128] Memory state around the buggy address:
[   34.038506]  ffff888102797400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc
[   34.039564]  ffff888102797480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.040457] >ffff888102797500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   34.041015]                                                                 ^
[   34.041939]  ffff888102797580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.042826]  ffff888102797600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.043586] ==================================================================