syzbot


general protection fault in inet_gifconf

Status: auto-closed as invalid on 2021/01/05 22:05
Reported-by: syzbot+9a6303ad66ae03997001@syzkaller.appspotmail.com
First crash: 726d, last: 705d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in inet_gifconf 3 684d 729d 0/23 auto-closed as invalid on 2020/12/28 06:15
linux-4.19 general protection fault in inet_gifconf (2) 1 339d 339d 0/1 auto-closed as invalid on 2022/01/07 05:06

Sample crash report:
xt_TCPMSS: Only works on TCP SYN packets
A link change request failed with some changes committed already. Interface dummy0 may have been left with an inconsistent configuration, please check.
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3349 Comm: syz-executor.2 Not tainted 4.19.143-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__in_dev_get_rtnl include/linux/inetdevice.h:237 [inline]
RIP: 0010:inet_gifconf+0xdd/0x380 net/ipv4/devinet.c:1212
Code: d9 6e 42 fb 45 84 e4 0f 84 42 02 00 00 e8 9b 6d 42 fb 48 8d bb 28 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 7f 02 00 00 89 ee bf 28 00 00 00 48 8b 9b 28 03
RSP: 0018:ffff888021807a30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffffffffffb0 RCX: ffffc900089d3000
RDX: 000000000000005b RSI: ffffffff86274435 RDI: 00000000000002d8
RBP: 0000000000000028 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: 00000000000008c0 R14: 00000000004b1c90 R15: ffffffffffffffb0
FS:  00007f1b4595b700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f269192edb8 CR3: 000000004b93a000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dev_ifconf+0xdb/0x230 net/core/dev_ioctl.c:80
 sock_do_ioctl+0x202/0x2d0 net/socket.c:964
 sock_ioctl+0x2ef/0x5d0 net/socket.c:1074
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d5b9
Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f1b4595ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000012cc0 RCX: 000000000045d5b9
RDX: 0000000000400200 RSI: 0000000000008912 RDI: 0000000000000005
RBP: 000000000118d020 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec
R13: 00007fff4540181f R14: 00007f1b4595b9c0 R15: 000000000118cfec
Modules linked in:
---[ end trace 2cc6df48be3ffbb7 ]---
RIP: 0010:__in_dev_get_rtnl include/linux/inetdevice.h:237 [inline]
RIP: 0010:inet_gifconf+0xdd/0x380 net/ipv4/devinet.c:1212
audit: type=1804 audit(1599516290.177:6112): pid=3360 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir766618100/syzkaller.SmRjMa/1387/bus" dev="sda1" ino=16905 res=1
Code: d9 6e 42 fb 45 84 e4 0f 84 42 02 00 00 e8 9b 6d 42 fb 48 8d bb 28 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 7f 02 00 00 89 ee bf 28 00 00 00 48 8b 9b 28 03
audit: type=1804 audit(1599516290.177:6113): pid=3360 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir766618100/syzkaller.SmRjMa/1387/bus" dev="sda1" ino=16905 res=1
RSP: 0018:ffff888021807a30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffffffffffb0 RCX: ffffc900089d3000
RDX: 000000000000005b RSI: ffffffff86274435 RDI: 00000000000002d8
RBP: 0000000000000028 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: 00000000000008c0 R14: 00000000004b1c90 R15: ffffffffffffffb0
FS:  00007f1b4595b700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fae6e1f3020 CR3: 000000004b93a000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2020/09/07 22:05 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/08/18 09:50 linux-4.19.y c14d30dc9987 5ce13532 .config log report