syzbot


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

Status: upstream: reported C repro on 2019/11/13 05:58
Reported-by: syzbot+224805123e079ddfc388@syzkaller.appspotmail.com
First crash: 1870d, last: 1677d
Cause bisection: introduced by (bisect log) :
commit 0ffdaf5b41cf4435ece14d1d3e977ce69012a20d
Author: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Date: Thu Jul 6 15:15:07 2017 +0000

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

Crash: WARNING in af_alg_accept (log)
Repro: C syz .config
  
Fix bisection the fix commit could be any of (bisect log):
  4762bcd451a9 Linux 4.14.153
  4139fb08c05f Linux 4.14.187
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at include/linux/scatterlist.h:LINE! net C done 307 1851d 2045d 15/28 fixed on 2019/12/13 00:31
Last patch testing requests (4)
Created Duration User Patch Repo Result
2022/12/14 03:31 13m retest repro linux-4.14.y report log
2022/12/13 21:31 9m retest repro linux-4.14.y report log
2022/08/29 01:27 10m retest repro linux-4.14.y report log
2022/08/29 00:27 9m retest repro linux-4.14.y error
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2020/06/22 23:54 30m (5) bisect fix linux-4.14.y OK (2) job log
2020/05/23 23:11 22m bisect fix linux-4.14.y OK (0) job log log
2020/04/23 22:31 23m bisect fix linux-4.14.y OK (0) job log log
2020/03/24 21:06 29m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
audit: type=1400 audit(1573651526.783:36): avc:  denied  { map } for  pid=7145 comm="syz-executor088" path="/root/syz-executor088833851" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
------------[ cut here ]------------
kernel BUG at include/linux/scatterlist.h:124!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7171 Comm: syz-executor088 Not tainted 4.14.153 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a1936240 task.stack: ffff888074840000
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:ffff8880748479b8 EFLAGS: 00010297
RAX: ffff8880a1936240 RBX: ffff8880a1ac7a48 RCX: 0000000087654321
RDX: 0000000000000000 RSI: 1ffff11014358eda RDI: ffff8880a1ac76e4
RBP: ffff888074847a90 R08: ffff8880a1aa0060 R09: ffffed100e908f5a
R10: ffffed100e908f59 R11: ffff888074847acb R12: ffffea0001c304c2
R13: ffff8880a1ac7a7c R14: 0000000000000010 R15: ffff8880a061d080
FS:  0000000001cea880(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020c18000 CR3: 00000000961b8000 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:00007fffeaf20fc8 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412b9
RDX: 0000000100000205 RSI: 0000000020003240 RDI: 0000000000000004
RBP: 000000000000ab44 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: ffff8880748479b8
RIP: gcmaes_decrypt.constprop.0+0x910/0xd20 arch/x86/crypto/aesni-intel_glue.c:828 RSP: ffff8880748479b8
---[ end trace 7a11f54f6fcfe709 ]---

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/13 13:28 linux-4.14.y 4762bcd451a9 048f2d49 .config console log report syz C ci2-linux-4-14
2019/11/13 05:21 linux-4.14.y 4762bcd451a9 048f2d49 .config console log report syz C ci2-linux-4-14
2020/02/23 21:06 linux-4.14.y 98db2bf27b9e d801cb02 .config console log report ci2-linux-4-14
2020/02/14 12:16 linux-4.14.y e0f8b8a65a47 5d7b90f1 .config console log report ci2-linux-4-14
2020/02/08 09:27 linux-4.14.y e0f8b8a65a47 06150bf1 .config console log report ci2-linux-4-14
2020/02/06 07:08 linux-4.14.y e0f8b8a65a47 662cf49a .config console log report ci2-linux-4-14
2020/02/02 23:50 linux-4.14.y 9fa690a2a016 93e5e335 .config console log report ci2-linux-4-14
2020/01/31 09:13 linux-4.14.y 9fa690a2a016 5ed23f9a .config console log report ci2-linux-4-14
2020/01/28 16:01 linux-4.14.y 9a95f25269bd 56cd6c9b .config console log report ci2-linux-4-14
2020/01/16 01:43 linux-4.14.y c04fc6fa5c96 f9b69507 .config console log report ci2-linux-4-14
2019/12/28 12:37 linux-4.14.y e1f7d50ae3a3 af6b8ef8 .config console log report ci2-linux-4-14
2019/12/28 11:45 linux-4.14.y e1f7d50ae3a3 af6b8ef8 .config console log report ci2-linux-4-14
2019/12/23 21:41 linux-4.14.y e1f7d50ae3a3 be5c2c81 .config console log report ci2-linux-4-14
2019/12/17 01:45 linux-4.14.y a844dc4c5442 d13d7958 .config console log report ci2-linux-4-14
2019/12/09 14:02 linux-4.14.y a844dc4c5442 b31eda3d .config console log report ci2-linux-4-14
2019/12/09 10:20 linux-4.14.y a844dc4c5442 1508f453 .config console log report ci2-linux-4-14
2019/12/08 11:27 linux-4.14.y a844dc4c5442 1508f453 .config console log report ci2-linux-4-14
2019/12/07 10:50 linux-4.14.y a844dc4c5442 85f26751 .config console log report ci2-linux-4-14
2019/11/22 08:16 linux-4.14.y f56f3d0e65ad 8098ea0f .config console log report ci2-linux-4-14
2019/11/18 09:21 linux-4.14.y 775d01b65b5d d5696d51 .config console log report ci2-linux-4-14
2019/11/17 15:47 linux-4.14.y 775d01b65b5d d5696d51 .config console log report ci2-linux-4-14
2019/11/13 04:57 linux-4.14.y 4762bcd451a9 048f2d49 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.