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

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   37.670646] ==================================================================
[   37.681425] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   37.688221] Write of size 16 at addr ffff0000820e8620 by task kunit_try_catch/252
[   37.695801] 
[   37.697338] CPU: 0 UID: 0 PID: 252 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   37.697368] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.697376] Hardware name: Thundercomm Dragonboard 845c (DT)
[   37.697388] Call trace:
[   37.697396]  show_stack+0x20/0x38 (C)
[   37.697415]  dump_stack_lvl+0x8c/0xd0
[   37.697435]  print_report+0x118/0x608
[   37.697455]  kasan_report+0xdc/0x128
[   37.697473]  __asan_report_store16_noabort+0x20/0x30
[   37.697493]  kmalloc_oob_16+0x3a0/0x3f8
[   37.697509]  kunit_try_run_case+0x170/0x3f0
[   37.697528]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.697549]  kthread+0x328/0x630
[   37.697564]  ret_from_fork+0x10/0x20
[   37.697583] 
[   37.763108] Allocated by task 252:
[   37.766567]  kasan_save_stack+0x3c/0x68
[   37.770476]  kasan_save_track+0x20/0x40
[   37.774385]  kasan_save_alloc_info+0x40/0x58
[   37.778723]  __kasan_kmalloc+0xd4/0xd8
[   37.782542]  __kmalloc_cache_noprof+0x16c/0x3c0
[   37.787154]  kmalloc_oob_16+0xb4/0x3f8
[   37.790975]  kunit_try_run_case+0x170/0x3f0
[   37.795226]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.800795]  kthread+0x328/0x630
[   37.804087]  ret_from_fork+0x10/0x20
[   37.807726] 
[   37.809262] The buggy address belongs to the object at ffff0000820e8620
[   37.809262]  which belongs to the cache kmalloc-16 of size 16
[   37.821751] The buggy address is located 0 bytes inside of
[   37.821751]  allocated 13-byte region [ffff0000820e8620, ffff0000820e862d)
[   37.834243] 
[   37.835773] The buggy address belongs to the physical page:
[   37.841417] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1020e8
[   37.849531] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   37.856153] page_type: f5(slab)
[   37.859351] raw: 0bfffe0000000000 ffff000080002640 dead000000000122 0000000000000000
[   37.867195] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   37.875035] page dumped because: kasan: bad access detected
[   37.880688] 
[   37.882219] Memory state around the buggy address:
[   37.887083]  ffff0000820e8500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   37.894404]  ffff0000820e8580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   37.901729] >ffff0000820e8600: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc
[   37.909049]                                   ^
[   37.913654]  ffff0000820e8680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   37.920976]  ffff0000820e8700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   37.928297] ==================================================================

[   26.814199] ==================================================================
[   26.814280] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   26.814839] Write of size 16 at addr fff00000c16b9c00 by task kunit_try_catch/178
[   26.815007] 
[   26.815090] CPU: 0 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   26.815311] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.815696] Hardware name: linux,dummy-virt (DT)
[   26.815753] Call trace:
[   26.816074]  show_stack+0x20/0x38 (C)
[   26.816346]  dump_stack_lvl+0x8c/0xd0
[   26.816777]  print_report+0x118/0x608
[   26.816889]  kasan_report+0xdc/0x128
[   26.817021]  __asan_report_store16_noabort+0x20/0x30
[   26.817388]  kmalloc_oob_16+0x3a0/0x3f8
[   26.817542]  kunit_try_run_case+0x170/0x3f0
[   26.817597]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.817650]  kthread+0x328/0x630
[   26.817720]  ret_from_fork+0x10/0x20
[   26.817778] 
[   26.817802] Allocated by task 178:
[   26.817829]  kasan_save_stack+0x3c/0x68
[   26.817869]  kasan_save_track+0x20/0x40
[   26.817905]  kasan_save_alloc_info+0x40/0x58
[   26.817940]  __kasan_kmalloc+0xd4/0xd8
[   26.817976]  __kmalloc_cache_noprof+0x16c/0x3c0
[   26.818013]  kmalloc_oob_16+0xb4/0x3f8
[   26.818049]  kunit_try_run_case+0x170/0x3f0
[   26.818114]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.818169]  kthread+0x328/0x630
[   26.818200]  ret_from_fork+0x10/0x20
[   26.818244] 
[   26.818262] The buggy address belongs to the object at fff00000c16b9c00
[   26.818262]  which belongs to the cache kmalloc-16 of size 16
[   26.818317] The buggy address is located 0 bytes inside of
[   26.818317]  allocated 13-byte region [fff00000c16b9c00, fff00000c16b9c0d)
[   26.818386] 
[   26.818405] The buggy address belongs to the physical page:
[   26.818436] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xfff00000c16b9ba0 pfn:0x1016b9
[   26.818490] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   26.818544] page_type: f5(slab)
[   26.818595] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   26.818654] raw: fff00000c16b9ba0 000000008080007f 00000000f5000000 0000000000000000
[   26.818707] page dumped because: kasan: bad access detected
[   26.818738] 
[   26.818763] Memory state around the buggy address:
[   26.818802]  fff00000c16b9b00: 00 01 fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   26.818858]  fff00000c16b9b80: fa fb fc fc fa fb fc fc 00 04 fc fc fa fb fc fc
[   26.818898] >fff00000c16b9c00: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc
[   26.818934]                       ^
[   26.818962]  fff00000c16b9c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.819010]  fff00000c16b9d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.819047] ==================================================================

