Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.379666] ================================================================== [ 15.380082] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 15.380187] Write of size 2 at addr fff00000c786a377 by task kunit_try_catch/173 [ 15.380524] [ 15.380579] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.380715] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.380773] Hardware name: linux,dummy-virt (DT) [ 15.380820] Call trace: [ 15.380879] show_stack+0x20/0x38 (C) [ 15.381034] dump_stack_lvl+0x8c/0xd0 [ 15.381167] print_report+0x118/0x5d0 [ 15.381215] kasan_report+0xdc/0x128 [ 15.381258] kasan_check_range+0x100/0x1a8 [ 15.381311] __asan_memset+0x34/0x78 [ 15.381480] kmalloc_oob_memset_2+0x150/0x2f8 [ 15.381691] kunit_try_run_case+0x170/0x3f0 [ 15.381763] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.382093] kthread+0x328/0x630 [ 15.382699] ret_from_fork+0x10/0x20 [ 15.382815] [ 15.382859] Allocated by task 173: [ 15.383045] kasan_save_stack+0x3c/0x68 [ 15.383249] kasan_save_track+0x20/0x40 [ 15.383508] kasan_save_alloc_info+0x40/0x58 [ 15.383680] __kasan_kmalloc+0xd4/0xd8 [ 15.383858] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.384070] kmalloc_oob_memset_2+0xb0/0x2f8 [ 15.384181] kunit_try_run_case+0x170/0x3f0 [ 15.384337] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.384416] kthread+0x328/0x630 [ 15.384577] ret_from_fork+0x10/0x20 [ 15.384616] [ 15.384879] The buggy address belongs to the object at fff00000c786a300 [ 15.384879] which belongs to the cache kmalloc-128 of size 128 [ 15.385244] The buggy address is located 119 bytes inside of [ 15.385244] allocated 120-byte region [fff00000c786a300, fff00000c786a378) [ 15.385366] [ 15.385439] The buggy address belongs to the physical page: [ 15.385539] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10786a [ 15.385650] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.385741] page_type: f5(slab) [ 15.385875] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.386052] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.386171] page dumped because: kasan: bad access detected [ 15.386242] [ 15.386292] Memory state around the buggy address: [ 15.386636] fff00000c786a200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.386722] fff00000c786a280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.386831] >fff00000c786a300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.387222] ^ [ 15.387324] fff00000c786a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.387477] fff00000c786a400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.387585] ==================================================================
[ 13.144547] ================================================================== [ 13.145055] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 13.145391] Write of size 2 at addr ffff8881025cc177 by task kunit_try_catch/189 [ 13.145956] [ 13.146076] CPU: 1 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.146162] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.146187] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.146208] Call Trace: [ 13.146220] <TASK> [ 13.146234] dump_stack_lvl+0x73/0xb0 [ 13.146410] print_report+0xd1/0x610 [ 13.146433] ? __virt_addr_valid+0x1db/0x2d0 [ 13.146456] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.146478] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.146501] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.146524] kasan_report+0x141/0x180 [ 13.146628] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.146667] kasan_check_range+0x10c/0x1c0 [ 13.146691] __asan_memset+0x27/0x50 [ 13.146710] kmalloc_oob_memset_2+0x166/0x330 [ 13.146732] ? __kasan_check_write+0x18/0x20 [ 13.146752] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 13.146774] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 13.146801] ? trace_hardirqs_on+0x37/0xe0 [ 13.146824] ? __pfx_read_tsc+0x10/0x10 [ 13.146845] ? ktime_get_ts64+0x86/0x230 [ 13.146870] kunit_try_run_case+0x1a5/0x480 [ 13.146894] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.146919] ? queued_spin_lock_slowpath+0x116/0xb40 [ 13.146944] ? __kthread_parkme+0x82/0x180 [ 13.146964] ? preempt_count_sub+0x50/0x80 [ 13.146987] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.147011] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.147036] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.147061] kthread+0x337/0x6f0 [ 13.147080] ? trace_preempt_on+0x20/0xc0 [ 13.147101] ? __pfx_kthread+0x10/0x10 [ 13.147122] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.147143] ? calculate_sigpending+0x7b/0xa0 [ 13.147168] ? __pfx_kthread+0x10/0x10 [ 13.147189] ret_from_fork+0x116/0x1d0 [ 13.147208] ? __pfx_kthread+0x10/0x10 [ 13.147228] ret_from_fork_asm+0x1a/0x30 [ 13.147398] </TASK> [ 13.147411] [ 13.155285] Allocated by task 189: [ 13.155503] kasan_save_stack+0x45/0x70 [ 13.155792] kasan_save_track+0x18/0x40 [ 13.156041] kasan_save_alloc_info+0x3b/0x50 [ 13.156218] __kasan_kmalloc+0xb7/0xc0 [ 13.156708] __kmalloc_cache_noprof+0x189/0x420 [ 13.156933] kmalloc_oob_memset_2+0xac/0x330 [ 13.157080] kunit_try_run_case+0x1a5/0x480 [ 13.157226] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.157447] kthread+0x337/0x6f0 [ 13.157691] ret_from_fork+0x116/0x1d0 [ 13.158053] ret_from_fork_asm+0x1a/0x30 [ 13.158291] [ 13.158394] The buggy address belongs to the object at ffff8881025cc100 [ 13.158394] which belongs to the cache kmalloc-128 of size 128 [ 13.158917] The buggy address is located 119 bytes inside of [ 13.158917] allocated 120-byte region [ffff8881025cc100, ffff8881025cc178) [ 13.159604] [ 13.159718] The buggy address belongs to the physical page: [ 13.159972] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025cc [ 13.160428] flags: 0x200000000000000(node=0|zone=2) [ 13.160668] page_type: f5(slab) [ 13.160839] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.161141] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.161624] page dumped because: kasan: bad access detected [ 13.161869] [ 13.161940] Memory state around the buggy address: [ 13.162148] ffff8881025cc000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.162575] ffff8881025cc080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.162897] >ffff8881025cc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.163117] ^ [ 13.163330] ffff8881025cc180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.163814] ffff8881025cc200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.164135] ==================================================================