syzbot


panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF

Status: auto-closed as invalid on 2021/10/25 09:41
Reported-by: syzbot+8b371e4534737b128bdb@syzkaller.appspotmail.com
First crash: 1264d, last: 1264d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF 1 1453d 1453d 0/28 auto-closed as invalid on 2021/02/19 01:32
upstream panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF (2) 3 1234d 1337d 0/28 auto-closed as invalid on 2021/10/25 13:45
android-54 panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF 2 1148d 1158d 0/2 auto-closed as invalid on 2022/02/18 23:48
linux-4.14 panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF 1 1488d 1488d 0/1 auto-closed as invalid on 2021/03/15 18:49

Sample crash report:
ioctl$VHOST_VSOCK_SET_GUEST_CID(r0, 0x4008af60, &(0x7f0000000240)={@my=0x1})
09:40:27 executing program 3:
r0 = syz_open_dev$dri(&(0x7f0000000000), 0x0, 0x0)
ioctl$DRM_IOCTL_MODE_MAP_DUMB(r0, 0xc01064b3, &(0x7f0000000040))
ioctl$DRM_IOCTL_MODE_CREATE_DUMB(r0, 0xc02064c9, &(0x7f0000000180))
panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF

goroutine 33 [running]:
github.com/google/syzkaller/prog.(*randGen).createResource(0xc000a8a4e0, 0xc005970e10, 0xc0fe20, 0x40df00, 0x10, 0x73bac0, 0x73ba01, 0xc0007c0780, 0xc001178a60)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:420 +0xcdf
github.com/google/syzkaller/prog.(*ResourceType).generate(0xc0fe20, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:683 +0x29f
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f100, 0xc0fe20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc000a8a4e0, 0xc005970e10, 0x12149a0, 0x4, 0x4, 0x2013d1f75fa30400, 0x413882, 0xc001178ce8, 0xe1712709, 0xb76bd79d5c424921, ...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:603 +0x179
github.com/google/syzkaller/prog.(*StructType).generate(0xd58980, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x18897c0, 0xc001178d20, 0x4eded3, 0xc0057c1500, 0xbcd6b146364d53)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0x7c
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f1e0, 0xd58980, 0x410000, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*UnionType).generate(0xc5dde0, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x18897c0, 0xc000a8a700, 0xc001178eb0, 0x44dde5, 0xc000b3a970)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:805 +0xd4
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f2c0, 0xc5dde0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*ArrayType).generate(0xe95240, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x98bea0, 0xc000a8a680, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:789 +0x177
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98e920, 0xe95240, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc000a8a4e0, 0xc005970e10, 0x157ed80, 0x7, 0x7, 0x59c900, 0x413882, 0xc001179228, 0xe1712709, 0x7f3b3d1ff3513ff7, ...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:603 +0x179
github.com/google/syzkaller/prog.(*StructType).generate(0xd4bf00, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x18897c0, 0xc001179260, 0x4eded3, 0xc0057c1500, 0x3dc0c0b83432f64a)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0x7c
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f1e0, 0xd4bf00, 0x200000, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*PtrType).generate(0xc450a0, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x7f4733de5108, 0xc000a8a5e0, 0x0, 0xc0000ae000, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:814 +0x127
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f020, 0xc450a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc000a8a4e0, 0xc005970e10, 0xebae00, 0x2, 0x2, 0xc001179500, 0x413882, 0xc0011795c0, 0xe1712709, 0x1c1ec359185ce02, ...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:603 +0x179
github.com/google/syzkaller/prog.(*StructType).generate(0xd263a0, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x18897c0, 0xc0011795f8, 0x4eded3, 0xc0057c1500, 0x407da335471b6298)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0x7c
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f1e0, 0xd263a0, 0x400000, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*PtrType).generate(0xc450e0, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x98be20, 0xc0007c0600, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:814 +0x127
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f020, 0xc450e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc000a8a4e0, 0xc005970e10, 0x1625f60, 0x9, 0x9, 0x8ebe00, 0x413882, 0xc001179958, 0xe1712709, 0x74f16784b0de5caa, ...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:603 +0x179
github.com/google/syzkaller/prog.(*StructType).generate(0xd3e460, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x18897c0, 0xc001179990, 0x4eded3, 0xc0057c1500, 0x426d9f24f8ae43e1)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0x7c
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f1e0, 0xd3e460, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*PtrType).generate(0xc45160, 0xc000a8a4e0, 0xc005970e10, 0x0, 0x98bf20, 0xc000b60660, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:814 +0x127
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc000a8a4e0, 0xc005970e10, 0x98f020, 0xc45160, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:665 +0x40b
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:615
github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc000a8a4e0, 0xc005970e10, 0x105f420, 0x3, 0x3, 0x0, 0xc001179c88, 0x4eded3, 0xc0057c1500, 0x5120363aa5927829, ...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:603 +0x179
github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc000a8a4e0, 0xc005970e10, 0x13326a0, 0xb64, 0xc005970e10, 0xc000a8a5a0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:558 +0xda
github.com/google/syzkaller/prog.(*randGen).generateCall(0xc000a8a4e0, 0xc005970e10, 0xc000b8d8c0, 0x3, 0xc000b8d8c0, 0xc000b8d940, 0xc005970e10)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:547 +0x95
github.com/google/syzkaller/prog.(*mutator).insertCall(0xc001179e18, 0x14)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xfb
github.com/google/syzkaller/prog.(*Prog).Mutate(0xc000b8d8c0, 0x988960, 0xc0057a9110, 0x14, 0xc000200380, 0xc001250000, 0x3aa, 0x400)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ee
main.(*Proc).smashInput(0xc0057b1740, 0xc000b3abf0)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:213 +0x133
main.(*Proc).loop(0xc0057b1740)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:78 +0x1aa
created by main.main
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:289 +0x148f

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/27 09:40 linux-4.19.y eb575cd5d7f6 9d2ab5df .config console log report info ci2-linux-4-19 panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF
* Struck through repros no longer work on HEAD.