Hay
Date
May 30, 2025, 4:14 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64
x15

[   26.602229] ==================================================================
[   26.611106] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   26.617786] Write of size 16 at addr ffff000801b07760 by task kunit_try_catch/210
[   26.625251] 
[   26.626734] CPU: 3 UID: 0 PID: 210 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   26.626786] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.626800] Hardware name: WinLink E850-96 board (DT)
[   26.626819] Call trace:
[   26.626836]  show_stack+0x20/0x38 (C)
[   26.626868]  dump_stack_lvl+0x8c/0xd0
[   26.626903]  print_report+0x118/0x608
[   26.626940]  kasan_report+0xdc/0x128
[   26.626971]  __asan_report_store16_noabort+0x20/0x30
[   26.627004]  kmalloc_oob_16+0x3a0/0x3f8
[   26.627032]  kunit_try_run_case+0x170/0x3f0
[   26.627068]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.627106]  kthread+0x328/0x630
[   26.627131]  ret_from_fork+0x10/0x20
[   26.627163] 
[   26.690268] Allocated by task 210:
[   26.693655]  kasan_save_stack+0x3c/0x68
[   26.697473]  kasan_save_track+0x20/0x40
[   26.701292]  kasan_save_alloc_info+0x40/0x58
[   26.705545]  __kasan_kmalloc+0xd4/0xd8
[   26.709277]  __kmalloc_cache_noprof+0x15c/0x3c0
[   26.713791]  kmalloc_oob_16+0xb4/0x3f8
[   26.717523]  kunit_try_run_case+0x170/0x3f0
[   26.721690]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.727159]  kthread+0x328/0x630
[   26.730370]  ret_from_fork+0x10/0x20
[   26.733929] 
[   26.735406] The buggy address belongs to the object at ffff000801b07760
[   26.735406]  which belongs to the cache kmalloc-16 of size 16
[   26.747733] The buggy address is located 0 bytes inside of
[   26.747733]  allocated 13-byte region [ffff000801b07760, ffff000801b0776d)
[   26.760058] 
[   26.761536] The buggy address belongs to the physical page:
[   26.767092] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881b07
[   26.775076] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   26.781586] page_type: f5(slab)
[   26.784721] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000
[   26.792442] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   26.800161] page dumped because: kasan: bad access detected
[   26.805718] 
[   26.807192] Memory state around the buggy address:
[   26.811974]  ffff000801b07600: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   26.819175]  ffff000801b07680: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc
[   26.826380] >ffff000801b07700: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   26.833581]                                                           ^
[   26.840181]  ffff000801b07780: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.847388]  ffff000801b07800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.854588] ==================================================================

[   24.701261] ==================================================================
[   24.701390] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   24.701505] Write of size 16 at addr fff00000c5ed4ca0 by task kunit_try_catch/167
[   24.701617] 
[   24.701713] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   24.701928] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.702003] Hardware name: linux,dummy-virt (DT)
[   24.702123] Call trace:
[   24.702186]  show_stack+0x20/0x38 (C)
[   24.702327]  dump_stack_lvl+0x8c/0xd0
[   24.702466]  print_report+0x118/0x608
[   24.702745]  kasan_report+0xdc/0x128
[   24.702878]  __asan_report_store16_noabort+0x20/0x30
[   24.703015]  kmalloc_oob_16+0x3a0/0x3f8
[   24.703230]  kunit_try_run_case+0x170/0x3f0
[   24.703382]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.703526]  kthread+0x328/0x630
[   24.703774]  ret_from_fork+0x10/0x20
[   24.703950] 
[   24.704020] Allocated by task 167:
[   24.704186]  kasan_save_stack+0x3c/0x68
[   24.704338]  kasan_save_track+0x20/0x40
[   24.704434]  kasan_save_alloc_info+0x40/0x58
[   24.704697]  __kasan_kmalloc+0xd4/0xd8
[   24.704793]  __kmalloc_cache_noprof+0x15c/0x3c0
[   24.704920]  kmalloc_oob_16+0xb4/0x3f8
[   24.705142]  kunit_try_run_case+0x170/0x3f0
[   24.705284]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.705448]  kthread+0x328/0x630
[   24.706002]  ret_from_fork+0x10/0x20
[   24.706121] 
[   24.706175] The buggy address belongs to the object at fff00000c5ed4ca0
[   24.706175]  which belongs to the cache kmalloc-16 of size 16
[   24.706317] The buggy address is located 0 bytes inside of
[   24.706317]  allocated 13-byte region [fff00000c5ed4ca0, fff00000c5ed4cad)
[   24.706466] 
[   24.706526] The buggy address belongs to the physical page:
[   24.706780] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ed4
[   24.706906] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   24.707041] page_type: f5(slab)
[   24.707176] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   24.707403] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   24.707501] page dumped because: kasan: bad access detected
[   24.707572] 
[   24.707662] Memory state around the buggy address:
[   24.707828]  fff00000c5ed4b80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   24.707930]  fff00000c5ed4c00: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc
[   24.708135] >fff00000c5ed4c80: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc
[   24.708227]                                   ^
[   24.708302]  fff00000c5ed4d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.708445]  fff00000c5ed4d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.708563] ==================================================================

[   18.036098] ==================================================================
[   18.037388] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   18.038155] Write of size 16 at addr ffff888100fa0ee0 by task kunit_try_catch/183
[   18.039194] 
[   18.039455] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT(voluntary) 
[   18.039541] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.039560] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.039588] Call Trace:
[   18.039604]  <TASK>
[   18.039624]  dump_stack_lvl+0x73/0xb0
[   18.039702]  print_report+0xd1/0x650
[   18.039736]  ? __virt_addr_valid+0x1db/0x2d0
[   18.039799]  ? kmalloc_oob_16+0x452/0x4a0
[   18.039833]  ? kasan_complete_mode_report_info+0x2a/0x200
[   18.039865]  ? kmalloc_oob_16+0x452/0x4a0
[   18.039895]  kasan_report+0x141/0x180
[   18.039928]  ? kmalloc_oob_16+0x452/0x4a0
[   18.039964]  __asan_report_store16_noabort+0x1b/0x30
[   18.039994]  kmalloc_oob_16+0x452/0x4a0
[   18.040046]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   18.040124]  ? __schedule+0x10cc/0x2b60
[   18.040205]  ? __pfx_read_tsc+0x10/0x10
[   18.040247]  ? ktime_get_ts64+0x86/0x230
[   18.040281]  kunit_try_run_case+0x1a5/0x480
[   18.040311]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.040338]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   18.040372]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   18.040407]  ? __kthread_parkme+0x82/0x180
[   18.040435]  ? preempt_count_sub+0x50/0x80
[   18.040466]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.040493]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.040527]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.040560]  kthread+0x337/0x6f0
[   18.040586]  ? trace_preempt_on+0x20/0xc0
[   18.040617]  ? __pfx_kthread+0x10/0x10
[   18.040645]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.040676]  ? calculate_sigpending+0x7b/0xa0
[   18.040709]  ? __pfx_kthread+0x10/0x10
[   18.040738]  ret_from_fork+0x116/0x1d0
[   18.040837]  ? __pfx_kthread+0x10/0x10
[   18.040916]  ret_from_fork_asm+0x1a/0x30
[   18.041013]  </TASK>
[   18.041068] 
[   18.059860] Allocated by task 183:
[   18.060803]  kasan_save_stack+0x45/0x70
[   18.061386]  kasan_save_track+0x18/0x40
[   18.062004]  kasan_save_alloc_info+0x3b/0x50
[   18.062479]  __kasan_kmalloc+0xb7/0xc0
[   18.063143]  __kmalloc_cache_noprof+0x189/0x420
[   18.063675]  kmalloc_oob_16+0xa8/0x4a0
[   18.064312]  kunit_try_run_case+0x1a5/0x480
[   18.064922]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.065360]  kthread+0x337/0x6f0
[   18.065639]  ret_from_fork+0x116/0x1d0
[   18.066802]  ret_from_fork_asm+0x1a/0x30
[   18.067107] 
[   18.067341] The buggy address belongs to the object at ffff888100fa0ee0
[   18.067341]  which belongs to the cache kmalloc-16 of size 16
[   18.068643] The buggy address is located 0 bytes inside of
[   18.068643]  allocated 13-byte region [ffff888100fa0ee0, ffff888100fa0eed)
[   18.070249] 
[   18.070420] The buggy address belongs to the physical page:
[   18.070864] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100fa0
[   18.071435] flags: 0x200000000000000(node=0|zone=2)
[   18.071820] page_type: f5(slab)
[   18.072150] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   18.072626] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   18.073699] page dumped because: kasan: bad access detected
[   18.074547] 
[   18.074707] Memory state around the buggy address:
[   18.075271]  ffff888100fa0d80: 00 04 fc fc 00 04 fc fc 00 00 fc fc fa fb fc fc
[   18.075931]  ffff888100fa0e00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   18.076888] >ffff888100fa0e80: fa fb fc fc 00 05 fc fc fa fb fc fc 00 05 fc fc
[   18.077346]                                                           ^
[   18.077827]  ffff888100fa0f00: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.078339]  ffff888100fa0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.078878] ==================================================================

[   53.201721] ==================================================================
[   53.212402] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x4b0/0x520
[   53.219177] Write of size 16 at addr cc796680 by task kunit_try_catch/218
[   53.226013] 
[   53.227508] CPU: 0 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G    B   W        N  6.15.0-next-20250530 #1 NONE 
[   53.227539] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   53.227539] Hardware name: Generic DRA74X (Flattened Device Tree)
[   53.227539] Call trace: 
[   53.227569]  unwind_backtrace from show_stack+0x18/0x1c
[   53.227569]  show_stack from dump_stack_lvl+0x70/0x90
[   53.227600]  dump_stack_lvl from print_report+0x158/0x528
[   53.227630]  print_report from kasan_report+0xdc/0x118
[   53.227661]  kasan_report from kmalloc_oob_16+0x4b0/0x520
[   53.227661]  kmalloc_oob_16 from kunit_try_run_case+0x22c/0x5a8
[   53.227691]  kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128
[   53.227722]  kunit_generic_run_threadfn_adapter from kthread+0x464/0x810
[   53.227752]  kthread from ret_from_fork+0x14/0x20
[   53.227783] Exception stack(0xf2253fb0 to 0xf2253ff8)
[   53.227783] 3fa0:                                     00000000 00000000 00000000 00000000
[   53.227813] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   53.227813] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   53.227813] 
[   53.333038] Allocated by task 218:
[   53.336486]  kasan_save_track+0x30/0x5c
[   53.340332]  __kasan_kmalloc+0x8c/0x94
[   53.344116]  kmalloc_oob_16+0xcc/0x520
[   53.347900]  kunit_try_run_case+0x22c/0x5a8
[   53.352111]  kunit_generic_run_threadfn_adapter+0xc4/0x128
[   53.357635]  kthread+0x464/0x810
[   53.360900]  ret_from_fork+0x14/0x20
[   53.364501] 
[   53.365997] The buggy address belongs to the object at cc796680
[   53.365997]  which belongs to the cache kmalloc-64 of size 64
[   53.377716] The buggy address is located 0 bytes inside of
[   53.377716]  allocated 13-byte region [cc796680, cc79668d)
[   53.388732] 
[   53.390258] The buggy address belongs to the physical page:
[   53.395843] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c796
[   53.403137] flags: 0x0(zone=0)
[   53.406188] page_type: f5(slab)
[   53.409362] raw: 00000000 c7001300 00000122 00000000 00000000 80200020 f5000000 00000000
[   53.417510] raw: 00000000
[   53.420166] page dumped because: kasan: bad access detected
[   53.425750] 
[   53.427246] Memory state around the buggy address:
[   53.432098]  cc796580: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.438659]  cc796600: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.445220] >cc796680: 00 05 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.451782]               ^
[   53.454620]  cc796700: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.461181]  cc796780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.467742] ==================================================================