syzbot


general protection fault in ___cache_free

Status: fixed on 2017/12/21 04:38
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+1cfe6406582d72de07f78837946d111c2aea6936@syzkaller.appspotmail.com
Fix commit: ecaaab564978 crypto: salsa20 - fix blkcipher_walk API usage
First crash: 2360d, last: 2360d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ___cache_free (2) tomoyo 1 1358d 1354d 0/26 auto-closed as invalid on 2020/12/06 20:44

Sample crash report:
skbuff: bad partial csum: csum=250/65511 len=311
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: 1 PID: 2715 Comm: syz-executor5 Not tainted 4.15.0-rc2+ #148
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:___cache_free+0x2f/0x2f0 mm/slab.c:3513
RSP: 0018:ffff8801d4c67710 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff8801d4c67948 RCX: 0000000000000000
RDX: ffffffff822641db RSI: ffff8801d4c67948 RDI: ffff8801d76dfcc0
RBP: ffff8801d4c67770 R08: ffff8801d784f540 R09: ffff8801cadcadc8
R10: ffff8801d4c67950 R11: 0000000000000108 R12: 0000000000000282
R13: ffff8801d4c67948 R14: ffff1003add328a0 R15: ffff8801d76dfcc0
FS:  00007f9da7145700(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020f43fc0 CR3: 00000001cc200000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __cache_free mm/slab.c:3494 [inline]
 kfree+0x1a3/0x250 mm/slab.c:3806
 blkcipher_walk_done+0x72b/0xde0 crypto/blkcipher.c:139
 encrypt+0x20e/0x540 arch/x86/crypto/salsa20_glue.c:79
 skcipher_crypt_blkcipher crypto/skcipher.c:622 [inline]
 skcipher_decrypt_blkcipher+0x213/0x310 crypto/skcipher.c:640
 crypto_skcipher_decrypt include/crypto/skcipher.h:463 [inline]
 _skcipher_recvmsg crypto/algif_skcipher.c:144 [inline]
 skcipher_recvmsg+0xa54/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:00007f9da7144c58 EFLAGS: 00000212 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 0000000000758190 RCX: 0000000000452a39
RDX: 0000000040000003 RSI: 0000000020f3f000 RDI: 0000000000000016
RBP: 000000000000039b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f3728
R13: 00000000ffffffff R14: 00007f9da71456d4 R15: 0000000000000002
Code: 41 57 41 56 41 55 41 54 49 89 ff 53 49 89 f5 48 83 ec 38 4c 8b 37 65 4c 03 35 b6 ba 5a 7e 83 3d db 47 b8 04 01 0f 8f b5 00 00 00 <41> 8b 46 04 41 39 06 0f 83 65 01 00 00 0f 1f 44 00 00 41 8b 06 
RIP: ___cache_free+0x2f/0x2f0 mm/slab.c:3513 RSP: ffff8801d4c67710
---[ end trace 7561994c46fc6c5d ]---
Kernel panic - not syncing: Fatal exception in interrupt
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/10 18:41 net-next-old 51e18a453f5f 5ad0ce95 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.