Hay
Date
June 26, 2025, 11:12 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   27.985309] ==================================================================
[   27.994788] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   28.001990] Write of size 8 at addr ffff000802d02c71 by task kunit_try_catch/225
[   28.009368] 
[   28.010855] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   28.010914] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.010931] Hardware name: WinLink E850-96 board (DT)
[   28.010952] Call trace:
[   28.010964]  show_stack+0x20/0x38 (C)
[   28.011000]  dump_stack_lvl+0x8c/0xd0
[   28.011039]  print_report+0x118/0x608
[   28.011069]  kasan_report+0xdc/0x128
[   28.011098]  kasan_check_range+0x100/0x1a8
[   28.011129]  __asan_memset+0x34/0x78
[   28.011160]  kmalloc_oob_memset_8+0x150/0x2f8
[   28.011196]  kunit_try_run_case+0x170/0x3f0
[   28.011232]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.011270]  kthread+0x328/0x630
[   28.011305]  ret_from_fork+0x10/0x20
[   28.011341] 
[   28.076729] Allocated by task 225:
[   28.080116]  kasan_save_stack+0x3c/0x68
[   28.083933]  kasan_save_track+0x20/0x40
[   28.087751]  kasan_save_alloc_info+0x40/0x58
[   28.092004]  __kasan_kmalloc+0xd4/0xd8
[   28.095737]  __kmalloc_cache_noprof+0x16c/0x3c0
[   28.100251]  kmalloc_oob_memset_8+0xb0/0x2f8
[   28.104504]  kunit_try_run_case+0x170/0x3f0
[   28.108671]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.114141]  kthread+0x328/0x630
[   28.117351]  ret_from_fork+0x10/0x20
[   28.120910] 
[   28.122389] The buggy address belongs to the object at ffff000802d02c00
[   28.122389]  which belongs to the cache kmalloc-128 of size 128
[   28.134888] The buggy address is located 113 bytes inside of
[   28.134888]  allocated 120-byte region [ffff000802d02c00, ffff000802d02c78)
[   28.147472] 
[   28.148950] The buggy address belongs to the physical page:
[   28.154508] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x882d02
[   28.162493] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   28.170131] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   28.177074] page_type: f5(slab)
[   28.180213] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   28.187930] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   28.195657] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   28.203468] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   28.211281] head: 0bfffe0000000001 fffffdffe00b4081 00000000ffffffff 00000000ffffffff
[   28.219093] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   28.226898] page dumped because: kasan: bad access detected
[   28.232455] 
[   28.233931] Memory state around the buggy address:
[   28.238713]  ffff000802d02b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   28.245912]  ffff000802d02b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.253118] >ffff000802d02c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   28.260318]                                                                 ^
[   28.267440]  ffff000802d02c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.274644]  ffff000802d02d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.281847] ==================================================================

[   18.042745] ==================================================================
[   18.042801] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   18.042866] Write of size 8 at addr fff00000c5bdca71 by task kunit_try_catch/178
[   18.042916] 
[   18.042944] CPU: 0 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   18.043026] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.043053] Hardware name: linux,dummy-virt (DT)
[   18.043082] Call trace:
[   18.043103]  show_stack+0x20/0x38 (C)
[   18.043156]  dump_stack_lvl+0x8c/0xd0
[   18.043202]  print_report+0x118/0x608
[   18.043245]  kasan_report+0xdc/0x128
[   18.043288]  kasan_check_range+0x100/0x1a8
[   18.043333]  __asan_memset+0x34/0x78
[   18.043376]  kmalloc_oob_memset_8+0x150/0x2f8
[   18.043423]  kunit_try_run_case+0x170/0x3f0
[   18.043469]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.043521]  kthread+0x328/0x630
[   18.043564]  ret_from_fork+0x10/0x20
[   18.043644] 
[   18.043712] Allocated by task 178:
[   18.043739]  kasan_save_stack+0x3c/0x68
[   18.043813]  kasan_save_track+0x20/0x40
[   18.043848]  kasan_save_alloc_info+0x40/0x58
[   18.043896]  __kasan_kmalloc+0xd4/0xd8
[   18.044095]  __kmalloc_cache_noprof+0x16c/0x3c0
[   18.044233]  kmalloc_oob_memset_8+0xb0/0x2f8
[   18.044291]  kunit_try_run_case+0x170/0x3f0
[   18.044647]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.044690]  kthread+0x328/0x630
[   18.044725]  ret_from_fork+0x10/0x20
[   18.044794] 
[   18.044896] The buggy address belongs to the object at fff00000c5bdca00
[   18.044896]  which belongs to the cache kmalloc-128 of size 128
[   18.044952] The buggy address is located 113 bytes inside of
[   18.044952]  allocated 120-byte region [fff00000c5bdca00, fff00000c5bdca78)
[   18.045065] 
[   18.045130] The buggy address belongs to the physical page:
[   18.045158] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105bdc
[   18.045263] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.045319] page_type: f5(slab)
[   18.045357] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   18.045467] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   18.045531] page dumped because: kasan: bad access detected
[   18.045617] 
[   18.045726] Memory state around the buggy address:
[   18.045815]  fff00000c5bdc900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   18.045888]  fff00000c5bdc980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.045961] >fff00000c5bdca00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   18.045999]                                                                 ^
[   18.046053]  fff00000c5bdca80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.046096]  fff00000c5bdcb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.046135] ==================================================================

