Hay
Date
June 24, 2025, 11:37 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   43.398781] ==================================================================
[   43.409740] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   43.416539] Read of size 1 at addr ffff0000803c60c8 by task kunit_try_catch/305
[   43.423955] 
[   43.425490] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   43.425520] Tainted: [B]=BAD_PAGE, [N]=TEST
[   43.425528] Hardware name: Thundercomm Dragonboard 845c (DT)
[   43.425542] Call trace:
[   43.425548]  show_stack+0x20/0x38 (C)
[   43.425567]  dump_stack_lvl+0x8c/0xd0
[   43.425587]  print_report+0x118/0x608
[   43.425606]  kasan_report+0xdc/0x128
[   43.425626]  __asan_report_load1_noabort+0x20/0x30
[   43.425645]  kmem_cache_oob+0x344/0x430
[   43.425662]  kunit_try_run_case+0x170/0x3f0
[   43.425684]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   43.425706]  kthread+0x328/0x630
[   43.425721]  ret_from_fork+0x10/0x20
[   43.425740] 
[   43.491088] Allocated by task 305:
[   43.494555]  kasan_save_stack+0x3c/0x68
[   43.498460]  kasan_save_track+0x20/0x40
[   43.502366]  kasan_save_alloc_info+0x40/0x58
[   43.506711]  __kasan_slab_alloc+0xa8/0xb0
[   43.510788]  kmem_cache_alloc_noprof+0x10c/0x398
[   43.515482]  kmem_cache_oob+0x12c/0x430
[   43.519387]  kunit_try_run_case+0x170/0x3f0
[   43.523648]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   43.529216]  kthread+0x328/0x630
[   43.532503]  ret_from_fork+0x10/0x20
[   43.536148] 
[   43.537678] The buggy address belongs to the object at ffff0000803c6000
[   43.537678]  which belongs to the cache test_cache of size 200
[   43.550255] The buggy address is located 0 bytes to the right of
[   43.550255]  allocated 200-byte region [ffff0000803c6000, ffff0000803c60c8)
[   43.563363] 
[   43.564894] The buggy address belongs to the physical page:
[   43.570539] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1003c6
[   43.578645] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   43.586404] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   43.593461] page_type: f5(slab)
[   43.596661] raw: 0bfffe0000000040 ffff0000803c4000 dead000000000122 0000000000000000
[   43.604508] raw: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000
[   43.612357] head: 0bfffe0000000040 ffff0000803c4000 dead000000000122 0000000000000000
[   43.620291] head: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000
[   43.628225] head: 0bfffe0000000001 fffffdffc200f181 00000000ffffffff 00000000ffffffff
[   43.636157] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   43.644086] page dumped because: kasan: bad access detected
[   43.649731] 
[   43.651262] Memory state around the buggy address:
[   43.656120]  ffff0000803c5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   43.663435]  ffff0000803c6000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   43.670751] >ffff0000803c6080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   43.678063]                                               ^
[   43.683711]  ffff0000803c6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   43.691027]  ffff0000803c6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   43.698340] ==================================================================

[   33.689071] ==================================================================
[   33.689219] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   33.689360] Read of size 1 at addr fff00000c77d20c8 by task kunit_try_catch/218
[   33.689497] 
[   33.689582] CPU: 0 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   33.689780] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.689842] Hardware name: linux,dummy-virt (DT)
[   33.690567] Call trace:
[   33.690707]  show_stack+0x20/0x38 (C)
[   33.690928]  dump_stack_lvl+0x8c/0xd0
[   33.691355]  print_report+0x118/0x608
[   33.691823]  kasan_report+0xdc/0x128
[   33.691968]  __asan_report_load1_noabort+0x20/0x30
[   33.692086]  kmem_cache_oob+0x344/0x430
[   33.692258]  kunit_try_run_case+0x170/0x3f0
[   33.692680]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.692930]  kthread+0x328/0x630
[   33.693089]  ret_from_fork+0x10/0x20
[   33.693215] 
[   33.693280] Allocated by task 218:
[   33.693396]  kasan_save_stack+0x3c/0x68
[   33.693509]  kasan_save_track+0x20/0x40
[   33.693667]  kasan_save_alloc_info+0x40/0x58
[   33.694114]  __kasan_slab_alloc+0xa8/0xb0
[   33.694234]  kmem_cache_alloc_noprof+0x10c/0x398
[   33.694369]  kmem_cache_oob+0x12c/0x430
[   33.694576]  kunit_try_run_case+0x170/0x3f0
[   33.695022]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.695417]  kthread+0x328/0x630
[   33.695935]  ret_from_fork+0x10/0x20
[   33.696170] 
[   33.696223] The buggy address belongs to the object at fff00000c77d2000
[   33.696223]  which belongs to the cache test_cache of size 200
[   33.696359] The buggy address is located 0 bytes to the right of
[   33.696359]  allocated 200-byte region [fff00000c77d2000, fff00000c77d20c8)
[   33.696507] 
[   33.697988] The buggy address belongs to the physical page:
[   33.698071] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d2
[   33.698199] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.698313] page_type: f5(slab)
[   33.699702] raw: 0bfffe0000000000 fff00000c11b8b40 dead000000000122 0000000000000000
[   33.699836] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   33.699949] page dumped because: kasan: bad access detected
[   33.700030] 
[   33.700081] Memory state around the buggy address:
[   33.702049]  fff00000c77d1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.702220]  fff00000c77d2000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.703273] >fff00000c77d2080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   33.703390]                                               ^
[   33.704172]  fff00000c77d2100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.704645]  fff00000c77d2180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.704753] ==================================================================

