Date
July 10, 2025, 6:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.871477] ================================================================== [ 16.871580] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 16.871633] Write of size 128 at addr fff00000c46ebf00 by task kunit_try_catch/170 [ 16.871708] [ 16.871740] CPU: 1 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.871858] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.871884] Hardware name: linux,dummy-virt (DT) [ 16.871912] Call trace: [ 16.871984] show_stack+0x20/0x38 (C) [ 16.872049] dump_stack_lvl+0x8c/0xd0 [ 16.872229] print_report+0x118/0x608 [ 16.872280] kasan_report+0xdc/0x128 [ 16.872435] kasan_check_range+0x100/0x1a8 [ 16.872483] __asan_memset+0x34/0x78 [ 16.872524] kmalloc_oob_in_memset+0x144/0x2d0 [ 16.872570] kunit_try_run_case+0x170/0x3f0 [ 16.872619] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.872671] kthread+0x328/0x630 [ 16.872712] ret_from_fork+0x10/0x20 [ 16.872758] [ 16.872776] Allocated by task 170: [ 16.872802] kasan_save_stack+0x3c/0x68 [ 16.872841] kasan_save_track+0x20/0x40 [ 16.872878] kasan_save_alloc_info+0x40/0x58 [ 16.872918] __kasan_kmalloc+0xd4/0xd8 [ 16.872953] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.872993] kmalloc_oob_in_memset+0xb0/0x2d0 [ 16.873447] kunit_try_run_case+0x170/0x3f0 [ 16.873508] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.873553] kthread+0x328/0x630 [ 16.873701] ret_from_fork+0x10/0x20 [ 16.873785] [ 16.873877] The buggy address belongs to the object at fff00000c46ebf00 [ 16.873877] which belongs to the cache kmalloc-128 of size 128 [ 16.874019] The buggy address is located 0 bytes inside of [ 16.874019] allocated 120-byte region [fff00000c46ebf00, fff00000c46ebf78) [ 16.874100] [ 16.874120] The buggy address belongs to the physical page: [ 16.874149] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1046eb [ 16.874206] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.874481] page_type: f5(slab) [ 16.874726] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.874876] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.875006] page dumped because: kasan: bad access detected [ 16.875271] [ 16.875498] Memory state around the buggy address: [ 16.875559] fff00000c46ebe00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.875665] fff00000c46ebe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.875783] >fff00000c46ebf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.875889] ^ [ 16.876223] fff00000c46ebf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.876428] fff00000c46ec000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.876649] ==================================================================
[ 12.566356] ================================================================== [ 12.566804] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.567278] Write of size 128 at addr ffff888102791500 by task kunit_try_catch/187 [ 12.567572] [ 12.567665] CPU: 1 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.567705] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.567716] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.567734] Call Trace: [ 12.567746] <TASK> [ 12.567759] dump_stack_lvl+0x73/0xb0 [ 12.567787] print_report+0xd1/0x650 [ 12.567886] ? __virt_addr_valid+0x1db/0x2d0 [ 12.567915] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.567936] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.567967] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.567989] kasan_report+0x141/0x180 [ 12.568010] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.568062] kasan_check_range+0x10c/0x1c0 [ 12.568086] __asan_memset+0x27/0x50 [ 12.568105] kmalloc_oob_in_memset+0x15f/0x320 [ 12.568125] ? __kasan_check_write+0x18/0x20 [ 12.568145] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.568167] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.568193] ? trace_hardirqs_on+0x37/0xe0 [ 12.568216] ? __pfx_read_tsc+0x10/0x10 [ 12.568236] ? ktime_get_ts64+0x86/0x230 [ 12.568259] kunit_try_run_case+0x1a5/0x480 [ 12.568283] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.568307] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.568331] ? __kthread_parkme+0x82/0x180 [ 12.568351] ? preempt_count_sub+0x50/0x80 [ 12.568374] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.568398] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.568422] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.568447] kthread+0x337/0x6f0 [ 12.568465] ? trace_preempt_on+0x20/0xc0 [ 12.568486] ? __pfx_kthread+0x10/0x10 [ 12.568506] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.568527] ? calculate_sigpending+0x7b/0xa0 [ 12.568550] ? __pfx_kthread+0x10/0x10 [ 12.568571] ret_from_fork+0x116/0x1d0 [ 12.568589] ? __pfx_kthread+0x10/0x10 [ 12.568609] ret_from_fork_asm+0x1a/0x30 [ 12.568639] </TASK> [ 12.568648] [ 12.576545] Allocated by task 187: [ 12.576683] kasan_save_stack+0x45/0x70 [ 12.576936] kasan_save_track+0x18/0x40 [ 12.577123] kasan_save_alloc_info+0x3b/0x50 [ 12.577273] __kasan_kmalloc+0xb7/0xc0 [ 12.577443] __kmalloc_cache_noprof+0x189/0x420 [ 12.577659] kmalloc_oob_in_memset+0xac/0x320 [ 12.577846] kunit_try_run_case+0x1a5/0x480 [ 12.577990] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.578365] kthread+0x337/0x6f0 [ 12.578540] ret_from_fork+0x116/0x1d0 [ 12.578729] ret_from_fork_asm+0x1a/0x30 [ 12.578924] [ 12.579175] The buggy address belongs to the object at ffff888102791500 [ 12.579175] which belongs to the cache kmalloc-128 of size 128 [ 12.579641] The buggy address is located 0 bytes inside of [ 12.579641] allocated 120-byte region [ffff888102791500, ffff888102791578) [ 12.580189] [ 12.580265] The buggy address belongs to the physical page: [ 12.580443] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102791 [ 12.580793] flags: 0x200000000000000(node=0|zone=2) [ 12.581023] page_type: f5(slab) [ 12.581302] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.581583] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.581992] page dumped because: kasan: bad access detected [ 12.582239] [ 12.582308] Memory state around the buggy address: [ 12.582461] ffff888102791400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.582716] ffff888102791480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.583292] >ffff888102791500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.583644] ^ [ 12.584115] ffff888102791580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.584428] ffff888102791600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.584738] ==================================================================