general protection fault in kfree

10 views
Skip to first unread message

syzbot

unread,
Dec 1, 2017, 3:22:04 AM12/1/17
to syzkaller-upst...@googlegroups.com
Hello,

syzkaller hit the following crash on
b9151761021e25c024a6670df4e7c43ffbab0e1d
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.
CC: [da...@davemloft.net her...@gondor.apana.org.au
linux-...@vger.kernel.org linux-...@vger.kernel.org]

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: 22681 Comm: syz-executor2 Not tainted 4.15.0-rc1+ #131
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: 0000000044d58855 task.stack: 00000000641f6748
RIP: 0010:virt_to_head_page include/linux/mm.h:614 [inline]
RIP: 0010:virt_to_cache mm/slab.c:399 [inline]
RIP: 0010:kfree+0xa0/0x250 mm/slab.c:3802
RSP: 0018:ffff8801cab07780 EFLAGS: 00010007
RAX: ffffea0000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 037febd000000000 RSI: 0000000000000000 RDI: dffffc0000000000
RBP: ffff8801cab077a0 R08: ffffed0039204cfc R09: 0000000000000000
R10: 0000000000000001 R11: ffffed0039204cfb R12: 0000000000000286
R13: ffffffff8225edfb R14: dffffc0000000000 R15: ffff8801cab078b0
FS: 00007fee5d9a9700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc43ff48638 CR3: 00000001c4373000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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_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:805 [inline]
sock_recvmsg+0xc9/0x110 net/socket.c:812
___sys_recvmsg+0x29b/0x630 net/socket.c:2207
__sys_recvmsg+0xe2/0x210 net/socket.c:2252
SYSC_recvmsg net/socket.c:2264 [inline]
SyS_recvmsg+0x2d/0x50 net/socket.c:2259
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007fee5d9a8c58 EFLAGS: 00000212 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9
RDX: 0000000000000021 RSI: 0000000020f76000 RDI: 0000000000000014
RBP: 000000000000039b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f2728
R13: 00000000ffffffff R14: 00007fee5d9a96d4 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:614 [inline] RSP: ffff8801cab07780
RIP: virt_to_cache mm/slab.c:399 [inline] RSP: ffff8801cab07780
RIP: kfree+0xa0/0x250 mm/slab.c:3802 RSP: ffff8801cab07780
---[ end trace d20416b8446505fd ]---
Kernel panic - not syncing: Fatal exception
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 committed, please 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.
To upstream this report, please reply with:
#syz upstream
config.txt
raw.log

Dmitry Vyukov

unread,
Dec 1, 2017, 3:28:45 AM12/1/17
to syzbot, 'Dmitry Vyukov' via syzkaller-upstream-moderation
#syz fix: crypto: salsa20 - fix blkcipher_walk API usage

On Fri, Dec 1, 2017 at 9:22 AM, syzbot
<bot+8e5f5e470af1b1ae34...@syzkaller.appspotmail.com>
wrote:
> --
> You received this message because you are subscribed to the Google Groups
> "syzkaller-upstream-moderation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to syzkaller-upstream-m...@googlegroups.com.
> To post to this group, send email to
> syzkaller-upst...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/syzkaller-upstream-moderation/001a113fbf501c8da3055f43109d%40google.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages