general protection fault in ___cache_free

15 views
Skip to first unread message

syzbot

unread,
Dec 15, 2017, 3:02:05 AM12/15/17
to da...@davemloft.net, her...@gondor.apana.org.au, linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzkaller hit the following crash on
51e18a453f5f59a40c721d4aeab082b4e2e9fac6
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master
compiler: gcc (GCC) 7.1.1 20170620
.config is attached
Raw console output is attached.

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


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..


---
This bug is generated by a dumb bot. It may contain errors.
See https://goo.gl/tpsmEJ for details.
Direct all questions to syzk...@googlegroups.com.
Please credit me with: Reported-by: syzbot <syzk...@googlegroups.com>

syzbot will keep track of this bug report.
Once a fix for this bug is merged into any tree, reply to this email with:
#syz fix: exact-commit-title
To mark this as a duplicate of another syzbot report, please reply with:
#syz dup: exact-subject-of-another-report
If it's a one-off invalid bug report, please reply with:
#syz invalid
Note: if the crash happens again, it will cause creation of a new bug
report.
Note: all commands must start from beginning of the line in the email body.
config.txt
raw.log

Eric Biggers

unread,
Dec 15, 2017, 12:21:51 PM12/15/17
to syzbot, da...@davemloft.net, her...@gondor.apana.org.au, linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com
On Fri, Dec 15, 2017 at 12:02:01AM -0800, syzbot wrote:
> 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

Already fixed:

#syz fix: crypto: salsa20 - fix blkcipher_walk API usage
Reply all
Reply to author
Forward
0 new messages