Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.979622] ================================================================== [ 31.979816] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 31.979971] Write of size 4 at addr fff00000c44df775 by task kunit_try_catch/185 [ 31.980100] [ 31.980193] CPU: 1 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 31.981244] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.981332] Hardware name: linux,dummy-virt (DT) [ 31.981394] Call trace: [ 31.981447] show_stack+0x20/0x38 (C) [ 31.981568] dump_stack_lvl+0x8c/0xd0 [ 31.981683] print_report+0x118/0x608 [ 31.981785] kasan_report+0xdc/0x128 [ 31.981879] kasan_check_range+0x100/0x1a8 [ 31.981983] __asan_memset+0x34/0x78 [ 31.982073] kmalloc_oob_memset_4+0x150/0x300 [ 31.982171] kunit_try_run_case+0x170/0x3f0 [ 31.982277] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.982386] kthread+0x328/0x630 [ 31.982478] ret_from_fork+0x10/0x20 [ 31.982589] [ 31.982649] Allocated by task 185: [ 31.982712] kasan_save_stack+0x3c/0x68 [ 31.982807] kasan_save_track+0x20/0x40 [ 31.982882] kasan_save_alloc_info+0x40/0x58 [ 31.982975] __kasan_kmalloc+0xd4/0xd8 [ 31.983064] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.983151] kmalloc_oob_memset_4+0xb0/0x300 [ 31.983234] kunit_try_run_case+0x170/0x3f0 [ 31.983320] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.983426] kthread+0x328/0x630 [ 31.983508] ret_from_fork+0x10/0x20 [ 31.983591] [ 31.983647] The buggy address belongs to the object at fff00000c44df700 [ 31.983647] which belongs to the cache kmalloc-128 of size 128 [ 31.983765] The buggy address is located 117 bytes inside of [ 31.983765] allocated 120-byte region [fff00000c44df700, fff00000c44df778) [ 31.983878] [ 31.983947] The buggy address belongs to the physical page: [ 31.984032] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1044df [ 31.984257] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.984520] page_type: f5(slab) [ 31.985431] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.985641] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.985835] page dumped because: kasan: bad access detected [ 31.985920] [ 31.985967] Memory state around the buggy address: [ 31.986049] fff00000c44df600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.986163] fff00000c44df680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.986276] >fff00000c44df700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.986375] ^ [ 31.986974] fff00000c44df780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.987159] fff00000c44df800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.987372] ==================================================================
[ 25.687379] ================================================================== [ 25.687982] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 25.688641] Write of size 4 at addr ffff888102b17275 by task kunit_try_catch/203 [ 25.689081] [ 25.689225] CPU: 1 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 25.689334] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.689359] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.689404] Call Trace: [ 25.689435] <TASK> [ 25.689486] dump_stack_lvl+0x73/0xb0 [ 25.689556] print_report+0xd1/0x650 [ 25.689604] ? __virt_addr_valid+0x1db/0x2d0 [ 25.689654] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.689680] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.689708] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.689730] kasan_report+0x141/0x180 [ 25.689753] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.689779] kasan_check_range+0x10c/0x1c0 [ 25.689803] __asan_memset+0x27/0x50 [ 25.689823] kmalloc_oob_memset_4+0x166/0x330 [ 25.689846] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 25.689869] ? __schedule+0x10cc/0x2b60 [ 25.689896] ? __pfx_read_tsc+0x10/0x10 [ 25.689919] ? ktime_get_ts64+0x86/0x230 [ 25.689948] kunit_try_run_case+0x1a5/0x480 [ 25.689975] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.689998] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.690021] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.690060] ? __kthread_parkme+0x82/0x180 [ 25.690084] ? preempt_count_sub+0x50/0x80 [ 25.690110] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.690133] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.690169] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.690208] kthread+0x337/0x6f0 [ 25.690244] ? trace_preempt_on+0x20/0xc0 [ 25.690292] ? __pfx_kthread+0x10/0x10 [ 25.690333] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.690369] ? calculate_sigpending+0x7b/0xa0 [ 25.690414] ? __pfx_kthread+0x10/0x10 [ 25.690470] ret_from_fork+0x116/0x1d0 [ 25.690513] ? __pfx_kthread+0x10/0x10 [ 25.690552] ret_from_fork_asm+0x1a/0x30 [ 25.690616] </TASK> [ 25.690640] [ 25.701271] Allocated by task 203: [ 25.701600] kasan_save_stack+0x45/0x70 [ 25.701900] kasan_save_track+0x18/0x40 [ 25.702306] kasan_save_alloc_info+0x3b/0x50 [ 25.702635] __kasan_kmalloc+0xb7/0xc0 [ 25.702809] __kmalloc_cache_noprof+0x189/0x420 [ 25.703011] kmalloc_oob_memset_4+0xac/0x330 [ 25.703377] kunit_try_run_case+0x1a5/0x480 [ 25.703738] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.704160] kthread+0x337/0x6f0 [ 25.704544] ret_from_fork+0x116/0x1d0 [ 25.704878] ret_from_fork_asm+0x1a/0x30 [ 25.705068] [ 25.705181] The buggy address belongs to the object at ffff888102b17200 [ 25.705181] which belongs to the cache kmalloc-128 of size 128 [ 25.705882] The buggy address is located 117 bytes inside of [ 25.705882] allocated 120-byte region [ffff888102b17200, ffff888102b17278) [ 25.706314] [ 25.706424] The buggy address belongs to the physical page: [ 25.706759] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b17 [ 25.707277] flags: 0x200000000000000(node=0|zone=2) [ 25.707854] page_type: f5(slab) [ 25.708334] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.709354] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.709985] page dumped because: kasan: bad access detected [ 25.710452] [ 25.710660] Memory state around the buggy address: [ 25.711110] ffff888102b17100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.711672] ffff888102b17180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.712092] >ffff888102b17200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.712666] ^ [ 25.713023] ffff888102b17280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.713667] ffff888102b17300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.713923] ==================================================================