Hay
Date
July 14, 2025, 10:38 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   42.829501] ==================================================================
[   42.838677] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0
[   42.845967] Write of size 128 at addr ffff0008019adb00 by task kunit_try_catch/254
[   42.853518] 
[   42.855002] CPU: 3 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250714 #1 PREEMPT 
[   42.855055] Tainted: [B]=BAD_PAGE, [N]=TEST
[   42.855071] Hardware name: WinLink E850-96 board (DT)
[   42.855091] Call trace:
[   42.855105]  show_stack+0x20/0x38 (C)
[   42.855142]  dump_stack_lvl+0x8c/0xd0
[   42.855175]  print_report+0x118/0x5d0
[   42.855203]  kasan_report+0xdc/0x128
[   42.855228]  kasan_check_range+0x100/0x1a8
[   42.855258]  __asan_memset+0x34/0x78
[   42.855287]  kmalloc_oob_in_memset+0x144/0x2d0
[   42.855320]  kunit_try_run_case+0x170/0x3f0
[   42.855354]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   42.855386]  kthread+0x328/0x630
[   42.855417]  ret_from_fork+0x10/0x20
[   42.855451] 
[   42.922180] Allocated by task 254:
[   42.925568]  kasan_save_stack+0x3c/0x68
[   42.929384]  kasan_save_track+0x20/0x40
[   42.933203]  kasan_save_alloc_info+0x40/0x58
[   42.937457]  __kasan_kmalloc+0xd4/0xd8
[   42.941189]  __kmalloc_cache_noprof+0x16c/0x3c0
[   42.945703]  kmalloc_oob_in_memset+0xb0/0x2d0
[   42.950045]  kunit_try_run_case+0x170/0x3f0
[   42.954211]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   42.959679]  kthread+0x328/0x630
[   42.962890]  ret_from_fork+0x10/0x20
[   42.966449] 
[   42.967928] The buggy address belongs to the object at ffff0008019adb00
[   42.967928]  which belongs to the cache kmalloc-128 of size 128
[   42.980428] The buggy address is located 0 bytes inside of
[   42.980428]  allocated 120-byte region [ffff0008019adb00, ffff0008019adb78)
[   42.992838] 
[   42.994317] The buggy address belongs to the physical page:
[   42.999874] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8819ac
[   43.007857] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   43.015498] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   43.022439] page_type: f5(slab)
[   43.025576] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   43.033295] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   43.041022] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   43.048833] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   43.056646] head: 0bfffe0000000001 fffffdffe0066b01 00000000ffffffff 00000000ffffffff
[   43.064458] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   43.072265] page dumped because: kasan: bad access detected
[   43.077819] 
[   43.079296] Memory state around the buggy address:
[   43.084076]  ffff0008019ada00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   43.091277]  ffff0008019ada80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   43.098482] >ffff0008019adb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   43.105683]                                                                 ^
[   43.112805]  ffff0008019adb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   43.120011]  ffff0008019adc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   43.127212] ==================================================================

[   29.594887] ==================================================================
[   29.594982] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0
[   29.595061] Write of size 128 at addr fff00000c636a900 by task kunit_try_catch/201
[   29.595111] 
[   29.595150] CPU: 0 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250714 #1 PREEMPT 
[   29.595986] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.596367] Hardware name: linux,dummy-virt (DT)
[   29.596667] Call trace:
[   29.596706]  show_stack+0x20/0x38 (C)
[   29.596764]  dump_stack_lvl+0x8c/0xd0
[   29.596812]  print_report+0x118/0x5d0
[   29.597449]  kasan_report+0xdc/0x128
[   29.597518]  kasan_check_range+0x100/0x1a8
[   29.597896]  __asan_memset+0x34/0x78
[   29.598199]  kmalloc_oob_in_memset+0x144/0x2d0
[   29.598292]  kunit_try_run_case+0x170/0x3f0
[   29.598341]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.598934]  kthread+0x328/0x630
[   29.599079]  ret_from_fork+0x10/0x20
[   29.599354] 
[   29.599374] Allocated by task 201:
[   29.599752]  kasan_save_stack+0x3c/0x68
[   29.600089]  kasan_save_track+0x20/0x40
[   29.600148]  kasan_save_alloc_info+0x40/0x58
[   29.600209]  __kasan_kmalloc+0xd4/0xd8
[   29.600392]  __kmalloc_cache_noprof+0x16c/0x3c0
[   29.600434]  kmalloc_oob_in_memset+0xb0/0x2d0
[   29.600472]  kunit_try_run_case+0x170/0x3f0
[   29.601017]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.601162]  kthread+0x328/0x630
[   29.601195]  ret_from_fork+0x10/0x20
[   29.601230] 
[   29.601761] The buggy address belongs to the object at fff00000c636a900
[   29.601761]  which belongs to the cache kmalloc-128 of size 128
[   29.601884] The buggy address is located 0 bytes inside of
[   29.601884]  allocated 120-byte region [fff00000c636a900, fff00000c636a978)
[   29.602131] 
[   29.602396] The buggy address belongs to the physical page:
[   29.602429] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10636a
[   29.602643] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.602697] page_type: f5(slab)
[   29.603345] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   29.603400] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   29.603916] page dumped because: kasan: bad access detected
[   29.604216] 
[   29.604387] Memory state around the buggy address:
[   29.604427]  fff00000c636a800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   29.604608]  fff00000c636a880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.604680] >fff00000c636a900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   29.604731]                                                                 ^
[   29.604778]  fff00000c636a980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.604819]  fff00000c636aa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.605144] ==================================================================

