syzbot


panic: runtime error: index out of range [-NUM]

Status: auto-closed as invalid on 2022/04/12 19:15
Reported-by: syzbot+4d6e1253885a1b49189e@syzkaller.appspotmail.com
First crash: 294d, last: 294d

Sample crash report:
0000000843d00000001000073564d38e10000001e00"/64, 0x40, 0x3d96000}, {&(0x7f0000011200)="01000200750f0000000000000000000000000000000000000100000002000000000000000000000000002000e00f0000010000000200000001000000f401000002002300bd0f00"/96, 0x60, 0x3d97000}, {&(0x7f0000011300)="000000000000000000000000000000000000000000000000000000000001000000010000000200000022000400020000000000000001000000200004002e2e2eed4103005cf9535f230000003bc1655f3bc1655f3bc1655f01000000ffffffff", 0x60, 0x3d97fa0}], 0x0, &(0x7f0000011400))
panic: runtime error: index out of range [-1]

goroutine 28 [running]:
compress/flate.(*huffmanEncoder).bitCounts(0xc0000100b0, {0xc000256900, 0x105, 0x7}, 0xa3de000)
	/usr/local/go/src/compress/flate/huffman_code.go:222 +0x397
compress/flate.(*huffmanEncoder).generate(0xc0000100b0, {0xc000252480, 0x89f3, 0x0}, 0x0)
	/usr/local/go/src/compress/flate/huffman_code.go:309 +0x1c5
compress/flate.(*huffmanBitWriter).indexTokens(0xc00000a1e0, {0xc0006b2000, 0x4001, 0xea56943b10221272})
	/usr/local/go/src/compress/flate/huffman_bit_writer.go:570 +0x245
compress/flate.(*huffmanBitWriter).writeBlock(0xc00000a1e0, {0xc0006b2000, 0xc000600000, 0x3}, 0x0, {0xc0006aa826, 0xc0006a2000, 0x77da})
	/usr/local/go/src/compress/flate/huffman_bit_writer.go:440 +0xcf
compress/flate.(*compressor).writeBlock(0xc000600000, {0xc0006b2000, 0x5e85c3, 0xc00033a000}, 0xc00000a200)
	/usr/local/go/src/compress/flate/deflate.go:170 +0x9c
compress/flate.(*compressor).deflate(0xc000600000)
	/usr/local/go/src/compress/flate/deflate.go:509 +0x59b
compress/flate.(*compressor).write(0xc000600000, {0xc00b1b0feb, 0x12071, 0xc0000c6240})
	/usr/local/go/src/compress/flate/deflate.go:554 +0x82
compress/flate.(*Writer).Write(...)
	/usr/local/go/src/compress/flate/deflate.go:712
github.com/google/syzkaller/pkg/rpctype.(*flateConn).Write(0xc00027e660, {0xc00b1b0feb, 0x61e640, 0xc0005f18b8})
	/syzkaller/gopath/src/github.com/google/syzkaller/pkg/rpctype/rpc.go:140 +0x2c
bufio.(*Writer).Write(0xc0000c6000, {0xc00b1b0005, 0x403296, 0x199})
	/usr/local/go/src/bufio/bufio.go:639 +0xf5
encoding/gob.(*Encoder).writeMessage(0xc0000a0140, {0x8a4a60, 0xc0000c6000}, 0xc0000a0178)
	/usr/local/go/src/encoding/gob/encoder.go:82 +0x19c
encoding/gob.(*Encoder).EncodeValue(0xc0000a0140, {0x65ae80, 0xc00ef96880, 0x7fd00f205b18})
	/usr/local/go/src/encoding/gob/encoder.go:253 +0x472
encoding/gob.(*Encoder).Encode(0xc0005f1b00, {0x65ae80, 0xc00ef96880})
	/usr/local/go/src/encoding/gob/encoder.go:176 +0xa5
net/rpc.(*gobClientCodec).WriteRequest(0xc00027ec90, 0xc00027ed50, {0x65ae80, 0xc00ef96880})
	/usr/local/go/src/net/rpc/client.go:221 +0x65
net/rpc.(*Client).send(0xc0000a71a0, 0xc0105c66e0)
	/usr/local/go/src/net/rpc/client.go:91 +0x21e
net/rpc.(*Client).Go(0xc00033a000, {0x6e60fa, 0x10}, {0x65ae80, 0xc00ef96880}, {0x0, 0x0}, 0xc01015be60)
	/usr/local/go/src/net/rpc/client.go:315 +0x17b
net/rpc.(*Client).Call(...)
	/usr/local/go/src/net/rpc/client.go:321
github.com/google/syzkaller/pkg/rpctype.(*RPCClient).Call(0xc000336000, {0x6e60fa, 0x10}, {0x65ae80, 0xc00ef96880}, {0x0, 0x0})
	/syzkaller/gopath/src/github.com/google/syzkaller/pkg/rpctype/rpc.go:95 +0x175
main.(*Fuzzer).sendInputToManager(0xc0002636c0, {{0x6c5672, 0x9}, {0xc00d3d6000, 0x39d, 0x4c7}, {{0xc00262a000, 0x1db9, 0x1db9}, {0xc000f6e000, ...}}, ...})
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:433 +0xd1
main.(*Proc).triageInput(0xc00db08100, 0xc01040f380)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:166 +0x858
main.(*Proc).loop(0xc00db08100)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:74 +0xf2
created by main.main
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:294 +0x143d

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/02/11 19:15 linux-next ef6b35306dd8 8b9ca619 .config log report info panic: runtime error: index out of range [-NUM]
* Struck through repros no longer work on HEAD.