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

Environment
e850-96
qemu-arm64
qemu-x86_64

[   44.056329] ==================================================================
[   44.066090] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8
[   44.073379] Write of size 16 at addr ffff0008074f9069 by task kunit_try_catch/262
[   44.080844] 
[   44.082329] CPU: 2 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250714 #1 PREEMPT 
[   44.082384] Tainted: [B]=BAD_PAGE, [N]=TEST
[   44.082398] Hardware name: WinLink E850-96 board (DT)
[   44.082417] Call trace:
[   44.082429]  show_stack+0x20/0x38 (C)
[   44.082465]  dump_stack_lvl+0x8c/0xd0
[   44.082496]  print_report+0x118/0x5d0
[   44.082524]  kasan_report+0xdc/0x128
[   44.082551]  kasan_check_range+0x100/0x1a8
[   44.082581]  __asan_memset+0x34/0x78
[   44.082613]  kmalloc_oob_memset_16+0x150/0x2f8
[   44.082645]  kunit_try_run_case+0x170/0x3f0
[   44.082680]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   44.082711]  kthread+0x328/0x630
[   44.082738]  ret_from_fork+0x10/0x20
[   44.082774] 
[   44.149506] Allocated by task 262:
[   44.152892]  kasan_save_stack+0x3c/0x68
[   44.156709]  kasan_save_track+0x20/0x40
[   44.160529]  kasan_save_alloc_info+0x40/0x58
[   44.164782]  __kasan_kmalloc+0xd4/0xd8
[   44.168514]  __kmalloc_cache_noprof+0x16c/0x3c0
[   44.173028]  kmalloc_oob_memset_16+0xb0/0x2f8
[   44.177370]  kunit_try_run_case+0x170/0x3f0
[   44.181535]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   44.187004]  kthread+0x328/0x630
[   44.190215]  ret_from_fork+0x10/0x20
[   44.193774] 
[   44.195253] The buggy address belongs to the object at ffff0008074f9000
[   44.195253]  which belongs to the cache kmalloc-128 of size 128
[   44.207753] The buggy address is located 105 bytes inside of
[   44.207753]  allocated 120-byte region [ffff0008074f9000, ffff0008074f9078)
[   44.220337] 
[   44.221814] The buggy address belongs to the physical page:
[   44.227372] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8874f8
[   44.235355] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   44.242996] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   44.249940] page_type: f5(slab)
[   44.253076] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   44.260794] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   44.268521] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   44.276332] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   44.284145] head: 0bfffe0000000001 fffffdffe01d3e01 00000000ffffffff 00000000ffffffff
[   44.291957] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   44.299764] page dumped because: kasan: bad access detected
[   44.305318] 
[   44.306793] Memory state around the buggy address:
[   44.311575]  ffff0008074f8f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   44.318776]  ffff0008074f8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   44.325983] >ffff0008074f9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   44.333182]                                                                 ^
[   44.340304]  ffff0008074f9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   44.347509]  ffff0008074f9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   44.354711] ==================================================================

[   29.687123] ==================================================================
[   29.687350] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8
[   29.687800] Write of size 16 at addr fff00000c636ad69 by task kunit_try_catch/209
[   29.687929] 
[   29.687970] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250714 #1 PREEMPT 
[   29.688067] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.688502] Hardware name: linux,dummy-virt (DT)
[   29.688596] Call trace:
[   29.688620]  show_stack+0x20/0x38 (C)
[   29.688672]  dump_stack_lvl+0x8c/0xd0
[   29.688719]  print_report+0x118/0x5d0
[   29.688763]  kasan_report+0xdc/0x128
[   29.688983]  kasan_check_range+0x100/0x1a8
[   29.689156]  __asan_memset+0x34/0x78
[   29.689258]  kmalloc_oob_memset_16+0x150/0x2f8
[   29.689394]  kunit_try_run_case+0x170/0x3f0
[   29.689463]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.689640]  kthread+0x328/0x630
[   29.689854]  ret_from_fork+0x10/0x20
[   29.689910] 
[   29.689947] Allocated by task 209:
[   29.689974]  kasan_save_stack+0x3c/0x68
[   29.690015]  kasan_save_track+0x20/0x40
[   29.690062]  kasan_save_alloc_info+0x40/0x58
[   29.690099]  __kasan_kmalloc+0xd4/0xd8
[   29.690136]  __kmalloc_cache_noprof+0x16c/0x3c0
[   29.690183]  kmalloc_oob_memset_16+0xb0/0x2f8
[   29.690252]  kunit_try_run_case+0x170/0x3f0
[   29.690337]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.690380]  kthread+0x328/0x630
[   29.690419]  ret_from_fork+0x10/0x20
[   29.690545] 
[   29.690564] The buggy address belongs to the object at fff00000c636ad00
[   29.690564]  which belongs to the cache kmalloc-128 of size 128
[   29.690711] The buggy address is located 105 bytes inside of
[   29.690711]  allocated 120-byte region [fff00000c636ad00, fff00000c636ad78)
[   29.690840] 
[   29.690863] The buggy address belongs to the physical page:
[   29.690895] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10636a
[   29.690950] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.691055] page_type: f5(slab)
[   29.691099] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   29.691148] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   29.691688] page dumped because: kasan: bad access detected
[   29.691729] 
[   29.691955] Memory state around the buggy address:
[   29.692084]  fff00000c636ac00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   29.692324]  fff00000c636ac80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.692369] >fff00000c636ad00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   29.692407]                                                                 ^
[   29.692448]  fff00000c636ad80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.692490]  fff00000c636ae00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.692536] ==================================================================

