Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.848725] ================================================================== [ 16.848819] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 16.849277] Write of size 128 at addr fff00000c748a600 by task kunit_try_catch/179 [ 16.849564] [ 16.849815] CPU: 1 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 16.850119] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.850180] Hardware name: linux,dummy-virt (DT) [ 16.850314] Call trace: [ 16.850378] show_stack+0x20/0x38 (C) [ 16.850464] dump_stack_lvl+0x8c/0xd0 [ 16.850595] print_report+0x118/0x608 [ 16.850646] kasan_report+0xdc/0x128 [ 16.850691] kasan_check_range+0x100/0x1a8 [ 16.850739] __asan_memset+0x34/0x78 [ 16.850782] kmalloc_oob_in_memset+0x144/0x2d0 [ 16.851217] kunit_try_run_case+0x170/0x3f0 [ 16.851388] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.851478] kthread+0x328/0x630 [ 16.851620] ret_from_fork+0x10/0x20 [ 16.851683] [ 16.851701] Allocated by task 179: [ 16.851740] kasan_save_stack+0x3c/0x68 [ 16.852122] kasan_save_track+0x20/0x40 [ 16.852237] kasan_save_alloc_info+0x40/0x58 [ 16.852321] __kasan_kmalloc+0xd4/0xd8 [ 16.852361] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.852441] kmalloc_oob_in_memset+0xb0/0x2d0 [ 16.852856] kunit_try_run_case+0x170/0x3f0 [ 16.852995] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.853066] kthread+0x328/0x630 [ 16.853137] ret_from_fork+0x10/0x20 [ 16.853306] [ 16.853522] The buggy address belongs to the object at fff00000c748a600 [ 16.853522] which belongs to the cache kmalloc-128 of size 128 [ 16.853689] The buggy address is located 0 bytes inside of [ 16.853689] allocated 120-byte region [fff00000c748a600, fff00000c748a678) [ 16.853808] [ 16.853960] The buggy address belongs to the physical page: [ 16.854027] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10748a [ 16.854146] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.854196] page_type: f5(slab) [ 16.854360] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.854626] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.854764] page dumped because: kasan: bad access detected [ 16.854824] [ 16.854875] Memory state around the buggy address: [ 16.855011] fff00000c748a500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.855085] fff00000c748a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.855143] >fff00000c748a600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.855193] ^ [ 16.855531] fff00000c748a680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.855626] fff00000c748a700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.855740] ==================================================================
[ 17.983890] ================================================================== [ 17.984663] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 17.985195] Write of size 128 at addr ffff888103393a00 by task kunit_try_catch/197 [ 17.985767] [ 17.986054] CPU: 0 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 17.986177] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.986251] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.986314] Call Trace: [ 17.986376] <TASK> [ 17.986426] dump_stack_lvl+0x73/0xb0 [ 17.986512] print_report+0xd1/0x650 [ 17.986589] ? __virt_addr_valid+0x1db/0x2d0 [ 17.986662] ? kmalloc_oob_in_memset+0x15f/0x320 [ 17.986737] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.986807] ? kmalloc_oob_in_memset+0x15f/0x320 [ 17.986900] kasan_report+0x141/0x180 [ 17.986973] ? kmalloc_oob_in_memset+0x15f/0x320 [ 17.987053] kasan_check_range+0x10c/0x1c0 [ 17.987131] __asan_memset+0x27/0x50 [ 17.987195] kmalloc_oob_in_memset+0x15f/0x320 [ 17.987323] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 17.987398] ? __schedule+0x10cc/0x2b60 [ 17.987465] ? __pfx_read_tsc+0x10/0x10 [ 17.987531] ? ktime_get_ts64+0x86/0x230 [ 17.987624] kunit_try_run_case+0x1a5/0x480 [ 17.987709] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.987780] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.987863] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.987940] ? __kthread_parkme+0x82/0x180 [ 17.987980] ? preempt_count_sub+0x50/0x80 [ 17.988014] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.988047] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.988077] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.988108] kthread+0x337/0x6f0 [ 17.988133] ? trace_preempt_on+0x20/0xc0 [ 17.988167] ? __pfx_kthread+0x10/0x10 [ 17.988194] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.988351] ? calculate_sigpending+0x7b/0xa0 [ 17.988397] ? __pfx_kthread+0x10/0x10 [ 17.988428] ret_from_fork+0x116/0x1d0 [ 17.988456] ? __pfx_kthread+0x10/0x10 [ 17.988484] ret_from_fork_asm+0x1a/0x30 [ 17.988525] </TASK> [ 17.988541] [ 18.006653] Allocated by task 197: [ 18.007465] kasan_save_stack+0x45/0x70 [ 18.008164] kasan_save_track+0x18/0x40 [ 18.008918] kasan_save_alloc_info+0x3b/0x50 [ 18.009386] __kasan_kmalloc+0xb7/0xc0 [ 18.009762] __kmalloc_cache_noprof+0x189/0x420 [ 18.010145] kmalloc_oob_in_memset+0xac/0x320 [ 18.010685] kunit_try_run_case+0x1a5/0x480 [ 18.011096] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.011727] kthread+0x337/0x6f0 [ 18.012065] ret_from_fork+0x116/0x1d0 [ 18.012783] ret_from_fork_asm+0x1a/0x30 [ 18.014097] [ 18.014377] The buggy address belongs to the object at ffff888103393a00 [ 18.014377] which belongs to the cache kmalloc-128 of size 128 [ 18.014995] The buggy address is located 0 bytes inside of [ 18.014995] allocated 120-byte region [ffff888103393a00, ffff888103393a78) [ 18.015589] [ 18.015727] The buggy address belongs to the physical page: [ 18.018852] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103393 [ 18.021712] flags: 0x200000000000000(node=0|zone=2) [ 18.023689] page_type: f5(slab) [ 18.025466] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 18.026804] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.027660] page dumped because: kasan: bad access detected [ 18.028100] [ 18.028296] Memory state around the buggy address: [ 18.029202] ffff888103393900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.029981] ffff888103393980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.030767] >ffff888103393a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.031317] ^ [ 18.032193] ffff888103393a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.033216] ffff888103393b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.033750] ==================================================================