syzbot


panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> mm.activeRWMutex:

Status: auto-obsoleted due to no activity on 2022/09/05 21:07
Reported-by: syzbot+293340d09acafa165704@syzkaller.appspotmail.com
First crash: 902d, last: 902d

Sample crash report:
panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> mm.activeRWMutex:
goroutine 6274 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0x60)
	pkg/log/log.go:316 +0xd3
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc00021d600, 0xc00021dd00, {0x0, 0x0, 0x0})
	pkg/sync/locking/lockdep.go:56 +0x225
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc00021d600, 0x0)
	pkg/sync/locking/lockdep.go:107 +0x33e
gvisor.dev/gvisor/pkg/sentry/mm.(*activeRWMutex).Lock(0xc00156c860)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/mm/active_mutex.go:18 +0x53
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).Invalidate(0xc00156c000, {0xc00156c000, 0x20000000}, {0x0})
	pkg/sentry/mm/pma.go:595 +0x8a
gvisor.dev/gvisor/pkg/sentry/memmap.MappingOfRange.invalidate({{0x1c19600, 0xc00156c000}, {0x20000000, 0x20209000}, 0x1}, {0x0})
	pkg/sentry/memmap/mapping_set.go:47 +0x72
gvisor.dev/gvisor/pkg/sentry/memmap.(*MappingSet).Invalidate(0xc000235508, {0x47bd0c, 0x1}, {0x2e})
	pkg/sentry/memmap/mapping_set.go:241 +0x359
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*regularFile).truncateLocked(0xc000235180, 0x0)
	pkg/sentry/fsimpl/tmpfs/regular_file.go:224 +0x388
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).setStat(0xc000235180, {0x1c70010, 0xc0018a6000}, 0xc0017b9b48, 0xc000dcefd8)
	pkg/sentry/fsimpl/tmpfs/tmpfs.go:628 +0x2bf
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).SetStatAt(0xc000388300, {0x1c70010, 0xc0018a6000}, 0xc0017b9b00, {{0x200, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...})
	pkg/sentry/fsimpl/tmpfs/filesystem.go:714 +0x117
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).SetStatAt(0xc0018a6000, {0x1c70010, 0xc0018a6000}, 0x27c8ce4, 0xc000000001, 0xc000dcf578)
	pkg/sentry/vfs/vfs.go:583 +0x1b0
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.setstatat(0xc0018a6000, 0xffffff9c, {{{0xc00160d900, 0x12a5660}, 0x1c70010}, 0x0, 0x60}, 0x0, 0x1, 0xc000dcf578)
	pkg/sentry/syscalls/linux/vfs2/setstat.go:458 +0x685
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Truncate(0x451980, {{0x20000040}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/vfs2/setstat.go:177 +0x1bc
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0018a6000, 0x4c, {{0x20000040}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0xaf7
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0018a6000, 0x1, {{0x20000040}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0001ca960, 0x1, {{0x20000040}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0018a6000)
	pkg/sentry/kernel/task_syscall.go:257 +0x4c7
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0018a6000, 0xc0018a6000)
	pkg/sentry/kernel/task_run.go:247 +0x19fc
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0018a6000)
	pkg/sentry/kernel/task_run.go:90 +0x2c2
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:364 +0x1b1

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/07 21:07 gvisor e64458ff08b6 b2706118 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> mm.activeRWMutex:
2022/06/07 20:36 gvisor e64458ff08b6 b2706118 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> mm.activeRWMutex:
* Struck through repros no longer work on HEAD.