syzbot


general protection fault in kobject_get (2)

Status: fixed on 2020/07/17 17:58
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+407fd358a932bbf639c6@syzkaller.appspotmail.com
Fix commit: 11a0ae4c4bff RDMA: Allow ib_client's to fail when add() is called
First crash: 1433d, last: 1399d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in kobject_get (2) 3 (4) 2020/06/05 11:46
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in kobject_get kernel 4 1441d 1507d 15/26 fixed on 2020/05/10 10:42

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000013: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000098-0x000000000000009f]
CPU: 0 PID: 4457 Comm: syz-executor.3 Not tainted 5.7.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kobject_get+0x30/0x150 lib/kobject.c:640
Code: 53 e8 34 78 c5 fd 4d 85 e4 0f 84 a2 00 00 00 e8 26 78 c5 fd 49 8d 7c 24 3c 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 e7 00 00 00
RSP: 0018:ffffc9000630f240 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffffffff85b23a90 RCX: ffffc9000f547000
RDX: 0000000000000013 RSI: ffffffff83ae19ca RDI: 000000000000009c
RBP: 0000000000000060 R08: ffff88806959c400 R09: ffffed100ce2c003
R10: ffff888067160017 R11: ffffed100ce2c002 R12: 0000000000000060
R13: ffffc9000630f3c0 R14: ffff888066f3c4e8 R15: ffff888066f3c580
FS:  00007fab6718e700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000340 CR3: 0000000066144000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 get_device+0x20/0x30 drivers/base/core.c:2644
 __ib_get_client_nl_info+0x1d4/0x2a0 drivers/infiniband/core/device.c:1863
 ib_get_client_nl_info+0x30/0x180 drivers/infiniband/core/device.c:1883
 nldev_get_chardev+0x52b/0xa40 drivers/infiniband/core/nldev.c:1624
 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+0x586/0x900 drivers/infiniband/core/netlink.c:259
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x537/0x740 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x882/0xe10 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6e6/0x810 net/socket.c:2352
 ___sys_sendmsg+0x100/0x170 net/socket.c:2406
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2439
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45ca59
Code: 0d b7 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fab6718dc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000005005e0 RCX: 000000000045ca59
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000009ce R14: 00000000004d6568 R15: 00007fab6718e6d4
Modules linked in:
---[ end trace 6b820383e01ff33a ]---
RIP: 0010:kobject_get+0x30/0x150 lib/kobject.c:640
Code: 53 e8 34 78 c5 fd 4d 85 e4 0f 84 a2 00 00 00 e8 26 78 c5 fd 49 8d 7c 24 3c 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 e7 00 00 00
RSP: 0018:ffffc9000630f240 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffffffff85b23a90 RCX: ffffc9000f547000
RDX: 0000000000000013 RSI: ffffffff83ae19ca RDI: 000000000000009c
RBP: 0000000000000060 R08: ffff88806959c400 R09: ffffed100ce2c003
R10: ffff888067160017 R11: ffffed100ce2c002 R12: 0000000000000060
R13: ffffc9000630f3c0 R14: ffff888066f3c4e8 R15: ffff888066f3c580
FS:  00007fab6718e700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f04b05fb000 CR3: 0000000066144000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/18 06:37 net-next-old cb8e59cc8720 d45a4d69 .config console log report ci-upstream-net-kasan-gce
2020/05/15 22:49 net-next-old d00f26b62333 d7f9fffa .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.