syzbot


panic: nested locking: tmpfs.filesystemRWMutex: (2)

Status: fixed on 2024/11/18 09:58
Fix commit: 336dc8504327 vfs: use ancestryMu in implementations of DentryImpl.InotifyWithParent
First crash: 11d, last: 8d06h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: nested locking: tmpfs.filesystemRWMutex: 1 434d 427d 26/26 fixed on 2023/10/05 23:05
gvisor panic: nested locking: tmpfs.filesystemRWMutex: (3) C 88 5d03h 1d02h 26/26 fixed on 2024/11/25 18:44

Sample crash report:
panic: nested locking: tmpfs.filesystemRWMutex:
	goroutine 307 [running]:
	gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystemRWMutex).RLock(0xc00067f7f8)
		bazel-out/k8-fastbuild/bin/pkg/sentry/fsimpl/tmpfs/filesystem_mutex.go:59 +0x3c
	gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).OpenAt(0xc00067f790, {0x1f8d8c0, 0xc0006ee588}, 0xc0002b1688, {0x8002, 0x0, 0x0})
		pkg/sentry/fsimpl/tmpfs/filesystem.go:348 +0xb0
	gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).OpenAt(0xc0002031e0, {0x1f8d8c0, 0xc0006ee588}, 0xc000ae9bc0, 0xc000af9560, 0xc000af94b0)
		pkg/sentry/vfs/vfs.go:475 +0x4ff
	gvisor.dev/gvisor/pkg/sentry/syscalls/linux.openat(0xc0006ee588, 0xffffff9c, 0x20000280, 0x2, 0x0)
		pkg/sentry/syscalls/linux/sys_file.go:112 +0x34f
	gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Openat(0xc0006ee588, 0x0?, {{0xffffffffffffff9c}, {0x20000280}, {0x2}, {0x0}, {0x7f4f0d5a7c08}, {0x5654b1017a50}})
		pkg/sentry/syscalls/linux/sys_file.go:91 +0x46
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0006ee588, 0x101, {{0xffffffffffffff9c}, {0x20000280}, {0x2}, {0x0}, {0x7f4f0d5a7c08}, {0x5654b1017a50}})
		pkg/sentry/kernel/task_syscall.go:143 +0x995
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0006ee588, 0x101, {{0xffffffffffffff9c}, {0x20000280}, {0x2}, {0x0}, {0x7f4f0d5a7c08}, {0x5654b1017a50}})
		pkg/sentry/kernel/task_syscall.go:323 +0x72
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0006ee588, 0x101, {{0xffffffffffffff9c}, {0x20000280}, {0x2}, {0x0}, {0x7f4f0d5a7c08}, {0x5654b1017a50}})
		pkg/sentry/kernel/task_syscall.go:283 +0x94
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0006ee588)
		pkg/sentry/kernel/task_syscall.go:258 +0x4b0
	gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0006ee588?, 0xc0006ee588)
		pkg/sentry/kernel/task_run.go:269 +0x1fae
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0006ee588, 0x7)
		pkg/sentry/kernel/task_run.go:97 +0x4fb
	created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 113
		pkg/sentry/kernel/task_start.go:400 +0x165
	

Crashes (33):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/17 17:02 gvisor 336dc8504327 cfe3a04a .config console log report syz / log C ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 01:17 gvisor 336dc8504327 cfe3a04a .config console log report syz / log C ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/16 20:01 gvisor 336dc8504327 cfe3a04a .config console log report syz / log C ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 09:38 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 07:46 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 06:36 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 05:02 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 04:55 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 00:15 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 23:51 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 23:32 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 22:09 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 19:41 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 16:03 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 16:01 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 14:27 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 11:32 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 11:10 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 09:47 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/17 05:28 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/16 20:29 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/16 18:24 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/16 16:19 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/16 06:37 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 22:26 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-ptrace-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 19:32 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 14:50 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-ptrace-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 14:17 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 14:16 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 13:40 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 13:16 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 13:16 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/15 12:42 gvisor 39a6242b5420 eeafb645 .config console log report info ci-gvisor-ptrace-2-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.