syzbot


general protection fault in sco_sock_getsockopt
Status: upstream: reported C repro on 2020/02/18 06:47
Reported-by: syzbot+4a38d3795200fd59a9eb@syzkaller.appspotmail.com
First crash: 828d, last: 526d

Cause bisection: introduced by (bisect log) :
commit eab2404ba798a8efda2a970f44071c3406d94e57
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: Fri Feb 14 18:08:57 2020 +0000

  Bluetooth: Add BT_PHY socket option

Crash: general protection fault in sco_sock_getsockopt (log)
Repro: C syz .config
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in l2cap_sock_getsockopt C done 2 828d 828d 0/22 closed as dup on 2021/01/11 02:46
Patch testing requests:
Created Duration User Patch Repo Result
2020/09/30 22:03 17m dragonjetli@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master OK

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 9807 Comm: syz-executor290 Not tainted 5.6.0-rc2-next-20200217-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sco_sock_getsockopt+0x33a/0x910 net/bluetooth/sco.c:966
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 74 05 00 00 49 8b 9e b8 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 45 05 00 00 48 8b 3b e8 44 d1 f3 ff be c8 03 00
RSP: 0018:ffffc90007a97d40 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87282cb2
RDX: 0000000000000000 RSI: ffffffff87282cc0 RDI: ffff88808cc7b4b8
RBP: ffffc90007a97e00 R08: ffff8880a8fc0380 R09: fffffbfff1709225
R10: fffffbfff1709224 R11: 0000000000000003 R12: 0000000000000000
R13: 1ffff92000f52fab R14: ffff88808cc7b000 R15: 0000000000000000
FS:  00000000009c3880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 00000000a6d61000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __sys_getsockopt+0x16d/0x310 net/socket.c:2175
 __do_sys_getsockopt net/socket.c:2190 [inline]
 __se_sys_getsockopt net/socket.c:2187 [inline]
 __x64_sys_getsockopt+0xbe/0x150 net/socket.c:2187
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440199
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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd6ad93468 EFLAGS: 00000246 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440199
RDX: 000000000000000e RSI: 0000000000000084 RDI: 0000000000000005
RBP: 00000000006ca018 R08: 0000000020000080 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a20
R13: 0000000000401ab0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 2241e8fa1d14b6d0 ]---
RIP: 0010:sco_sock_getsockopt+0x33a/0x910 net/bluetooth/sco.c:966
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 74 05 00 00 49 8b 9e b8 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 45 05 00 00 48 8b 3b e8 44 d1 f3 ff be c8 03 00
RSP: 0018:ffffc90007a97d40 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87282cb2
RDX: 0000000000000000 RSI: ffffffff87282cc0 RDI: ffff88808cc7b4b8
RBP: ffffc90007a97e00 R08: ffff8880a8fc0380 R09: fffffbfff1709225
R10: fffffbfff1709224 R11: 0000000000000003 R12: 0000000000000000
R13: 1ffff92000f52fab R14: ffff88808cc7b000 R15: 0000000000000000
FS:  00000000009c3880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 00000000a6d61000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2256):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2020/02/17 17:18 linux-next c25a951c50dc 2b411596 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/12/15 23:21 upstream 148842c98a24 97183ed7 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/15 20:41 upstream 148842c98a24 97183ed7 .config log report info
ci-upstream-kasan-gce-root 2020/12/15 19:07 upstream 148842c98a24 97183ed7 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/15 16:15 upstream 148842c98a24 97183ed7 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/15 11:05 upstream 148842c98a24 97183ed7 .config log report info
ci-upstream-kasan-gce-smack-root 2020/12/15 10:59 upstream 148842c98a24 97183ed7 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/14 19:41 upstream 2c85ebc57b3e 97183ed7 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/14 18:33 upstream 2c85ebc57b3e 97183ed7 .config log report info
ci-upstream-kasan-gce-smack-root 2020/12/14 09:58 upstream 6bff9bb8a292 b22a7ec3 .config log report info
ci-upstream-kasan-gce-smack-root 2020/12/14 08:09 upstream 6bff9bb8a292 b22a7ec3 .config log report info
ci-upstream-kasan-gce-root 2020/12/14 05:45 upstream 6bff9bb8a292 b22a7ec3 .config log report info
ci-upstream-kasan-gce-root 2020/12/14 04:32 upstream 6bff9bb8a292 b22a7ec3 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/14 03:18 upstream 6bff9bb8a292 b22a7ec3 .config log report info
ci-upstream-kasan-gce-root 2020/12/14 01:29 upstream 6bff9bb8a292 b22a7ec3 .config log report info
ci-upstream-kasan-gce-root 2020/12/13 18:02 upstream 6bff9bb8a292 bca53db9 .config log report info
ci-upstream-kasan-gce-smack-root 2020/12/13 14:18 upstream 7b1b868e1d91 bca53db9 .config log report info
ci-qemu-upstream 2020/12/13 09:26 upstream 6bff9bb8a292 bca53db9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/13 05:39 upstream 7b1b868e1d91 bca53db9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/13 03:58 upstream 7b1b868e1d91 bca53db9 .config log report info
ci-upstream-kasan-gce-root 2020/12/13 01:55 upstream 7b1b868e1d91 bca53db9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/12 15:29 upstream 7f376f1917d7 bca53db9 .config log report info
ci-upstream-kasan-gce-root 2020/12/12 05:32 upstream 33dc9614dc20 ba24ffcd .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/12 01:12 upstream 33dc9614dc20 ba24ffcd .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/11 20:18 upstream 33dc9614dc20 ba24ffcd .config log report info
ci-qemu-upstream-386 2020/11/28 11:17 upstream c84e1efae022 5018c946 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/16 00:36 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/15 07:37 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/15 05:36 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/15 04:35 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/15 02:41 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/15 01:40 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/14 23:23 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/14 16:58 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/14 15:52 net 7f376f1917d7 97183ed7 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/14 07:06 net 7f376f1917d7 b22a7ec3 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 19:39 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 17:00 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 15:32 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 13:09 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 11:35 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 10:56 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 06:53 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 03:47 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/13 00:53 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/12 22:42 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/12 21:32 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/12 18:47 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/12 16:16 net 7f376f1917d7 bca53db9 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/12 04:18 net d9838b1d3928 ba24ffcd .config log report info
ci-upstream-net-this-kasan-gce 2020/12/11 20:22 net d9838b1d3928 ba24ffcd .config log report info
ci-upstream-net-this-kasan-gce 2020/12/11 18:36 net d9838b1d3928 ba24ffcd .config log report info
ci-upstream-net-kasan-gce 2020/12/09 03:53 net-next 8e98387b16b8 a7f7f4a4 .config log report info
ci-upstream-linux-next-kasan-gce-root 2020/11/18 17:39 linux-next 205292332779 09323409 .config log report info
ci-upstream-linux-next-kasan-gce-root 2020/02/17 16:29 linux-next c25a951c50dc 2b411596 .config log report