[   24.309253] ==================================================================
[   24.310603] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320
[   24.311692] Write of size 128 at addr ffff888105865f00 by task kunit_try_catch/219
[   24.312579] 
[   24.312928] CPU: 1 UID: 0 PID: 219 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc6-next-20250714 #1 PREEMPT(voluntary) 
[   24.313027] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   24.313051] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.313075] Call Trace:
[   24.313170]  <TASK>
[   24.313193]  dump_stack_lvl+0x73/0xb0
[   24.313232]  print_report+0xd1/0x610
[   24.313256]  ? __virt_addr_valid+0x1db/0x2d0
[   24.313282]  ? kmalloc_oob_in_memset+0x15f/0x320
[   24.313303]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.313328]  ? kmalloc_oob_in_memset+0x15f/0x320
[   24.313351]  kasan_report+0x141/0x180
[   24.313372]  ? kmalloc_oob_in_memset+0x15f/0x320
[   24.313398]  kasan_check_range+0x10c/0x1c0
[   24.313420]  __asan_memset+0x27/0x50
[   24.313442]  kmalloc_oob_in_memset+0x15f/0x320
[   24.313463]  ? __pfx_kmalloc_oob_in_memset+0x10/0x10
[   24.313485]  ? __schedule+0x10cc/0x2b60
[   24.313509]  ? __pfx_read_tsc+0x10/0x10
[   24.313531]  ? ktime_get_ts64+0x86/0x230
[   24.313558]  kunit_try_run_case+0x1a5/0x480
[   24.313582]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.313602]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.313624]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.313647]  ? __kthread_parkme+0x82/0x180
[   24.313682]  ? preempt_count_sub+0x50/0x80
[   24.313706]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.313727]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.313760]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.313785]  kthread+0x337/0x6f0
[   24.313804]  ? trace_preempt_on+0x20/0xc0
[   24.313829]  ? __pfx_kthread+0x10/0x10
[   24.313849]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.313870]  ? calculate_sigpending+0x7b/0xa0
[   24.313894]  ? __pfx_kthread+0x10/0x10
[   24.313915]  ret_from_fork+0x116/0x1d0
[   24.313934]  ? __pfx_kthread+0x10/0x10
[   24.313963]  ret_from_fork_asm+0x1a/0x30
[   24.313995]  </TASK>
[   24.314006] 
[   24.328563] Allocated by task 219:
[   24.329001]  kasan_save_stack+0x45/0x70
[   24.329307]  kasan_save_track+0x18/0x40
[   24.329472]  kasan_save_alloc_info+0x3b/0x50
[   24.329671]  __kasan_kmalloc+0xb7/0xc0
[   24.329809]  __kmalloc_cache_noprof+0x189/0x420
[   24.330006]  kmalloc_oob_in_memset+0xac/0x320
[   24.330564]  kunit_try_run_case+0x1a5/0x480
[   24.330864]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.331233]  kthread+0x337/0x6f0
[   24.331362]  ret_from_fork+0x116/0x1d0
[   24.331694]  ret_from_fork_asm+0x1a/0x30
[   24.331936] 
[   24.332183] The buggy address belongs to the object at ffff888105865f00
[   24.332183]  which belongs to the cache kmalloc-128 of size 128
[   24.332631] The buggy address is located 0 bytes inside of
[   24.332631]  allocated 120-byte region [ffff888105865f00, ffff888105865f78)
[   24.333391] 
[   24.333568] The buggy address belongs to the physical page:
[   24.333803] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105865
[   24.334238] flags: 0x200000000000000(node=0|zone=2)
[   24.334473] page_type: f5(slab)
[   24.334631] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   24.335197] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   24.335512] page dumped because: kasan: bad access detected
[   24.335749] 
[   24.335826] Memory state around the buggy address:
[   24.336026]  ffff888105865e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.336586]  ffff888105865e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.337034] >ffff888105865f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   24.337374]                                                                 ^
[   24.337925]  ffff888105865f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.338402]  ffff888105866000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.338816] ==================================================================