Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.206107] ================================================================== [ 15.206166] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 15.206330] Write of size 2 at addr fff00000c6094b77 by task kunit_try_catch/173 [ 15.206415] [ 15.206451] CPU: 1 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.206700] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.206747] Hardware name: linux,dummy-virt (DT) [ 15.206847] Call trace: [ 15.206897] show_stack+0x20/0x38 (C) [ 15.206949] dump_stack_lvl+0x8c/0xd0 [ 15.207374] print_report+0x118/0x5d0 [ 15.207481] kasan_report+0xdc/0x128 [ 15.208055] kasan_check_range+0x100/0x1a8 [ 15.208234] __asan_memset+0x34/0x78 [ 15.208376] kmalloc_oob_memset_2+0x150/0x2f8 [ 15.208464] kunit_try_run_case+0x170/0x3f0 [ 15.208576] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.208632] kthread+0x328/0x630 [ 15.208682] ret_from_fork+0x10/0x20 [ 15.208758] [ 15.208797] Allocated by task 173: [ 15.209061] kasan_save_stack+0x3c/0x68 [ 15.209265] kasan_save_track+0x20/0x40 [ 15.209455] kasan_save_alloc_info+0x40/0x58 [ 15.209595] __kasan_kmalloc+0xd4/0xd8 [ 15.209681] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.209813] kmalloc_oob_memset_2+0xb0/0x2f8 [ 15.209894] kunit_try_run_case+0x170/0x3f0 [ 15.210004] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.210084] kthread+0x328/0x630 [ 15.210270] ret_from_fork+0x10/0x20 [ 15.210400] [ 15.210530] The buggy address belongs to the object at fff00000c6094b00 [ 15.210530] which belongs to the cache kmalloc-128 of size 128 [ 15.210627] The buggy address is located 119 bytes inside of [ 15.210627] allocated 120-byte region [fff00000c6094b00, fff00000c6094b78) [ 15.210768] [ 15.210841] The buggy address belongs to the physical page: [ 15.210873] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106094 [ 15.211276] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.211360] page_type: f5(slab) [ 15.211417] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.211512] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.211551] page dumped because: kasan: bad access detected [ 15.211617] [ 15.211962] Memory state around the buggy address: [ 15.212369] fff00000c6094a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.212465] fff00000c6094a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.212509] >fff00000c6094b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.212811] ^ [ 15.212937] fff00000c6094b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.212983] fff00000c6094c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.213023] ==================================================================
[ 13.026233] ================================================================== [ 13.026727] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 13.027225] Write of size 2 at addr ffff888103249577 by task kunit_try_catch/190 [ 13.027592] [ 13.027715] CPU: 0 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.027762] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.027773] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.027796] Call Trace: [ 13.027808] <TASK> [ 13.027826] dump_stack_lvl+0x73/0xb0 [ 13.027858] print_report+0xd1/0x610 [ 13.027882] ? __virt_addr_valid+0x1db/0x2d0 [ 13.027905] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.027927] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.027949] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.027971] kasan_report+0x141/0x180 [ 13.027993] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.028019] kasan_check_range+0x10c/0x1c0 [ 13.028042] __asan_memset+0x27/0x50 [ 13.028062] kmalloc_oob_memset_2+0x166/0x330 [ 13.028083] ? __kasan_check_write+0x18/0x20 [ 13.028103] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 13.028124] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 13.028150] ? trace_hardirqs_on+0x37/0xe0 [ 13.028174] ? __pfx_read_tsc+0x10/0x10 [ 13.028196] ? ktime_get_ts64+0x86/0x230 [ 13.028452] kunit_try_run_case+0x1a5/0x480 [ 13.028498] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.028523] ? queued_spin_lock_slowpath+0x116/0xb40 [ 13.028549] ? __kthread_parkme+0x82/0x180 [ 13.028571] ? preempt_count_sub+0x50/0x80 [ 13.028595] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.028618] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.028642] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.028665] kthread+0x337/0x6f0 [ 13.028685] ? trace_preempt_on+0x20/0xc0 [ 13.028707] ? __pfx_kthread+0x10/0x10 [ 13.028727] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.028749] ? calculate_sigpending+0x7b/0xa0 [ 13.028774] ? __pfx_kthread+0x10/0x10 [ 13.028795] ret_from_fork+0x116/0x1d0 [ 13.028814] ? __pfx_kthread+0x10/0x10 [ 13.028834] ret_from_fork_asm+0x1a/0x30 [ 13.028865] </TASK> [ 13.028876] [ 13.037424] Allocated by task 190: [ 13.037627] kasan_save_stack+0x45/0x70 [ 13.037792] kasan_save_track+0x18/0x40 [ 13.038092] kasan_save_alloc_info+0x3b/0x50 [ 13.038282] __kasan_kmalloc+0xb7/0xc0 [ 13.038490] __kmalloc_cache_noprof+0x189/0x420 [ 13.038669] kmalloc_oob_memset_2+0xac/0x330 [ 13.038824] kunit_try_run_case+0x1a5/0x480 [ 13.039020] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.039282] kthread+0x337/0x6f0 [ 13.039459] ret_from_fork+0x116/0x1d0 [ 13.039970] ret_from_fork_asm+0x1a/0x30 [ 13.040261] [ 13.040370] The buggy address belongs to the object at ffff888103249500 [ 13.040370] which belongs to the cache kmalloc-128 of size 128 [ 13.040980] The buggy address is located 119 bytes inside of [ 13.040980] allocated 120-byte region [ffff888103249500, ffff888103249578) [ 13.041603] [ 13.041690] The buggy address belongs to the physical page: [ 13.041877] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103249 [ 13.042142] flags: 0x200000000000000(node=0|zone=2) [ 13.042394] page_type: f5(slab) [ 13.042677] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.043502] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.043748] page dumped because: kasan: bad access detected [ 13.043930] [ 13.044005] Memory state around the buggy address: [ 13.044254] ffff888103249400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.044611] ffff888103249480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.045028] >ffff888103249500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.045451] ^ [ 13.045770] ffff888103249580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.046009] ffff888103249600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.046400] ==================================================================