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

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   38.251011] ==================================================================
[   38.261955] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0
[   38.269370] Write of size 128 at addr ffff00008039f100 by task kunit_try_catch/256
[   38.277043] 
[   38.278576] CPU: 0 UID: 0 PID: 256 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   38.278607] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.278615] Hardware name: Thundercomm Dragonboard 845c (DT)
[   38.278628] Call trace:
[   38.278635]  show_stack+0x20/0x38 (C)
[   38.278654]  dump_stack_lvl+0x8c/0xd0
[   38.278672]  print_report+0x118/0x608
[   38.278691]  kasan_report+0xdc/0x128
[   38.278711]  kasan_check_range+0x100/0x1a8
[   38.278732]  __asan_memset+0x34/0x78
[   38.278748]  kmalloc_oob_in_memset+0x144/0x2d0
[   38.278766]  kunit_try_run_case+0x170/0x3f0
[   38.278785]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.278806]  kthread+0x328/0x630
[   38.278821]  ret_from_fork+0x10/0x20
[   38.278840] 
[   38.347721] Allocated by task 256:
[   38.351182]  kasan_save_stack+0x3c/0x68
[   38.355091]  kasan_save_track+0x20/0x40
[   38.359001]  kasan_save_alloc_info+0x40/0x58
[   38.363338]  __kasan_kmalloc+0xd4/0xd8
[   38.367161]  __kmalloc_cache_noprof+0x16c/0x3c0
[   38.371768]  kmalloc_oob_in_memset+0xb0/0x2d0
[   38.376200]  kunit_try_run_case+0x170/0x3f0
[   38.380449]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.386024]  kthread+0x328/0x630
[   38.389314]  ret_from_fork+0x10/0x20
[   38.392962] 
[   38.394492] The buggy address belongs to the object at ffff00008039f100
[   38.394492]  which belongs to the cache kmalloc-128 of size 128
[   38.407155] The buggy address is located 0 bytes inside of
[   38.407155]  allocated 120-byte region [ffff00008039f100, ffff00008039f178)
[   38.419732] 
[   38.421267] The buggy address belongs to the physical page:
[   38.426917] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10039e
[   38.435030] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   38.442784] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   38.449839] page_type: f5(slab)
[   38.453041] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000
[   38.460887] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   38.468729] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000
[   38.476659] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   38.484590] head: 0bfffe0000000001 fffffdffc200e781 00000000ffffffff 00000000ffffffff
[   38.492520] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   38.500446] page dumped because: kasan: bad access detected
[   38.506094] 
[   38.507625] Memory state around the buggy address:
[   38.512491]  ffff00008039f000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   38.519807]  ffff00008039f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   38.527121] >ffff00008039f100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   38.534441]                                                                 ^
[   38.541674]  ffff00008039f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   38.548996]  ffff00008039f200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   38.556317] ==================================================================

[   26.849242] ==================================================================
[   26.849338] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0
[   26.849469] Write of size 128 at addr fff00000c643f400 by task kunit_try_catch/182
[   26.849527] 
[   26.849583] CPU: 0 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   26.849984] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.850081] Hardware name: linux,dummy-virt (DT)
[   26.850165] Call trace:
[   26.850215]  show_stack+0x20/0x38 (C)
[   26.850269]  dump_stack_lvl+0x8c/0xd0
[   26.850335]  print_report+0x118/0x608
[   26.850467]  kasan_report+0xdc/0x128
[   26.850533]  kasan_check_range+0x100/0x1a8
[   26.850581]  __asan_memset+0x34/0x78
[   26.850882]  kmalloc_oob_in_memset+0x144/0x2d0
[   26.851092]  kunit_try_run_case+0x170/0x3f0
[   26.851197]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.851252]  kthread+0x328/0x630
[   26.851294]  ret_from_fork+0x10/0x20
[   26.851481] 
[   26.851499] Allocated by task 182:
[   26.851918]  kasan_save_stack+0x3c/0x68
[   26.852024]  kasan_save_track+0x20/0x40
[   26.852126]  kasan_save_alloc_info+0x40/0x58
[   26.852198]  __kasan_kmalloc+0xd4/0xd8
[   26.852490]  __kmalloc_cache_noprof+0x16c/0x3c0
[   26.852616]  kmalloc_oob_in_memset+0xb0/0x2d0
[   26.852658]  kunit_try_run_case+0x170/0x3f0
[   26.852695]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.852796]  kthread+0x328/0x630
[   26.852845]  ret_from_fork+0x10/0x20
[   26.852880] 
[   26.852899] The buggy address belongs to the object at fff00000c643f400
[   26.852899]  which belongs to the cache kmalloc-128 of size 128
[   26.852976] The buggy address is located 0 bytes inside of
[   26.852976]  allocated 120-byte region [fff00000c643f400, fff00000c643f478)
[   26.853041] 
[   26.853078] The buggy address belongs to the physical page:
[   26.853109] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10643f
[   26.853182] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   26.853232] page_type: f5(slab)
[   26.853269] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122
[   26.853325] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   26.853363] page dumped because: kasan: bad access detected
[   26.853393] 
[   26.853410] Memory state around the buggy address:
[   26.853439]  fff00000c643f300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   26.853479]  fff00000c643f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.853519] >fff00000c643f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   26.853571]                                                                 ^
[   26.853618]  fff00000c643f480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.853672]  fff00000c643f500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.853714] ==================================================================

[   22.194720] ==================================================================
[   22.195294] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320
[   22.195887] Write of size 128 at addr ffff8881024c9a00 by task kunit_try_catch/199
[   22.196279] 
[   22.196393] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   22.196444] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.196457] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.196696] Call Trace:
[   22.196711]  <TASK>
[   22.196730]  dump_stack_lvl+0x73/0xb0
[   22.196761]  print_report+0xd1/0x650
[   22.196783]  ? __virt_addr_valid+0x1db/0x2d0
[   22.196807]  ? kmalloc_oob_in_memset+0x15f/0x320
[   22.196828]  ? kasan_complete_mode_report_info+0x2a/0x200
[   22.196853]  ? kmalloc_oob_in_memset+0x15f/0x320
[   22.196874]  kasan_report+0x141/0x180
[   22.196895]  ? kmalloc_oob_in_memset+0x15f/0x320
[   22.196920]  kasan_check_range+0x10c/0x1c0
[   22.196942]  __asan_memset+0x27/0x50
[   22.196964]  kmalloc_oob_in_memset+0x15f/0x320
[   22.196985]  ? __pfx_kmalloc_oob_in_memset+0x10/0x10
[   22.197007]  ? __schedule+0x10cc/0x2b60
[   22.197031]  ? __pfx_read_tsc+0x10/0x10
[   22.197054]  ? ktime_get_ts64+0x86/0x230
[   22.197079]  kunit_try_run_case+0x1a5/0x480
[   22.197105]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.197127]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.197161]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.197186]  ? __kthread_parkme+0x82/0x180
[   22.197208]  ? preempt_count_sub+0x50/0x80
[   22.197245]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.197269]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.197292]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.197315]  kthread+0x337/0x6f0
[   22.197334]  ? trace_preempt_on+0x20/0xc0
[   22.197357]  ? __pfx_kthread+0x10/0x10
[   22.197376]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.197399]  ? calculate_sigpending+0x7b/0xa0
[   22.197423]  ? __pfx_kthread+0x10/0x10
[   22.197444]  ret_from_fork+0x116/0x1d0
[   22.197463]  ? __pfx_kthread+0x10/0x10
[   22.197483]  ret_from_fork_asm+0x1a/0x30
[   22.197514]  </TASK>
[   22.197525] 
[   22.204229] Allocated by task 199:
[   22.204402]  kasan_save_stack+0x45/0x70
[   22.204571]  kasan_save_track+0x18/0x40
[   22.204738]  kasan_save_alloc_info+0x3b/0x50
[   22.204899]  __kasan_kmalloc+0xb7/0xc0
[   22.205092]  __kmalloc_cache_noprof+0x189/0x420
[   22.205301]  kmalloc_oob_in_memset+0xac/0x320
[   22.205506]  kunit_try_run_case+0x1a5/0x480
[   22.205681]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.205915]  kthread+0x337/0x6f0
[   22.206043]  ret_from_fork+0x116/0x1d0
[   22.206169]  ret_from_fork_asm+0x1a/0x30
[   22.206362] 
[   22.206452] The buggy address belongs to the object at ffff8881024c9a00
[   22.206452]  which belongs to the cache kmalloc-128 of size 128
[   22.206978] The buggy address is located 0 bytes inside of
[   22.206978]  allocated 120-byte region [ffff8881024c9a00, ffff8881024c9a78)
[   22.207544] 
[   22.207622] The buggy address belongs to the physical page:
[   22.207837] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024c9
[   22.208174] flags: 0x200000000000000(node=0|zone=2)
[   22.208396] page_type: f5(slab)
[   22.208512] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   22.208839] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   22.209142] page dumped because: kasan: bad access detected
[   22.209413] 
[   22.209502] Memory state around the buggy address:
[   22.209691]  ffff8881024c9900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   22.209899]  ffff8881024c9980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.210449] >ffff8881024c9a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   22.210713]                                                                 ^
[   22.210916]  ffff8881024c9a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.211130]  ffff8881024c9b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.211346] ==================================================================