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

Environment
e850-96
qemu-arm64
qemu-x86_64
x15

[   33.427432] ==================================================================
[   33.436897] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   33.443580] Read of size 1 at addr ffff0008058260c8 by task kunit_try_catch/251
[   33.450869] 
[   33.452355] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   33.452411] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.452427] Hardware name: WinLink E850-96 board (DT)
[   33.452450] Call trace:
[   33.452465]  show_stack+0x20/0x38 (C)
[   33.452503]  dump_stack_lvl+0x8c/0xd0
[   33.452541]  print_report+0x118/0x608
[   33.452580]  kasan_report+0xdc/0x128
[   33.452614]  __asan_report_load1_noabort+0x20/0x30
[   33.452648]  kmem_cache_oob+0x344/0x430
[   33.452677]  kunit_try_run_case+0x170/0x3f0
[   33.452714]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.452754]  kthread+0x328/0x630
[   33.452782]  ret_from_fork+0x10/0x20
[   33.452819] 
[   33.515712] Allocated by task 251:
[   33.519101]  kasan_save_stack+0x3c/0x68
[   33.522916]  kasan_save_track+0x20/0x40
[   33.526735]  kasan_save_alloc_info+0x40/0x58
[   33.530989]  __kasan_slab_alloc+0xa8/0xb0
[   33.534983]  kmem_cache_alloc_noprof+0x10c/0x3a0
[   33.539582]  kmem_cache_oob+0x12c/0x430
[   33.543402]  kunit_try_run_case+0x170/0x3f0
[   33.547569]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.553037]  kthread+0x328/0x630
[   33.556249]  ret_from_fork+0x10/0x20
[   33.559808] 
[   33.561285] The buggy address belongs to the object at ffff000805826000
[   33.561285]  which belongs to the cache test_cache of size 200
[   33.573698] The buggy address is located 0 bytes to the right of
[   33.573698]  allocated 200-byte region [ffff000805826000, ffff0008058260c8)
[   33.586630] 
[   33.588108] The buggy address belongs to the physical page:
[   33.593666] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x885826
[   33.601650] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   33.609290] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   33.616232] page_type: f5(slab)
[   33.619369] raw: 0bfffe0000000040 ffff00080177be00 dead000000000122 0000000000000000
[   33.627088] raw: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000
[   33.634814] head: 0bfffe0000000040 ffff00080177be00 dead000000000122 0000000000000000
[   33.642627] head: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000
[   33.650438] head: 0bfffe0000000001 fffffdffe0160981 00000000ffffffff 00000000ffffffff
[   33.658250] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   33.666056] page dumped because: kasan: bad access detected
[   33.671613] 
[   33.673087] Memory state around the buggy address:
[   33.677868]  ffff000805825f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.685072]  ffff000805826000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.692276] >ffff000805826080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   33.699476]                                               ^
[   33.705035]  ffff000805826100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.712240]  ffff000805826180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.719441] ==================================================================