[   11.024882] ==================================================================
[   11.025589] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330
[   11.025960] Write of size 8 at addr ffff8881029f9171 by task kunit_try_catch/195
[   11.026349] 
[   11.026556] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT(voluntary) 
[   11.026607] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.026619] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.026822] Call Trace:
[   11.026845]  <TASK>
[   11.026865]  dump_stack_lvl+0x73/0xb0
[   11.026896]  print_report+0xd1/0x650
[   11.026929]  ? __virt_addr_valid+0x1db/0x2d0
[   11.026952]  ? kmalloc_oob_memset_8+0x166/0x330
[   11.026974]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.026995]  ? kmalloc_oob_memset_8+0x166/0x330
[   11.027017]  kasan_report+0x141/0x180
[   11.027039]  ? kmalloc_oob_memset_8+0x166/0x330
[   11.027065]  kasan_check_range+0x10c/0x1c0
[   11.027084]  __asan_memset+0x27/0x50
[   11.027105]  kmalloc_oob_memset_8+0x166/0x330
[   11.027381]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   11.027412]  ? __schedule+0x10cc/0x2b60
[   11.027435]  ? __pfx_read_tsc+0x10/0x10
[   11.027456]  ? ktime_get_ts64+0x86/0x230
[   11.027482]  kunit_try_run_case+0x1a5/0x480
[   11.027508]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.027530]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.027553]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.027576]  ? __kthread_parkme+0x82/0x180
[   11.027597]  ? preempt_count_sub+0x50/0x80
[   11.027624]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.027649]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.027671]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.027693]  kthread+0x337/0x6f0
[   11.027709]  ? trace_preempt_on+0x20/0xc0
[   11.027732]  ? __pfx_kthread+0x10/0x10
[   11.027749]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.027770]  ? calculate_sigpending+0x7b/0xa0
[   11.027791]  ? __pfx_kthread+0x10/0x10
[   11.027808]  ret_from_fork+0x41/0x80
[   11.027829]  ? __pfx_kthread+0x10/0x10
[   11.027846]  ret_from_fork_asm+0x1a/0x30
[   11.027876]  </TASK>
[   11.027887] 
[   11.037381] Allocated by task 195:
[   11.037580]  kasan_save_stack+0x45/0x70
[   11.037825]  kasan_save_track+0x18/0x40
[   11.038057]  kasan_save_alloc_info+0x3b/0x50
[   11.038582]  __kasan_kmalloc+0xb7/0xc0
[   11.038865]  __kmalloc_cache_noprof+0x189/0x420
[   11.039204]  kmalloc_oob_memset_8+0xac/0x330
[   11.039377]  kunit_try_run_case+0x1a5/0x480
[   11.039594]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.040073]  kthread+0x337/0x6f0
[   11.040243]  ret_from_fork+0x41/0x80
[   11.040585]  ret_from_fork_asm+0x1a/0x30
[   11.040893] 
[   11.041078] The buggy address belongs to the object at ffff8881029f9100
[   11.041078]  which belongs to the cache kmalloc-128 of size 128
[   11.041730] The buggy address is located 113 bytes inside of
[   11.041730]  allocated 120-byte region [ffff8881029f9100, ffff8881029f9178)
[   11.042433] 
[   11.042734] The buggy address belongs to the physical page:
[   11.042989] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f9
[   11.043347] flags: 0x200000000000000(node=0|zone=2)
[   11.043569] page_type: f5(slab)
[   11.043965] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   11.044327] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   11.044708] page dumped because: kasan: bad access detected
[   11.044988] 
[   11.045074] Memory state around the buggy address:
[   11.045240]  ffff8881029f9000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   11.045553]  ffff8881029f9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.046129] >ffff8881029f9100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   11.046521]                                                                 ^
[   11.047031]  ffff8881029f9180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.047286]  ffff8881029f9200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.047571] ==================================================================