Hay
Date
June 26, 2025, 9:10 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   39.198917] ==================================================================
[   39.210399] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   39.217719] Write of size 8 at addr ffff00008039f371 by task kunit_try_catch/262
[   39.225220] 
[   39.226754] CPU: 0 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   39.226785] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.226793] Hardware name: Thundercomm Dragonboard 845c (DT)
[   39.226805] Call trace:
[   39.226813]  show_stack+0x20/0x38 (C)
[   39.226831]  dump_stack_lvl+0x8c/0xd0
[   39.226849]  print_report+0x118/0x608
[   39.226869]  kasan_report+0xdc/0x128
[   39.226887]  kasan_check_range+0x100/0x1a8
[   39.226909]  __asan_memset+0x34/0x78
[   39.226923]  kmalloc_oob_memset_8+0x150/0x2f8
[   39.226940]  kunit_try_run_case+0x170/0x3f0
[   39.226959]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.226982]  kthread+0x328/0x630
[   39.226996]  ret_from_fork+0x10/0x20
[   39.227014] 
[   39.295808] Allocated by task 262:
[   39.299274]  kasan_save_stack+0x3c/0x68
[   39.303181]  kasan_save_track+0x20/0x40
[   39.307086]  kasan_save_alloc_info+0x40/0x58
[   39.311431]  __kasan_kmalloc+0xd4/0xd8
[   39.315248]  __kmalloc_cache_noprof+0x16c/0x3c0
[   39.319854]  kmalloc_oob_memset_8+0xb0/0x2f8
[   39.324199]  kunit_try_run_case+0x170/0x3f0
[   39.328460]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.334030]  kthread+0x328/0x630
[   39.337315]  ret_from_fork+0x10/0x20
[   39.340958] 
[   39.342489] The buggy address belongs to the object at ffff00008039f300
[   39.342489]  which belongs to the cache kmalloc-128 of size 128
[   39.355150] The buggy address is located 113 bytes inside of
[   39.355150]  allocated 120-byte region [ffff00008039f300, ffff00008039f378)
[   39.367903] 
[   39.369432] The buggy address belongs to the physical page:
[   39.375077] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10039e
[   39.383181] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   39.390937] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   39.397995] page_type: f5(slab)
[   39.401196] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000
[   39.409043] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   39.416890] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000
[   39.424822] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   39.432755] head: 0bfffe0000000001 fffffdffc200e781 00000000ffffffff 00000000ffffffff
[   39.440689] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   39.448618] page dumped because: kasan: bad access detected
[   39.454262] 
[   39.455793] Memory state around the buggy address:
[   39.460649]  ffff00008039f200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   39.467964]  ffff00008039f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   39.475278] >ffff00008039f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   39.482593]                                                                 ^
[   39.489819]  ffff00008039f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   39.497136]  ffff00008039f400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   39.504448] ==================================================================

[   26.891298] ==================================================================
[   26.891353] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   26.891402] Write of size 8 at addr fff00000c643f771 by task kunit_try_catch/188
[   26.891449] 
[   26.891477] CPU: 0 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   26.891562] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.891587] Hardware name: linux,dummy-virt (DT)
[   26.891880] Call trace:
[   26.891922]  show_stack+0x20/0x38 (C)
[   26.892006]  dump_stack_lvl+0x8c/0xd0
[   26.892085]  print_report+0x118/0x608
[   26.892156]  kasan_report+0xdc/0x128
[   26.892991]  kasan_check_range+0x100/0x1a8
[   26.893040]  __asan_memset+0x34/0x78
[   26.893119]  kmalloc_oob_memset_8+0x150/0x2f8
[   26.893164]  kunit_try_run_case+0x170/0x3f0
[   26.893210]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.893261]  kthread+0x328/0x630
[   26.893302]  ret_from_fork+0x10/0x20
[   26.893357] 
[   26.893375] Allocated by task 188:
[   26.893400]  kasan_save_stack+0x3c/0x68
[   26.893440]  kasan_save_track+0x20/0x40
[   26.893476]  kasan_save_alloc_info+0x40/0x58
[   26.893512]  __kasan_kmalloc+0xd4/0xd8
[   26.893547]  __kmalloc_cache_noprof+0x16c/0x3c0
[   26.893585]  kmalloc_oob_memset_8+0xb0/0x2f8
[   26.893711]  kunit_try_run_case+0x170/0x3f0
[   26.893755]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.893891]  kthread+0x328/0x630
[   26.893962]  ret_from_fork+0x10/0x20
[   26.894105] 
[   26.894123] The buggy address belongs to the object at fff00000c643f700
[   26.894123]  which belongs to the cache kmalloc-128 of size 128
[   26.894186] The buggy address is located 113 bytes inside of
[   26.894186]  allocated 120-byte region [fff00000c643f700, fff00000c643f778)
[   26.894376] 
[   26.894397] The buggy address belongs to the physical page:
[   26.894426] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10643f
[   26.894475] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   26.894519] page_type: f5(slab)
[   26.894564] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122
[   26.894612] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   26.894649] page dumped because: kasan: bad access detected
[   26.894678] 
[   26.894695] Memory state around the buggy address:
[   26.894724]  fff00000c643f600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   26.894764]  fff00000c643f680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.894803] >fff00000c643f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   26.894839]                                                                 ^
[   26.894895]  fff00000c643f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.895042]  fff00000c643f800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.895132] ==================================================================

