syzbot


general protection fault in smc_ib_remove_dev

Status: fixed on 2020/04/15 17:19
Subsystems: s390 net
[Documentation on labels]
Reported-by: syzbot+84484ccebdd4e5451d91@syzkaller.appspotmail.com
Fix commit: a2f2ef4a54c0 net/smc: check for valid ib_client_data
First crash: 1525d, last: 1511d
Cause bisection: introduced by (bisect log) :
commit cbd34da7dc9afd521e0bea5e7d12701f4a9da7c7
Author: Christoph Hellwig <hch@lst.de>
Date: Fri Jul 12 03:57:28 2019 +0000

  mm: move the powerpc hugepd code to mm/gup.c

Crash: general protection fault in send_hsr_supervision_frame (log)
Repro: C syz .config
  
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 4.14 00/99] 4.14.174-rc1 review 103 (103) 2020/03/21 00:44
[PATCH 4.19 00/89] 4.19.111-rc1 review 97 (97) 2020/03/19 10:04
[PATCH 5.5 000/151] 5.5.10-rc1 review 158 (158) 2020/03/18 10:00
[PATCH 5.4 000/123] 5.4.26-rc1 review 127 (127) 2020/03/18 00:04
[PATCH net] net/smc: check for valid ib_client_data 2 (2) 2020/02/27 04:57
general protection fault in smc_ib_remove_dev 0 (1) 2020/02/24 08:28

Sample crash report:
netlink: 'syz-executor602': attribute type 1 has an invalid length.
netlink: 21 bytes leftover after parsing attributes in process `syz-executor602'.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 10675 Comm: syz-executor602 Not tainted 5.6.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0x22/0xf5 lib/list_debug.c:42
Code: 0d fe 48 8b 75 e8 eb b2 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 41 56 49 89 fe 48 83 c7 08 48 89 fa 41 55 48 c1 ea 03 41 54 <80> 3c 02 00 0f 85 a1 00 00 00 4c 89 f2 4d 8b 66 08 48 b8 00 00 00
RSP: 0018:ffffc90001ed7440 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffff87b57410 RCX: ffffffff815c1ec9
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008
RBP: ffffc90001ed7458 R08: 0000000000000004 R09: fffff520003dae7b
R10: fffff520003dae7a R11: 0000000000000003 R12: 0000000000000000
R13: 0000000000000008 R14: 0000000000000000 R15: ffffffff8a98c200
FS:  0000000000fbe880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1b1d1bc000 CR3: 0000000084d71000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:132 [inline]
 list_del_init include/linux/list.h:204 [inline]
 smc_ib_remove_dev+0x52/0x2e0 net/smc/smc_ib.c:578
 remove_client_context+0xc7/0x120 drivers/infiniband/core/device.c:724
 disable_device+0x14c/0x230 drivers/infiniband/core/device.c:1268
 __ib_unregister_device+0x9c/0x190 drivers/infiniband/core/device.c:1435
 ib_unregister_device_and_put+0x5f/0x80 drivers/infiniband/core/device.c:1498
 nldev_dellink+0x222/0x340 drivers/infiniband/core/nldev.c:1568
 rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:195 [inline]
 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
 rdma_nl_rcv+0x5d9/0x980 drivers/infiniband/core/netlink.c:259
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x59e/0x7e0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x91c/0xea0 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:672
 __sys_sendto+0x262/0x380 net/socket.c:1998
 __do_sys_sendto net/socket.c:2010 [inline]
 __se_sys_sendto net/socket.c:2006 [inline]
 __x64_sys_sendto+0xe1/0x1a0 net/socket.c:2006
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4404d9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffccc96bb88 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004404d9
RDX: 0000000000010a73 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 0000000000000000 R09: 4b6ae4f95a5de35b
R10: 00000000000008c0 R11: 0000000000000246 R12: 0000000000401d60
R13: 0000000000401df0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 27e8637736c8f56f ]---
RIP: 0010:__list_del_entry_valid+0x22/0xf5 lib/list_debug.c:42
Code: 0d fe 48 8b 75 e8 eb b2 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 41 56 49 89 fe 48 83 c7 08 48 89 fa 41 55 48 c1 ea 03 41 54 <80> 3c 02 00 0f 85 a1 00 00 00 4c 89 f2 4d 8b 66 08 48 b8 00 00 00
RSP: 0018:ffffc90001ed7440 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffff87b57410 RCX: ffffffff815c1ec9
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008
RBP: ffffc90001ed7458 R08: 0000000000000004 R09: fffff520003dae7b
R10: fffff520003dae7a R11: 0000000000000003 R12: 0000000000000000
R13: 0000000000000008 R14: 0000000000000000 R15: ffffffff8a98c200
FS:  0000000000fbe880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1b1d1bc000 CR3: 0000000084d71000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (98):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/26 01:02 upstream f8788d86ab28 59b57593 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/02/25 09:22 upstream f8788d86ab28 59b57593 .config console log report syz C ci-upstream-kasan-gce-root
2020/02/22 07:59 upstream b0dd1eb220c0 2ffa6679 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/02/21 22:30 net-old 36a44bcdd8df 2ffa6679 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/02/21 22:58 net-next-old 5f9721a2d119 2ffa6679 .config console log report syz C ci-upstream-net-kasan-gce
2020/03/06 20:47 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce-selinux-root
2020/03/05 12:31 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce-root
2020/03/05 09:33 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce-root
2020/03/04 12:22 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce-smack-root
2020/03/04 04:13 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce-selinux-root
2020/03/03 12:16 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce-selinux-root
2020/03/03 06:06 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce-root
2020/02/29 15:51 upstream f8788d86ab28 59b57593 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/29 01:36 upstream f8788d86ab28 59b57593 .config console log report ci-upstream-kasan-gce-root
2020/02/28 22:29 upstream f8788d86ab28 59b57593 .config console log report ci-upstream-kasan-gce-root
2020/02/27 15:46 upstream f8788d86ab28 59b57593 .config console log report ci-upstream-kasan-gce-root
2020/02/27 06:57 upstream f8788d86ab28 59b57593 .config console log report ci-upstream-kasan-gce-root
2020/03/06 05:37 net-old 3614d05b5e6b c88c7b75 .config console log report ci-upstream-net-this-kasan-gce
2020/03/05 16:18 net-old 3614d05b5e6b c88c7b75 .config console log report ci-upstream-net-this-kasan-gce
2020/03/04 18:00 net-old 3614d05b5e6b c88c7b75 .config console log report ci-upstream-net-this-kasan-gce
2020/03/04 00:51 net-old 3614d05b5e6b c88c7b75 .config console log report ci-upstream-net-this-kasan-gce
2020/03/03 22:01 net-old 3614d05b5e6b c88c7b75 .config console log report ci-upstream-net-this-kasan-gce
2020/03/03 03:35 net-old 3614d05b5e6b c88c7b75 .config console log report ci-upstream-net-this-kasan-gce
2020/03/03 00:38 net-old 3614d05b5e6b c88c7b75 .config console log report ci-upstream-net-this-kasan-gce
2020/03/02 01:34 net-old 3614d05b5e6b c88c7b75 .config console log report ci-upstream-net-this-kasan-gce
2020/03/01 00:35 net-old 6132c1d9033d 59b57593 .config console log report ci-upstream-net-this-kasan-gce
2020/02/29 11:48 net-old 6132c1d9033d 59b57593 .config console log report ci-upstream-net-this-kasan-gce
2020/02/29 01:52 net-old 6132c1d9033d 59b57593 .config console log report ci-upstream-net-this-kasan-gce
2020/02/29 01:10 net-old 6132c1d9033d 59b57593 .config console log report ci-upstream-net-this-kasan-gce
2020/02/27 15:54 net-old 6132c1d9033d 59b57593 .config console log report ci-upstream-net-this-kasan-gce
2020/02/27 07:35 net-old 6132c1d9033d 59b57593 .config console log report ci-upstream-net-this-kasan-gce
2020/03/06 11:44 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/06 02:10 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/05 21:56 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/05 08:08 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/04 02:22 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/03 19:05 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/03 13:35 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/03 09:39 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/02 21:28 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/02 12:35 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/02 03:54 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/03/01 16:21 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
2020/02/29 20:36 net-next-old c3e042f54107 59b57593 .config console log report ci-upstream-net-kasan-gce
2020/02/29 18:32 net-next-old c3e042f54107 59b57593 .config console log report ci-upstream-net-kasan-gce
2020/02/28 18:29 net-next-old c3e042f54107 59b57593 .config console log report ci-upstream-net-kasan-gce
2020/02/27 12:21 net-next-old c3e042f54107 59b57593 .config console log report ci-upstream-net-kasan-gce
2020/02/27 12:02 net-next-old c3e042f54107 59b57593 .config console log report ci-upstream-net-kasan-gce
2020/02/27 11:04 net-next-old c3e042f54107 59b57593 .config console log report ci-upstream-net-kasan-gce
2020/02/27 09:36 net-next-old c3e042f54107 59b57593 .config console log report ci-upstream-net-kasan-gce
2020/03/06 03:39 linux-next c99b17ac0399 c88c7b75 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/03/06 00:55 linux-next c99b17ac0399 c88c7b75 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/03/05 05:31 linux-next c99b17ac0399 c88c7b75 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/03/01 23:12 linux-next c99b17ac0399 c88c7b75 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/03/01 04:31 linux-next c99b17ac0399 c88c7b75 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/03/01 02:08 linux-next c99b17ac0399 59b57593 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/27 12:22 linux-next bdc5461b23ca 59b57593 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.