[   25.729385] ==================================================================
[   25.729516] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   25.729652] Read of size 1 at addr fff00000c77f30c8 by task kunit_try_catch/208
[   25.729792] 
[   25.729877] CPU: 0 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   25.730074] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.730138] Hardware name: linux,dummy-virt (DT)
[   25.730215] Call trace:
[   25.730265]  show_stack+0x20/0x38 (C)
[   25.730386]  dump_stack_lvl+0x8c/0xd0
[   25.730507]  print_report+0x118/0x608
[   25.730622]  kasan_report+0xdc/0x128
[   25.730798]  __asan_report_load1_noabort+0x20/0x30
[   25.731011]  kmem_cache_oob+0x344/0x430
[   25.731213]  kunit_try_run_case+0x170/0x3f0
[   25.731358]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.731568]  kthread+0x328/0x630
[   25.731722]  ret_from_fork+0x10/0x20
[   25.731859] 
[   25.732005] Allocated by task 208:
[   25.732077]  kasan_save_stack+0x3c/0x68
[   25.732270]  kasan_save_track+0x20/0x40
[   25.732373]  kasan_save_alloc_info+0x40/0x58
[   25.732492]  __kasan_slab_alloc+0xa8/0xb0
[   25.732636]  kmem_cache_alloc_noprof+0x10c/0x3a0
[   25.732841]  kmem_cache_oob+0x12c/0x430
[   25.733114]  kunit_try_run_case+0x170/0x3f0
[   25.733289]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.733400]  kthread+0x328/0x630
[   25.733488]  ret_from_fork+0x10/0x20
[   25.733575] 
[   25.733620] The buggy address belongs to the object at fff00000c77f3000
[   25.733620]  which belongs to the cache test_cache of size 200
[   25.733801] The buggy address is located 0 bytes to the right of
[   25.733801]  allocated 200-byte region [fff00000c77f3000, fff00000c77f30c8)
[   25.734042] 
[   25.734197] The buggy address belongs to the physical page:
[   25.734418] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077f3
[   25.734590] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   25.734736] page_type: f5(slab)
[   25.734856] raw: 0bfffe0000000000 fff00000c5bfe8c0 dead000000000122 0000000000000000
[   25.734994] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   25.735105] page dumped because: kasan: bad access detected
[   25.735269] 
[   25.735329] Memory state around the buggy address:
[   25.735421]  fff00000c77f2f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.735538]  fff00000c77f3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.735660] >fff00000c77f3080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   25.735780]                                               ^
[   25.735880]  fff00000c77f3100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.736205]  fff00000c77f3180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.736322] ==================================================================

[   19.371842] ==================================================================
[   19.373595] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   19.374143] Read of size 1 at addr ffff8881022d50c8 by task kunit_try_catch/224
[   19.375701] 
[   19.375956] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT(voluntary) 
[   19.376243] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.376284] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.376425] Call Trace:
[   19.376474]  <TASK>
[   19.376527]  dump_stack_lvl+0x73/0xb0
[   19.376612]  print_report+0xd1/0x650
[   19.376661]  ? __virt_addr_valid+0x1db/0x2d0
[   19.376698]  ? kmem_cache_oob+0x402/0x530
[   19.376774]  ? kasan_complete_mode_report_info+0x2a/0x200
[   19.376814]  ? kmem_cache_oob+0x402/0x530
[   19.376842]  kasan_report+0x141/0x180
[   19.376875]  ? kmem_cache_oob+0x402/0x530
[   19.376907]  __asan_report_load1_noabort+0x18/0x20
[   19.376936]  kmem_cache_oob+0x402/0x530
[   19.376962]  ? __pfx_kmem_cache_oob+0x10/0x10
[   19.376987]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   19.377059]  ? __pfx_kmem_cache_oob+0x10/0x10
[   19.377092]  kunit_try_run_case+0x1a5/0x480
[   19.377124]  ? __pfx_kunit_try_run_case+0x10/0x10
[   19.377150]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   19.377252]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   19.377329]  ? __kthread_parkme+0x82/0x180
[   19.377361]  ? preempt_count_sub+0x50/0x80
[   19.377393]  ? __pfx_kunit_try_run_case+0x10/0x10
[   19.377422]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.377456]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   19.377490]  kthread+0x337/0x6f0
[   19.377516]  ? trace_preempt_on+0x20/0xc0
[   19.377549]  ? __pfx_kthread+0x10/0x10
[   19.377577]  ? _raw_spin_unlock_irq+0x47/0x80
[   19.377609]  ? calculate_sigpending+0x7b/0xa0
[   19.377642]  ? __pfx_kthread+0x10/0x10
[   19.377671]  ret_from_fork+0x116/0x1d0
[   19.377696]  ? __pfx_kthread+0x10/0x10
[   19.377744]  ret_from_fork_asm+0x1a/0x30
[   19.377795]  </TASK>
[   19.377811] 
[   19.399447] Allocated by task 224:
[   19.400180]  kasan_save_stack+0x45/0x70
[   19.400906]  kasan_save_track+0x18/0x40
[   19.401725]  kasan_save_alloc_info+0x3b/0x50
[   19.402303]  __kasan_slab_alloc+0x91/0xa0
[   19.402980]  kmem_cache_alloc_noprof+0x123/0x3f0
[   19.403718]  kmem_cache_oob+0x157/0x530
[   19.404481]  kunit_try_run_case+0x1a5/0x480
[   19.405072]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.405673]  kthread+0x337/0x6f0
[   19.406606]  ret_from_fork+0x116/0x1d0
[   19.406906]  ret_from_fork_asm+0x1a/0x30
[   19.407983] 
[   19.408274] The buggy address belongs to the object at ffff8881022d5000
[   19.408274]  which belongs to the cache test_cache of size 200
[   19.409634] The buggy address is located 0 bytes to the right of
[   19.409634]  allocated 200-byte region [ffff8881022d5000, ffff8881022d50c8)
[   19.411592] 
[   19.412379] The buggy address belongs to the physical page:
[   19.412888] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022d5
[   19.413646] flags: 0x200000000000000(node=0|zone=2)
[   19.414067] page_type: f5(slab)
[   19.414484] raw: 0200000000000000 ffff8881022d3000 dead000000000122 0000000000000000
[   19.415739] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   19.416510] page dumped because: kasan: bad access detected
[   19.417472] 
[   19.417821] Memory state around the buggy address:
[   19.418159]  ffff8881022d4f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.419369]  ffff8881022d5000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.420048] >ffff8881022d5080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   19.420554]                                               ^
[   19.421247]  ffff8881022d5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.422546]  ffff8881022d5180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.423336] ==================================================================

[   59.987060] ==================================================================
[   59.997924] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x3e0/0x524
[   60.004699] Read of size 1 at addr cc85c0c8 by task kunit_try_catch/259
[   60.011352] 
[   60.012878] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G    B   W        N  6.15.0-next-20250530 #1 NONE 
[   60.012908] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   60.012939] Hardware name: Generic DRA74X (Flattened Device Tree)
[   60.012939] Call trace: 
[   60.012939]  unwind_backtrace from show_stack+0x18/0x1c
[   60.013000]  show_stack from dump_stack_lvl+0x70/0x90
[   60.013031]  dump_stack_lvl from print_report+0x158/0x528
[   60.013061]  print_report from kasan_report+0xdc/0x118
[   60.013092]  kasan_report from kmem_cache_oob+0x3e0/0x524
[   60.013092]  kmem_cache_oob from kunit_try_run_case+0x22c/0x5a8
[   60.013153]  kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128
[   60.013183]  kunit_generic_run_threadfn_adapter from kthread+0x464/0x810
[   60.013214]  kthread from ret_from_fork+0x14/0x20
[   60.013244] Exception stack(0xf2373fb0 to 0xf2373ff8)
[   60.013244] 3fa0:                                     00000000 00000000 00000000 00000000
[   60.013275] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   60.013305] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   60.013305] 
[   60.118560] Allocated by task 259:
[   60.121978]  kasan_save_track+0x30/0x5c
[   60.125854]  __kasan_slab_alloc+0x60/0x68
[   60.129913]  kmem_cache_alloc_noprof+0x17c/0x36c
[   60.134582]  kmem_cache_oob+0x170/0x524
[   60.138458]  kunit_try_run_case+0x22c/0x5a8
[   60.142669]  kunit_generic_run_threadfn_adapter+0xc4/0x128
[   60.148193]  kthread+0x464/0x810
[   60.151458]  ret_from_fork+0x14/0x20
[   60.155090] 
[   60.156585] The buggy address belongs to the object at cc85c000
[   60.156585]  which belongs to the cache test_cache of size 200
[   60.168395] The buggy address is located 0 bytes to the right of
[   60.168395]  allocated 200-byte region [cc85c000, cc85c0c8)
[   60.180053] 
[   60.181549] The buggy address belongs to the physical page:
[   60.187164] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c85c
[   60.194458] flags: 0x0(zone=0)
[   60.197540] page_type: f5(slab)
[   60.200714] raw: 00000000 cc85a000 00000122 00000000 00000000 800f000f f5000000 00000000
[   60.208862] raw: 00000000
[   60.211486] page dumped because: kasan: bad access detected
[   60.217102] 
[   60.218627] Memory state around the buggy address:
[   60.223449]  cc85bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   60.230010]  cc85c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   60.236602] >cc85c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   60.243164]                                       ^
[   60.248077]  cc85c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   60.254669]  cc85c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   60.261230] ==================================================================