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

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   31.894142] ==================================================================
[   31.906757] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   31.914172] Write of size 1 at addr ffff000096639f00 by task kunit_try_catch/230
[   31.921668] 
[   31.923200] CPU: 0 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   31.923228] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.923236] Hardware name: Thundercomm Dragonboard 845c (DT)
[   31.923249] Call trace:
[   31.923256]  show_stack+0x20/0x38 (C)
[   31.923274]  dump_stack_lvl+0x8c/0xd0
[   31.923294]  print_report+0x118/0x608
[   31.923312]  kasan_report+0xdc/0x128
[   31.923331]  __asan_report_store1_noabort+0x20/0x30
[   31.923350]  kmalloc_big_oob_right+0x2a4/0x2f0
[   31.923368]  kunit_try_run_case+0x170/0x3f0
[   31.923387]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.923409]  kthread+0x328/0x630
[   31.923424]  ret_from_fork+0x10/0x20
[   31.923442] 
[   31.989486] Allocated by task 230:
[   31.992945]  kasan_save_stack+0x3c/0x68
[   31.996855]  kasan_save_track+0x20/0x40
[   32.000763]  kasan_save_alloc_info+0x40/0x58
[   32.005101]  __kasan_kmalloc+0xd4/0xd8
[   32.008923]  __kmalloc_cache_noprof+0x16c/0x3c0
[   32.013534]  kmalloc_big_oob_right+0xb8/0x2f0
[   32.017959]  kunit_try_run_case+0x170/0x3f0
[   32.022212]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.027782]  kthread+0x328/0x630
[   32.031075]  ret_from_fork+0x10/0x20
[   32.034712] 
[   32.036247] The buggy address belongs to the object at ffff000096638000
[   32.036247]  which belongs to the cache kmalloc-8k of size 8192
[   32.048909] The buggy address is located 0 bytes to the right of
[   32.048909]  allocated 7936-byte region [ffff000096638000, ffff000096639f00)
[   32.062094] 
[   32.063623] The buggy address belongs to the physical page:
[   32.069277] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116638
[   32.077389] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   32.085144] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   32.092198] page_type: f5(slab)
[   32.095398] raw: 0bfffe0000000040 ffff000080003180 dead000000000122 0000000000000000
[   32.103243] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   32.111088] head: 0bfffe0000000040 ffff000080003180 dead000000000122 0000000000000000
[   32.119018] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   32.126949] head: 0bfffe0000000003 fffffdffc2598e01 00000000ffffffff 00000000ffffffff
[   32.134879] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   32.142804] page dumped because: kasan: bad access detected
[   32.148458] 
[   32.149987] Memory state around the buggy address:
[   32.154849]  ffff000096639e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.162172]  ffff000096639e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.169484] >ffff000096639f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.176805]                    ^
[   32.180093]  ffff000096639f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.187410]  ffff00009663a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.194730] ==================================================================

[   26.580242] ==================================================================
[   26.580297] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   26.580343] Write of size 1 at addr fff00000c65d5f00 by task kunit_try_catch/156
[   26.580391] 
[   26.580418] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   26.580500] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.580525] Hardware name: linux,dummy-virt (DT)
[   26.580554] Call trace:
[   26.580574]  show_stack+0x20/0x38 (C)
[   26.580620]  dump_stack_lvl+0x8c/0xd0
[   26.580664]  print_report+0x118/0x608
[   26.580709]  kasan_report+0xdc/0x128
[   26.580752]  __asan_report_store1_noabort+0x20/0x30
[   26.580798]  kmalloc_big_oob_right+0x2a4/0x2f0
[   26.580843]  kunit_try_run_case+0x170/0x3f0
[   26.580888]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.580938]  kthread+0x328/0x630
[   26.580978]  ret_from_fork+0x10/0x20
[   26.581023] 
[   26.581040] Allocated by task 156:
[   26.581083]  kasan_save_stack+0x3c/0x68
[   26.581122]  kasan_save_track+0x20/0x40
[   26.581157]  kasan_save_alloc_info+0x40/0x58
[   26.581192]  __kasan_kmalloc+0xd4/0xd8
[   26.581227]  __kmalloc_cache_noprof+0x16c/0x3c0
[   26.581264]  kmalloc_big_oob_right+0xb8/0x2f0
[   26.581300]  kunit_try_run_case+0x170/0x3f0
[   26.581336]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.581377]  kthread+0x328/0x630
[   26.581407]  ret_from_fork+0x10/0x20
[   26.581441] 
[   26.581458] The buggy address belongs to the object at fff00000c65d4000
[   26.581458]  which belongs to the cache kmalloc-8k of size 8192
[   26.581511] The buggy address is located 0 bytes to the right of
[   26.581511]  allocated 7936-byte region [fff00000c65d4000, fff00000c65d5f00)
[   26.581571] 
[   26.581589] The buggy address belongs to the physical page:
[   26.581618] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065d0
[   26.581666] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   26.581709] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   26.581757] page_type: f5(slab)
[   26.581792] raw: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122
[   26.581839] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   26.581886] head: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122
[   26.581931] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   26.581978] head: 0bfffe0000000003 ffffc1ffc3197401 00000000ffffffff 00000000ffffffff
[   26.582024] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   26.582150] page dumped because: kasan: bad access detected
[   26.582186] 
[   26.582203] Memory state around the buggy address:
[   26.582232]  fff00000c65d5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.582273]  fff00000c65d5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.582312] >fff00000c65d5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.582347]                    ^
[   26.582372]  fff00000c65d5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.582411]  fff00000c65d6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.582446] ==================================================================

