syzbot


WARNING in __gup_longterm_locked (2)

Status: upstream: reported on 2023/10/31 21:28
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+f2577d8071a92e596253@syzkaller.appspotmail.com
First crash: 207d, last: 9d01h
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly mm report (Jan 2024) 0 (1) 2024/01/17 09:21
[syzbot] [mm?] WARNING in __gup_longterm_locked (2) 0 (1) 2023/10/31 21:28
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __gup_longterm_locked mm C error 90 321d 323d 23/26 fixed on 2023/10/12 12:47

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 27520 at mm/gup.c:1315 __get_user_pages+0x53c/0x630 mm/gup.c:1315
Modules linked in:
CPU: 1 PID: 27520 Comm: syz-executor.0 Not tainted 6.9.0-syzkaller #0
Hardware name: linux,dummy-virt (DT)
pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __get_user_pages+0x53c/0x630 mm/gup.c:1315
lr : __get_user_pages+0x534/0x630 mm/gup.c:1313
sp : ffff80008b907490
x29: ffff80008b907490 x28: 0000000000000000 x27: ffff00000ece9e00
x26: 0000000000000001 x25: ffff00000e309f00 x24: 0000000020002700
x23: 0000000000080101 x22: ffff00001981e280 x21: 1ffff00011720ea8
x20: 0000000000000003 x19: ffff0000132fa800 x18: ffff00000ecea870
x17: 0000000000000000 x16: 0000000000000006 x15: 1fffe00001d9d50d
x14: 1fffe00001d9d51c x13: 1fffe00001d9d50a x12: ffff7fbff83de007
x11: 1fffffbff83de006 x10: ffff7fbff83de006 x9 : dfff800000000000
x8 : fffffdffc1ef0037 x7 : 0000000000000001 x6 : ffff7fbff83de006
x5 : fffffdffc1ef0034 x4 : ffff7fbff83de007 x3 : fffffdffc1ef0080
x2 : fffffdffc1ef0034 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 __get_user_pages+0x53c/0x630 mm/gup.c:1315
 __get_user_pages_locked mm/gup.c:1525 [inline]
 __gup_longterm_locked+0x418/0x1810 mm/gup.c:2228
 pin_user_pages+0x128/0x138 mm/gup.c:3401
 io_pin_pages+0x98/0x200 io_uring/rsrc.c:891
 io_sqe_buffer_register+0x108/0xe3c io_uring/rsrc.c:927
 __io_sqe_buffers_update io_uring/rsrc.c:452 [inline]
 __io_register_rsrc_update+0x218/0xf70 io_uring/rsrc.c:488
 io_register_rsrc_update+0x17c/0x1d4 io_uring/rsrc.c:519
 __io_uring_register io_uring/register.c:497 [inline]
 __do_sys_io_uring_register io_uring/register.c:613 [inline]
 __se_sys_io_uring_register io_uring/register.c:574 [inline]
 __arm64_sys_io_uring_register+0xa9c/0x20ec io_uring/register.c:574
 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline]
 invoke_syscall+0x6c/0x25c arch/arm64/kernel/syscall.c:48
 el0_svc_common.constprop.0+0xac/0x230 arch/arm64/kernel/syscall.c:133
 do_el0_svc+0x40/0x58 arch/arm64/kernel/syscall.c:152
 el0_svc+0x50/0x180 arch/arm64/kernel/entry-common.c:712
 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:730
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598
irq event stamp: 1114
hardirqs last  enabled at (1113): [<ffff800084e943fc>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last  enabled at (1113): [<ffff800084e943fc>] _raw_spin_unlock_irqrestore+0x80/0xac kernel/locking/spinlock.c:194
hardirqs last disabled at (1114): [<ffff800084e6a2b8>] el1_dbg+0x24/0x9c arch/arm64/kernel/entry-common.c:470
softirqs last  enabled at (1106): [<ffff80008001c830>] fpsimd_restore_current_state+0x44/0xe4 arch/arm64/kernel/fpsimd.c:1784
softirqs last disabled at (1104): [<ffff80008001c800>] alternative_has_cap_likely arch/arm64/include/asm/alternative-macros.h:232 [inline]
softirqs last disabled at (1104): [<ffff80008001c800>] system_supports_fpsimd arch/arm64/include/asm/cpufeature.h:734 [inline]
softirqs last disabled at (1104): [<ffff80008001c800>] fpsimd_restore_current_state+0x14/0xe4 arch/arm64/kernel/fpsimd.c:1777
---[ end trace 0000000000000000 ]---

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/13 08:39 upstream a38297e3fb01 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING in __gup_longterm_locked
2024/04/27 20:08 upstream 5eb4573ea63d 07b455f9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat WARNING in __gup_longterm_locked
2024/04/22 17:15 upstream ed30a4a51bb1 36c961ad .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat WARNING in __gup_longterm_locked
2024/04/13 07:31 upstream 8f2c057754b2 c8349e48 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat WARNING in __gup_longterm_locked
2024/01/19 07:40 upstream b0d326da462e 21772ce4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2024/01/13 23:19 upstream 052d534373b7 551587c1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2024/01/11 10:16 upstream acc657692aed 00f3cc59 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2024/01/08 05:40 upstream 0dd3ee311255 d0304e9c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2024/01/04 07:52 upstream ac865f00af29 28c42cff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2024/01/04 07:39 upstream ac865f00af29 28c42cff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2023/12/23 14:45 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2023/12/23 14:14 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2023/12/13 04:48 upstream eaadbbaaff74 ebcad15c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2023/12/06 19:47 upstream bee0e7762ad2 95293603 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2023/11/18 02:37 upstream 6bc40e44f1dd cb976f63 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
2023/10/27 21:23 upstream 750b95887e56 d0fab643 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __gup_longterm_locked
* Struck through repros no longer work on HEAD.