[   24.433449] ==================================================================
[   24.434538] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330
[   24.435357] Write of size 16 at addr ffff888105919169 by task kunit_try_catch/227
[   24.435587] 
[   24.435691] CPU: 1 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc6-next-20250714 #1 PREEMPT(voluntary) 
[   24.435774] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   24.435789] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.435813] Call Trace:
[   24.436029]  <TASK>
[   24.436059]  dump_stack_lvl+0x73/0xb0
[   24.436230]  print_report+0xd1/0x610
[   24.436256]  ? __virt_addr_valid+0x1db/0x2d0
[   24.436281]  ? kmalloc_oob_memset_16+0x166/0x330
[   24.436301]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.436326]  ? kmalloc_oob_memset_16+0x166/0x330
[   24.436346]  kasan_report+0x141/0x180
[   24.436367]  ? kmalloc_oob_memset_16+0x166/0x330
[   24.436392]  kasan_check_range+0x10c/0x1c0
[   24.436415]  __asan_memset+0x27/0x50
[   24.436437]  kmalloc_oob_memset_16+0x166/0x330
[   24.436458]  ? __pfx_kmalloc_oob_memset_16+0x10/0x10
[   24.436480]  ? __schedule+0x10cc/0x2b60
[   24.436503]  ? __pfx_read_tsc+0x10/0x10
[   24.436524]  ? ktime_get_ts64+0x86/0x230
[   24.436548]  kunit_try_run_case+0x1a5/0x480
[   24.436571]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.436591]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.436613]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.436635]  ? __kthread_parkme+0x82/0x180
[   24.436668]  ? preempt_count_sub+0x50/0x80
[   24.436691]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.436712]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.436743]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.436767]  kthread+0x337/0x6f0
[   24.436786]  ? trace_preempt_on+0x20/0xc0
[   24.436809]  ? __pfx_kthread+0x10/0x10
[   24.436829]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.436849]  ? calculate_sigpending+0x7b/0xa0
[   24.436873]  ? __pfx_kthread+0x10/0x10
[   24.436893]  ret_from_fork+0x116/0x1d0
[   24.436911]  ? __pfx_kthread+0x10/0x10
[   24.436931]  ret_from_fork_asm+0x1a/0x30
[   24.436962]  </TASK>
[   24.436974] 
[   24.451301] Allocated by task 227:
[   24.451456]  kasan_save_stack+0x45/0x70
[   24.451615]  kasan_save_track+0x18/0x40
[   24.451969]  kasan_save_alloc_info+0x3b/0x50
[   24.452424]  __kasan_kmalloc+0xb7/0xc0
[   24.452604]  __kmalloc_cache_noprof+0x189/0x420
[   24.452875]  kmalloc_oob_memset_16+0xac/0x330
[   24.453360]  kunit_try_run_case+0x1a5/0x480
[   24.453743]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.454338]  kthread+0x337/0x6f0
[   24.454504]  ret_from_fork+0x116/0x1d0
[   24.454632]  ret_from_fork_asm+0x1a/0x30
[   24.454889] 
[   24.455076] The buggy address belongs to the object at ffff888105919100
[   24.455076]  which belongs to the cache kmalloc-128 of size 128
[   24.456237] The buggy address is located 105 bytes inside of
[   24.456237]  allocated 120-byte region [ffff888105919100, ffff888105919178)
[   24.457070] 
[   24.457144] The buggy address belongs to the physical page:
[   24.457310] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105919
[   24.457543] flags: 0x200000000000000(node=0|zone=2)
[   24.457719] page_type: f5(slab)
[   24.457934] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   24.458313] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   24.458604] page dumped because: kasan: bad access detected
[   24.458857] 
[   24.458950] Memory state around the buggy address:
[   24.459159]  ffff888105919000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.459376]  ffff888105919080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.459621] >ffff888105919100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   24.459956]                                                                 ^
[   24.460181]  ffff888105919180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.460452]  ffff888105919200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.461050] ==================================================================