syzbot


panic: nested locking: kernel.taskSetRWMutex:

Status: fixed on 2022/10/26 08:58
Fix commit: c1427a04dfba Disable fasync for signalfd descriptors
First crash: 815d, last: 815d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: nested locking: kernel.taskSetRWMutex: (2) C 5 706d 699d 0/26 moderation: reported C repro on 2022/12/27 17:44

Sample crash report:
panic: nested locking: kernel.taskSetRWMutex:
goroutine 8879 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0x0?)
	pkg/log/log.go:318 +0x8d
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0002c8f00, 0x0)
	pkg/sync/locking/lockdep.go:105 +0x4dd
gvisor.dev/gvisor/pkg/sentry/kernel.(*taskSetRWMutex).RLock(0xc0003b00e0)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/kernel/taskset_mutex.go:46 +0x3f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).SendSignal(0xc003c0b500, 0xc0002c8f80?)
	pkg/sentry/kernel/task_signals.go:380 +0xa5
gvisor.dev/gvisor/pkg/sentry/kernel/fasync.(*FileAsync).NotifyEvent(0xc003283810, 0x1)
	pkg/sentry/kernel/fasync/fasync.go:142 +0x5f8
gvisor.dev/gvisor/pkg/waiter.(*Queue).Notify(0xc001a61c10, 0x1)
	pkg/waiter/waiter.go:237 +0xae
gvisor.dev/gvisor/pkg/sentry/fsimpl/signalfd.(*SignalFileDescription).NotifyEvent(0xc001a61ba0, 0x451932?)
	pkg/sentry/fsimpl/signalfd/signalfd.go:146 +0x3a
gvisor.dev/gvisor/pkg/waiter.(*Queue).Notify(0xc003c0bbf0, 0x2000)
	pkg/waiter/waiter.go:237 +0xae
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).canReceiveSignalLocked(0xc003c0b500, 0xe)
	pkg/sentry/kernel/task_signals.go:526 +0x115
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).sendSignalTimerLocked(0xc003c0b500, 0xc003c6b400, 0x1, 0xc0041de9c0)
	pkg/sentry/kernel/task_signals.go:469 +0x48c
gvisor.dev/gvisor/pkg/sentry/kernel.(*IntervalTimer).NotifyTimer(0xc0041de9c0, 0x1, {0x88?, {0xc004006000?}, 0xc000648f68?})
	pkg/sentry/kernel/posixtimer.go:147 +0x610
gvisor.dev/gvisor/pkg/sentry/kernel/time.(*Timer).Tick(0xc00304fc80)
	pkg/sentry/kernel/time/time.go:531 +0x1e2
gvisor.dev/gvisor/pkg/sentry/kernel/time.(*Timer).runGoroutine(0xc00304fc80)
	pkg/sentry/kernel/time/time.go:515 +0x4a
created by gvisor.dev/gvisor/pkg/sentry/kernel/time.(*Timer).init
	pkg/sentry/kernel/time/time.go:487 +0x245

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/03 12:18 gvisor dade50095a41 49e94a20 .config console log report syz C ci-gvisor-ptrace-1-race panic: nested locking: kernel.taskSetRWMutex:
2022/09/03 12:17 gvisor dade50095a41 49e94a20 .config console log report syz C ci-gvisor-ptrace-2-race panic: nested locking: kernel.taskSetRWMutex:
* Struck through repros no longer work on HEAD.