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

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   37.839843] ==================================================================
[   37.851323] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   37.858642] Write of size 8 at addr ffff000080f19171 by task kunit_try_catch/274
[   37.866140] 
[   37.867676] CPU: 4 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   37.867707] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.867716] Hardware name: Thundercomm Dragonboard 845c (DT)
[   37.867726] Call trace:
[   37.867732]  show_stack+0x20/0x38 (C)
[   37.867750]  dump_stack_lvl+0x8c/0xd0
[   37.867769]  print_report+0x118/0x608
[   37.867788]  kasan_report+0xdc/0x128
[   37.867806]  kasan_check_range+0x100/0x1a8
[   37.867825]  __asan_memset+0x34/0x78
[   37.867840]  kmalloc_oob_memset_8+0x150/0x2f8
[   37.867857]  kunit_try_run_case+0x170/0x3f0
[   37.867876]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.867897]  kthread+0x328/0x630
[   37.867910]  ret_from_fork+0x10/0x20
[   37.867927] 
[   37.936672] Allocated by task 274:
[   37.940126]  kasan_save_stack+0x3c/0x68
[   37.944033]  kasan_save_track+0x20/0x40
[   37.947938]  kasan_save_alloc_info+0x40/0x58
[   37.952273]  __kasan_kmalloc+0xd4/0xd8
[   37.956088]  __kmalloc_cache_noprof+0x16c/0x3c0
[   37.960686]  kmalloc_oob_memset_8+0xb0/0x2f8
[   37.965023]  kunit_try_run_case+0x170/0x3f0
[   37.969272]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.974836]  kthread+0x328/0x630
[   37.978118]  ret_from_fork+0x10/0x20
[   37.981747] 
[   37.983278] The buggy address belongs to the object at ffff000080f19100
[   37.983278]  which belongs to the cache kmalloc-128 of size 128
[   37.995930] The buggy address is located 113 bytes inside of
[   37.995930]  allocated 120-byte region [ffff000080f19100, ffff000080f19178)
[   38.008672] 
[   38.010197] The buggy address belongs to the physical page:
[   38.015837] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100f18
[   38.023937] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   38.031687] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   38.038738] page_type: f5(slab)
[   38.041935] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000
[   38.049775] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   38.057616] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000
[   38.065542] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   38.073469] head: 0bfffe0000000001 fffffdffc203c601 00000000ffffffff 00000000ffffffff
[   38.081393] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   38.089313] page dumped because: kasan: bad access detected
[   38.094956] 
[   38.096484] Memory state around the buggy address:
[   38.101337]  ffff000080f19000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   38.108652]  ffff000080f19080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   38.115967] >ffff000080f19100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   38.123270]                                                                 ^
[   38.130488]  ffff000080f19180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   38.137805]  ffff000080f19200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   38.145115] ==================================================================

[   33.054921] ==================================================================
[   33.055062] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   33.055340] Write of size 8 at addr fff00000c7732371 by task kunit_try_catch/187
[   33.055553] 
[   33.055647] CPU: 0 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   33.055929] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.055996] Hardware name: linux,dummy-virt (DT)
[   33.056074] Call trace:
[   33.056128]  show_stack+0x20/0x38 (C)
[   33.056253]  dump_stack_lvl+0x8c/0xd0
[   33.056371]  print_report+0x118/0x608
[   33.056486]  kasan_report+0xdc/0x128
[   33.056647]  kasan_check_range+0x100/0x1a8
[   33.056787]  __asan_memset+0x34/0x78
[   33.056931]  kmalloc_oob_memset_8+0x150/0x2f8
[   33.057058]  kunit_try_run_case+0x170/0x3f0
[   33.057261]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.057397]  kthread+0x328/0x630
[   33.057526]  ret_from_fork+0x10/0x20
[   33.057737] 
[   33.057801] Allocated by task 187:
[   33.057873]  kasan_save_stack+0x3c/0x68
[   33.057992]  kasan_save_track+0x20/0x40
[   33.058087]  kasan_save_alloc_info+0x40/0x58
[   33.058189]  __kasan_kmalloc+0xd4/0xd8
[   33.058472]  __kmalloc_cache_noprof+0x16c/0x3c0
[   33.058607]  kmalloc_oob_memset_8+0xb0/0x2f8
[   33.058700]  kunit_try_run_case+0x170/0x3f0
[   33.058813]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.058958]  kthread+0x328/0x630
[   33.059123]  ret_from_fork+0x10/0x20
[   33.059234] 
[   33.059350] The buggy address belongs to the object at fff00000c7732300
[   33.059350]  which belongs to the cache kmalloc-128 of size 128
[   33.059698] The buggy address is located 113 bytes inside of
[   33.059698]  allocated 120-byte region [fff00000c7732300, fff00000c7732378)
[   33.059986] 
[   33.060041] The buggy address belongs to the physical page:
[   33.060122] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107732
[   33.060244] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.060374] page_type: f5(slab)
[   33.060483] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   33.060612] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   33.060716] page dumped because: kasan: bad access detected
[   33.060800] 
[   33.060853] Memory state around the buggy address:
[   33.060958]  fff00000c7732200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   33.061070]  fff00000c7732280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.061179] >fff00000c7732300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   33.061278]                                                                 ^
[   33.061386]  fff00000c7732380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.061520]  fff00000c7732400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.061624] ==================================================================

