syzbot


general protection fault in vfs_read

Status: fixed on 2018/07/09 18:05
Subsystems: fs
[Documentation on labels]
Fix commit: 66e58e0ef80a bpfilter: fix race in pipe access
First crash: 2312d, last: 2310d

Sample crash report:
8021q: adding VLAN 0 to HW filter on device team0
8021q: adding VLAN 0 to HW filter on device team0
8021q: adding VLAN 0 to HW filter on device team0
bpfilter: read fail -512
kasan: CONFIG_KASAN_INLINE enabled
general protection fault: 0000 [#1] SMP KASAN
CPU: 1 PID: 4588 Comm: syz-executor5 Not tainted 4.17.0+ #114
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fsnotify_access include/linux/fsnotify.h:181 [inline]
RIP: 0010:vfs_read+0x21f/0x3d0 fs/read_write.c:454
Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b4 01 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7c 24 18 49 8d 7f 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 86 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 
RSP: 0018:ffff8801adbdf7d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000004 RCX: ffffffff81c0cf4c
RDX: 000000000000000b RSI: ffffffff81c0cfa5 RDI: 0000000000000058
RBP: ffff8801adbdf810 R08: ffff8801b3f40540 R09: ffffed0035b7bedb
R10: 0000000000000003 R11: 0000000000000001 R12: ffff8801cd8d8080
R13: ffff8801cd8d80fc R14: 0000000000000004 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8801daf00000(0063) knlGS:0000000008808900
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 000000000811dc8c CR3: 00000001b47fd000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kernel_read+0xab/0x120 fs/read_write.c:431
 __bpfilter_process_sockopt+0x238/0x35b net/bpfilter/bpfilter_kern.c:74
 bpfilter_mbox_request+0x4d/0xb0 net/ipv4/bpfilter/sockopt.c:25
 bpfilter_ip_get_sockopt+0x6b/0x90 net/ipv4/bpfilter/sockopt.c:42
 compat_ip_getsockopt+0x256/0x2f0 net/ipv4/ip_sockglue.c:1600
 inet_csk_compat_getsockopt+0x97/0x120 net/ipv4/inet_connection_sock.c:1023
 compat_tcp_getsockopt+0x49/0x80 net/ipv4/tcp.c:3543
 compat_sock_common_getsockopt+0xb4/0x150 net/core/sock.c:3023
 __compat_sys_getsockopt+0x1ae/0x880 net/compat.c:532
 __do_compat_sys_socketcall net/compat.c:916 [inline]
 __se_compat_sys_socketcall net/compat.c:844 [inline]
 __ia32_compat_sys_socketcall+0xcd1/0x1070 net/compat.c:844
 do_syscall_32_irqs_on arch/x86/entry/common.c:323 [inline]
 do_fast_syscall_32+0x345/0xf9b arch/x86/entry/common.c:394
 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139
RIP: 0023:0xf7f3ccb9
Code: 55 08 8b 88 64 cd ff ff 8b 98 68 cd ff ff 89 c8 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 1c 24 c3 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 
RSP: 002b:000000000845e340 EFLAGS: 00000206 ORIG_RAX: 0000000000000066
RAX: ffffffffffffffda RBX: 000000000000000f RCX: 000000000845e35c
RDX: 000000000845e4a8 RSI: 000000000845e3b4 RDI: 000000000845eacc
RBP: 000000000811fe18 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace a2610f936b95af87 ]---
RIP: 0010:fsnotify_access include/linux/fsnotify.h:181 [inline]
RIP: 0010:vfs_read+0x21f/0x3d0 fs/read_write.c:454
Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b4 01 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7c 24 18 49 8d 7f 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 86 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 
RSP: 0018:ffff8801adbdf7d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000004 RCX: ffffffff81c0cf4c
RDX: 000000000000000b RSI: ffffffff81c0cfa5 RDI: 0000000000000058
RBP: ffff8801adbdf810 R08: ffff8801b3f40540 R09: ffffed0035b7bedb
R10: 0000000000000003 R11: 0000000000000001 R12: ffff8801cd8d8080
R13: ffff8801cd8d80fc R14: 0000000000000004 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8801daf00000(0063) knlGS:0000000008808900
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 000000000811dc8c CR3: 00000001b47fd000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/07 20:36 upstream 1c8c5a9d38f6 645e75f8 .config console log report syz ci-upstream-kasan-gce-386
2018/06/09 17:10 upstream 7d3bf613e99a 866118af .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.