syzbot


general protection fault in touch_atime

Status: fixed on 2018/07/09 18:05
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+15f4f69fe22434607a97@syzkaller.appspotmail.com
Fix commit: 66e58e0ef80a bpfilter: fix race in pipe access
First crash: 2147d, last: 2144d

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: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 0 PID: 6652 Comm: syz-executor5 Not tainted 4.17.0+ #83
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:touch_atime+0xaf/0x310 fs/inode.c:1710
Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 21 02 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6c 24 08 49 8d 7d 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 f3 01 00 00 4d 8b 6d 58 4c 89 e7 31 d2 4c 89 ee 
RSP: 0018:ffff8801b1dc7758 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff100363b8eed RCX: ffffffff81c346f5
RDX: 000000000000000b RSI: ffffffff81c947df RDI: 0000000000000058
RBP: ffff8801b1dc77f0 R08: ffff8801ae90a400 R09: ffffed0039b52390
R10: ffffed0039b52390 R11: ffff8801cda91c87 R12: ffff8801cda90790
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007fe7702bc700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc3ba997e9 CR3: 00000001d7be5000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 file_accessed include/linux/fs.h:2070 [inline]
 pipe_read+0x7c5/0x940 fs/pipe.c:343
 call_read_iter include/linux/fs.h:1785 [inline]
 new_sync_read fs/read_write.c:406 [inline]
 __vfs_read+0x696/0xa50 fs/read_write.c:418
 vfs_read+0x17f/0x3d0 fs/read_write.c:452
 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_set_sockopt+0x33/0x40 net/ipv4/bpfilter/sockopt.c:31
 ip_setsockopt+0x124/0x140 net/ipv4/ip_sockglue.c:1250
 udp_setsockopt+0x62/0xa0 net/ipv4/udp.c:2502
 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3053
 __sys_setsockopt+0x1bd/0x390 net/socket.c:1935
 __do_sys_setsockopt net/socket.c:1946 [inline]
 __se_sys_setsockopt net/socket.c:1943 [inline]
 __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1943
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4559f9
Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fe7702bbc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fe7702bc6d4 RCX: 00000000004559f9
RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 000000000072bea0 R08: 00000000000007e0 R09: 0000000000000000
R10: 0000000020000280 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004c0e4f R14: 00000000004d0aa8 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace 047530ab77ee1fde ]---
RIP: 0010:touch_atime+0xaf/0x310 fs/inode.c:1710
Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 21 02 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6c 24 08 49 8d 7d 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 f3 01 00 00 4d 8b 6d 58 4c 89 e7 31 d2 4c 89 ee 
RSP: 0018:ffff8801b1dc7758 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff100363b8eed RCX: ffffffff81c346f5
RDX: 000000000000000b RSI: ffffffff81c947df RDI: 0000000000000058
RBP: ffff8801b1dc77f0 R08: ffff8801ae90a400 R09: ffffed0039b52390
R10: ffffed0039b52390 R11: ffff8801cda91c87 R12: ffff8801cda90790
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007fe7702bc700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc3ba997e9 CR3: 00000001d7be5000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/09 08:54 net-next-old 3a979e8c07e3 866118af .config console log report syz ci-upstream-net-kasan-gce
2018/06/08 01:08 net-next-old 7170e6045a6a 645e75f8 .config console log report syz ci-upstream-net-kasan-gce
2018/06/11 05:26 upstream 1aaccb5fa0ea 866118af .config console log report ci-upstream-kasan-gce
2018/06/09 00:57 upstream 410feb75de24 866118af .config console log report ci-upstream-kasan-gce-386
2018/06/07 18:26 upstream 1c8c5a9d38f6 645e75f8 .config console log report ci-upstream-kasan-gce-386
2018/06/09 12:10 net-next-old 3a979e8c07e3 866118af .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.