Hay
Date
July 3, 2025, 10:10 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   40.021323] ==================================================================
[   40.032797] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   40.040122] Write of size 8 at addr ffff000082240071 by task kunit_try_catch/285
[   40.047621] 
[   40.049153] CPU: 3 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   40.049184] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.049192] Hardware name: Thundercomm Dragonboard 845c (DT)
[   40.049203] Call trace:
[   40.049211]  show_stack+0x20/0x38 (C)
[   40.049229]  dump_stack_lvl+0x8c/0xd0
[   40.049249]  print_report+0x118/0x608
[   40.049268]  kasan_report+0xdc/0x128
[   40.049287]  kasan_check_range+0x100/0x1a8
[   40.049308]  __asan_memset+0x34/0x78
[   40.049323]  kmalloc_oob_memset_8+0x150/0x2f8
[   40.049341]  kunit_try_run_case+0x170/0x3f0
[   40.049361]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.049383]  kthread+0x328/0x630
[   40.049397]  ret_from_fork+0x10/0x20
[   40.049415] 
[   40.118214] Allocated by task 285:
[   40.121673]  kasan_save_stack+0x3c/0x68
[   40.125581]  kasan_save_track+0x20/0x40
[   40.129489]  kasan_save_alloc_info+0x40/0x58
[   40.133827]  __kasan_kmalloc+0xd4/0xd8
[   40.137648]  __kmalloc_cache_noprof+0x16c/0x3c0
[   40.142258]  kmalloc_oob_memset_8+0xb0/0x2f8
[   40.146598]  kunit_try_run_case+0x170/0x3f0
[   40.150849]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.156425]  kthread+0x328/0x630
[   40.159717]  ret_from_fork+0x10/0x20
[   40.163356] 
[   40.164892] The buggy address belongs to the object at ffff000082240000
[   40.164892]  which belongs to the cache kmalloc-128 of size 128
[   40.177554] The buggy address is located 113 bytes inside of
[   40.177554]  allocated 120-byte region [ffff000082240000, ffff000082240078)
[   40.190303] 
[   40.191839] The buggy address belongs to the physical page:
[   40.197485] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102240
[   40.205595] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   40.213348] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   40.220400] page_type: f5(slab)
[   40.223607] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000
[   40.231449] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   40.239292] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000
[   40.247232] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   40.255171] head: 0bfffe0000000001 fffffdffc2089001 00000000ffffffff 00000000ffffffff
[   40.263111] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   40.271036] page dumped because: kasan: bad access detected
[   40.276689] 
[   40.278219] Memory state around the buggy address:
[   40.283080]  ffff00008223ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   40.290404]  ffff00008223ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   40.297725] >ffff000082240000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   40.305044]                                                                 ^
[   40.312277]  ffff000082240080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   40.319593]  ffff000082240100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   40.326915] ==================================================================

[   31.114949] ==================================================================
[   31.115061] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   31.115374] Write of size 8 at addr fff00000c9ae3271 by task kunit_try_catch/208
[   31.115427] 
[   31.115461] CPU: 0 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   31.115639] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.115697] Hardware name: linux,dummy-virt (DT)
[   31.115731] Call trace:
[   31.115884]  show_stack+0x20/0x38 (C)
[   31.115942]  dump_stack_lvl+0x8c/0xd0
[   31.116314]  print_report+0x118/0x608
[   31.116376]  kasan_report+0xdc/0x128
[   31.116430]  kasan_check_range+0x100/0x1a8
[   31.116479]  __asan_memset+0x34/0x78
[   31.116523]  kmalloc_oob_memset_8+0x150/0x2f8
[   31.116569]  kunit_try_run_case+0x170/0x3f0
[   31.117088]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.117213]  kthread+0x328/0x630
[   31.117348]  ret_from_fork+0x10/0x20
[   31.117537] 
[   31.117559] Allocated by task 208:
[   31.117587]  kasan_save_stack+0x3c/0x68
[   31.117809]  kasan_save_track+0x20/0x40
[   31.118017]  kasan_save_alloc_info+0x40/0x58
[   31.118162]  __kasan_kmalloc+0xd4/0xd8
[   31.118331]  __kmalloc_cache_noprof+0x16c/0x3c0
[   31.118633]  kmalloc_oob_memset_8+0xb0/0x2f8
[   31.118782]  kunit_try_run_case+0x170/0x3f0
[   31.118981]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.119116]  kthread+0x328/0x630
[   31.119264]  ret_from_fork+0x10/0x20
[   31.119467] 
[   31.119491] The buggy address belongs to the object at fff00000c9ae3200
[   31.119491]  which belongs to the cache kmalloc-128 of size 128
[   31.119580] The buggy address is located 113 bytes inside of
[   31.119580]  allocated 120-byte region [fff00000c9ae3200, fff00000c9ae3278)
[   31.119829] 
[   31.119884] The buggy address belongs to the physical page:
[   31.120112] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ae3
[   31.120205] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   31.120360] page_type: f5(slab)
[   31.120428] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   31.120505] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   31.120721] page dumped because: kasan: bad access detected
[   31.120854] 
[   31.121007] Memory state around the buggy address:
[   31.121183]  fff00000c9ae3100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   31.121319]  fff00000c9ae3180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.121445] >fff00000c9ae3200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   31.121712]                                                                 ^
[   31.122000]  fff00000c9ae3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.122103]  fff00000c9ae3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.122209] ==================================================================

