Hay
Date
July 4, 2025, 3:11 p.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   26.214230] ==================================================================
[   26.223717] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8
[   26.231004] Write of size 16 at addr ffff0008018e6f69 by task kunit_try_catch/227
[   26.238469] 
[   26.239955] CPU: 2 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT 
[   26.240010] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.240029] Hardware name: WinLink E850-96 board (DT)
[   26.240051] Call trace:
[   26.240064]  show_stack+0x20/0x38 (C)
[   26.240096]  dump_stack_lvl+0x8c/0xd0
[   26.240132]  print_report+0x118/0x608
[   26.240159]  kasan_report+0xdc/0x128
[   26.240188]  kasan_check_range+0x100/0x1a8
[   26.240219]  __asan_memset+0x34/0x78
[   26.240249]  kmalloc_oob_memset_16+0x150/0x2f8
[   26.240282]  kunit_try_run_case+0x170/0x3f0
[   26.240318]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.240358]  kthread+0x328/0x630
[   26.240391]  ret_from_fork+0x10/0x20
[   26.240422] 
[   26.305914] Allocated by task 227:
[   26.309303]  kasan_save_stack+0x3c/0x68
[   26.313118]  kasan_save_track+0x20/0x40
[   26.316940]  kasan_save_alloc_info+0x40/0x58
[   26.321191]  __kasan_kmalloc+0xd4/0xd8
[   26.324924]  __kmalloc_cache_noprof+0x16c/0x3c0
[   26.329438]  kmalloc_oob_memset_16+0xb0/0x2f8
[   26.333778]  kunit_try_run_case+0x170/0x3f0
[   26.337945]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.343414]  kthread+0x328/0x630
[   26.346625]  ret_from_fork+0x10/0x20
[   26.350184] 
[   26.351661] The buggy address belongs to the object at ffff0008018e6f00
[   26.351661]  which belongs to the cache kmalloc-128 of size 128
[   26.364163] The buggy address is located 105 bytes inside of
[   26.364163]  allocated 120-byte region [ffff0008018e6f00, ffff0008018e6f78)
[   26.376746] 
[   26.378226] The buggy address belongs to the physical page:
[   26.383781] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8818e6
[   26.391765] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   26.399404] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   26.406348] page_type: f5(slab)
[   26.409485] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   26.417204] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   26.424930] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   26.432742] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   26.440555] head: 0bfffe0000000001 fffffdffe0063981 00000000ffffffff 00000000ffffffff
[   26.448366] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   26.456175] page dumped because: kasan: bad access detected
[   26.461727] 
[   26.463203] Memory state around the buggy address:
[   26.467984]  ffff0008018e6e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   26.475186]  ffff0008018e6e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.482393] >ffff0008018e6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   26.489592]                                                                 ^
[   26.496713]  ffff0008018e6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.503920]  ffff0008018e7000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.511121] ==================================================================

[   15.617916] ==================================================================
[   15.617981] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8
[   15.618032] Write of size 16 at addr fff00000c637a969 by task kunit_try_catch/183
[   15.618287] 
[   15.618400] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT 
[   15.618521] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.618594] Hardware name: linux,dummy-virt (DT)
[   15.618639] Call trace:
[   15.618704]  show_stack+0x20/0x38 (C)
[   15.618755]  dump_stack_lvl+0x8c/0xd0
[   15.618848]  print_report+0x118/0x608
[   15.619067]  kasan_report+0xdc/0x128
[   15.619128]  kasan_check_range+0x100/0x1a8
[   15.619176]  __asan_memset+0x34/0x78
[   15.619218]  kmalloc_oob_memset_16+0x150/0x2f8
[   15.619463]  kunit_try_run_case+0x170/0x3f0
[   15.619572]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.619665]  kthread+0x328/0x630
[   15.619717]  ret_from_fork+0x10/0x20
[   15.619761] 
[   15.619779] Allocated by task 183:
[   15.619805]  kasan_save_stack+0x3c/0x68
[   15.619842]  kasan_save_track+0x20/0x40
[   15.620093]  kasan_save_alloc_info+0x40/0x58
[   15.620419]  __kasan_kmalloc+0xd4/0xd8
[   15.620459]  __kmalloc_cache_noprof+0x16c/0x3c0
[   15.620736]  kmalloc_oob_memset_16+0xb0/0x2f8
[   15.620912]  kunit_try_run_case+0x170/0x3f0
[   15.620956]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.621161]  kthread+0x328/0x630
[   15.621232]  ret_from_fork+0x10/0x20
[   15.621400] 
[   15.621545] The buggy address belongs to the object at fff00000c637a900
[   15.621545]  which belongs to the cache kmalloc-128 of size 128
[   15.621775] The buggy address is located 105 bytes inside of
[   15.621775]  allocated 120-byte region [fff00000c637a900, fff00000c637a978)
[   15.621866] 
[   15.621885] The buggy address belongs to the physical page:
[   15.622134] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10637a
[   15.622216] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.622372] page_type: f5(slab)
[   15.622508] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.622594] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.622645] page dumped because: kasan: bad access detected
[   15.622878] 
[   15.623025] Memory state around the buggy address:
[   15.623195]  fff00000c637a800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.623280]  fff00000c637a880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.623334] >fff00000c637a900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   15.623530]                                                                 ^
[   15.623700]  fff00000c637a980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.623839]  fff00000c637aa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.623937] ==================================================================

