Date
March 19, 2025, 10:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.227938] ================================================================== [ 34.228111] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 34.228257] Write of size 4 at addr fff00000c6818975 by task kunit_try_catch/176 [ 34.228420] [ 34.228512] CPU: 1 UID: 0 PID: 176 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT [ 34.228787] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.228874] Hardware name: linux,dummy-virt (DT) [ 34.228972] Call trace: [ 34.229039] show_stack+0x20/0x38 (C) [ 34.229345] dump_stack_lvl+0x8c/0xd0 [ 34.229529] print_report+0x118/0x5f0 [ 34.229667] kasan_report+0xc8/0x118 [ 34.229803] kasan_check_range+0x100/0x1a8 [ 34.230027] __asan_memset+0x34/0x78 [ 34.230203] kmalloc_oob_memset_4+0x150/0x300 [ 34.230355] kunit_try_run_case+0x14c/0x3d0 [ 34.230499] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.230700] kthread+0x318/0x618 [ 34.230843] ret_from_fork+0x10/0x20 [ 34.231072] [ 34.231232] Allocated by task 176: [ 34.231387] kasan_save_stack+0x3c/0x68 [ 34.231542] kasan_save_track+0x20/0x40 [ 34.231657] kasan_save_alloc_info+0x40/0x58 [ 34.231774] __kasan_kmalloc+0xd4/0xd8 [ 34.231885] __kmalloc_cache_noprof+0x15c/0x3c0 [ 34.232015] kmalloc_oob_memset_4+0xb0/0x300 [ 34.232163] kunit_try_run_case+0x14c/0x3d0 [ 34.232286] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.232440] kthread+0x318/0x618 [ 34.232556] ret_from_fork+0x10/0x20 [ 34.232671] [ 34.232769] The buggy address belongs to the object at fff00000c6818900 [ 34.232769] which belongs to the cache kmalloc-128 of size 128 [ 34.233027] The buggy address is located 117 bytes inside of [ 34.233027] allocated 120-byte region [fff00000c6818900, fff00000c6818978) [ 34.233299] [ 34.233397] The buggy address belongs to the physical page: [ 34.233498] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106818 [ 34.233659] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.233796] page_type: f5(slab) [ 34.233930] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 34.234621] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 34.234864] page dumped because: kasan: bad access detected [ 34.234974] [ 34.235528] Memory state around the buggy address: [ 34.235733] fff00000c6818800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.236395] fff00000c6818880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.237410] >fff00000c6818900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 34.237710] ^ [ 34.238103] fff00000c6818980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.239264] fff00000c6818a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.239745] ==================================================================
[ 21.899492] ================================================================== [ 21.900406] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 21.901032] Write of size 4 at addr ffff88810305a575 by task kunit_try_catch/195 [ 21.901589] [ 21.901944] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) [ 21.902091] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.902149] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.902198] Call Trace: [ 21.902229] <TASK> [ 21.902263] dump_stack_lvl+0x73/0xb0 [ 21.902355] print_report+0xd1/0x660 [ 21.902453] ? __virt_addr_valid+0x1db/0x2d0 [ 21.902576] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.902648] kasan_report+0x104/0x140 [ 21.902705] ? kmalloc_oob_memset_4+0x166/0x330 [ 21.902793] ? kmalloc_oob_memset_4+0x166/0x330 [ 21.902890] kasan_check_range+0x10c/0x1c0 [ 21.902989] __asan_memset+0x27/0x50 [ 21.903046] kmalloc_oob_memset_4+0x166/0x330 [ 21.903094] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 21.903166] ? __schedule+0xd46/0x29c0 [ 21.903198] ? __pfx_read_tsc+0x10/0x10 [ 21.903246] ? ktime_get_ts64+0x86/0x240 [ 21.903308] kunit_try_run_case+0x1b2/0x490 [ 21.903374] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.903449] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.903534] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.903609] ? __kthread_parkme+0x82/0x160 [ 21.903683] ? preempt_count_sub+0x50/0x80 [ 21.903751] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.903817] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.903881] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.903982] kthread+0x323/0x710 [ 21.904088] ? trace_preempt_on+0x20/0xc0 [ 21.904185] ? __pfx_kthread+0x10/0x10 [ 21.904237] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.904269] ? calculate_sigpending+0x7b/0xa0 [ 21.904301] ? __pfx_kthread+0x10/0x10 [ 21.904333] ret_from_fork+0x41/0x80 [ 21.904367] ? __pfx_kthread+0x10/0x10 [ 21.904398] ret_from_fork_asm+0x1a/0x30 [ 21.904444] </TASK> [ 21.904460] [ 21.916347] Allocated by task 195: [ 21.916788] kasan_save_stack+0x3d/0x60 [ 21.917242] kasan_save_track+0x18/0x40 [ 21.917698] kasan_save_alloc_info+0x3b/0x50 [ 21.918192] __kasan_kmalloc+0xb7/0xc0 [ 21.918645] __kmalloc_cache_noprof+0x183/0x410 [ 21.919149] kmalloc_oob_memset_4+0xac/0x330 [ 21.919647] kunit_try_run_case+0x1b2/0x490 [ 21.920023] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.920600] kthread+0x323/0x710 [ 21.921136] ret_from_fork+0x41/0x80 [ 21.921456] ret_from_fork_asm+0x1a/0x30 [ 21.921977] [ 21.922185] The buggy address belongs to the object at ffff88810305a500 [ 21.922185] which belongs to the cache kmalloc-128 of size 128 [ 21.923140] The buggy address is located 117 bytes inside of [ 21.923140] allocated 120-byte region [ffff88810305a500, ffff88810305a578) [ 21.924273] [ 21.924488] The buggy address belongs to the physical page: [ 21.924990] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10305a [ 21.925613] flags: 0x200000000000000(node=0|zone=2) [ 21.926174] page_type: f5(slab) [ 21.926591] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 21.927295] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.928097] page dumped because: kasan: bad access detected [ 21.928423] [ 21.928687] Memory state around the buggy address: [ 21.929160] ffff88810305a400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.929740] ffff88810305a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.930345] >ffff88810305a500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.931058] ^ [ 21.931751] ffff88810305a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.932169] ffff88810305a600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.932540] ==================================================================