syzbot


panic: unknown resource "dirid"

Status: moderation: reported on 2024/02/11 04:19
Reported-by: syzbot+36e03168f7175c958e79@syzkaller.appspotmail.com
First crash: 76d, last: 76d

Sample crash report:
r0 = socket(0x10, 0x2, 0x0)
ioctl$sock_ipv4_tunnel_SIOCDELTUNNEL(r0, 0x89f2, &(0x7f0000000100)={'syztnl1\x00', 0x0})
ioctl$sock_ipv6_tunnel_SIOCADDTUNNEL(r0, 0x89f1, &(0x7f00000000c0)={'ip6_vti0\x00', &(0x7f0000000000)={'syztnl1\x00', 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, @dev, @dev}})
panic: unknown resource "dirid"

goroutine 14 [running]:
github.com/google/syzkaller/prog.(*Target).isCompatibleResource(0x4000234960, {0x6c3109, 0x5}, {0x6c08bf, 0x2})
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/resources.go:113 +0x650
github.com/google/syzkaller/prog.getCompatibleResources.func1({0x9572a8?, 0x4013dfe630?}, 0x957228?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:998 +0x130
github.com/google/syzkaller/prog.foreachArgImpl({0x9572a8?, 0x4013dfe630?}, 0x4013de9a80, 0x400e1af060)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:134 +0xc4
github.com/google/syzkaller/prog.ForeachArg(0x4013de7810, 0x4009ebc8d0?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:122 +0x54
github.com/google/syzkaller/prog.getCompatibleResources(0x4009eb06c0?, {0x6c3109, 0x5}, 0x400ed2d640)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:992 +0x84
github.com/google/syzkaller/prog.(*randGen).resourceCentric(0x400ed2d640, 0x400b782230, 0xe9e5a0, 0x0?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:940 +0xbc
github.com/google/syzkaller/prog.(*ResourceType).generate(0xe9e5a0, 0x400ed2d640, 0x400e1af308?, 0xc0?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:758 +0x194
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0x400ed2d640, 0x400b782230, {0x95d470?, 0xe9e5a0?}, 0x2, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:736 +0x534
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:686
github.com/google/syzkaller/prog.(*randGen).generateArgs(0x400e1af488?, 0x3071dc?, {0xfd28c0, 0x2, 0x2}, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:674 +0x130
github.com/google/syzkaller/prog.(*StructType).generate(0xfd2860, 0x400046a690?, 0x774680?, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:878 +0x44
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0x400ed2d640, 0x400b782230, {0x95d538?, 0xfd2860?}, 0x2, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:736 +0x534
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:686
github.com/google/syzkaller/prog.(*ArrayType).generate(0xfbd0e0, 0x400ed2d640, 0x4000a0b6b8?, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:870 +0x1c8
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0x400ed2d640, 0x400b782230, {0x95cd68?, 0xfbd0e0?}, 0x2, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:736 +0x534
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:686
github.com/google/syzkaller/prog.(*randGen).generateArgs(0x4000a0b838?, 0x3071dc?, {0x154ec80, 0x4, 0x4}, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:674 +0x130
github.com/google/syzkaller/prog.(*StructType).generate(0xfd2800, 0x400046a690?, 0x769e23?, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:878 +0x44
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0x400ed2d640, 0x400b782230, {0x95d538?, 0xfd2800?}, 0x2, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:736 +0x534
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:686
github.com/google/syzkaller/prog.(*PtrType).generate(0xeeab60, 0x400ed2d640, 0x4000a0ba18?, 0x0?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:897 +0x70
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0x400ed2d640, 0x400b782230, {0x95d3a8?, 0xeeab60?}, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:736 +0x534
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:686
github.com/google/syzkaller/prog.(*randGen).generateArgs(0x1618120?, 0x0?, {0x1350420, 0x3, 0x3}, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:674 +0x130
github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0x400ed2d640, 0x2?, 0x1618120)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:600 +0x70
github.com/google/syzkaller/prog.(*randGen).generateCall(0x400ed2d640, 0x400b782230, 0x400b765780?, 0x10d028?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:589 +0xbc
github.com/google/syzkaller/prog.(*mutator).insertCall(0x400e1afd48)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:152 +0xac
github.com/google/syzkaller/prog.(*Prog).Mutate(0x400b765780, {0x954908?, 0x40103ac180}, 0x1e, 0x4010466080, 0x4000483200, {0x400fb80000, 0x178ca, 0x1b000})
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:49 +0x204
main.(*Proc).smashInput(0x40104660c0, 0x400f799150)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:221 +0x110
main.(*Proc).loop(0x40104660c0)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:78 +0xf4
created by main.main
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:336 +0x12ac

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/07 04:07 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 panic: unknown resource "dirid"
* Struck through repros no longer work on HEAD.