syzbot


general protection fault in __do_sys_io_uring_register

Status: fixed on 2020/11/16 12:12
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+f4ebcc98223dafd8991e@syzkaller.appspotmail.com
Fix commit: 55cbc2564ab2 io_uring: fix error path cleanup in io_sqe_files_register()
First crash: 1344d, last: 1337d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in __se_sys_io_uring_register fs 14 1338d 1343d 0/27 closed as dup on 2020/10/14 17:02
Discussions (2)
Title Replies (including bot) Last reply
[PATCHES 0/10] Fixes queued up for 5.10 19 (19) 2020/10/16 16:02
general protection fault in __do_sys_io_uring_register 2 (3) 2020/10/14 16:03

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 10035 Comm: syz-executor.4 Not tainted 5.9.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:io_file_from_index fs/io_uring.c:5969 [inline]
RIP: 0010:io_sqe_files_register fs/io_uring.c:7375 [inline]
RIP: 0010:__io_uring_register fs/io_uring.c:9469 [inline]
RIP: 0010:__do_sys_io_uring_register+0x2fd2/0x3ee0 fs/io_uring.c:9559
Code: ec 03 49 c1 ee 03 49 01 ec 49 01 ee e8 d7 c1 9a ff 41 80 3c 24 00 0f 85 7d 0d 00 00 4d 8b af b8 01 00 00 4c 89 e8 48 c1 e8 03 <80> 3c 28 00 0f 85 58 0d 00 00 49 8b 55 00 89 d8 c1 f8 09 48 98 4c
RSP: 0018:ffffc90001907d68 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc900120de000
RDX: 0000000000040000 RSI: ffffffff81da7769 RDI: 0000000000000005
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffed100229c637
R13: 0000000000000000 R14: ffffed100229c638 R15: ffff8880114e3000
FS:  00007f6ef4830700(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000074bd58 CR3: 0000000017c10000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45de59
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6ef482fc78 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab
RAX: ffffffffffffffda RBX: 00000000000083c0 RCX: 000000000045de59
RDX: 00000000200002c0 RSI: 0000000000000002 RDI: 0000000000000007
RBP: 000000000118c010 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000002e2 R11: 0000000000000246 R12: 000000000118bfd4
R13: 000000000169fb7f R14: 00007f6ef48309c0 R15: 000000000118bfd4
Modules linked in:
---[ end trace 5c270e22ed2f9ddc ]---
RIP: 0010:io_file_from_index fs/io_uring.c:5969 [inline]
RIP: 0010:io_sqe_files_register fs/io_uring.c:7375 [inline]
RIP: 0010:__io_uring_register fs/io_uring.c:9469 [inline]
RIP: 0010:__do_sys_io_uring_register+0x2fd2/0x3ee0 fs/io_uring.c:9559
Code: ec 03 49 c1 ee 03 49 01 ec 49 01 ee e8 d7 c1 9a ff 41 80 3c 24 00 0f 85 7d 0d 00 00 4d 8b af b8 01 00 00 4c 89 e8 48 c1 e8 03 <80> 3c 28 00 0f 85 58 0d 00 00 49 8b 55 00 89 d8 c1 f8 09 48 98 4c
RSP: 0018:ffffc90001907d68 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc900120de000
RDX: 0000000000040000 RSI: ffffffff81da7769 RDI: 0000000000000005
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffed100229c637
R13: 0000000000000000 R14: ffffed100229c638 R15: ffff8880114e3000
FS:  00007f6ef4830700(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31b21000 CR3: 0000000017c10000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (80):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/20 09:58 upstream bbe85027ce80 ff4a3345 .config console log report info ci-upstream-kasan-gce
2020/10/20 08:32 upstream bbe85027ce80 ff4a3345 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/20 01:09 upstream bbe85027ce80 ff4a3345 .config console log report info ci-upstream-kasan-gce-root
2020/10/19 15:56 upstream 7cf726a59435 ff4a3345 .config console log report info ci-upstream-kasan-gce
2020/10/19 07:06 upstream 7cf726a59435 fea47c01 .config console log report info ci-upstream-kasan-gce-root
2020/10/18 23:18 upstream 9d9af1007bc0 fea47c01 .config console log report info ci-upstream-kasan-gce
2020/10/18 07:31 upstream a1e16bc7d5f7 fea47c01 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/18 05:41 upstream a1e16bc7d5f7 fea47c01 .config console log report info ci-upstream-kasan-gce-root
2020/10/18 00:38 upstream a1e16bc7d5f7 fea47c01 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/17 19:40 upstream a1e16bc7d5f7 fea47c01 .config console log report info ci-upstream-kasan-gce-root
2020/10/17 18:36 upstream 071a0578b0ce fea47c01 .config console log report info ci-upstream-kasan-gce-root
2020/10/17 15:18 upstream 071a0578b0ce fea47c01 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/17 12:53 upstream 071a0578b0ce fea47c01 .config console log report info ci-upstream-kasan-gce-root
2020/10/17 09:33 upstream 071a0578b0ce 6e262c73 .config console log report info ci-upstream-kasan-gce-root
2020/10/16 23:47 upstream 9ff9b0d392ea 6e262c73 .config console log report info ci-upstream-kasan-gce-root
2020/10/16 19:59 upstream 9ff9b0d392ea 6e262c73 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/16 16:08 upstream 9ff9b0d392ea 6e262c73 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/16 13:58 upstream 9ff9b0d392ea 6e262c73 .config console log report info ci-upstream-kasan-gce
2020/10/16 12:03 upstream 9ff9b0d392ea 6e262c73 .config console log report info ci-upstream-kasan-gce-root
2020/10/16 06:33 upstream c48b75b7271d 6e262c73 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/16 04:42 upstream c48b75b7271d 6e262c73 .config console log report info ci-upstream-kasan-gce-root
2020/10/15 15:41 upstream 3e4fb4346c78 63869021 .config console log report info ci-upstream-kasan-gce-root
2020/10/15 08:55 upstream 3e4fb4346c78 63869021 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/15 02:12 upstream 3e4fb4346c78 fc7735a2 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/14 20:45 upstream b5fc7a89e58b fc7735a2 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/14 20:01 upstream b5fc7a89e58b fc7735a2 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/14 18:21 upstream b5fc7a89e58b fc7735a2 .config console log report info ci-upstream-kasan-gce-root
2020/10/14 05:30 upstream 029f56db6ac2 fc7735a2 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/14 01:38 upstream 029f56db6ac2 fc7735a2 .config console log report info ci-upstream-kasan-gce-root
2020/10/13 22:57 upstream 029f56db6ac2 bd69ee0d .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/20 20:19 upstream 270315b8235e ff4a3345 .config console log report info ci-upstream-kasan-gce-386
2020/10/20 07:26 upstream bbe85027ce80 ff4a3345 .config console log report info ci-upstream-kasan-gce-386
2020/10/19 14:52 upstream 7cf726a59435 ff4a3345 .config console log report info ci-upstream-kasan-gce-386
2020/10/19 02:49 upstream 9453b2d4694c fea47c01 .config console log report info ci-upstream-kasan-gce-386
2020/10/18 18:12 upstream 9453b2d4694c fea47c01 .config console log report info ci-upstream-kasan-gce-386
2020/10/18 02:26 upstream 9d9af1007bc0 fea47c01 .config console log report info ci-upstream-kasan-gce-386
2020/10/17 23:03 upstream 071a0578b0ce fea47c01 .config console log report info ci-qemu-upstream-386
2020/10/16 18:44 upstream 9ff9b0d392ea 6e262c73 .config console log report info ci-upstream-kasan-gce-386
2020/10/16 09:24 upstream c48b75b7271d 6e262c73 .config console log report info ci-qemu-upstream-386
2020/10/16 07:35 upstream c48b75b7271d 6e262c73 .config console log report info ci-qemu-upstream-386
2020/10/16 06:58 upstream c48b75b7271d 6e262c73 .config console log report info ci-qemu-upstream-386
2020/10/16 02:25 upstream c48b75b7271d 6e262c73 .config console log report info ci-qemu-upstream-386
2020/10/15 22:09 upstream c48b75b7271d 6e262c73 .config console log report info ci-qemu-upstream-386
2020/10/15 20:51 upstream c48b75b7271d 6e262c73 .config console log report info ci-qemu-upstream-386
2020/10/15 19:40 upstream 3e4fb4346c78 63869021 .config console log report info ci-qemu-upstream-386
2020/10/15 18:45 upstream 726eb70e0d34 63869021 .config console log report info ci-upstream-kasan-gce-386
2020/10/15 17:47 upstream 3e4fb4346c78 63869021 .config console log report info ci-qemu-upstream-386
2020/10/15 12:40 upstream 3e4fb4346c78 63869021 .config console log report info ci-upstream-kasan-gce-386
2020/10/15 12:22 upstream 3e4fb4346c78 63869021 .config console log report info ci-upstream-kasan-gce-386
2020/10/15 11:45 upstream 3e4fb4346c78 63869021 .config console log report info ci-qemu-upstream-386
2020/10/15 10:00 upstream 3e4fb4346c78 63869021 .config console log report info ci-qemu-upstream-386
2020/10/15 09:52 upstream 3e4fb4346c78 63869021 .config console log report info ci-qemu-upstream-386
2020/10/15 08:51 upstream 3e4fb4346c78 63869021 .config console log report info ci-qemu-upstream-386
2020/10/15 06:05 upstream 3e4fb4346c78 fc7735a2 .config console log report info ci-upstream-kasan-gce-386
2020/10/15 05:39 upstream e6037a753e8e fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/15 05:15 upstream e6037a753e8e fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/15 04:50 upstream e6037a753e8e fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/15 02:52 upstream e6037a753e8e fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/14 21:54 upstream b5fc7a89e58b fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/14 21:08 upstream b5fc7a89e58b fc7735a2 .config console log report info ci-upstream-kasan-gce-386
2020/10/14 12:20 upstream b5fc7a89e58b fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/14 10:46 upstream b5fc7a89e58b fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/14 10:39 upstream b5fc7a89e58b fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/14 10:12 upstream 029f56db6ac2 fc7735a2 .config console log report info ci-upstream-kasan-gce-386
2020/10/14 06:51 upstream 6ad4bf6ea160 fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/14 06:15 upstream 029f56db6ac2 fc7735a2 .config console log report info ci-upstream-kasan-gce-386
2020/10/14 05:26 upstream 029f56db6ac2 fc7735a2 .config console log report info ci-upstream-kasan-gce-386
2020/10/14 03:17 upstream 6ad4bf6ea160 fc7735a2 .config console log report info ci-qemu-upstream-386
2020/10/14 03:02 upstream 6ad4bf6ea160 fc7735a2 .config console log report info ci-qemu-upstream-386
* Struck through repros no longer work on HEAD.