Date
June 24, 2025, 11:37 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 38.156845] ================================================================== [ 38.168313] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 38.175731] Write of size 16 at addr ffff000080df5b69 by task kunit_try_catch/276 [ 38.183319] [ 38.184854] CPU: 2 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 38.184882] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.184892] Hardware name: Thundercomm Dragonboard 845c (DT) [ 38.184902] Call trace: [ 38.184908] show_stack+0x20/0x38 (C) [ 38.184927] dump_stack_lvl+0x8c/0xd0 [ 38.184949] print_report+0x118/0x608 [ 38.184968] kasan_report+0xdc/0x128 [ 38.184986] kasan_check_range+0x100/0x1a8 [ 38.185007] __asan_memset+0x34/0x78 [ 38.185022] kmalloc_oob_memset_16+0x150/0x2f8 [ 38.185042] kunit_try_run_case+0x170/0x3f0 [ 38.185063] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.185084] kthread+0x328/0x630 [ 38.185100] ret_from_fork+0x10/0x20 [ 38.185119] [ 38.254013] Allocated by task 276: [ 38.257478] kasan_save_stack+0x3c/0x68 [ 38.261385] kasan_save_track+0x20/0x40 [ 38.265291] kasan_save_alloc_info+0x40/0x58 [ 38.269635] __kasan_kmalloc+0xd4/0xd8 [ 38.273453] __kmalloc_cache_noprof+0x16c/0x3c0 [ 38.278061] kmalloc_oob_memset_16+0xb0/0x2f8 [ 38.282493] kunit_try_run_case+0x170/0x3f0 [ 38.286754] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.292324] kthread+0x328/0x630 [ 38.295610] ret_from_fork+0x10/0x20 [ 38.299254] [ 38.300784] The buggy address belongs to the object at ffff000080df5b00 [ 38.300784] which belongs to the cache kmalloc-128 of size 128 [ 38.313445] The buggy address is located 105 bytes inside of [ 38.313445] allocated 120-byte region [ffff000080df5b00, ffff000080df5b78) [ 38.326195] [ 38.327726] The buggy address belongs to the physical page: [ 38.333373] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100df4 [ 38.341478] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 38.349235] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 38.356295] page_type: f5(slab) [ 38.359495] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 38.367343] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 38.375190] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 38.383125] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 38.391057] head: 0bfffe0000000001 fffffdffc2037d01 00000000ffffffff 00000000ffffffff [ 38.398991] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 38.406919] page dumped because: kasan: bad access detected [ 38.412565] [ 38.414094] Memory state around the buggy address: [ 38.418953] ffff000080df5a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.426268] ffff000080df5a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.433583] >ffff000080df5b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 38.440896] ^ [ 38.448122] ffff000080df5b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.455437] ffff000080df5c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.462750] ==================================================================
[ 33.074708] ================================================================== [ 33.074824] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 33.075032] Write of size 16 at addr fff00000c7732469 by task kunit_try_catch/189 [ 33.075778] [ 33.075863] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 33.076104] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.076295] Hardware name: linux,dummy-virt (DT) [ 33.076503] Call trace: [ 33.076659] show_stack+0x20/0x38 (C) [ 33.076824] dump_stack_lvl+0x8c/0xd0 [ 33.077510] print_report+0x118/0x608 [ 33.077955] kasan_report+0xdc/0x128 [ 33.078167] kasan_check_range+0x100/0x1a8 [ 33.078529] __asan_memset+0x34/0x78 [ 33.078737] kmalloc_oob_memset_16+0x150/0x2f8 [ 33.079438] kunit_try_run_case+0x170/0x3f0 [ 33.081121] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.081224] kthread+0x328/0x630 [ 33.081309] ret_from_fork+0x10/0x20 [ 33.081371] [ 33.081394] Allocated by task 189: [ 33.081428] kasan_save_stack+0x3c/0x68 [ 33.081479] kasan_save_track+0x20/0x40 [ 33.081525] kasan_save_alloc_info+0x40/0x58 [ 33.081568] __kasan_kmalloc+0xd4/0xd8 [ 33.081611] __kmalloc_cache_noprof+0x16c/0x3c0 [ 33.081658] kmalloc_oob_memset_16+0xb0/0x2f8 [ 33.081702] kunit_try_run_case+0x170/0x3f0 [ 33.081747] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.081798] kthread+0x328/0x630 [ 33.081836] ret_from_fork+0x10/0x20 [ 33.081878] [ 33.082089] The buggy address belongs to the object at fff00000c7732400 [ 33.082089] which belongs to the cache kmalloc-128 of size 128 [ 33.082237] The buggy address is located 105 bytes inside of [ 33.082237] allocated 120-byte region [fff00000c7732400, fff00000c7732478) [ 33.082385] [ 33.082432] The buggy address belongs to the physical page: [ 33.082505] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107732 [ 33.082622] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.082733] page_type: f5(slab) [ 33.082823] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 33.082969] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 33.083063] page dumped because: kasan: bad access detected [ 33.083138] [ 33.083194] Memory state around the buggy address: [ 33.083313] fff00000c7732300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.083748] fff00000c7732380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.083902] >fff00000c7732400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 33.084046] ^ [ 33.084225] fff00000c7732480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.084508] fff00000c7732500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.084622] ==================================================================
[ 29.195462] ================================================================== [ 29.196712] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 29.197166] Write of size 16 at addr ffff888100aae869 by task kunit_try_catch/208 [ 29.197736] [ 29.198013] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) [ 29.198128] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.198161] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.198212] Call Trace: [ 29.198245] <TASK> [ 29.198288] dump_stack_lvl+0x73/0xb0 [ 29.198365] print_report+0xd1/0x650 [ 29.198424] ? __virt_addr_valid+0x1db/0x2d0 [ 29.198677] ? kmalloc_oob_memset_16+0x166/0x330 [ 29.198736] ? kasan_complete_mode_report_info+0x2a/0x200 [ 29.198801] ? kmalloc_oob_memset_16+0x166/0x330 [ 29.198856] kasan_report+0x141/0x180 [ 29.198914] ? kmalloc_oob_memset_16+0x166/0x330 [ 29.198984] kasan_check_range+0x10c/0x1c0 [ 29.199035] __asan_memset+0x27/0x50 [ 29.199097] kmalloc_oob_memset_16+0x166/0x330 [ 29.199161] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 29.199213] ? __schedule+0x10cc/0x2b60 [ 29.199256] ? __pfx_read_tsc+0x10/0x10 [ 29.199287] ? ktime_get_ts64+0x86/0x230 [ 29.199322] kunit_try_run_case+0x1a5/0x480 [ 29.199358] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.199387] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 29.199419] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.199450] ? __kthread_parkme+0x82/0x180 [ 29.199479] ? preempt_count_sub+0x50/0x80 [ 29.199509] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.199560] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.199593] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.199624] kthread+0x337/0x6f0 [ 29.199683] ? trace_preempt_on+0x20/0xc0 [ 29.199716] ? __pfx_kthread+0x10/0x10 [ 29.199744] ? _raw_spin_unlock_irq+0x47/0x80 [ 29.199774] ? calculate_sigpending+0x7b/0xa0 [ 29.199804] ? __pfx_kthread+0x10/0x10 [ 29.199844] ret_from_fork+0x116/0x1d0 [ 29.199869] ? __pfx_kthread+0x10/0x10 [ 29.199896] ret_from_fork_asm+0x1a/0x30 [ 29.199935] </TASK> [ 29.199949] [ 29.214784] Allocated by task 208: [ 29.215493] kasan_save_stack+0x45/0x70 [ 29.216032] kasan_save_track+0x18/0x40 [ 29.216675] kasan_save_alloc_info+0x3b/0x50 [ 29.217239] __kasan_kmalloc+0xb7/0xc0 [ 29.217719] __kmalloc_cache_noprof+0x189/0x420 [ 29.218334] kmalloc_oob_memset_16+0xac/0x330 [ 29.218871] kunit_try_run_case+0x1a5/0x480 [ 29.219443] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.220181] kthread+0x337/0x6f0 [ 29.220484] ret_from_fork+0x116/0x1d0 [ 29.220932] ret_from_fork_asm+0x1a/0x30 [ 29.221519] [ 29.221759] The buggy address belongs to the object at ffff888100aae800 [ 29.221759] which belongs to the cache kmalloc-128 of size 128 [ 29.222633] The buggy address is located 105 bytes inside of [ 29.222633] allocated 120-byte region [ffff888100aae800, ffff888100aae878) [ 29.224008] [ 29.224215] The buggy address belongs to the physical page: [ 29.224621] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100aae [ 29.225608] flags: 0x200000000000000(node=0|zone=2) [ 29.226041] page_type: f5(slab) [ 29.226601] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 29.227268] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.228103] page dumped because: kasan: bad access detected [ 29.228370] [ 29.228764] Memory state around the buggy address: [ 29.229470] ffff888100aae700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.230211] ffff888100aae780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.230848] >ffff888100aae800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.231673] ^ [ 29.232282] ffff888100aae880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.232995] ffff888100aae900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.233681] ==================================================================