[   14.443482] ==================================================================
[   14.443985] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330
[   14.444748] Write of size 16 at addr ffff8881029e5969 by task kunit_try_catch/199
[   14.445406] 
[   14.445568] CPU: 1 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT(voluntary) 
[   14.445628] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.445641] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.445666] Call Trace:
[   14.445684]  <TASK>
[   14.445710]  dump_stack_lvl+0x73/0xb0
[   14.445747]  print_report+0xd1/0x650
[   14.445773]  ? __virt_addr_valid+0x1db/0x2d0
[   14.445799]  ? kmalloc_oob_memset_16+0x166/0x330
[   14.445823]  ? kasan_complete_mode_report_info+0x2a/0x200
[   14.445847]  ? kmalloc_oob_memset_16+0x166/0x330
[   14.445870]  kasan_report+0x141/0x180
[   14.445894]  ? kmalloc_oob_memset_16+0x166/0x330
[   14.445922]  kasan_check_range+0x10c/0x1c0
[   14.445944]  __asan_memset+0x27/0x50
[   14.445965]  kmalloc_oob_memset_16+0x166/0x330
[   14.445989]  ? __pfx_kmalloc_oob_memset_16+0x10/0x10
[   14.446014]  ? __schedule+0x10cc/0x2b60
[   14.446039]  ? __pfx_read_tsc+0x10/0x10
[   14.446060]  ? ktime_get_ts64+0x86/0x230
[   14.446106]  kunit_try_run_case+0x1a5/0x480
[   14.446149]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.446190]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.446237]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.446308]  ? __kthread_parkme+0x82/0x180
[   14.446376]  ? preempt_count_sub+0x50/0x80
[   14.446476]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.446550]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.446614]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.446665]  kthread+0x337/0x6f0
[   14.446698]  ? trace_preempt_on+0x20/0xc0
[   14.446745]  ? __pfx_kthread+0x10/0x10
[   14.446785]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.446827]  ? calculate_sigpending+0x7b/0xa0
[   14.446869]  ? __pfx_kthread+0x10/0x10
[   14.446908]  ret_from_fork+0x41/0x80
[   14.446949]  ? __pfx_kthread+0x10/0x10
[   14.446984]  ret_from_fork_asm+0x1a/0x30
[   14.447050]  </TASK>
[   14.447114] 
[   14.461078] Allocated by task 199:
[   14.461321]  kasan_save_stack+0x45/0x70
[   14.461692]  kasan_save_track+0x18/0x40
[   14.462010]  kasan_save_alloc_info+0x3b/0x50
[   14.462438]  __kasan_kmalloc+0xb7/0xc0
[   14.462627]  __kmalloc_cache_noprof+0x189/0x420
[   14.462979]  kmalloc_oob_memset_16+0xac/0x330
[   14.463297]  kunit_try_run_case+0x1a5/0x480
[   14.463998]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.464270]  kthread+0x337/0x6f0
[   14.464455]  ret_from_fork+0x41/0x80
[   14.464686]  ret_from_fork_asm+0x1a/0x30
[   14.465003] 
[   14.465136] The buggy address belongs to the object at ffff8881029e5900
[   14.465136]  which belongs to the cache kmalloc-128 of size 128
[   14.465704] The buggy address is located 105 bytes inside of
[   14.465704]  allocated 120-byte region [ffff8881029e5900, ffff8881029e5978)
[   14.466989] 
[   14.467216] The buggy address belongs to the physical page:
[   14.467481] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029e5
[   14.467858] flags: 0x200000000000000(node=0|zone=2)
[   14.468580] page_type: f5(slab)
[   14.468919] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   14.469194] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   14.469793] page dumped because: kasan: bad access detected
[   14.470409] 
[   14.470527] Memory state around the buggy address:
[   14.470674]  ffff8881029e5800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   14.470833]  ffff8881029e5880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   14.470965] >ffff8881029e5900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   14.471663]                                                                 ^
[   14.472300]  ffff8881029e5980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   14.472969]  ffff8881029e5a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   14.473570] ==================================================================