syzbot


general protection fault in smc_ioctl (2)

Status: fixed on 2018/08/07 13:43
Subsystems: net s390
[Documentation on labels]
Reported-by: syzbot+35b2c5aa76fd398b9fd4@syzkaller.appspotmail.com
Fix commit: 1992d99882af net/smc: take sock lock in smc_ioctl()
First crash: 2104d, last: 2080d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH net V2 1/1] net/smc: take sock lock in smc_ioctl() 3 (3) 2018/07/16 21:45
[PATCH net 1/4] net/smc: take sock lock in smc_ioctl() 3 (3) 2018/07/16 11:56
general protection fault in smc_ioctl (2) 1 (2) 2018/07/15 13:56
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in smc_ioctl (3) net s390 C 15 2078d 2080d 8/26 fixed on 2018/08/28 17:48
upstream general protection fault in smc_ioctl net s390 C 5214 2131d 2161d 8/26 fixed on 2018/07/09 18:05

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 0 PID: 4516 Comm: syz-executor129 Not tainted 4.18.0-rc3+ #121
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:smc_ioctl+0x846/0xd00 net/smc/af_smc.c:1748
Code: 48 c1 e9 03 80 3c 11 00 0f 85 29 04 00 00 4d 8b b6 a0 04 00 00 48 ba 00 00 00 00 00 fc ff df 49 8d 7e 20 48 89 f9 48 c1 e9 03 <0f> b6 14 11 84 d2 74 09 80 fa 03 0f 8e 65 03 00 00 48 8d 7b 02 41 
RSP: 0018:ffff8801b258f750 EFLAGS: 00010202
RAX: ffff8801b258f7c8 RBX: ffff8801b258f788 RCX: 0000000000000004
RDX: dffffc0000000000 RSI: 1ffff100364b1ef9 RDI: 0000000000000020
RBP: ffff8801b258f9b0 R08: ffffed00364b1efa R09: ffffed00364b1ef9
R10: ffffed00364b1ef9 R11: ffff8801b258f7cf R12: 1ffff100364b1eed
R13: 0000000020000040 R14: 0000000000000000 R15: 1ffff100364b1f11
FS:  00007fdddb23c700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdddb21ae78 CR3: 00000001b6c9a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sock_do_ioctl+0xe4/0x3e0 net/socket.c:969
 sock_ioctl+0x30d/0x680 net/socket.c:1093
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:684
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701
 __do_sys_ioctl fs/ioctl.c:708 [inline]
 __se_sys_ioctl fs/ioctl.c:706 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x445e89