[   22.262429] ==================================================================
[   22.262849] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330
[   22.263136] Write of size 8 at addr ffff888102d56671 by task kunit_try_catch/205
[   22.263442] 
[   22.263530] CPU: 1 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   22.263578] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.263591] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.263612] Call Trace:
[   22.263625]  <TASK>
[   22.263642]  dump_stack_lvl+0x73/0xb0
[   22.263670]  print_report+0xd1/0x650
[   22.263692]  ? __virt_addr_valid+0x1db/0x2d0
[   22.263715]  ? kmalloc_oob_memset_8+0x166/0x330
[   22.263735]  ? kasan_complete_mode_report_info+0x2a/0x200
[   22.263760]  ? kmalloc_oob_memset_8+0x166/0x330
[   22.263780]  kasan_report+0x141/0x180
[   22.263800]  ? kmalloc_oob_memset_8+0x166/0x330
[   22.263825]  kasan_check_range+0x10c/0x1c0
[   22.263846]  __asan_memset+0x27/0x50
[   22.263868]  kmalloc_oob_memset_8+0x166/0x330
[   22.263889]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   22.263911]  ? __schedule+0x10cc/0x2b60
[   22.263935]  ? __pfx_read_tsc+0x10/0x10
[   22.263956]  ? ktime_get_ts64+0x86/0x230
[   22.263979]  kunit_try_run_case+0x1a5/0x480
[   22.264003]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.264024]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.264048]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.264072]  ? __kthread_parkme+0x82/0x180
[   22.264091]  ? preempt_count_sub+0x50/0x80
[   22.264114]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.264136]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.264159]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.264181]  kthread+0x337/0x6f0
[   22.264200]  ? trace_preempt_on+0x20/0xc0
[   22.264262]  ? __pfx_kthread+0x10/0x10
[   22.264284]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.264307]  ? calculate_sigpending+0x7b/0xa0
[   22.264330]  ? __pfx_kthread+0x10/0x10
[   22.264351]  ret_from_fork+0x116/0x1d0
[   22.264370]  ? __pfx_kthread+0x10/0x10
[   22.264389]  ret_from_fork_asm+0x1a/0x30
[   22.264446]  </TASK>
[   22.264458] 
[   22.272076] Allocated by task 205:
[   22.272252]  kasan_save_stack+0x45/0x70
[   22.272404]  kasan_save_track+0x18/0x40
[   22.272533]  kasan_save_alloc_info+0x3b/0x50
[   22.272695]  __kasan_kmalloc+0xb7/0xc0
[   22.272969]  __kmalloc_cache_noprof+0x189/0x420
[   22.273217]  kmalloc_oob_memset_8+0xac/0x330
[   22.273430]  kunit_try_run_case+0x1a5/0x480
[   22.273632]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.273915]  kthread+0x337/0x6f0
[   22.274045]  ret_from_fork+0x116/0x1d0
[   22.274266]  ret_from_fork_asm+0x1a/0x30
[   22.274459] 
[   22.274550] The buggy address belongs to the object at ffff888102d56600
[   22.274550]  which belongs to the cache kmalloc-128 of size 128
[   22.275191] The buggy address is located 113 bytes inside of
[   22.275191]  allocated 120-byte region [ffff888102d56600, ffff888102d56678)
[   22.275614] 
[   22.275708] The buggy address belongs to the physical page:
[   22.276180] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d56
[   22.276491] flags: 0x200000000000000(node=0|zone=2)
[   22.276653] page_type: f5(slab)
[   22.276844] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   22.277217] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   22.277557] page dumped because: kasan: bad access detected
[   22.277913] 
[   22.278008] Memory state around the buggy address:
[   22.278230]  ffff888102d56500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   22.278515]  ffff888102d56580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.278748] >ffff888102d56600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   22.279039]                                                                 ^
[   22.279389]  ffff888102d56680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.279709]  ffff888102d56700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.280030] ==================================================================