Date
July 24, 2025, 4:41 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.554957] ================================================================== [ 32.555237] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 32.555375] Write of size 8 at addr fff00000c9a8b371 by task kunit_try_catch/207 [ 32.555825] [ 32.555898] CPU: 0 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250724 #1 PREEMPT [ 32.556042] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.556114] Hardware name: linux,dummy-virt (DT) [ 32.556195] Call trace: [ 32.556354] show_stack+0x20/0x38 (C) [ 32.556545] dump_stack_lvl+0x8c/0xd0 [ 32.556668] print_report+0x118/0x5e8 [ 32.556739] kasan_report+0xdc/0x128 [ 32.556867] kasan_check_range+0x100/0x1a8 [ 32.556954] __asan_memset+0x34/0x78 [ 32.557074] kmalloc_oob_memset_8+0x150/0x2f8 [ 32.557161] kunit_try_run_case+0x170/0x3f0 [ 32.557595] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.557673] kthread+0x328/0x630 [ 32.557836] ret_from_fork+0x10/0x20 [ 32.557919] [ 32.557946] Allocated by task 207: [ 32.558027] kasan_save_stack+0x3c/0x68 [ 32.558084] kasan_save_track+0x20/0x40 [ 32.558125] kasan_save_alloc_info+0x40/0x58 [ 32.558173] __kasan_kmalloc+0xd4/0xd8 [ 32.558216] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.558262] kmalloc_oob_memset_8+0xb0/0x2f8 [ 32.558326] kunit_try_run_case+0x170/0x3f0 [ 32.558363] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.558404] kthread+0x328/0x630 [ 32.558436] ret_from_fork+0x10/0x20 [ 32.558472] [ 32.558497] The buggy address belongs to the object at fff00000c9a8b300 [ 32.558497] which belongs to the cache kmalloc-128 of size 128 [ 32.558576] The buggy address is located 113 bytes inside of [ 32.558576] allocated 120-byte region [fff00000c9a8b300, fff00000c9a8b378) [ 32.558637] [ 32.558660] The buggy address belongs to the physical page: [ 32.558697] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a8b [ 32.558762] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.558812] page_type: f5(slab) [ 32.558868] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.558926] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.558975] page dumped because: kasan: bad access detected [ 32.559665] [ 32.559721] Memory state around the buggy address: [ 32.559811] fff00000c9a8b200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.559934] fff00000c9a8b280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.560021] >fff00000c9a8b300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.560082] ^ [ 32.560191] fff00000c9a8b380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.560413] fff00000c9a8b400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.560476] ==================================================================
[ 26.988749] ================================================================== [ 26.989402] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 26.989730] Write of size 8 at addr ffff888105454871 by task kunit_try_catch/224 [ 26.990364] [ 26.990487] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) [ 26.990539] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 26.990552] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.990585] Call Trace: [ 26.990597] <TASK> [ 26.990614] dump_stack_lvl+0x73/0xb0 [ 26.990644] print_report+0xd1/0x640 [ 26.990667] ? __virt_addr_valid+0x1db/0x2d0 [ 26.990691] ? kmalloc_oob_memset_8+0x166/0x330 [ 26.990711] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.990736] ? kmalloc_oob_memset_8+0x166/0x330 [ 26.990757] kasan_report+0x141/0x180 [ 26.990779] ? kmalloc_oob_memset_8+0x166/0x330 [ 26.990998] kasan_check_range+0x10c/0x1c0 [ 26.991032] __asan_memset+0x27/0x50 [ 26.991056] kmalloc_oob_memset_8+0x166/0x330 [ 26.991078] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 26.991100] ? __schedule+0x10da/0x2b60 [ 26.991125] ? __pfx_read_tsc+0x10/0x10 [ 26.991147] ? ktime_get_ts64+0x86/0x230 [ 26.991171] kunit_try_run_case+0x1a5/0x480 [ 26.991195] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.991217] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.991242] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.991274] ? __kthread_parkme+0x82/0x180 [ 26.991294] ? preempt_count_sub+0x50/0x80 [ 26.991317] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.991341] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.991363] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.991386] kthread+0x337/0x6f0 [ 26.991407] ? trace_preempt_on+0x20/0xc0 [ 26.991430] ? __pfx_kthread+0x10/0x10 [ 26.991450] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.991473] ? calculate_sigpending+0x7b/0xa0 [ 26.991497] ? __pfx_kthread+0x10/0x10 [ 26.991517] ret_from_fork+0x116/0x1d0 [ 26.991536] ? __pfx_kthread+0x10/0x10 [ 26.991556] ret_from_fork_asm+0x1a/0x30 [ 26.991599] </TASK> [ 26.991610] [ 26.999481] Allocated by task 224: [ 26.999649] kasan_save_stack+0x45/0x70 [ 26.999961] kasan_save_track+0x18/0x40 [ 27.000151] kasan_save_alloc_info+0x3b/0x50 [ 27.000465] __kasan_kmalloc+0xb7/0xc0 [ 27.001452] __kmalloc_cache_noprof+0x189/0x420 [ 27.002061] kmalloc_oob_memset_8+0xac/0x330 [ 27.002255] kunit_try_run_case+0x1a5/0x480 [ 27.002440] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.003049] kthread+0x337/0x6f0 [ 27.003181] ret_from_fork+0x116/0x1d0 [ 27.003548] ret_from_fork_asm+0x1a/0x30 [ 27.003905] [ 27.003992] The buggy address belongs to the object at ffff888105454800 [ 27.003992] which belongs to the cache kmalloc-128 of size 128 [ 27.004678] The buggy address is located 113 bytes inside of [ 27.004678] allocated 120-byte region [ffff888105454800, ffff888105454878) [ 27.005500] [ 27.005623] The buggy address belongs to the physical page: [ 27.005832] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105454 [ 27.006455] flags: 0x200000000000000(node=0|zone=2) [ 27.006683] page_type: f5(slab) [ 27.007052] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 27.007342] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 27.007648] page dumped because: kasan: bad access detected [ 27.007855] [ 27.008219] Memory state around the buggy address: [ 27.008414] ffff888105454700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.008727] ffff888105454780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.009278] >ffff888105454800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 27.009524] ^ [ 27.009844] ffff888105454880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.010179] ffff888105454900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.011046] ==================================================================