syzbot


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

Status: closed as dup on 2019/11/19 04:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+ef0daa6ce95facb233c1@syzkaller.appspotmail.com
First crash: 1743d, last: 1599d
Cause bisection: introduced by (bisect log) :
commit f295b3ae9f5927e084bd5decdff82390e3471801
Author: Vakul Garg <vakul.garg@nxp.com>
Date: Wed Mar 20 02:03:36 2019 +0000

  net/tls: Add support of AES128-CCM based ciphers

Crash: kernel BUG at include/linux/scatterlist.h:LINE! (log)
Repro: C syz .config
  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
kernel BUG at include/linux/scatterlist.h:LINE! net C done 307 1578d 1771d
Discussions (3)
Title Replies (including bot) Last reply
Reminder: 6 active syzbot reports in "net/tls" subsystem 1 (1) 2019/08/16 04:18
Reminder: 17 open syzbot bugs in "net/tls" subsystem 1 (1) 2019/06/25 05:50
kernel BUG at ./include/linux/scatterlist.h:LINE! 0 (1) 2019/06/20 12:47
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG at ./include/linux/scatterlist.h:LINE! C inconclusive 128 1385d 1811d 0/1 upstream: reported C repro on 2019/04/13 10:33

Sample crash report:
RAX: ffffffffffffffda RBX: 00007ffd6d3365b0 RCX: 0000000000441ba9
RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000100000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
kernel BUG at ./include/linux/scatterlist.h:97!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8023 Comm: syz-executor694 Not tainted 5.2.0-rc5+ #3
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sg_assign_page include/linux/scatterlist.h:97 [inline]
RIP: 0010:sg_set_page include/linux/scatterlist.h:119 [inline]
RIP: 0010:sk_msg_page_add include/linux/skmsg.h:246 [inline]
RIP: 0010:tls_sw_do_sendpage net/tls/tls_sw.c:1170 [inline]
RIP: 0010:tls_sw_sendpage+0x11b5/0x11e0 net/tls/tls_sw.c:1229
Code: c1 38 c1 0f 8c 12 fe ff ff 4c 89 f7 e8 14 bb 27 fb e9 05 fe ff ff e8 0a 92 ee fa 44 8b 7c 24 18 e9 b2 fe ff ff e8 fb 91 ee fa <0f> 0b e8 f4 91 ee fa 0f 0b e8 ed 91 ee fa 4c 89 f7 48 c7 c6 87 e5
RSP: 0018:ffff888094adf7c0 EFLAGS: 00010293
RAX: ffffffff86871ff5 RBX: 0000000000000001 RCX: ffff888095bfc300
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff888094adf998 R08: ffffffff8687170c R09: fffff9400045851f
R10: fffff9400045851f R11: 1ffffd400045851e R12: 0000000000000000
R13: 0000000000000080 R14: ffffea00022c28c0 R15: 1ffff110124d0d01
FS:  0000555556a2f880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc5c9d1f18 CR3: 00000000a8a2c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 inet_sendpage+0x16d/0x340 net/ipv4/af_inet.c:815
 kernel_sendpage net/socket.c:3642 [inline]
 sock_sendpage+0xd3/0x120 net/socket.c:940
 pipe_to_sendpage+0x23e/0x310 fs/splice.c:449
 splice_from_pipe_feed fs/splice.c:500 [inline]
 __splice_from_pipe+0x2f7/0x8a0 fs/splice.c:624
 splice_from_pipe fs/splice.c:659 [inline]
 generic_splice_sendpage+0x172/0x200 fs/splice.c:829
 do_splice_from fs/splice.c:848 [inline]
 do_splice fs/splice.c:1155 [inline]
 __do_sys_splice fs/splice.c:1425 [inline]
 __se_sys_splice+0x12ec/0x1db0 fs/splice.c:1405
 __x64_sys_splice+0xe5/0x100 fs/splice.c:1405
 do_syscall_64+0xfe/0x140 arch/x86/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441ba9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 bb 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd6d336548 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00007ffd6d3365b0 RCX: 0000000000441ba9
RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000100000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 3b5328faabff785c ]---
RIP: 0010:sg_assign_page include/linux/scatterlist.h:97 [inline]
RIP: 0010:sg_set_page include/linux/scatterlist.h:119 [inline]
RIP: 0010:sk_msg_page_add include/linux/skmsg.h:246 [inline]
RIP: 0010:tls_sw_do_sendpage net/tls/tls_sw.c:1170 [inline]
RIP: 0010:tls_sw_sendpage+0x11b5/0x11e0 net/tls/tls_sw.c:1229
Code: c1 38 c1 0f 8c 12 fe ff ff 4c 89 f7 e8 14 bb 27 fb e9 05 fe ff ff e8 0a 92 ee fa 44 8b 7c 24 18 e9 b2 fe ff ff e8 fb 91 ee fa <0f> 0b e8 f4 91 ee fa 0f 0b e8 ed 91 ee fa 4c 89 f7 48 c7 c6 87 e5
RSP: 0018:ffff888094adf7c0 EFLAGS: 00010293
RAX: ffffffff86871ff5 RBX: 0000000000000001 RCX: ffff888095bfc300
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff888094adf998 R08: ffffffff8687170c R09: fffff9400045851f
R10: fffff9400045851f R11: 1ffffd400045851e R12: 0000000000000000
R13: 0000000000000080 R14: ffffea00022c28c0 R15: 1ffff110124d0d01
FS:  0000555556a2f880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc5c9d1f18 CR3: 00000000a8a2c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/20 01:25 upstream bed3c0d84e7e 34bf9440 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/11/10 22:51 upstream 00aff6836241 dc438b91 .config console log report ci-upstream-kasan-gce-smack-root
2019/10/31 21:21 upstream e472c64aa4fa a41ca8fa .config console log report ci-upstream-kasan-gce-smack-root
2019/10/28 10:22 upstream d6d5df1db6e9 25bb509e .config console log report ci-upstream-kasan-gce-smack-root
2019/10/05 04:31 upstream b145b0eb2031 f3f7d9c8 .config console log report ci-upstream-kasan-gce-smack-root
2019/10/01 06:57 upstream 54ecb8f7028c c7a4fb99 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/26 22:43 upstream cbafe18c7102 2f1548bc .config console log report ci-upstream-kasan-gce-smack-root
2019/09/14 17:16 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/10 22:45 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce-smack-root
2019/09/06 04:52 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/05 22:33 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/27 03:01 upstream a55aa89aab90 d21c5d9d .config console log report ci-upstream-kasan-gce-smack-root
2019/08/25 08:56 upstream 361469211f87 d21c5d9d .config console log report ci-upstream-kasan-gce-smack-root
2019/08/18 02:16 upstream 6e625a1a3f47 55bf8926 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/18 00:29 upstream 6e625a1a3f47 55bf8926 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/09 20:58 upstream b678c568c561 ede31a9b .config console log report ci-upstream-kasan-gce-smack-root
2019/08/05 19:41 upstream e21a712a9685 6affd8e8 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/03 14:32 upstream 97b00aff2c45 6affd8e8 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/03 12:05 upstream 97b00aff2c45 6affd8e8 .config console log report ci-upstream-kasan-gce-smack-root
2019/07/27 18:06 upstream 5168afe6ef59 c85e1c5b .config console log report ci-upstream-kasan-gce-smack-root
2019/07/21 14:16 upstream c6dd78fcb8ee 1656845f .config console log report ci-upstream-kasan-gce-smack-root
2019/06/30 17:34 upstream 6fbc7275c7a9 7509bf36 .config console log report ci-upstream-kasan-gce-smack-root
2019/06/20 00:24 upstream bed3c0d84e7e 34bf9440 .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.