Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.013591] ================================================================== [ 32.013796] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 32.013932] Write of size 8 at addr fff00000c44df871 by task kunit_try_catch/187 [ 32.014031] [ 32.014115] CPU: 1 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 32.014337] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.014450] Hardware name: linux,dummy-virt (DT) [ 32.014521] Call trace: [ 32.014572] show_stack+0x20/0x38 (C) [ 32.014697] dump_stack_lvl+0x8c/0xd0 [ 32.014786] print_report+0x118/0x608 [ 32.014889] kasan_report+0xdc/0x128 [ 32.014995] kasan_check_range+0x100/0x1a8 [ 32.015128] __asan_memset+0x34/0x78 [ 32.015251] kmalloc_oob_memset_8+0x150/0x2f8 [ 32.015396] kunit_try_run_case+0x170/0x3f0 [ 32.015540] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.015708] kthread+0x328/0x630 [ 32.015838] ret_from_fork+0x10/0x20 [ 32.015982] [ 32.016038] Allocated by task 187: [ 32.016109] kasan_save_stack+0x3c/0x68 [ 32.016240] kasan_save_track+0x20/0x40 [ 32.016360] kasan_save_alloc_info+0x40/0x58 [ 32.016452] __kasan_kmalloc+0xd4/0xd8 [ 32.016526] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.016628] kmalloc_oob_memset_8+0xb0/0x2f8 [ 32.016710] kunit_try_run_case+0x170/0x3f0 [ 32.016786] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.016867] kthread+0x328/0x630 [ 32.016959] ret_from_fork+0x10/0x20 [ 32.017042] [ 32.017088] The buggy address belongs to the object at fff00000c44df800 [ 32.017088] which belongs to the cache kmalloc-128 of size 128 [ 32.017274] The buggy address is located 113 bytes inside of [ 32.017274] allocated 120-byte region [fff00000c44df800, fff00000c44df878) [ 32.017436] [ 32.017512] The buggy address belongs to the physical page: [ 32.017626] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1044df [ 32.017779] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.017964] page_type: f5(slab) [ 32.018068] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.018204] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.018331] page dumped because: kasan: bad access detected [ 32.018439] [ 32.018501] Memory state around the buggy address: [ 32.018618] fff00000c44df700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.018711] fff00000c44df780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.018808] >fff00000c44df800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.018885] ^ [ 32.018978] fff00000c44df880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.019071] fff00000c44df900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.019185] ==================================================================
[ 25.720829] ================================================================== [ 25.721350] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 25.722066] Write of size 8 at addr ffff88810231cf71 by task kunit_try_catch/205 [ 25.722814] [ 25.723074] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 25.723191] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.723218] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.723264] Call Trace: [ 25.723293] <TASK> [ 25.723328] dump_stack_lvl+0x73/0xb0 [ 25.723400] print_report+0xd1/0x650 [ 25.723459] ? __virt_addr_valid+0x1db/0x2d0 [ 25.723510] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.723558] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.723610] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.723653] kasan_report+0x141/0x180 [ 25.723688] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.723734] kasan_check_range+0x10c/0x1c0 [ 25.723772] __asan_memset+0x27/0x50 [ 25.723810] kmalloc_oob_memset_8+0x166/0x330 [ 25.723852] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 25.723899] ? __schedule+0x10cc/0x2b60 [ 25.723951] ? __pfx_read_tsc+0x10/0x10 [ 25.724000] ? ktime_get_ts64+0x86/0x230 [ 25.724061] kunit_try_run_case+0x1a5/0x480 [ 25.724117] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.724167] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.724208] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.724248] ? __kthread_parkme+0x82/0x180 [ 25.724290] ? preempt_count_sub+0x50/0x80 [ 25.724339] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.724386] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.724436] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.724525] kthread+0x337/0x6f0 [ 25.724563] ? trace_preempt_on+0x20/0xc0 [ 25.724604] ? __pfx_kthread+0x10/0x10 [ 25.724638] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.724673] ? calculate_sigpending+0x7b/0xa0 [ 25.724711] ? __pfx_kthread+0x10/0x10 [ 25.724745] ret_from_fork+0x116/0x1d0 [ 25.724775] ? __pfx_kthread+0x10/0x10 [ 25.724808] ret_from_fork_asm+0x1a/0x30 [ 25.724860] </TASK> [ 25.724881] [ 25.737233] Allocated by task 205: [ 25.737610] kasan_save_stack+0x45/0x70 [ 25.737862] kasan_save_track+0x18/0x40 [ 25.738175] kasan_save_alloc_info+0x3b/0x50 [ 25.739410] __kasan_kmalloc+0xb7/0xc0 [ 25.739803] __kmalloc_cache_noprof+0x189/0x420 [ 25.740190] kmalloc_oob_memset_8+0xac/0x330 [ 25.740671] kunit_try_run_case+0x1a5/0x480 [ 25.741103] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.741631] kthread+0x337/0x6f0 [ 25.742087] ret_from_fork+0x116/0x1d0 [ 25.742482] ret_from_fork_asm+0x1a/0x30 [ 25.743165] [ 25.743361] The buggy address belongs to the object at ffff88810231cf00 [ 25.743361] which belongs to the cache kmalloc-128 of size 128 [ 25.744178] The buggy address is located 113 bytes inside of [ 25.744178] allocated 120-byte region [ffff88810231cf00, ffff88810231cf78) [ 25.745181] [ 25.745391] The buggy address belongs to the physical page: [ 25.745848] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10231c [ 25.746356] flags: 0x200000000000000(node=0|zone=2) [ 25.747293] page_type: f5(slab) [ 25.747575] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.747920] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.748261] page dumped because: kasan: bad access detected [ 25.748610] [ 25.749060] Memory state around the buggy address: [ 25.749776] ffff88810231ce00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.750099] ffff88810231ce80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.751216] >ffff88810231cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.751466] ^ [ 25.752235] ffff88810231cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.752402] ffff88810231d000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.753093] ==================================================================