[   29.156425] ==================================================================
[   29.157325] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330
[   29.157992] Write of size 8 at addr ffff888102dcfb71 by task kunit_try_catch/206
[   29.159005] 
[   29.159393] CPU: 0 UID: 0 PID: 206 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) 
[   29.159696] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.159718] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.159745] Call Trace:
[   29.159761]  <TASK>
[   29.159783]  dump_stack_lvl+0x73/0xb0
[   29.159838]  print_report+0xd1/0x650
[   29.159870]  ? __virt_addr_valid+0x1db/0x2d0
[   29.159901]  ? kmalloc_oob_memset_8+0x166/0x330
[   29.159928]  ? kasan_complete_mode_report_info+0x2a/0x200
[   29.159962]  ? kmalloc_oob_memset_8+0x166/0x330
[   29.159989]  kasan_report+0x141/0x180
[   29.160017]  ? kmalloc_oob_memset_8+0x166/0x330
[   29.160050]  kasan_check_range+0x10c/0x1c0
[   29.160079]  __asan_memset+0x27/0x50
[   29.160108]  kmalloc_oob_memset_8+0x166/0x330
[   29.160137]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   29.160167]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   29.160199]  kunit_try_run_case+0x1a5/0x480
[   29.160230]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.160259]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   29.160291]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   29.160322]  ? __kthread_parkme+0x82/0x180
[   29.160348]  ? preempt_count_sub+0x50/0x80
[   29.160378]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.160408]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.160438]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   29.160468]  kthread+0x337/0x6f0
[   29.160492]  ? trace_preempt_on+0x20/0xc0
[   29.160521]  ? __pfx_kthread+0x10/0x10
[   29.160568]  ? _raw_spin_unlock_irq+0x47/0x80
[   29.160600]  ? calculate_sigpending+0x7b/0xa0
[   29.160635]  ? __pfx_kthread+0x10/0x10
[   29.160685]  ret_from_fork+0x116/0x1d0
[   29.160713]  ? __pfx_kthread+0x10/0x10
[   29.160741]  ret_from_fork_asm+0x1a/0x30
[   29.160781]  </TASK>
[   29.160795] 
[   29.172992] Allocated by task 206:
[   29.173375]  kasan_save_stack+0x45/0x70
[   29.173865]  kasan_save_track+0x18/0x40
[   29.174316]  kasan_save_alloc_info+0x3b/0x50
[   29.174770]  __kasan_kmalloc+0xb7/0xc0
[   29.175021]  __kmalloc_cache_noprof+0x189/0x420
[   29.175478]  kmalloc_oob_memset_8+0xac/0x330
[   29.175993]  kunit_try_run_case+0x1a5/0x480
[   29.176424]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.176785]  kthread+0x337/0x6f0
[   29.177142]  ret_from_fork+0x116/0x1d0
[   29.177573]  ret_from_fork_asm+0x1a/0x30
[   29.178016] 
[   29.178212] The buggy address belongs to the object at ffff888102dcfb00
[   29.178212]  which belongs to the cache kmalloc-128 of size 128
[   29.179218] The buggy address is located 113 bytes inside of
[   29.179218]  allocated 120-byte region [ffff888102dcfb00, ffff888102dcfb78)
[   29.180249] 
[   29.180447] The buggy address belongs to the physical page:
[   29.180798] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102dcf
[   29.181482] flags: 0x200000000000000(node=0|zone=2)
[   29.182034] page_type: f5(slab)
[   29.182264] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   29.182805] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   29.183658] page dumped because: kasan: bad access detected
[   29.184236] 
[   29.184512] Memory state around the buggy address:
[   29.184966]  ffff888102dcfa00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   29.185495]  ffff888102dcfa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.186111] >ffff888102dcfb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   29.186457]                                                                 ^
[   29.187017]  ffff888102dcfb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.187781]  ffff888102dcfc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.188398] ==================================================================