syzbot


panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM (2)

Status: fixed on 2024/08/16 21:31
Fix commit: 834bef599679 fuse: Error out in case of unsupported file type instead of panicking.
First crash: 129d, last: 101d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM C 25 1028d 1031d 0/26 closed as invalid on 2023/01/26 22:48

Sample crash report:
panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=00

goroutine 156 gp=0xc000b02700 m=3 mp=0xc000143008 [running]:
panic({0x1a9b200?, 0xc0000480d0?})
	GOROOT/src/runtime/panic.go:779 +0x158 fp=0xc0007b2a10 sp=0xc0007b2960 pc=0x43ed58
gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*inode).init(0xc0004a5c08, 0xc0007b2b98, 0x2000?, 0x0?, 0x0, 0x0, 0x8)
	pkg/sentry/fsimpl/fuse/inode.go:185 +0x259 fp=0xc0007b2a78 sp=0xc0007b2a10 pc=0x15d1859
gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*filesystem).newInode(0xc0007c0180, {0xc000b02700?, 0xc0007f65c8?}, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, ...}})
	pkg/sentry/fsimpl/fuse/fusefs.go:311 +0x2b7 fp=0xc0007b2c38 sp=0xc0007b2a78 pc=0x15d0a77
gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*inode).newEntry(0xc0007f6008, {0x2054c58, 0xc00030ea88}, {0x0?, 0xc00038f148?}, 0x0, 0x1, {0x2050970, 0xc0003e8560})
	pkg/sentry/fsimpl/fuse/inode.go:568 +0x413 fp=0xc0007b2e10 sp=0xc0007b2c38 pc=0x15d60f3
gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*inode).Lookup(0xc0007f6008, {0x2054c58, 0xc00030ea88}, {0xc000526a08, 0x5})
	pkg/sentry/fsimpl/fuse/inode.go:428 +0xcc fp=0xc0007b2e88 sp=0xc0007b2e10 pc=0x15d49cc
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).revalidateChildLocked(0xc0007c0180, {0x2054c58, 0xc00030ea88}, 0xc00028b1e8, 0xc00038f0e0, {0xc000526a08, 0x5})
	pkg/sentry/fsimpl/kernfs/filesystem.go:127 +0x366 fp=0xc0007b2f88 sp=0xc0007b2e88 pc=0xb9cd06
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).stepExistingLocked(0xc0007c0180, {0x2054c58, 0xc00030ea88}, 0xc0007ae908, 0xc00038f0e0)
	pkg/sentry/fsimpl/kernfs/filesystem.go:74 +0x33c fp=0xc0007b30a8 sp=0xc0007b2f88 pc=0xb9c59c
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).walkExistingLocked(0xc0007c0180, {0x2054c58, 0xc00030ea88}, 0xc0007ae908)
	pkg/sentry/fsimpl/kernfs/filesystem.go:189 +0xcd fp=0xc0007b3108 sp=0xc0007b30a8 pc=0xb9d4cd
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).GetDentryAt(0xc0007c0180, {0x2054c58, 0xc00030ea88}, 0xc0007ae908, {0x0?})
	pkg/sentry/fsimpl/kernfs/filesystem.go:350 +0x1b2 fp=0xc0007b3228 sp=0xc0007b3108 pc=0xb9e7b2
gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*filesystem).GetDentryAt(0xc0007c0180, {0x2054c58, 0xc00030ea88}, 0xc0007ae908, {0xa0?})
	<autogenerated>:1 +0x65 fp=0xc0007b3280 sp=0xc0007b3228 pc=0x15ebf25
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).GetDentryAt(0xc00028b1e8, {0x2054c58, 0xc00030ea88}, 0xc0001d1c20, 0xc0007b3400, 0xc0007b338f)
	pkg/sentry/vfs/vfs.go:267 +0x133 fp=0xc0007b3300 sp=0xc0007b3280 pc=0xac5013
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Chdir(0xc00030ea88, 0x44af6d?, {{0x20000100}, {0x5fc2638ea4d8eddd}, {0x55e12b3a31a9}, {0x7f95fa4e16c0}, {0x7f95fa4e16c0}, {0x0}})
	pkg/sentry/syscalls/linux/sys_file.go:336 +0x24b fp=0xc0007b34f0 sp=0xc0007b3300 pc=0x113ef0b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00030ea88, 0x50, {{0x20000100}, {0x5fc2638ea4d8eddd}, {0x55e12b3a31a9}, {0x7f95fa4e16c0}, {0x7f95fa4e16c0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:143 +0x995 fp=0xc0007b3938 sp=0xc0007b34f0 pc=0xee5535
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00030ea88, 0x50, {{0x20000100}, {0x5fc2638ea4d8eddd}, {0x55e12b3a31a9}, {0x7f95fa4e16c0}, {0x7f95fa4e16c0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:323 +0x72 fp=0xc0007b39e0 sp=0xc0007b3938 pc=0xee7392
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00030ea88, 0x50, {{0x20000100}, {0x5fc2638ea4d8eddd}, {0x55e12b3a31a9}, {0x7f95fa4e16c0}, {0x7f95fa4e16c0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:283 +0x94 fp=0xc0007b3a50 sp=0xc0007b39e0 pc=0xee6d94
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00030ea88)
	pkg/sentry/kernel/task_syscall.go:258 +0x4b0 fp=0xc0007b3b80 sp=0xc0007b3a50 pc=0xee6930
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc00030ea88?, 0xc00030ea88)
	pkg/sentry/kernel/task_run.go:263 +0x1fee fp=0xc0007b3e98 sp=0xc0007b3b80 pc=0xed002e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00030ea88, 0x8)
	pkg/sentry/kernel/task_run.go:98 +0x46d fp=0xc0007b3fb0 sp=0xc0007b3e98 pc=0xecd6ad
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1()
	pkg/sentry/kernel/task_start.go:393 +0x45 fp=0xc0007b3fe0 sp=0xc0007b3fb0 pc=0xee2f05
runtime.goexit({})
	src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0007b3fe8 sp=0xc0007b3fe0 pc=0x47d301
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 165
	pkg/sentry/kernel/task_start.go:393 +0x1ae

Crashes (454):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/19 21:54 gvisor 4cd59721243a 890ce4f3 .config console log report syz / log C ci-gvisor-ptrace-3-race panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/07/19 21:18 gvisor 4cd59721243a 890ce4f3 .config console log report syz / log C ci-gvisor-ptrace-3-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/07/19 19:57 gvisor 4cd59721243a 890ce4f3 console log report syz / log C ci-gvisor-ptrace-3 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/07/19 18:54 gvisor 4cd59721243a 890ce4f3 .config console log report syz / log C ci-gvisor-ptrace-3-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/16 12:59 gvisor 081bbcf36326 e1c76ab2 .config console log report info ci-gvisor-ptrace-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/16 05:46 gvisor 3b28deddf4b9 e4bacdaf .config console log report info ci-gvisor-systrap-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/16 04:17 gvisor 3b28deddf4b9 e4bacdaf .config console log report info ci-gvisor-ptrace-2-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/15 23:00 gvisor b508258e3979 e4bacdaf console log report info ci-gvisor-kvm panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/15 21:22 gvisor b508258e3979 e4bacdaf .config console log report info ci-gvisor-ptrace-2-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/15 11:06 gvisor b508258e3979 e4bacdaf .config console log report info ci-gvisor-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/15 00:15 gvisor 0f4d195bffd6 e4bacdaf .config console log report info ci-gvisor-ptrace-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/14 03:27 gvisor bead437abf19 bde81f6f .config console log report info ci-gvisor-kvm-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/13 22:09 gvisor bead437abf19 bde81f6f .config console log report info ci-gvisor-ptrace-2-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/13 10:42 gvisor 63e04396fab4 24d82c00 .config console log report info ci-gvisor-ptrace-3-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/12 06:23 gvisor 979bbf238b47 6f4edef4 .config console log report info ci-gvisor-ptrace-3-race panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/12 04:36 gvisor 979bbf238b47 6f4edef4 .config console log report info ci-gvisor-kvm-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/11 20:00 gvisor 979bbf238b47 6f4edef4 .config console log report info ci-gvisor-ptrace-2-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/11 03:39 gvisor 979bbf238b47 6f4edef4 .config console log report info ci-gvisor-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/09 23:15 gvisor 876de08e592a 6f4edef4 .config console log report info ci-gvisor-ptrace-2-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/09 15:03 gvisor 414df2de115d 8828007b .config console log report info ci-gvisor-ptrace-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/09 05:44 gvisor 81914048969e 61405512 .config console log report info ci-gvisor-ptrace-3-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/09 04:21 gvisor 81914048969e 61405512 .config console log report info ci-gvisor-ptrace-3-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/08 04:00 gvisor 2e8244c61b11 de12cf65 .config console log report info ci-gvisor-ptrace-3-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/08 00:07 gvisor 2e8244c61b11 de12cf65 .config console log report info ci-gvisor-ptrace-3-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/07 07:44 gvisor b1d7ceafb1d3 1ef9fe42 console log report info ci-gvisor-ptrace-3 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/07 06:29 gvisor b1d7ceafb1d3 1ef9fe42 .config console log report info ci-gvisor-ptrace-2-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/07 01:29 gvisor b1d7ceafb1d3 1ef9fe42 .config console log report info ci-gvisor-systrap-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/07 00:12 gvisor b1d7ceafb1d3 1ef9fe42 .config console log report info ci-gvisor-ptrace-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/06 23:06 gvisor b1d7ceafb1d3 1ef9fe42 .config console log report info ci-gvisor-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/06 17:02 gvisor 5f28d97aa766 1ef9fe42 .config console log report info ci-gvisor-kvm-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/06 16:10 gvisor 5f28d97aa766 d09987bf .config console log report info ci-gvisor-ptrace-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/06 05:09 gvisor 7a05c225f55c e1bdb00a .config console log report info ci-gvisor-systrap-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 22:21 gvisor 7a05c225f55c e1bdb00a .config console log report info ci-gvisor-systrap-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 18:45 gvisor 7a05c225f55c e35c337f .config console log report info ci-gvisor-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 16:21 gvisor 429898032595 e35c337f .config console log report info ci-gvisor-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 11:15 gvisor 429898032595 e35c337f .config console log report info ci-gvisor-systrap-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 09:38 gvisor 429898032595 e35c337f .config console log report info ci-gvisor-systrap-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 01:21 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/04 22:53 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-ptrace-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/04 18:13 gvisor 429898032595 1786a2a8 console log report info ci-gvisor-kvm panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/04 17:01 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-ptrace-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/04 15:12 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-systrap-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/04 11:28 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-ptrace-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/04 05:19 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-ptrace-3-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/04 03:55 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-ptrace-3-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/03 16:19 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/03 13:18 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-ptrace-2-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/02 23:18 gvisor ef1ca17e5842 15001224 .config console log report info ci-gvisor-systrap-1-race panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/02 23:18 gvisor ef1ca17e5842 15001224 .config console log report info ci-gvisor-systrap-1-race panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/02 21:54 gvisor ef1ca17e5842 15001224 console log report info ci-gvisor-systrap-1 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/02 19:41 gvisor ef1ca17e5842 15001224 .config console log report info ci-gvisor-systrap-1-race-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/02 16:15 gvisor ef1ca17e5842 15001224 .config console log report info ci-gvisor-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/16 20:40 gvisor 081bbcf36326 e1c76ab2 console log report info ci-gvisor-arm64-ptrace-1 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/12 02:08 gvisor 979bbf238b47 6f4edef4 console log report info ci-gvisor-arm64-ptrace-1 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/11 21:12 gvisor 979bbf238b47 6f4edef4 console log report info ci-gvisor-arm64-ptrace-1 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/10 13:34 gvisor 979bbf238b47 6f4edef4 console log report info ci-gvisor-arm64-ptrace-1 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/09 18:53 gvisor 414df2de115d 8828007b console log report info ci-gvisor-arm64-ptrace-1 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/06 20:52 gvisor 5f28d97aa766 1ef9fe42 .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/06 12:15 gvisor 5f28d97aa766 1ef9fe42 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/06 03:58 gvisor 7a05c225f55c e1bdb00a .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 12:49 gvisor 429898032595 d945c1fd .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 07:33 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/05 03:25 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/04 06:24 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/03 19:01 gvisor 429898032595 1786a2a8 .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
2024/08/02 08:34 gvisor 3c98aab6f864 1e9c4cf3 console log report info ci-gvisor-arm64-systrap-1 panic: No file type specified in 'mode' for InodeAttrs.Init(): mode=NUM
* Struck through repros no longer work on HEAD.