kernel BUG at include/linux/scatterlist.h:LINE!

19 views
Skip to first unread message

syzbot

unread,
Nov 13, 2019, 12:58:10 AM11/13/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 4762bcd4 Linux 4.14.153
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13ca0a06e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=eb84bd8b9cc2ec66
dashboard link: https://syzkaller.appspot.com/bug?extid=224805123e079ddfc388
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=151d294ae00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14906e72e00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+224805...@syzkaller.appspotmail.com

------------[ cut here ]------------
kernel BUG at include/linux/scatterlist.h:124!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 6977 Comm: syz-executor957 Not tainted 4.14.153 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88808c1da500 task.stack: ffff8880a84b0000
RIP: 0010:sg_page include/linux/scatterlist.h:124 [inline]
RIP: 0010:gcmaes_decrypt.constprop.0+0x910/0xd20
arch/x86/crypto/aesni-intel_glue.c:828
RSP: 0018:ffff8880a84b79b8 EFLAGS: 00010297
RAX: ffff88808c1da500 RBX: ffff8880a8280c88 RCX: 0000000087654321
RDX: 0000000000000000 RSI: 1ffff11015050122 RDI: ffff8880a8280924
RBP: ffff8880a84b7a90 R08: ffff8880a8281260 R09: ffffed1015096f5a
R10: ffffed1015096f59 R11: ffff8880a84b7acb R12: ffffea000282da82
R13: ffff8880a8280cbc R14: 0000000000000010 R15: ffff888092cf2200
FS: 0000000001cc9880(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020c18000 CR3: 00000000982b5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
generic_gcmaes_decrypt+0xf4/0x130 arch/x86/crypto/aesni-intel_glue.c:1126
crypto_aead_decrypt include/crypto/aead.h:362 [inline]
gcmaes_wrapper_decrypt+0x162/0x200 arch/x86/crypto/aesni-intel_glue.c:961
crypto_aead_decrypt include/crypto/aead.h:362 [inline]
_aead_recvmsg crypto/algif_aead.c:316 [inline]
aead_recvmsg+0x821/0x1d70 crypto/algif_aead.c:335
aead_recvmsg_nokey+0x5d/0x80 crypto/algif_aead.c:453
sock_recvmsg_nosec net/socket.c:819 [inline]
sock_recvmsg net/socket.c:826 [inline]
sock_recvmsg+0xc6/0x110 net/socket.c:822
SYSC_recvfrom+0x1d2/0x300 net/socket.c:1815
SyS_recvfrom+0x40/0x50 net/socket.c:1787
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4412b9
RSP: 002b:00007fffe10d1018 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412b9
RDX: 0000000100000205 RSI: 0000000020003240 RDI: 0000000000000004
RBP: 000000000000ae25 R08: 0000000000000000 R09: 0000000000000415
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020e0
R13: 0000000000402170 R14: 0000000000000000 R15: 0000000000000000
Code: 0f 0b e8 74 16 2e 00 0f 0b e8 6d 16 2e 00 0f 0b e8 66 16 2e 00 0f 0b
e8 5f 16 2e 00 e8 c6 64 d1 ff e9 63 ff ff ff e8 50 16 2e 00 <0f> 0b e8 49
16 2e 00 0f 0b 4c 89 85 58 ff ff ff e8 3b 16 2e 00
RIP: sg_page include/linux/scatterlist.h:124 [inline] RSP: ffff8880a84b79b8
RIP: gcmaes_decrypt.constprop.0+0x910/0xd20
arch/x86/crypto/aesni-intel_glue.c:828 RSP: ffff8880a84b79b8
---[ end trace 8edb5c33d2c70f38 ]---


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Nov 15, 2019, 12:57:02 AM11/15/19
to syzkaller...@googlegroups.com
syzbot has bisected this bug to:

commit 0ffdaf5b41cf4435ece14d1d3e977ce69012a20d
Author: Sowmini Varadhan <sowmini....@oracle.com>
Date: Thu Jul 6 15:15:07 2017 +0000

net/sock: add WARN_ON(parent->sk) in sock_graft()

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=14d12c6ae00000
start commit: 4762bcd4 Linux 4.14.153
git tree: linux-4.14.y
final crash: https://syzkaller.appspot.com/x/report.txt?x=16d12c6ae00000
console output: https://syzkaller.appspot.com/x/log.txt?x=12d12c6ae00000
Reported-by: syzbot+224805...@syzkaller.appspotmail.com
Fixes: 0ffdaf5b41cf ("net/sock: add WARN_ON(parent->sk) in sock_graft()")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages