Date
June 26, 2025, 9:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 38.566464] ================================================================== [ 38.578030] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 38.585351] Write of size 2 at addr ffff00009462c877 by task kunit_try_catch/258 [ 38.592844] [ 38.594373] CPU: 7 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 38.594403] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.594412] Hardware name: Thundercomm Dragonboard 845c (DT) [ 38.594426] Call trace: [ 38.594433] show_stack+0x20/0x38 (C) [ 38.594451] dump_stack_lvl+0x8c/0xd0 [ 38.594468] print_report+0x118/0x608 [ 38.594487] kasan_report+0xdc/0x128 [ 38.594504] kasan_check_range+0x100/0x1a8 [ 38.594524] __asan_memset+0x34/0x78 [ 38.594537] kmalloc_oob_memset_2+0x150/0x2f8 [ 38.594555] kunit_try_run_case+0x170/0x3f0 [ 38.594571] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.594590] kthread+0x328/0x630 [ 38.594604] ret_from_fork+0x10/0x20 [ 38.594621] [ 38.663361] Allocated by task 258: [ 38.666819] kasan_save_stack+0x3c/0x68 [ 38.670717] kasan_save_track+0x20/0x40 [ 38.674614] kasan_save_alloc_info+0x40/0x58 [ 38.678952] __kasan_kmalloc+0xd4/0xd8 [ 38.682760] __kmalloc_cache_noprof+0x16c/0x3c0 [ 38.687362] kmalloc_oob_memset_2+0xb0/0x2f8 [ 38.691701] kunit_try_run_case+0x170/0x3f0 [ 38.695954] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.701522] kthread+0x328/0x630 [ 38.704807] ret_from_fork+0x10/0x20 [ 38.708442] [ 38.709967] The buggy address belongs to the object at ffff00009462c800 [ 38.709967] which belongs to the cache kmalloc-128 of size 128 [ 38.722622] The buggy address is located 119 bytes inside of [ 38.722622] allocated 120-byte region [ffff00009462c800, ffff00009462c878) [ 38.735366] [ 38.736889] The buggy address belongs to the physical page: [ 38.742538] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11462c [ 38.750636] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 38.758386] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 38.765442] page_type: f5(slab) [ 38.768641] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 38.776478] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 38.784315] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 38.792237] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 38.800160] head: 0bfffe0000000001 fffffdffc2518b01 00000000ffffffff 00000000ffffffff [ 38.808082] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 38.816001] page dumped because: kasan: bad access detected [ 38.821647] [ 38.823168] Memory state around the buggy address: [ 38.828025] ffff00009462c700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.835337] ffff00009462c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.842649] >ffff00009462c800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 38.849958] ^ [ 38.857182] ffff00009462c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.864493] ffff00009462c900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.871804] ==================================================================
[ 26.864083] ================================================================== [ 26.864509] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 26.864838] Write of size 2 at addr fff00000c643f577 by task kunit_try_catch/184 [ 26.865000] [ 26.865156] CPU: 0 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 26.865500] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.865557] Hardware name: linux,dummy-virt (DT) [ 26.865623] Call trace: [ 26.865749] show_stack+0x20/0x38 (C) [ 26.865804] dump_stack_lvl+0x8c/0xd0 [ 26.866119] print_report+0x118/0x608 [ 26.866248] kasan_report+0xdc/0x128 [ 26.866652] kasan_check_range+0x100/0x1a8 [ 26.866787] __asan_memset+0x34/0x78 [ 26.866874] kmalloc_oob_memset_2+0x150/0x2f8 [ 26.866967] kunit_try_run_case+0x170/0x3f0 [ 26.867069] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.867598] kthread+0x328/0x630 [ 26.867690] ret_from_fork+0x10/0x20 [ 26.867824] [ 26.867873] Allocated by task 184: [ 26.867963] kasan_save_stack+0x3c/0x68 [ 26.868077] kasan_save_track+0x20/0x40 [ 26.868115] kasan_save_alloc_info+0x40/0x58 [ 26.868309] __kasan_kmalloc+0xd4/0xd8 [ 26.868463] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.868615] kmalloc_oob_memset_2+0xb0/0x2f8 [ 26.868730] kunit_try_run_case+0x170/0x3f0 [ 26.868911] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.869104] kthread+0x328/0x630 [ 26.869241] ret_from_fork+0x10/0x20 [ 26.869320] [ 26.869426] The buggy address belongs to the object at fff00000c643f500 [ 26.869426] which belongs to the cache kmalloc-128 of size 128 [ 26.869499] The buggy address is located 119 bytes inside of [ 26.869499] allocated 120-byte region [fff00000c643f500, fff00000c643f578) [ 26.869607] [ 26.869634] The buggy address belongs to the physical page: [ 26.869677] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10643f [ 26.869733] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.869795] page_type: f5(slab) [ 26.869843] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 26.869892] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.869937] page dumped because: kasan: bad access detected [ 26.869967] [ 26.869993] Memory state around the buggy address: [ 26.870026] fff00000c643f400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.870234] fff00000c643f480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.870451] >fff00000c643f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.870745] ^ [ 26.870802] fff00000c643f580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.871289] fff00000c643f600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.871436] ==================================================================
[ 22.216347] ================================================================== [ 22.216978] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 22.217333] Write of size 2 at addr ffff888102d56577 by task kunit_try_catch/201 [ 22.217642] [ 22.217735] CPU: 1 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) [ 22.217784] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.217797] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.217818] Call Trace: [ 22.217944] <TASK> [ 22.217963] dump_stack_lvl+0x73/0xb0 [ 22.217995] print_report+0xd1/0x650 [ 22.218016] ? __virt_addr_valid+0x1db/0x2d0 [ 22.218042] ? kmalloc_oob_memset_2+0x166/0x330 [ 22.218062] ? kasan_complete_mode_report_info+0x2a/0x200 [ 22.218087] ? kmalloc_oob_memset_2+0x166/0x330 [ 22.218108] kasan_report+0x141/0x180 [ 22.218129] ? kmalloc_oob_memset_2+0x166/0x330 [ 22.218154] kasan_check_range+0x10c/0x1c0 [ 22.218176] __asan_memset+0x27/0x50 [ 22.218198] kmalloc_oob_memset_2+0x166/0x330 [ 22.218234] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 22.218256] ? __schedule+0x10cc/0x2b60 [ 22.218281] ? __pfx_read_tsc+0x10/0x10 [ 22.218303] ? ktime_get_ts64+0x86/0x230 [ 22.218329] kunit_try_run_case+0x1a5/0x480 [ 22.218355] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.218377] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.218401] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.218425] ? __kthread_parkme+0x82/0x180 [ 22.218446] ? preempt_count_sub+0x50/0x80 [ 22.218469] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.218492] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.218515] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.218538] kthread+0x337/0x6f0 [ 22.218556] ? trace_preempt_on+0x20/0xc0 [ 22.218580] ? __pfx_kthread+0x10/0x10 [ 22.218600] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.218622] ? calculate_sigpending+0x7b/0xa0 [ 22.218646] ? __pfx_kthread+0x10/0x10 [ 22.218667] ret_from_fork+0x116/0x1d0 [ 22.218685] ? __pfx_kthread+0x10/0x10 [ 22.218705] ret_from_fork_asm+0x1a/0x30 [ 22.218736] </TASK> [ 22.218748] [ 22.227752] Allocated by task 201: [ 22.227970] kasan_save_stack+0x45/0x70 [ 22.228154] kasan_save_track+0x18/0x40 [ 22.228419] kasan_save_alloc_info+0x3b/0x50 [ 22.228603] __kasan_kmalloc+0xb7/0xc0 [ 22.228729] __kmalloc_cache_noprof+0x189/0x420 [ 22.228891] kmalloc_oob_memset_2+0xac/0x330 [ 22.229092] kunit_try_run_case+0x1a5/0x480 [ 22.229311] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.229558] kthread+0x337/0x6f0 [ 22.229719] ret_from_fork+0x116/0x1d0 [ 22.229880] ret_from_fork_asm+0x1a/0x30 [ 22.230050] [ 22.230115] The buggy address belongs to the object at ffff888102d56500 [ 22.230115] which belongs to the cache kmalloc-128 of size 128 [ 22.231114] The buggy address is located 119 bytes inside of [ 22.231114] allocated 120-byte region [ffff888102d56500, ffff888102d56578) [ 22.231577] [ 22.231653] The buggy address belongs to the physical page: [ 22.231987] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d56 [ 22.232377] flags: 0x200000000000000(node=0|zone=2) [ 22.232581] page_type: f5(slab) [ 22.232701] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 22.233137] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.233482] page dumped because: kasan: bad access detected [ 22.233707] [ 22.234126] Memory state around the buggy address: [ 22.234371] ffff888102d56400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.234589] ffff888102d56480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.234970] >ffff888102d56500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 22.235348] ^ [ 22.235673] ffff888102d56580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.236081] ffff888102d56600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.236369] ==================================================================