syzbot


panic: node.Readdir returned offset 102 less than input offset NUM

Status: auto-closed as invalid on 2019/07/04 06:51
Reported-by: syzbot+c5813d52b57f6d75480b@syzkaller.appspotmail.com
First crash: 2152d, last: 2152d

Sample crash report:
panic: node.Readdir returned offset 102 less than input offset 65522

goroutine 5052544 [running]:
gvisor.googlesource.com/gvisor/pkg/sentry/fs.direntReaddir(0x120eac0, 0xc002b35500, 0xc0029af320, 0x1200140, 0xc0018eb900, 0xc0003e4480, 0xc0027298e0, 0xfff2, 0x45d43c, 0x7404b0, ...)
	pkg/sentry/fs/dirent.go:991 +0x5a9
gvisor.googlesource.com/gvisor/pkg/sentry/fs.DirentReaddir(0x120eac0, 0xc002b35500, 0xc0029af320, 0x1200140, 0xc0018eb900, 0xc0003e4480, 0xc0027298e0, 0xfff4, 0xc000516a00, 0x0, ...)
	pkg/sentry/fs/dirent.go:941 +0x98
gvisor.googlesource.com/gvisor/pkg/sentry/fs/fsutil.(*Handle).Readdir(0xc0018eb900, 0x120eac0, 0xc002b35500, 0xc0029af3b0, 0x12048a0, 0xc000516a00, 0x0, 0x0, 0x0)
	pkg/sentry/fs/fsutil/handle.go:76 +0x209
gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Readdir(0xc0029af3b0, 0x120eac0, 0xc002b35500, 0x12048a0, 0xc000516a00, 0x0, 0x0)
	pkg/sentry/fs/file.go:226 +0x12a
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.getdents(0xc002b35500, 0xc000000003, 0x20000040, 0x5d, 0x10efef8, 0x0, 0x0, 0x0)
	pkg/sentry/syscalls/linux/sys_getdents.go:82 +0x25c
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Getdents64(0xc002b35500, 0x3, 0x20000040, 0x5d, 0x0, 0x0, 0x0, 0x487163, 0xc0028d3924, 0xc0028d38b8, ...)
	pkg/sentry/syscalls/linux/sys_getdents.go:59 +0x149
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc002b35500, 0xd9, 0x3, 0x20000040, 0x5d, 0x0, 0x0, 0x0, 0xc002b35500, 0x0, ...)
	pkg/sentry/kernel/task_syscall.go:165 +0x17b
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc002b35500, 0xd9, 0x3, 0x20000040, 0x5d, 0x0, 0x0, 0x0, 0x12003e0, 0x0)
	pkg/sentry/kernel/task_syscall.go:283 +0xb5
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc002b35500, 0xd9, 0x3, 0x20000040, 0x5d, 0x0, 0x0, 0x0, 0xc0028d3c00, 0x47887e)
	pkg/sentry/kernel/task_syscall.go:244 +0x10d
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc002b35500, 0x2, 0xc000dee9c0)
DIAGNOSIS:

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/05 06:50 https://gvisor.googlesource.com/gvisor master 4a4cc7dc3794 53be0a37 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.