[   22.140059] ==================================================================
[   22.140537] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   22.140857] Write of size 16 at addr ffff888101126c40 by task kunit_try_catch/195
[   22.141329] 
[   22.141433] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   22.141485] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.141498] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.141521] Call Trace:
[   22.141536]  <TASK>
[   22.141555]  dump_stack_lvl+0x73/0xb0
[   22.141588]  print_report+0xd1/0x650
[   22.141611]  ? __virt_addr_valid+0x1db/0x2d0
[   22.141634]  ? kmalloc_oob_16+0x452/0x4a0
[   22.141654]  ? kasan_complete_mode_report_info+0x2a/0x200
[   22.141679]  ? kmalloc_oob_16+0x452/0x4a0
[   22.141699]  kasan_report+0x141/0x180
[   22.141720]  ? kmalloc_oob_16+0x452/0x4a0
[   22.141743]  __asan_report_store16_noabort+0x1b/0x30
[   22.141767]  kmalloc_oob_16+0x452/0x4a0
[   22.141835]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   22.141863]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   22.141887]  kunit_try_run_case+0x1a5/0x480
[   22.141913]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.141935]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.141961]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.141985]  ? __kthread_parkme+0x82/0x180
[   22.142006]  ? preempt_count_sub+0x50/0x80
[   22.142029]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.142052]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.142075]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.142098]  kthread+0x337/0x6f0
[   22.142118]  ? trace_preempt_on+0x20/0xc0
[   22.142141]  ? __pfx_kthread+0x10/0x10
[   22.142161]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.142183]  ? calculate_sigpending+0x7b/0xa0
[   22.142206]  ? __pfx_kthread+0x10/0x10
[   22.142240]  ret_from_fork+0x116/0x1d0
[   22.142260]  ? __pfx_kthread+0x10/0x10
[   22.142280]  ret_from_fork_asm+0x1a/0x30
[   22.142311]  </TASK>
[   22.142323] 
[   22.149408] Allocated by task 195:
[   22.149595]  kasan_save_stack+0x45/0x70
[   22.149844]  kasan_save_track+0x18/0x40
[   22.150028]  kasan_save_alloc_info+0x3b/0x50
[   22.150188]  __kasan_kmalloc+0xb7/0xc0
[   22.150390]  __kmalloc_cache_noprof+0x189/0x420
[   22.150548]  kmalloc_oob_16+0xa8/0x4a0
[   22.150673]  kunit_try_run_case+0x1a5/0x480
[   22.150818]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.151145]  kthread+0x337/0x6f0
[   22.151319]  ret_from_fork+0x116/0x1d0
[   22.151504]  ret_from_fork_asm+0x1a/0x30
[   22.151699] 
[   22.151792] The buggy address belongs to the object at ffff888101126c40
[   22.151792]  which belongs to the cache kmalloc-16 of size 16
[   22.152567] The buggy address is located 0 bytes inside of
[   22.152567]  allocated 13-byte region [ffff888101126c40, ffff888101126c4d)
[   22.153251] 
[   22.153340] The buggy address belongs to the physical page:
[   22.153527] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101126
[   22.153904] flags: 0x200000000000000(node=0|zone=2)
[   22.154186] page_type: f5(slab)
[   22.154334] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   22.154652] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   22.154988] page dumped because: kasan: bad access detected
[   22.155250] 
[   22.155342] Memory state around the buggy address:
[   22.155544]  ffff888101126b00: 00 00 fc fc 00 04 fc fc 00 04 fc fc 00 00 fc fc
[   22.155756]  ffff888101126b80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   22.156067] >ffff888101126c00: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc
[   22.156398]                                               ^
[   22.156565]  ffff888101126c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.157036]  ffff888101126d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.157346] ==================================================================