Date
July 8, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.382546] ================================================================== [ 19.382611] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 19.382662] Write of size 2 at addr fff00000c6343a77 by task kunit_try_catch/172 [ 19.382710] [ 19.382740] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.382821] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.383211] Hardware name: linux,dummy-virt (DT) [ 19.383332] Call trace: [ 19.383357] show_stack+0x20/0x38 (C) [ 19.383605] dump_stack_lvl+0x8c/0xd0 [ 19.383679] print_report+0x118/0x608 [ 19.383903] kasan_report+0xdc/0x128 [ 19.384078] kasan_check_range+0x100/0x1a8 [ 19.384296] __asan_memset+0x34/0x78 [ 19.384345] kmalloc_oob_memset_2+0x150/0x2f8 [ 19.384700] kunit_try_run_case+0x170/0x3f0 [ 19.384852] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.384909] kthread+0x328/0x630 [ 19.385012] ret_from_fork+0x10/0x20 [ 19.385291] [ 19.385399] Allocated by task 172: [ 19.385513] kasan_save_stack+0x3c/0x68 [ 19.385592] kasan_save_track+0x20/0x40 [ 19.385767] kasan_save_alloc_info+0x40/0x58 [ 19.386069] __kasan_kmalloc+0xd4/0xd8 [ 19.386196] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.386385] kmalloc_oob_memset_2+0xb0/0x2f8 [ 19.386433] kunit_try_run_case+0x170/0x3f0 [ 19.386657] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.386857] kthread+0x328/0x630 [ 19.386905] ret_from_fork+0x10/0x20 [ 19.386940] [ 19.387014] The buggy address belongs to the object at fff00000c6343a00 [ 19.387014] which belongs to the cache kmalloc-128 of size 128 [ 19.387439] The buggy address is located 119 bytes inside of [ 19.387439] allocated 120-byte region [fff00000c6343a00, fff00000c6343a78) [ 19.387742] [ 19.387784] The buggy address belongs to the physical page: [ 19.387827] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106343 [ 19.387880] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.387928] page_type: f5(slab) [ 19.387967] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.388484] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.388927] page dumped because: kasan: bad access detected [ 19.389009] [ 19.389101] Memory state around the buggy address: [ 19.389203] fff00000c6343900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.389299] fff00000c6343980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.389793] >fff00000c6343a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.389842] ^ [ 19.389950] fff00000c6343a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.390103] fff00000c6343b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.390189] ==================================================================
[ 12.568662] ================================================================== [ 12.569285] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 12.569585] Write of size 2 at addr ffff888102662d77 by task kunit_try_catch/190 [ 12.570219] [ 12.570316] CPU: 1 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.570359] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.570371] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.570391] Call Trace: [ 12.570402] <TASK> [ 12.570418] dump_stack_lvl+0x73/0xb0 [ 12.570450] print_report+0xd1/0x650 [ 12.570473] ? __virt_addr_valid+0x1db/0x2d0 [ 12.570498] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.570519] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.570556] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.570579] kasan_report+0x141/0x180 [ 12.570612] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.570639] kasan_check_range+0x10c/0x1c0 [ 12.570662] __asan_memset+0x27/0x50 [ 12.570681] kmalloc_oob_memset_2+0x166/0x330 [ 12.570702] ? __kasan_check_write+0x18/0x20 [ 12.570722] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.570744] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.570770] ? trace_hardirqs_on+0x37/0xe0 [ 12.570795] ? __pfx_read_tsc+0x10/0x10 [ 12.570816] ? ktime_get_ts64+0x86/0x230 [ 12.570841] kunit_try_run_case+0x1a5/0x480 [ 12.570866] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.570891] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.570915] ? __kthread_parkme+0x82/0x180 [ 12.570935] ? preempt_count_sub+0x50/0x80 [ 12.570960] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.570984] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.571008] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.571032] kthread+0x337/0x6f0 [ 12.571100] ? trace_preempt_on+0x20/0xc0 [ 12.571123] ? __pfx_kthread+0x10/0x10 [ 12.571143] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.571164] ? calculate_sigpending+0x7b/0xa0 [ 12.571188] ? __pfx_kthread+0x10/0x10 [ 12.571209] ret_from_fork+0x116/0x1d0 [ 12.571226] ? __pfx_kthread+0x10/0x10 [ 12.571247] ret_from_fork_asm+0x1a/0x30 [ 12.571278] </TASK> [ 12.571288] [ 12.578909] Allocated by task 190: [ 12.579103] kasan_save_stack+0x45/0x70 [ 12.579312] kasan_save_track+0x18/0x40 [ 12.579522] kasan_save_alloc_info+0x3b/0x50 [ 12.579913] __kasan_kmalloc+0xb7/0xc0 [ 12.580160] __kmalloc_cache_noprof+0x189/0x420 [ 12.580356] kmalloc_oob_memset_2+0xac/0x330 [ 12.580518] kunit_try_run_case+0x1a5/0x480 [ 12.580747] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.581045] kthread+0x337/0x6f0 [ 12.581208] ret_from_fork+0x116/0x1d0 [ 12.581383] ret_from_fork_asm+0x1a/0x30 [ 12.581524] [ 12.581593] The buggy address belongs to the object at ffff888102662d00 [ 12.581593] which belongs to the cache kmalloc-128 of size 128 [ 12.582009] The buggy address is located 119 bytes inside of [ 12.582009] allocated 120-byte region [ffff888102662d00, ffff888102662d78) [ 12.582567] [ 12.582676] The buggy address belongs to the physical page: [ 12.582926] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102662 [ 12.583282] flags: 0x200000000000000(node=0|zone=2) [ 12.583478] page_type: f5(slab) [ 12.583674] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.584072] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.584298] page dumped because: kasan: bad access detected [ 12.584466] [ 12.584533] Memory state around the buggy address: [ 12.584760] ffff888102662c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.585079] ffff888102662c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.585399] >ffff888102662d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.586164] ^ [ 12.586458] ffff888102662d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.586686] ffff888102662e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.587107] ==================================================================