Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.578794] ================================================================== [ 29.578851] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 29.578903] Write of size 4 at addr fff00000c9b1e075 by task kunit_try_catch/205 [ 29.578950] [ 29.578981] CPU: 1 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 29.579079] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.579104] Hardware name: linux,dummy-virt (DT) [ 29.579711] Call trace: [ 29.579753] show_stack+0x20/0x38 (C) [ 29.579806] dump_stack_lvl+0x8c/0xd0 [ 29.579854] print_report+0x118/0x5d0 [ 29.579933] kasan_report+0xdc/0x128 [ 29.580100] kasan_check_range+0x100/0x1a8 [ 29.580162] __asan_memset+0x34/0x78 [ 29.580207] kmalloc_oob_memset_4+0x150/0x300 [ 29.580372] kunit_try_run_case+0x170/0x3f0 [ 29.580577] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.580884] kthread+0x328/0x630 [ 29.581088] ret_from_fork+0x10/0x20 [ 29.581312] [ 29.581379] Allocated by task 205: [ 29.581495] kasan_save_stack+0x3c/0x68 [ 29.581590] kasan_save_track+0x20/0x40 [ 29.581660] kasan_save_alloc_info+0x40/0x58 [ 29.581791] __kasan_kmalloc+0xd4/0xd8 [ 29.581827] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.581876] kmalloc_oob_memset_4+0xb0/0x300 [ 29.582154] kunit_try_run_case+0x170/0x3f0 [ 29.582314] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.582484] kthread+0x328/0x630 [ 29.582648] ret_from_fork+0x10/0x20 [ 29.582742] [ 29.582763] The buggy address belongs to the object at fff00000c9b1e000 [ 29.582763] which belongs to the cache kmalloc-128 of size 128 [ 29.583162] The buggy address is located 117 bytes inside of [ 29.583162] allocated 120-byte region [fff00000c9b1e000, fff00000c9b1e078) [ 29.583327] [ 29.583624] The buggy address belongs to the physical page: [ 29.583914] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b1e [ 29.584084] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.584166] page_type: f5(slab) [ 29.584423] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.584694] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.584778] page dumped because: kasan: bad access detected [ 29.584926] [ 29.585004] Memory state around the buggy address: [ 29.585214] fff00000c9b1df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.585261] fff00000c9b1df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.585442] >fff00000c9b1e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.585536] ^ [ 29.585731] fff00000c9b1e080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.585812] fff00000c9b1e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.585893] ==================================================================
[ 25.781510] ================================================================== [ 25.781964] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 25.782310] Write of size 4 at addr ffff88810553d675 by task kunit_try_catch/223 [ 25.782989] [ 25.783120] CPU: 0 UID: 0 PID: 223 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 25.783170] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.783181] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.783202] Call Trace: [ 25.783212] <TASK> [ 25.783228] dump_stack_lvl+0x73/0xb0 [ 25.783339] print_report+0xd1/0x610 [ 25.783361] ? __virt_addr_valid+0x1db/0x2d0 [ 25.783384] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.783412] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.783437] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.783458] kasan_report+0x141/0x180 [ 25.783479] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.783504] kasan_check_range+0x10c/0x1c0 [ 25.783526] __asan_memset+0x27/0x50 [ 25.783550] kmalloc_oob_memset_4+0x166/0x330 [ 25.783571] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 25.783593] ? __schedule+0x10c6/0x2b60 [ 25.783614] ? __pfx_read_tsc+0x10/0x10 [ 25.783635] ? ktime_get_ts64+0x86/0x230 [ 25.783658] kunit_try_run_case+0x1a5/0x480 [ 25.783682] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.783702] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.783724] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.783746] ? __kthread_parkme+0x82/0x180 [ 25.783769] ? preempt_count_sub+0x50/0x80 [ 25.783791] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.783814] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.783835] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.783857] kthread+0x337/0x6f0 [ 25.783875] ? trace_preempt_on+0x20/0xc0 [ 25.783899] ? __pfx_kthread+0x10/0x10 [ 25.783918] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.783938] ? calculate_sigpending+0x7b/0xa0 [ 25.783961] ? __pfx_kthread+0x10/0x10 [ 25.783981] ret_from_fork+0x116/0x1d0 [ 25.783999] ? __pfx_kthread+0x10/0x10 [ 25.784018] ret_from_fork_asm+0x1a/0x30 [ 25.784048] </TASK> [ 25.784058] [ 25.790963] Allocated by task 223: [ 25.791149] kasan_save_stack+0x45/0x70 [ 25.791412] kasan_save_track+0x18/0x40 [ 25.791840] kasan_save_alloc_info+0x3b/0x50 [ 25.792052] __kasan_kmalloc+0xb7/0xc0 [ 25.792289] __kmalloc_cache_noprof+0x189/0x420 [ 25.792501] kmalloc_oob_memset_4+0xac/0x330 [ 25.792659] kunit_try_run_case+0x1a5/0x480 [ 25.792858] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.793061] kthread+0x337/0x6f0 [ 25.793230] ret_from_fork+0x116/0x1d0 [ 25.793559] ret_from_fork_asm+0x1a/0x30 [ 25.793735] [ 25.793822] The buggy address belongs to the object at ffff88810553d600 [ 25.793822] which belongs to the cache kmalloc-128 of size 128 [ 25.794399] The buggy address is located 117 bytes inside of [ 25.794399] allocated 120-byte region [ffff88810553d600, ffff88810553d678) [ 25.794857] [ 25.794952] The buggy address belongs to the physical page: [ 25.795156] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10553d [ 25.795577] flags: 0x200000000000000(node=0|zone=2) [ 25.795782] page_type: f5(slab) [ 25.795944] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.796305] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.796608] page dumped because: kasan: bad access detected [ 25.796804] [ 25.796888] Memory state around the buggy address: [ 25.797053] ffff88810553d500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.797279] ffff88810553d580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.797489] >ffff88810553d600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.797692] ^ [ 25.797978] ffff88810553d680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.798294] ffff88810553d700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.799036] ==================================================================