Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.425690] ================================================================== [ 15.425877] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 15.425937] Write of size 16 at addr fff00000c786a669 by task kunit_try_catch/179 [ 15.426340] [ 15.426417] CPU: 0 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.426502] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.426528] Hardware name: linux,dummy-virt (DT) [ 15.426558] Call trace: [ 15.426616] show_stack+0x20/0x38 (C) [ 15.426668] dump_stack_lvl+0x8c/0xd0 [ 15.426713] print_report+0x118/0x5d0 [ 15.426768] kasan_report+0xdc/0x128 [ 15.426813] kasan_check_range+0x100/0x1a8 [ 15.426867] __asan_memset+0x34/0x78 [ 15.426909] kmalloc_oob_memset_16+0x150/0x2f8 [ 15.426953] kunit_try_run_case+0x170/0x3f0 [ 15.427012] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.427065] kthread+0x328/0x630 [ 15.427106] ret_from_fork+0x10/0x20 [ 15.427153] [ 15.427170] Allocated by task 179: [ 15.427197] kasan_save_stack+0x3c/0x68 [ 15.427236] kasan_save_track+0x20/0x40 [ 15.427280] kasan_save_alloc_info+0x40/0x58 [ 15.427320] __kasan_kmalloc+0xd4/0xd8 [ 15.427355] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.427392] kmalloc_oob_memset_16+0xb0/0x2f8 [ 15.427441] kunit_try_run_case+0x170/0x3f0 [ 15.427478] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.427530] kthread+0x328/0x630 [ 15.427561] ret_from_fork+0x10/0x20 [ 15.427602] [ 15.427621] The buggy address belongs to the object at fff00000c786a600 [ 15.427621] which belongs to the cache kmalloc-128 of size 128 [ 15.427686] The buggy address is located 105 bytes inside of [ 15.427686] allocated 120-byte region [fff00000c786a600, fff00000c786a678) [ 15.427753] [ 15.427771] The buggy address belongs to the physical page: [ 15.427802] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10786a [ 15.427855] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.427903] page_type: f5(slab) [ 15.427944] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.428003] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.428814] page dumped because: kasan: bad access detected [ 15.428877] [ 15.428912] Memory state around the buggy address: [ 15.428997] fff00000c786a500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.429061] fff00000c786a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.429287] >fff00000c786a600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.429340] ^ [ 15.429565] fff00000c786a680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.429685] fff00000c786a700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.429783] ==================================================================
[ 13.219316] ================================================================== [ 13.219998] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 13.220353] Write of size 16 at addr ffff8881025cc369 by task kunit_try_catch/195 [ 13.220703] [ 13.220825] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.220871] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.220884] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.220905] Call Trace: [ 13.220920] <TASK> [ 13.220938] dump_stack_lvl+0x73/0xb0 [ 13.220972] print_report+0xd1/0x610 [ 13.220996] ? __virt_addr_valid+0x1db/0x2d0 [ 13.221028] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.221056] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.221088] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.221122] kasan_report+0x141/0x180 [ 13.221149] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.221184] kasan_check_range+0x10c/0x1c0 [ 13.221214] __asan_memset+0x27/0x50 [ 13.221245] kmalloc_oob_memset_16+0x166/0x330 [ 13.221280] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 13.221304] ? __schedule+0x10cc/0x2b60 [ 13.221326] ? __pfx_read_tsc+0x10/0x10 [ 13.221358] ? ktime_get_ts64+0x86/0x230 [ 13.221382] kunit_try_run_case+0x1a5/0x480 [ 13.221406] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.221449] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.221473] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.221497] ? __kthread_parkme+0x82/0x180 [ 13.221529] ? preempt_count_sub+0x50/0x80 [ 13.221563] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.221587] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.221612] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.221637] kthread+0x337/0x6f0 [ 13.221656] ? trace_preempt_on+0x20/0xc0 [ 13.221679] ? __pfx_kthread+0x10/0x10 [ 13.221699] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.221721] ? calculate_sigpending+0x7b/0xa0 [ 13.221746] ? __pfx_kthread+0x10/0x10 [ 13.221767] ret_from_fork+0x116/0x1d0 [ 13.221785] ? __pfx_kthread+0x10/0x10 [ 13.221815] ret_from_fork_asm+0x1a/0x30 [ 13.221846] </TASK> [ 13.221857] [ 13.230524] Allocated by task 195: [ 13.230715] kasan_save_stack+0x45/0x70 [ 13.230899] kasan_save_track+0x18/0x40 [ 13.231036] kasan_save_alloc_info+0x3b/0x50 [ 13.231184] __kasan_kmalloc+0xb7/0xc0 [ 13.231515] __kmalloc_cache_noprof+0x189/0x420 [ 13.232032] kmalloc_oob_memset_16+0xac/0x330 [ 13.232210] kunit_try_run_case+0x1a5/0x480 [ 13.232358] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.232534] kthread+0x337/0x6f0 [ 13.232663] ret_from_fork+0x116/0x1d0 [ 13.233010] ret_from_fork_asm+0x1a/0x30 [ 13.233428] [ 13.233601] The buggy address belongs to the object at ffff8881025cc300 [ 13.233601] which belongs to the cache kmalloc-128 of size 128 [ 13.234099] The buggy address is located 105 bytes inside of [ 13.234099] allocated 120-byte region [ffff8881025cc300, ffff8881025cc378) [ 13.234860] [ 13.234994] The buggy address belongs to the physical page: [ 13.235323] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025cc [ 13.235644] flags: 0x200000000000000(node=0|zone=2) [ 13.235848] page_type: f5(slab) [ 13.236024] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.236446] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.236777] page dumped because: kasan: bad access detected [ 13.236949] [ 13.237016] Memory state around the buggy address: [ 13.237168] ffff8881025cc200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.237602] ffff8881025cc280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.237939] >ffff8881025cc300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.238246] ^ [ 13.238717] ffff8881025cc380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.238937] ffff8881025cc400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.239149] ==================================================================