aboutsummaryrefslogtreecommitdiff
path: root/version.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-11-17 21:21:19 +0100
committerJakob Unterwurzacher2026-11-17 21:21:19 +0100
commit07ad4b3703912a246a9b75713fd757dc2be9a29d (patch)
treef0fc1f486b840ff361d5f3d96a84cddc03efd847 /version.go
parent851188164274de96cd581c3da1b5e847a42e2948 (diff)
mount: start serving ctlsock only after the FUSE mount is initializedHEADmaster
ctlsocksrv.Serve() was started at the end of initFuseFrontend(), before initGoFuse() calls fs.NewNodeFS(), which initializes the root inode. In forward mode, EncryptPath/DecryptPath call prepareAtSyscallMyself(), which calls Inode.IsRoot() and dereferences the still-nil bridge pointer. As the socket is opened before asking for the password, a client can queue a request during the password prompt. It is then accepted right away and races initGoFuse(). If it wins, gocryptfs crashes with a nil pointer dereference. The race detector reports the race on every such run. Start Serve() in doMount() after initGoFuse() returns. The socket is still opened early, and queued requests wait in the listen backlog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'version.go')
0 files changed, 0 insertions, 0 deletions