[   23.281790] ==================================================================
[   23.282538] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330
[   23.282871] Write of size 8 at addr ffff888105479e71 by task kunit_try_catch/225
[   23.283320] 
[   23.283415] CPU: 1 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   23.283477] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.283489] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.283510] Call Trace:
[   23.283522]  <TASK>
[   23.283537]  dump_stack_lvl+0x73/0xb0
[   23.283565]  print_report+0xd1/0x650
[   23.283587]  ? __virt_addr_valid+0x1db/0x2d0
[   23.283609]  ? kmalloc_oob_memset_8+0x166/0x330
[   23.283630]  ? kasan_complete_mode_report_info+0x2a/0x200
[   23.283654]  ? kmalloc_oob_memset_8+0x166/0x330
[   23.283675]  kasan_report+0x141/0x180
[   23.283695]  ? kmalloc_oob_memset_8+0x166/0x330
[   23.283721]  kasan_check_range+0x10c/0x1c0
[   23.283743]  __asan_memset+0x27/0x50
[   23.283765]  kmalloc_oob_memset_8+0x166/0x330
[   23.283786]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   23.283808]  ? __schedule+0x10cc/0x2b60
[   23.283832]  ? __pfx_read_tsc+0x10/0x10
[   23.283853]  ? ktime_get_ts64+0x86/0x230
[   23.283876]  kunit_try_run_case+0x1a5/0x480
[   23.283900]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.283922]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.283943]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.283968]  ? __kthread_parkme+0x82/0x180
[   23.283988]  ? preempt_count_sub+0x50/0x80
[   23.284010]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.284034]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.284057]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.284080]  kthread+0x337/0x6f0
[   23.284099]  ? trace_preempt_on+0x20/0xc0
[   23.284121]  ? __pfx_kthread+0x10/0x10
[   23.284141]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.284221]  ? calculate_sigpending+0x7b/0xa0
[   23.284244]  ? __pfx_kthread+0x10/0x10
[   23.284266]  ret_from_fork+0x116/0x1d0
[   23.284285]  ? __pfx_kthread+0x10/0x10
[   23.284305]  ret_from_fork_asm+0x1a/0x30
[   23.284336]  </TASK>
[   23.284347] 
[   23.293799] Allocated by task 225:
[   23.293965]  kasan_save_stack+0x45/0x70
[   23.294472]  kasan_save_track+0x18/0x40
[   23.294718]  kasan_save_alloc_info+0x3b/0x50
[   23.295020]  __kasan_kmalloc+0xb7/0xc0
[   23.295617]  __kmalloc_cache_noprof+0x189/0x420
[   23.295835]  kmalloc_oob_memset_8+0xac/0x330
[   23.296018]  kunit_try_run_case+0x1a5/0x480
[   23.296547]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.296915]  kthread+0x337/0x6f0
[   23.297212]  ret_from_fork+0x116/0x1d0
[   23.297597]  ret_from_fork_asm+0x1a/0x30
[   23.297794] 
[   23.297880] The buggy address belongs to the object at ffff888105479e00
[   23.297880]  which belongs to the cache kmalloc-128 of size 128
[   23.298806] The buggy address is located 113 bytes inside of
[   23.298806]  allocated 120-byte region [ffff888105479e00, ffff888105479e78)
[   23.299923] 
[   23.300036] The buggy address belongs to the physical page:
[   23.300261] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105479
[   23.300624] flags: 0x200000000000000(node=0|zone=2)
[   23.300945] page_type: f5(slab)
[   23.301105] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   23.301443] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   23.301747] page dumped because: kasan: bad access detected
[   23.301937] 
[   23.302027] Memory state around the buggy address:
[   23.302263]  ffff888105479d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   23.302561]  ffff888105479d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.302831] >ffff888105479e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   23.303103]                                                                 ^
[   23.303391]  ffff888105479e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.303859]  ffff888105479f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.304129] ==================================================================