diff options
| author | Jakob Unterwurzacher | 2026-11-17 21:21:19 +0100 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-11-17 21:21:19 +0100 |
| commit | 07ad4b3703912a246a9b75713fd757dc2be9a29d (patch) | |
| tree | f0fc1f486b840ff361d5f3d96a84cddc03efd847 /internal/fusefrontend/node_xattr_darwin.go | |
| parent | 851188164274de96cd581c3da1b5e847a42e2948 (diff) | |
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 'internal/fusefrontend/node_xattr_darwin.go')
0 files changed, 0 insertions, 0 deletions
