general protection fault in crypto_destroy_tfm

13 views
Skip to first unread message

syzbot

unread,
Feb 25, 2021, 2:14:16 PM2/25/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2d19be46 Linux 4.19.177
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17f5e692d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6a1a8f0ba6627eb7
dashboard link: https://syzkaller.appspot.com/bug?extid=14c65ec8bbbd79f3afd8

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+14c65e...@syzkaller.appspotmail.com

device wlan1 entered promiscuous mode
IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
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: 20188 Comm: syz-executor.3 Not tainted 4.19.177-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
IPVS: length: 189 != 24
RIP: 0010:crypto_destroy_tfm+0x38/0x210 crypto/api.c:577
Code: f5 53 e8 5b 58 1b fe 4d 85 ed 0f 84 a2 00 00 00 e8 4d 58 1b fe 4c 8d 75 38 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 8c 01 00 00 4c 8d 7d 30 4c 8b 65 38 48 b8 00 00
RSP: 0018:ffff888052b27420 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000c363000
RDX: 0000000000000007 RSI: ffffffff834706d3 RDI: fffffffffffffffe
UDF-fs: bad mount option "context=root" or missing value
RBP: 0000000000000006 R08: 0000000000000000 R09: fffffffffffff000
R10: 0000000000000007 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffffffffffffe R14: 000000000000003e R15: fffffffffffffffe
FS: 00007f4de0a48700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000053fb38 CR3: 000000009c669000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
crypto_free_aead include/crypto/aead.h:193 [inline]
llsec_key_alloc net/mac802154/llsec.c:164 [inline]
mac802154_llsec_key_add+0x90b/0xb40 net/mac802154/llsec.c:257
ieee802154_add_llsec_key+0x56/0x80 net/mac802154/cfg.c:344
rdev_add_llsec_key net/ieee802154/rdev-ops.h:260 [inline]
nl802154_add_llsec_key+0x3d9/0x580 net/ieee802154/nl802154.c:1604
IPVS: length: 189 != 24
genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x465ef9
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:00007f4de0a48188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465ef9
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 00000000004bcd1c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008
R13: 00007fff8df1bdaf R14: 00007f4de0a48300 R15: 0000000000022000
Modules linked in:
---[ end trace 724d5dd6ce8084fd ]---
RIP: 0010:crypto_destroy_tfm+0x38/0x210 crypto/api.c:577
Code: f5 53 e8 5b 58 1b fe 4d 85 ed 0f 84 a2 00 00 00 e8 4d 58 1b fe 4c 8d 75 38 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 8c 01 00 00 4c 8d 7d 30 4c 8b 65 38 48 b8 00 00
RSP: 0018:ffff888052b27420 EFLAGS: 00010203
UDF-fs: bad mount option "context=root" or missing value
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000c363000
IPVS: length: 189 != 24
RDX: 0000000000000007 RSI: ffffffff834706d3 RDI: fffffffffffffffe
RBP: 0000000000000006 R08: 0000000000000000 R09: fffffffffffff000
R10: 0000000000000007 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffffffffffffe R14: 000000000000003e R15: fffffffffffffffe
FS: 00007f4de0a48700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32b23000 CR3: 000000009c669000 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,
Mar 5, 2021, 6:49:19 PM3/5/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: dfb57161 Linux 4.19.178
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17b41676d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=c227024aa159411f
dashboard link: https://syzkaller.appspot.com/bug?extid=14c65ec8bbbd79f3afd8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17754aa2d00000

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

wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
kasan: CONFIG_KASAN_INLINE enabled
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9609 Comm: syz-executor.0 Not tainted 4.19.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:crypto_destroy_tfm+0x38/0x210 crypto/api.c:577
Code: f5 53 e8 4b 40 1b fe 4d 85 ed 0f 84 a2 00 00 00 e8 3d 40 1b fe 4c 8d 75 38 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 8c 01 00 00 4c 8d 7d 30 4c 8b 65 38 48 b8 00 00
RSP: 0018:ffff8880a3b17420 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87c8e5c7
RDX: 0000000000000007 RSI: ffffffff83472073 RDI: fffffffffffffffe
RBP: 0000000000000006 R08: 0000000000000000 R09: fffffffffffff000
R10: 0000000000000007 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffffffffffffe R14: 000000000000003e R15: fffffffffffffffe
FS: 00007f0f01fd6700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000056c000 CR3: 00000000aa15d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
crypto_free_aead include/crypto/aead.h:193 [inline]
llsec_key_alloc net/mac802154/llsec.c:164 [inline]
mac802154_llsec_key_add+0x90b/0xb40 net/mac802154/llsec.c:257
ieee802154_add_llsec_key+0x56/0x80 net/mac802154/cfg.c:344
rdev_add_llsec_key net/ieee802154/rdev-ops.h:260 [inline]
nl802154_add_llsec_key+0x3d9/0x580 net/ieee802154/nl802154.c:1604
genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x465f69
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:00007f0f01fd6188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056c158 RCX: 0000000000465f69
RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 000000000000000c
RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c158
R13: 00007ffc024bc7cf R14: 00007f0f01fd6300 R15: 0000000000022000
Modules linked in:
---[ end trace 45dfce31bf6f6ab0 ]---
RIP: 0010:crypto_destroy_tfm+0x38/0x210 crypto/api.c:577
Code: f5 53 e8 4b 40 1b fe 4d 85 ed 0f 84 a2 00 00 00 e8 3d 40 1b fe 4c 8d 75 38 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 8c 01 00 00 4c 8d 7d 30 4c 8b 65 38 48 b8 00 00
RSP: 0018:ffff8880a3b17420 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87c8e5c7
RDX: 0000000000000007 RSI: ffffffff83472073 RDI: fffffffffffffffe
RBP: 0000000000000006 R08: 0000000000000000 R09: fffffffffffff000
R10: 0000000000000007 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffffffffffffe R14: 000000000000003e R15: fffffffffffffffe
FS: 00007f0f01fd6700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe6f2f02000 CR3: 00000000aa15d000 CR4: 00000000001406f0

syzbot

unread,
May 11, 2021, 12:39:06 PM5/11/21
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit b58bb4eaa0c265522074dcc41ab6b00bd65d7c0a
Author: Pavel Skripkin <paskr...@gmail.com>
Date: Thu Apr 1 13:27:52 2021 +0000

drivers: net: fix memory leak in peak_usb_create_dev

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10ac1c23d00000
start commit: 830a059c Linux 4.19.186
git tree: linux-4.19.y
kernel config: https://syzkaller.appspot.com/x/.config?x=7415cc95f9edb7b9
dashboard link: https://syzkaller.appspot.com/bug?extid=14c65ec8bbbd79f3afd8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=121ad736d00000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: drivers: net: fix memory leak in peak_usb_create_dev

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages