syzbot


general protection fault in crypto_destroy_tfm

Status: fixed on 2021/05/11 18:37
Reported-by: syzbot+14c65ec8bbbd79f3afd8@syzkaller.appspotmail.com
Fix commit: b58bb4eaa0c2 drivers: net: fix memory leak in peak_usb_create_dev
First crash: 1148d, last: 1104d
Fix bisection: fixed by (bisect log) :
commit b58bb4eaa0c265522074dcc41ab6b00bd65d7c0a
Author: Pavel Skripkin <paskripkin@gmail.com>
Date: Thu Apr 1 13:27:52 2021 +0000

  drivers: net: fix memory leak in peak_usb_create_dev

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in crypto_destroy_tfm crypto syz unreliable 57 1105d 1146d 20/26 fixed on 2021/11/10 00:50

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
IPv6: ADDRCONF(NETDEV_UP): wlan0: 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: 0 PID: 9522 Comm: syz-executor.5 Not tainted 4.19.186-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 bb 25 1a fe 4d 85 ed 0f 84 a2 00 00 00 e8 ad 25 1a 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:ffff88809ebf7420 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87ca3a07
RDX: 0000000000000007 RSI: ffffffff83483813 RDI: fffffffffffffffe
RBP: 0000000000000006 R08: 0000000000000000 R09: fffffffffffff000
R10: 0000000000000007 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffffffffffffe R14: 000000000000003e R15: fffffffffffffffe
FS:  00007fcf2f52f700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe2a3b2fc0 CR3: 000000009e57d000 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:0x466459
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:00007fcf2f52f188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 0000000000000005
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffe3fba185f R14: 00007fcf2f52f300 R15: 0000000000022000
Modules linked in:
---[ end trace ff050cc781af8bc3 ]---
RIP: 0010:crypto_destroy_tfm+0x38/0x210 crypto/api.c:577
Code: f5 53 e8 bb 25 1a fe 4d 85 ed 0f 84 a2 00 00 00 e8 ad 25 1a 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:ffff88809ebf7420 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87ca3a07
RDX: 0000000000000007 RSI: ffffffff83483813 RDI: fffffffffffffffe
RBP: 0000000000000006 R08: 0000000000000000 R09: fffffffffffff000
R10: 0000000000000007 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffffffffffffe R14: 000000000000003e R15: fffffffffffffffe
FS:  00007fcf2f52f700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f89b3271000 CR3: 000000009e57d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/11 13:30 linux-4.19.y 830a059cbba6 6a81331a .config console log report syz ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/04/08 06:36 linux-4.19.y b4454811f122 6a81331a .config console log report syz ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/04/07 02:30 linux-4.19.y 2034d6f0838e 6a81331a .config console log report syz ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/03/09 17:43 linux-4.19.y 2cae3e25b706 26967e35 .config console log report syz ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/03/06 07:44 linux-4.19.y dfb571610ba3 e4b4d570 .config console log report syz ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/03/05 23:48 linux-4.19.y dfb571610ba3 4a024a9b .config console log report syz ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/03/09 16:29 linux-4.19.y 2cae3e25b706 26967e35 .config console log report info ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/03/06 06:18 linux-4.19.y dfb571610ba3 e4b4d570 .config console log report info ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/03/05 19:02 linux-4.19.y dfb571610ba3 4a024a9b .config console log report info ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/03/02 18:39 linux-4.19.y 2d19be4653f5 92ead296 .config console log report info ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/03/02 17:19 linux-4.19.y 2d19be4653f5 92ead296 .config console log report info ci2-linux-4-19 general protection fault in crypto_destroy_tfm
2021/02/25 19:13 linux-4.19.y 2d19be4653f5 76f7fc95 .config console log report info ci2-linux-4-19 general protection fault in crypto_destroy_tfm
* Struck through repros no longer work on HEAD.