general protection fault in nbd_disconnect_and_put

10 views
Skip to first unread message

syzbot

unread,
Feb 14, 2021, 7:13:18 AM2/14/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 811218ec Linux 4.19.172
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14b3ded2d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=c1cb1d27398c8808
dashboard link: https://syzkaller.appspot.com/bug?extid=cdd7477f44c74d5f0eb2

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+cdd747...@syzkaller.appspotmail.com

netlink: 44 bytes leftover after parsing attributes in process `syz-executor.3'.
block nbd3: NBD_DISCONNECT
BTRFS warning (device <unknown>): duplicate device /dev/loop5 devid 1 generation 7 scanned by syz-executor.5 (11544)
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 11553 Comm: syz-executor.3 Not tainted 4.19.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 72 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88804e517270 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880abbba280 R14: 0000000000000110 R15: 0000000000000001
FS: 00007f2b3ed27700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005617bf8c06dc CR3: 000000009205b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3c0 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3907
flush_workqueue+0x117/0x13e0 syzkaller/managers/linux-4-19/kernel/kernel/workqueue.c:2663
nbd_disconnect_and_put+0x100/0x190 syzkaller/managers/linux-4-19/kernel/drivers/block/nbd.c:1920
nbd_genl_disconnect+0x34f/0x4f0 syzkaller/managers/linux-4-19/kernel/drivers/block/nbd.c:1958
genl_family_rcv_msg+0x642/0xc40 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:602
genl_rcv_msg+0xbf/0x160 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:627
netlink_rcv_skb+0x160/0x440 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:2455
genl_rcv+0x24/0x40 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:638
netlink_unicast_kernel syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1909
sock_sendmsg_nosec syzkaller/managers/linux-4-19/kernel/net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 syzkaller/managers/linux-4-19/kernel/net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 syzkaller/managers/linux-4-19/kernel/net/socket.c:2115
__sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2153 [inline]
__do_sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2162 [inline]
__se_sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 syzkaller/managers/linux-4-19/kernel/net/socket.c:2160
do_syscall_64+0xf9/0x620 syzkaller/managers/linux-4-19/kernel/arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x465d99
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2b3ed27188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465d99
RDX: 0000000000004800 RSI: 0000000020000240 RDI: 0000000000000006
RBP: 00000000004bcf27 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008
R13: 00007ffe07a28cdf R14: 00007f2b3ed27300 R15: 0000000000022000
Modules linked in:
---[ end trace b7390998a9a10075 ]---
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 72 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88804e517270 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880abbba280 R14: 0000000000000110 R15: 0000000000000001
FS: 00007f2b3ed27700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005617bf8c06dc CR3: 000000009205b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Feb 14, 2021, 7:32:16 AM2/14/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 811218ec Linux 4.19.172
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11a8ee14d00000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=153e8524d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=150d8b28d00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+cdd747...@syzkaller.appspotmail.com

block nbd0: NBD_DISCONNECT
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8062 Comm: syz-executor754 Not tainted 4.19.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 72 66 8c 0f 84 65 ff ff
RSP: 0018:ffff8880979ef270 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b3e1e580 R14: 0000000000000110 R15: 0000000000000001
FS: 0000000001ac7300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 00000000985c9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3c0 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3907
flush_workqueue+0x117/0x13e0 syzkaller/managers/linux-4-19/kernel/kernel/workqueue.c:2663
nbd_disconnect_and_put+0x100/0x190 syzkaller/managers/linux-4-19/kernel/drivers/block/nbd.c:1920
nbd_genl_disconnect+0x34f/0x4f0 syzkaller/managers/linux-4-19/kernel/drivers/block/nbd.c:1958
genl_family_rcv_msg+0x642/0xc40 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:602
genl_rcv_msg+0xbf/0x160 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:627
netlink_rcv_skb+0x160/0x440 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:2455
genl_rcv+0x24/0x40 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:638
netlink_unicast_kernel syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1909
sock_sendmsg_nosec syzkaller/managers/linux-4-19/kernel/net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 syzkaller/managers/linux-4-19/kernel/net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 syzkaller/managers/linux-4-19/kernel/net/socket.c:2115
__sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2153 [inline]
__do_sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2162 [inline]
__se_sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 syzkaller/managers/linux-4-19/kernel/net/socket.c:2160
do_syscall_64+0xf9/0x620 syzkaller/managers/linux-4-19/kernel/arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x444099
Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffd66d4808 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004b8 RCX: 0000000000444099
RDX: 0000000000004800 RSI: 0000000020000240 RDI: 0000000000000004
RBP: 00000000004036c0 R08: 0000000000000001 R09: 00000000004004b8
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000403750
R13: 0000000000000000 R14: 00000000004b1018 R15: 00000000004004b8
Modules linked in:
---[ end trace c0fec614c858e19b ]---
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 72 66 8c 0f 84 65 ff ff
RSP: 0018:ffff8880979ef270 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b3e1e580 R14: 0000000000000110 R15: 0000000000000001
FS: 0000000001ac7300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 00000000985c9000 CR4: 00000000001406f0

syzbot

unread,
Feb 14, 2021, 7:55:19 AM2/14/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2c8a3fce Linux 4.14.218
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=122a9fe2d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=80e596b8b0902d96
dashboard link: https://syzkaller.appspot.com/bug?extid=6970689b8b75f71118fa
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1746f1f4d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16dcebe2d00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+697068...@syzkaller.appspotmail.com

block nbd0: NBD_DISCONNECT
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7958 Comm: syz-executor241 Not tainted 4.14.218-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809a896200 task.stack: ffff888094fc0000
RIP: 0010:__lock_acquire+0x1cc/0x3f20 syzkaller/managers/linux-4-14/kernel/kernel/locking/lockdep.c:3369
RSP: 0018:ffff888094fc73b0 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000110
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: ffff88809a896200 R12: 0000000000000110
R13: 0000000000000000 R14: 0000000000000001 R15: ffffffff8beb4d40
FS: 00000000015ab300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 0000000099bc0000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3f0 syzkaller/managers/linux-4-14/kernel/kernel/locking/lockdep.c:3998
flush_workqueue+0xfa/0x1310 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2624
nbd_disconnect_and_put+0xc3/0x140 syzkaller/managers/linux-4-14/kernel/drivers/block/nbd.c:1902
nbd_genl_disconnect+0x1fa/0x320 syzkaller/managers/linux-4-14/kernel/drivers/block/nbd.c:1940
genl_family_rcv_msg+0x572/0xb20 syzkaller/managers/linux-4-14/kernel/net/netlink/genetlink.c:600
genl_rcv_msg+0xaf/0x140 syzkaller/managers/linux-4-14/kernel/net/netlink/genetlink.c:625
netlink_rcv_skb+0x125/0x390 syzkaller/managers/linux-4-14/kernel/net/netlink/af_netlink.c:2433
genl_rcv+0x24/0x40 syzkaller/managers/linux-4-14/kernel/net/netlink/genetlink.c:636
netlink_unicast_kernel syzkaller/managers/linux-4-14/kernel/net/netlink/af_netlink.c:1287 [inline]
netlink_unicast+0x437/0x610 syzkaller/managers/linux-4-14/kernel/net/netlink/af_netlink.c:1313
netlink_sendmsg+0x62e/0xb80 syzkaller/managers/linux-4-14/kernel/net/netlink/af_netlink.c:1878
sock_sendmsg_nosec syzkaller/managers/linux-4-14/kernel/net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 syzkaller/managers/linux-4-14/kernel/net/socket.c:656
___sys_sendmsg+0x6c8/0x800 syzkaller/managers/linux-4-14/kernel/net/socket.c:2062
__sys_sendmsg+0xa3/0x120 syzkaller/managers/linux-4-14/kernel/net/socket.c:2096
SYSC_sendmsg syzkaller/managers/linux-4-14/kernel/net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 syzkaller/managers/linux-4-14/kernel/net/socket.c:2103
do_syscall_64+0x1d5/0x640 syzkaller/managers/linux-4-14/kernel/arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x444099
RSP: 002b:00007ffd2ac49d68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004b8 RCX: 0000000000444099
RDX: 0000000000004800 RSI: 0000000020000240 RDI: 0000000000000004
RBP: 00000000004036c0 R08: 0000000000000001 R09: 00000000004004b8
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000403750
R13: 0000000000000000 R14: 00000000004b1018 R15: 00000000004004b8
Code: 18 00 00 00 00 48 81 c4 80 01 00 00 44 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 67 2a 00 00 49 81 3c 24 a0 07 2e 8b 0f 84 5f
RIP: __lock_acquire+0x1cc/0x3f20 syzkaller/managers/linux-4-14/kernel/kernel/locking/lockdep.c:3369 RSP: ffff888094fc73b0
---[ end trace 98020a71bf72c082 ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages