syzbot


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

Status: fixed on 2024/11/25 18:44
Reported-by: syzbot+563cd853bd70b6abc4f0@syzkaller.appspotmail.com
Fix commit: f66f0e235a0b Fix memmap.MappingIdentity.Device/InodeID() lock ordering.
First crash: 8d03h, last: 5d03h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: nested locking: tmpfs.filesystemRWMutex: (2) C 33 8d05h 11d 26/26 fixed on 2024/11/18 09:58
gvisor panic: nested locking: tmpfs.filesystemRWMutex: 1 434d 427d 26/26 fixed on 2023/10/05 23:05

Sample crash report:
panic: nested locking: tmpfs.filesystemRWMutex:
	goroutine 28 [running]:
	gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystemRWMutex).RLock(0xc000b17da8)
		bazel-out/k8-fastbuild/bin/pkg/sentry/fsimpl/tmpfs/filesystem_mutex.go:59 +0x4d
	gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).OpenAt(0xc000b17d40, {0x2064700, 0xc000acb208}, 0xc000de2008, {0x8002, 0x0, 0x0})
		pkg/sentry/fsimpl/tmpfs/filesystem.go:348 +0xea
	gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).OpenAt(0xc0001fd1e0, {0x2064700, 0xc000acb208}, 0xc000dd3ec0, 0xc000893568, 0xc00089349c)
		pkg/sentry/vfs/vfs.go:475 +0x686
	gvisor.dev/gvisor/pkg/sentry/syscalls/linux.openat(0xc000acb208, 0xffffff9c, 0x20000280, 0x2, 0x0)
		pkg/sentry/syscalls/linux/sys_file.go:112 +0x41d
	gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Openat(0xc000acb208, 0x484ca9?, {{0xffffffffffffff9c}, {0x20000280}, {0x2}, {0x0}, {0x0}, {0x7ea57ae55be0}})
		pkg/sentry/syscalls/linux/sys_file.go:91 +0xc6
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000acb208, 0x101, {{0xffffffffffffff9c}, {0x20000280}, {0x2}, {0x0}, {0x0}, {0x7ea57ae55be0}})
		pkg/sentry/kernel/task_syscall.go:143 +0xb9f
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000acb208, 0x101, {{0xffffffffffffff9c}, {0x20000280}, {0x2}, {0x0}, {0x0}, {0x7ea57ae55be0}})
		pkg/sentry/kernel/task_syscall.go:323 +0x85
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000acb208, 0x101, {{0xffffffffffffff9c}, {0x20000280}, {0x2}, {0x0}, {0x0}, {0x7ea57ae55be0}})
		pkg/sentry/kernel/task_syscall.go:283 +0xc7
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000acb208)
		pkg/sentry/kernel/task_syscall.go:258 +0x54a
	gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000acb208?, 0xc000acb208)
		pkg/sentry/kernel/task_run.go:269 +0x2295
	gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000acb208, 0x8)
		pkg/sentry/kernel/task_run.go:97 +0x41b
	created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 25
		pkg/sentry/kernel/task_start.go:400 +0x185
	

Crashes (88):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/21 07:06 gvisor 151f3fb3bf57 4b25d554 .config console log report syz / log C ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/21 06:03 gvisor 151f3fb3bf57 4b25d554 .config console log report syz / log C ci-gvisor-ptrace-2-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 20:08 gvisor 488d5d2f48f0 4fca1650 .config console log report syz / log C ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 12:49 gvisor 336dc8504327 e7bb5d6e .config console log report syz / log C ci-gvisor-ptrace-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/21 11:09 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/21 09:32 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/21 06:26 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/21 05:53 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/21 04:29 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/21 00:55 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 23:33 gvisor 488d5d2f48f0 4fca1650 .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 21:33 gvisor 488d5d2f48f0 4fca1650 .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 16:03 gvisor 488d5d2f48f0 4fca1650 .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 14:34 gvisor a92fc7b8c963 4fca1650 .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 12:43 gvisor a92fc7b8c963 4fca1650 .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 11:17 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 09:55 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 08:23 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 07:02 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 05:09 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 05:06 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 04:45 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 04:22 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 02:49 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-systrap-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 02:38 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 02:32 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/20 02:15 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 23:50 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 23:36 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 22:32 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-1-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 21:58 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 21:19 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 21:10 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 20:36 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 18:43 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-2-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 18:07 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 17:01 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 16:39 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 16:30 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 16:05 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 15:29 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 12:34 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 10:22 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 09:15 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 08:40 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 06:56 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 06:11 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 05:10 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-2-race panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 04:33 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 00:13 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 23:53 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 23:44 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/18 23:21 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
2024/11/19 15:05 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-arm64-ptrace-1-race-cover panic: nested locking: tmpfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.