syzbot


general protection fault in kfree

Status: fixed on 2017/12/21 04:38
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+8e5f5e470af1b1ae347b98f8ea3c5c21b7dd6b3c@syzkaller.appspotmail.com
Fix commit: ecaaab564978 crypto: salsa20 - fix blkcipher_walk API usage
First crash: 2573d, last: 2560d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in kfree (2) v9fs C 36 2342d 2349d 0/28 closed as invalid on 2019/06/10 22:59

Sample crash report:
netlink: 5 bytes leftover after parsing attributes in process `syz-executor3'.
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 23976 Comm: syz-executor0 Not tainted 4.15.0-rc2+ #215
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:virt_to_head_page include/linux/mm.h:615 [inline]
RIP: 0010:virt_to_cache mm/slab.c:399 [inline]
RIP: 0010:kfree+0xa0/0x250 mm/slab.c:3802
RSP: 0018:ffff8801c75df780 EFLAGS: 00010007
RAX: ffffea0000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 037febd000000000 RSI: 0000000000000000 RDI: dffffc0000000000
RBP: ffff8801c75df7a0 R08: ffffed00387a1fbc R09: 0000000000000000
R10: 0000000000000001 R11: ffffed00387a1fbb R12: 0000000000000282
R13: ffffffff82263f6b R14: dffffc0000000000 R15: ffff8801c75df8b0
FS:  00007f52b0cc3700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b9bc23000 CR3: 00000001c40f9000 CR4: 00000000001426f0
Call Trace:
 blkcipher_walk_done+0x72b/0xde0 crypto/blkcipher.c:139
 encrypt+0x50a/0xaf0 crypto/salsa20_generic.c:208
 skcipher_crypt_blkcipher crypto/skcipher.c:622 [inline]
 skcipher_encrypt_blkcipher+0x213/0x310 crypto/skcipher.c:631
 crypto_skcipher_encrypt include/crypto/skcipher.h:445 [inline]
 _skcipher_recvmsg crypto/algif_skcipher.c:144 [inline]
 skcipher_recvmsg+0x9e8/0xf20 crypto/algif_skcipher.c:165
 sock_recvmsg_nosec net/socket.c:809 [inline]
 sock_recvmsg+0xc9/0x110 net/socket.c:816
 ___sys_recvmsg+0x29b/0x630 net/socket.c:2185
 __sys_recvmsg+0xe2/0x210 net/socket.c:2230
 SYSC_recvmsg net/socket.c:2242 [inline]
 SyS_recvmsg+0x2d/0x50 net/socket.c:2237
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x452a39
RSP: 002b:00007f52b0cc2c58 EFLAGS: 00000212 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39
RDX: 0000000000000000 RSI: 0000000020539fc8 RDI: 0000000000000017
RBP: 00000000000004b7 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f51c8
R13: 00000000ffffffff R14: 00007f52b0cc36d4 R15: 0000000000000000
Code: 0f 82 c6 01 00 00 48 ba 00 00 00 80 ff 77 00 00 48 01 c2 48 b8 00 00 00 00 00 ea ff ff 48 89 df 48 c1 ea 0c 48 c1 e2 06 48 01 c2 <48> 8b 42 20 48 8d 48 ff a8 01 48 0f 45 d1 4c 8b 6a 30 49 63 75 
RIP: virt_to_head_page include/linux/mm.h:615 [inline] RSP: ffff8801c75df780
RIP: virt_to_cache mm/slab.c:399 [inline] RSP: ffff8801c75df780
RIP: kfree+0xa0/0x250 mm/slab.c:3802 RSP: ffff8801c75df780
---[ end trace 5809b95e218201ec ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/09 23:39 upstream 4ded3bec65a0 5ad0ce95 .config console log report ci-upstream-kasan-gce
2017/11/27 02:56 upstream bbecb1cfcca5 4bd70f88 .config console log report ci-upstream-kasan-gce
2017/12/10 01:31 net-next-old 5e54b3c12027 5ad0ce95 .config console log report ci-upstream-net-kasan-gce
2017/12/08 15:36 net-next-old 66c5c5b56682 b0fa969c .config console log report ci-upstream-net-kasan-gce
2017/12/08 02:01 net-next-old 24e5992a6bae 5d643f8e .config console log report ci-upstream-net-kasan-gce
2017/12/07 17:59 net-next-old 24e5992a6bae 5d643f8e .config console log report ci-upstream-net-kasan-gce
2017/12/07 07:21 net-next-old 92425c40676d 5d643f8e .config console log report ci-upstream-net-kasan-gce
2017/12/06 22:08 net-next-old 92425c40676d 5d643f8e .config console log report ci-upstream-net-kasan-gce
2017/12/05 07:17 net-next-old a3fde2addd5f de212f1a .config console log report ci-upstream-net-kasan-gce
2017/12/03 23:10 net-next-old fb7516d42478 48359b97 .config console log report ci-upstream-net-kasan-gce
2017/12/02 15:59 net-next-old c5f66a858997 48359b97 .config console log report ci-upstream-net-kasan-gce
2017/11/30 06:39 net-next-old b9151761021e 29b0fd90 .config console log report ci-upstream-net-kasan-gce
2017/11/28 22:41 net-next-old 1d3b78bbc6e9 29b0fd90 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.