[   29.979449] ==================================================================
[   29.980205] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   29.981243] Read of size 1 at addr ffff888102de60c8 by task kunit_try_catch/237
[   29.982330] 
[   29.982884] CPU: 0 UID: 0 PID: 237 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) 
[   29.982973] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.982992] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.983017] Call Trace:
[   29.983034]  <TASK>
[   29.983060]  dump_stack_lvl+0x73/0xb0
[   29.983157]  print_report+0xd1/0x650
[   29.983194]  ? __virt_addr_valid+0x1db/0x2d0
[   29.983228]  ? kmem_cache_oob+0x402/0x530
[   29.983257]  ? kasan_complete_mode_report_info+0x2a/0x200
[   29.983291]  ? kmem_cache_oob+0x402/0x530
[   29.983320]  kasan_report+0x141/0x180
[   29.983348]  ? kmem_cache_oob+0x402/0x530
[   29.983381]  __asan_report_load1_noabort+0x18/0x20
[   29.983412]  kmem_cache_oob+0x402/0x530
[   29.983438]  ? trace_hardirqs_on+0x37/0xe0
[   29.983467]  ? __pfx_kmem_cache_oob+0x10/0x10
[   29.983495]  ? finish_task_switch.isra.0+0x153/0x700
[   29.983525]  ? __switch_to+0x47/0xf50
[   29.983584]  ? __pfx_read_tsc+0x10/0x10
[   29.983613]  ? ktime_get_ts64+0x86/0x230
[   29.983668]  kunit_try_run_case+0x1a5/0x480
[   29.983703]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.983733]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   29.983765]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   29.983797]  ? __kthread_parkme+0x82/0x180
[   29.983835]  ? preempt_count_sub+0x50/0x80
[   29.983865]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.983895]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.983926]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   29.983956]  kthread+0x337/0x6f0
[   29.983981]  ? trace_preempt_on+0x20/0xc0
[   29.984010]  ? __pfx_kthread+0x10/0x10
[   29.984036]  ? _raw_spin_unlock_irq+0x47/0x80
[   29.984081]  ? calculate_sigpending+0x7b/0xa0
[   29.984137]  ? __pfx_kthread+0x10/0x10
[   29.984171]  ret_from_fork+0x116/0x1d0
[   29.984230]  ? __pfx_kthread+0x10/0x10
[   29.984258]  ret_from_fork_asm+0x1a/0x30
[   29.984300]  </TASK>
[   29.984314] 
[   30.001379] Allocated by task 237:
[   30.001740]  kasan_save_stack+0x45/0x70
[   30.002170]  kasan_save_track+0x18/0x40
[   30.002506]  kasan_save_alloc_info+0x3b/0x50
[   30.003599]  __kasan_slab_alloc+0x91/0xa0
[   30.004393]  kmem_cache_alloc_noprof+0x123/0x3f0
[   30.004904]  kmem_cache_oob+0x157/0x530
[   30.005121]  kunit_try_run_case+0x1a5/0x480
[   30.005969]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.006848]  kthread+0x337/0x6f0
[   30.007376]  ret_from_fork+0x116/0x1d0
[   30.007658]  ret_from_fork_asm+0x1a/0x30
[   30.007939] 
[   30.008192] The buggy address belongs to the object at ffff888102de6000
[   30.008192]  which belongs to the cache test_cache of size 200
[   30.009517] The buggy address is located 0 bytes to the right of
[   30.009517]  allocated 200-byte region [ffff888102de6000, ffff888102de60c8)
[   30.010671] 
[   30.011114] The buggy address belongs to the physical page:
[   30.011613] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102de6
[   30.012301] flags: 0x200000000000000(node=0|zone=2)
[   30.012609] page_type: f5(slab)
[   30.012887] raw: 0200000000000000 ffff888101060b40 dead000000000122 0000000000000000
[   30.013576] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   30.014048] page dumped because: kasan: bad access detected
[   30.014524] 
[   30.014914] Memory state around the buggy address:
[   30.015911]  ffff888102de5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.016703]  ffff888102de6000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.017263] >ffff888102de6080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   30.017571]                                               ^
[   30.018216]  ffff888102de6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.018816]  ffff888102de6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.019421] ==================================================================