syzbot


general protection fault in kobject_get

Status: fixed on 2020/05/10 10:42
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+46fe08363dbba223dec5@syzkaller.appspotmail.com
Fix commit: 5bdfa854013c RDMA/mad: Do not crash if the rdma device does not have a umad interface
First crash: 1569d, last: 1503d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.5 000/170] 5.5.14-rc1 review 180 (180) 2020/04/02 17:40
[PATCH 5.4 000/155] 5.4.29-rc1 review 156 (156) 2020/03/31 08:59
general protection fault in kobject_get 2 (3) 2020/03/03 20:30
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in kobject_get (2) kernel 2 1461d 1490d 15/27 fixed on 2020/07/17 17:58

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: 12945 Comm: syz-executor.5 Not tainted 5.7.0-rc2-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 44 ee c6 fd 4d 85 e4 0f 84 a2 00 00 00 e8 36 ee c6 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:ffffc90003c27240 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffffffff85ac4ea0 RCX: ffffc90013d6f000
RDX: 0000000000000013 RSI: ffffffff83ac3e5a RDI: 000000000000009c
RBP: 0000000000000060 R08: ffff88805e9ec4c0 R09: ffffed100c276003
R10: ffff8880613b0017 R11: ffffed100c276002 R12: 0000000000000060
R13: ffffc90003c273c0 R14: ffff88805987c4e8 R15: ffff88805987c580
FS:  00007fb10af5d700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004ff730 CR3: 00000000936cd000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 get_device+0x20/0x30 drivers/base/core.c:2620
 __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:1625
 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+0x6bf/0x7e0 net/socket.c:2362
 ___sys_sendmsg+0x100/0x170 net/socket.c:2416
 __sys_sendmsg+0xec/0x1b0 net/socket.c:2449
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45c829
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:00007fb10af5cc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004ff720 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000009ad R14: 00000000004d5f10 R15: 00007fb10af5d6d4
Modules linked in:
---[ end trace bbdeb130cbe0adad ]---
RIP: 0010:kobject_get+0x30/0x150 lib/kobject.c:640
Code: 53 e8 44 ee c6 fd 4d 85 e4 0f 84 a2 00 00 00 e8 36 ee c6 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:ffffc90003c27240 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffffffff85ac4ea0 RCX: ffffc90013d6f000
RDX: 0000000000000013 RSI: ffffffff83ac3e5a RDI: 000000000000009c
RBP: 0000000000000060 R08: ffff88805e9ec4c0 R09: ffffed100c276003
R10: ffff8880613b0017 R11: ffffed100c276002 R12: 0000000000000060
R13: ffffc90003c273c0 R14: ffff88805987c4e8 R15: ffff88805987c580
FS:  00007fb10af5d700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055996abeebc7 CR3: 00000000936cd000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/07 05:33 net-next-old 2f8649900b7d 4618eb2d .config console log report ci-upstream-net-kasan-gce
2020/03/13 22:33 net-next-old 93e616131a38 d850e9d0 .config console log report ci-upstream-net-kasan-gce
2020/03/13 21:09 net-next-old 93e616131a38 d850e9d0 .config console log report ci-upstream-net-kasan-gce
2020/03/01 20:57 net-next-old 3b3e808cd883 c88c7b75 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.