[   21.638435] ==================================================================
[   21.638885] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370
[   21.639140] Write of size 1 at addr ffff888102ce5f00 by task kunit_try_catch/173
[   21.640064] 
[   21.640203] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   21.640269] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.640282] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.640305] Call Trace:
[   21.640321]  <TASK>
[   21.640342]  dump_stack_lvl+0x73/0xb0
[   21.640375]  print_report+0xd1/0x650
[   21.640398]  ? __virt_addr_valid+0x1db/0x2d0
[   21.640424]  ? kmalloc_big_oob_right+0x316/0x370
[   21.640445]  ? kasan_complete_mode_report_info+0x2a/0x200
[   21.640470]  ? kmalloc_big_oob_right+0x316/0x370
[   21.640491]  kasan_report+0x141/0x180
[   21.640511]  ? kmalloc_big_oob_right+0x316/0x370
[   21.640536]  __asan_report_store1_noabort+0x1b/0x30
[   21.640559]  kmalloc_big_oob_right+0x316/0x370
[   21.640580]  ? __pfx_kmalloc_big_oob_right+0x10/0x10
[   21.640602]  ? __schedule+0x10cc/0x2b60
[   21.640626]  ? __pfx_read_tsc+0x10/0x10
[   21.640647]  ? ktime_get_ts64+0x86/0x230
[   21.640672]  kunit_try_run_case+0x1a5/0x480
[   21.640697]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.640718]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   21.640742]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   21.640766]  ? __kthread_parkme+0x82/0x180
[   21.641196]  ? preempt_count_sub+0x50/0x80
[   21.641233]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.641258]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.641282]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   21.641311]  kthread+0x337/0x6f0
[   21.641331]  ? trace_preempt_on+0x20/0xc0
[   21.641353]  ? __pfx_kthread+0x10/0x10
[   21.641373]  ? _raw_spin_unlock_irq+0x47/0x80
[   21.641396]  ? calculate_sigpending+0x7b/0xa0
[   21.641420]  ? __pfx_kthread+0x10/0x10
[   21.641440]  ret_from_fork+0x116/0x1d0
[   21.641459]  ? __pfx_kthread+0x10/0x10
[   21.641478]  ret_from_fork_asm+0x1a/0x30
[   21.641509]  </TASK>
[   21.641521] 
[   21.657341] Allocated by task 173:
[   21.657478]  kasan_save_stack+0x45/0x70
[   21.657624]  kasan_save_track+0x18/0x40
[   21.657750]  kasan_save_alloc_info+0x3b/0x50
[   21.658522]  __kasan_kmalloc+0xb7/0xc0
[   21.658997]  __kmalloc_cache_noprof+0x189/0x420
[   21.659656]  kmalloc_big_oob_right+0xa9/0x370
[   21.660368]  kunit_try_run_case+0x1a5/0x480
[   21.660939]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.661776]  kthread+0x337/0x6f0
[   21.662210]  ret_from_fork+0x116/0x1d0
[   21.662522]  ret_from_fork_asm+0x1a/0x30
[   21.662659] 
[   21.662726] The buggy address belongs to the object at ffff888102ce4000
[   21.662726]  which belongs to the cache kmalloc-8k of size 8192
[   21.664462] The buggy address is located 0 bytes to the right of
[   21.664462]  allocated 7936-byte region [ffff888102ce4000, ffff888102ce5f00)
[   21.665334] 
[   21.665628] The buggy address belongs to the physical page:
[   21.666356] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ce0
[   21.666641] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.666867] flags: 0x200000000000040(head|node=0|zone=2)
[   21.667314] page_type: f5(slab)
[   21.667604] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   21.668382] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   21.669184] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   21.669989] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   21.670396] head: 0200000000000003 ffffea00040b3801 00000000ffffffff 00000000ffffffff
[   21.670626] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   21.670874] page dumped because: kasan: bad access detected
[   21.671452] 
[   21.671623] Memory state around the buggy address:
[   21.672112]  ffff888102ce5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.672824]  ffff888102ce5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.673622] >ffff888102ce5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.674182]                    ^
[   21.674320]  ffff888102ce5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.674530]  ffff888102ce6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.674737] ==================================================================