Code: e8 7c e6 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 eb 0c fc ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fdddb23bdb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dbc3c RCX: 0000000000445e89
RDX: 0000000020000040 RSI: 0000000000008905 RDI: 000000000000006d
RBP: 00000000006dbc38 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe54550fbf R14: 00007fdddb23c9c0 R15: 0000000000000004
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace 924422afa249de86 ]---
RIP: 0010:smc_ioctl+0x846/0xd00 net/smc/af_smc.c:1748
Code: 48 c1 e9 03 80 3c 11 00 0f 85 29 04 00 00 4d 8b b6 a0 04 00 00 48 ba 00 00 00 00 00 fc ff df 49 8d 7e 20 48 89 f9 48 c1 e9 03 <0f> b6 14 11 84 d2 74 09 80 fa 03 0f 8e 65 03 00 00 48 8d 7b 02 41 
RSP: 0018:ffff8801b258f750 EFLAGS: 00010202
RAX: ffff8801b258f7c8 RBX: ffff8801b258f788 RCX: 0000000000000004
RDX: dffffc0000000000 RSI: 1ffff100364b1ef9 RDI: 0000000000000020
RBP: ffff8801b258f9b0 R08: ffffed00364b1efa R09: ffffed00364b1ef9
R10: ffffed00364b1ef9 R11: ffff8801b258f7cf R12: 1ffff100364b1eed
R13: 0000000020000040 R14: 0000000000000000 R15: 1ffff100364b1f11
FS:  00007fdddb23c700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdddb21ae78 CR3: 00000001b6c9a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (43):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/14 21:58 net-next-old 9cee8c437543 92a49505 .config console log report syz C ci-upstream-net-kasan-gce
2018/08/02 20:41 linux-next d237c54d5b28 5b7e23bb .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/03 21:18 upstream 0585df468e8f cc4f6d0a .config console log report ci-upstream-kasan-gce
2018/08/03 05:01 upstream e30cb13c5a09 5b7e23bb .config console log report ci-upstream-kasan-gce-root
2018/08/02 14:10 upstream 6b4703768268 0a7cf4ec .config console log report ci-upstream-kasan-gce
2018/07/30 06:19 upstream 3cfb6772d4cf 1a381291 .config console log report ci-upstream-kasan-gce-386
2018/08/01 20:48 net-old a94c689e6c9e 0a7cf4ec .config console log report ci-upstream-net-this-kasan-gce
2018/07/31 15:45 net-old 61f4b23769f0 1a381291 .config console log report ci-upstream-net-this-kasan-gce
2018/08/07 11:22 net-next-old de7de576eca2 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/07 03:21 net-next-old de7de576eca2 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/07 00:13 net-next-old de7de576eca2 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/06 11:46 net-next-old 981467033a37 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/06 11:27 net-next-old 981467033a37 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/06 09:50 net-next-old 981467033a37 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/05 23:28 net-next-old c1c8626fcebe 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/05 22:22 net-next-old c1c8626fcebe 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/05 18:28 net-next-old d89d41556141 1beb8136 .config console log report ci-upstream-net-kasan-gce
2018/08/04 18:32 net-next-old a01512b14d4f 3476a2df .config console log report ci-upstream-net-kasan-gce
2018/08/03 15:42 net-next-old 6534770d6f17 cc4f6d0a .config console log report ci-upstream-net-kasan-gce
2018/08/03 06:02 net-next-old 89b1698c93a9 5b7e23bb .config console log report ci-upstream-net-kasan-gce
2018/08/02 23:05 net-next-old 89b1698c93a9 5b7e23bb .config console log report ci-upstream-net-kasan-gce
2018/08/02 22:12 net-next-old 89b1698c93a9 5b7e23bb .config console log report ci-upstream-net-kasan-gce
2018/08/02 02:40 net-next-old fea49f60c9b7 0a7cf4ec .config console log report ci-upstream-net-kasan-gce
2018/08/02 00:24 net-next-old fea49f60c9b7 0a7cf4ec .config console log report ci-upstream-net-kasan-gce
2018/08/01 20:42 net-next-old fea49f60c9b7 0a7cf4ec .config console log report ci-upstream-net-kasan-gce
2018/07/31 07:18 net-next-old 19725496da56 1a381291 .config console log report ci-upstream-net-kasan-gce
2018/07/30 22:30 net-next-old 19725496da56 1a381291 .config console log report ci-upstream-net-kasan-gce
2018/07/30 18:30 net-next-old 19725496da56 1a381291 .config console log report ci-upstream-net-kasan-gce
2018/07/30 10:34 net-next-old 19725496da56 1a381291 .config console log report ci-upstream-net-kasan-gce
2018/07/30 09:07 net-next-old 19725496da56 1a381291 .config console log report ci-upstream-net-kasan-gce
2018/07/14 19:41 net-next-old 9cee8c437543 92a49505 .config console log report ci-upstream-net-kasan-gce
2018/08/05 15:48 linux-next 116b181bb646 1beb8136 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/05 00:04 linux-next 116b181bb646 3476a2df .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/04 18:33 linux-next 116b181bb646 3476a2df .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/04 15:24 linux-next 116b181bb646 3476a2df .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/03 21:18 linux-next 116b181bb646 cc4f6d0a .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 10:57 linux-next d237c54d5b28 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 08:58 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/31 20:02 linux-next d1e0b8e0cb7a 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/31 03:23 linux-next d1e0b8e0cb7a 1a381291 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/30 15:46 linux-next d1e0b8e0cb7a 1a381291 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/19 08:48 linux-next 0b742fe187f7 49f35839 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.