syzbot


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

Status: auto-closed as invalid on 2021/10/25 13:45
First crash: 1329d, last: 1226d
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 1445d 1445d 0/28 auto-closed as invalid on 2021/02/19 01:32
android-54 panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF 2 1140d 1151d 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 1480d 1480d 0/1 auto-closed as invalid on 2021/03/15 18:49
linux-4.19 panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF 1 1257d 1257d 0/1 auto-closed as invalid on 2021/10/25 09:41

Sample crash report:
000000)={0x10, 0x0, 0x0, 0x2000}, 0xc, &(0x7f0000000180)={&(0x7f0000000040)=@get={0x130, 0x13, 0x200, 0x70bd2b, 0x25dfdbfe, {{'ansi_cprng\x00'}, '\x00', '\x00', 0x0, 0x400}, [{0x8, 0x1, 0x63}, {0x8, 0x1, 0x2}, {0x8, 0x1, 0x3ff}, {0x8, 0x1, 0x10000}, {0x8, 0x1, 0x22cd8}, {0x8, 0x1, 0xfffff8e0}, {0x8, 0x1, 0x7f}, {0x8, 0x1, 0x5}, {0x8, 0x1, 0x400}, {0x8, 0x1, 0x80000001}]}, 0x130}, 0x1, 0x0, 0x0, 0x4004}, 0x8000)
13:40:40 executing program 4:
bpf$BPF_RAW_TRACEPOINT_OPEN(0x1e, &(0x7f0000000040)={0x0}, 0x10)
panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF

goroutine 28 [running]:
github.com/google/syzkaller/prog.(*randGen).createResource(0xc005d46300, 0xc00596fc20, 0xc12e00, 0xe07a9a30ae38600, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:420 +0xcdf
github.com/google/syzkaller/prog.(*ResourceType).generate(0xc12e00, 0xc005d46300, 0xc00596fc20, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:683 +0x29f
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc005d46300, 0xc00596fc20, 0x9915e0, 0xc12e00, 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(0xc005d46300, 0xc00596fc20, 0x16ba820, 0x16, 0x16, 0xc005d46700, 0x413882, 0xc000acb818, 0x271e17fb, 0x5cccb47e6d62f87d, ...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:603 +0x179
github.com/google/syzkaller/prog.(*StructType).generate(0xce3f60, 0xc005d46300, 0xc00596fc20, 0x0, 0x188ca80, 0xc000acb850, 0x4eded3, 0xc00077c000, 0x662c984c9ad5ad3c)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0x7c
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc005d46300, 0xc00596fc20, 0x9916c0, 0xce3f60, 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(0xc5ed40, 0xc005d46300, 0xc00596fc20, 0x0, 0x188ca80, 0xc000acb990, 0x4eded3, 0xc00077c000, 0x2f8a0b9186cb92de)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:805 +0xd4
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc005d46300, 0xc00596fc20, 0x9917a0, 0xc5ed40, 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(0xc3f480, 0xc005d46300, 0xc00596fc20, 0x0, 0x98e2a0, 0xc005e12150, 0x0, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:814 +0x127
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc005d46300, 0xc00596fc20, 0x991500, 0xc3f480, 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(0xc005d46300, 0xc00596fc20, 0x101cc80, 0x3, 0x3, 0x0, 0xc000acbc88, 0x4eded3, 0xc00077c000, 0x382c10e077b85c77, ...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:603 +0x179
github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc005d46300, 0xc00596fc20, 0x12a2240, 0x62, 0xc00596fc20, 0xc005d46780)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:558 +0xda
github.com/google/syzkaller/prog.(*randGen).generateCall(0xc005d46300, 0xc00596fc20, 0xc00637ee80, 0x2, 0xc00637ee80, 0xc00637f1c0, 0xc00596fc20)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:547 +0x95
github.com/google/syzkaller/prog.(*mutator).insertCall(0xc000acbe18, 0x14)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xfb
github.com/google/syzkaller/prog.(*Prog).Mutate(0xc00637ee80, 0x98ade0, 0xc000412000, 0x14, 0xc0004b8080, 0xc00089c000, 0x5a, 0x80)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ee
main.(*Proc).smashInput(0xc00047e000, 0xc00080f850)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:213 +0x133
main.(*Proc).loop(0xc00047e000)
	/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 (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/27 13:40 upstream ff1176468d36 fd511809 .config console log report info ci-upstream-kasan-gce-root panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF
2021/04/16 03:21 upstream 7e25f40eab52 c59079a6 .config console log report info ci-upstream-kasan-gce-root panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF
2021/06/12 00:42 linux-next a1f92694393a 1ba81399 .config console log report info ci-upstream-linux-next-kasan-gce-root panic: failed to create a resource ifindex with ioctl$sock_SIOCGIFCONF, ioctl$sock_SIOCGIFCONF
* Struck through repros no longer work on HEAD.