Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #67316
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Salvatore Bonaccorso <carnil@debian.org> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) |
| Date | Tue, 16 Jun 2020 18:30:02 +0200 |
| Message-ID | <AimDf-6DY-1@gated-at.bofh.it> (permalink) |
| References | <AedoR-7Uq-1@gated-at.bofh.it> <Aep6F-7Oh-3@gated-at.bofh.it> <Aepq1-7Uz-1@gated-at.bofh.it> <AgE1z-XY-1@gated-at.bofh.it> <AhdVn-5Re-3@gated-at.bofh.it> <Ahjo5-Jn-3@gated-at.bofh.it> <AhYUi-Kt-9@gated-at.bofh.it> <Ai2uS-2IP-9@gated-at.bofh.it> <Ai9PH-7gF-3@gated-at.bofh.it> <Ai9PH-7gF-1@gated-at.bofh.it> <AedoR-7Uq-1@gated-at.bofh.it> <Ai9PH-7gF-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Tue Jun 16 16:21:09 2020 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -0.5 |
| Reply-To | Salvatore Bonaccorso <carnil@debian.org>, 962254@bugs.debian.org |
| Original-Sender | Salvatore Bonaccorso <salvatore.bonaccorso@gmail.com> |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian Kernel Team <debian-kernel@lists.debian.org> |
| X-Debian-Pr-Message | followup 962254 |
| X-Debian-Pr-Package | src:linux |
| X-Debian-Pr-Keywords | security upstream |
| X-Debian-Pr-Source | linux |
| X-Spam-Bayes | score:0.0000 Tokens: new, 10; hammy, 150; neutral, 123; spammy, 0. spammytokens: hammytokens:0.000-+--H*F:U*carnil, 0.000-+--H*RU:sk:lorien., 0.000-+--H*r:sk:lorien., 0.000-+--Hx-spam-relays-external:sk:lorien., 0.000-+--H*r:lorien |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RcbSMXhODqJvViCJeZ05GHO33u0xVBh7EIAnE2robwo=; b=qZmrMWoF4kZI83ycROC722mWeg+mBC3HXlQhdBpIhoLW9zLbzCEF52ecykLGxvfQxs +kR82lQTLUMcNBnMxBRtMW9El1teYfAPr7Nh4exfthcdl78m3WlbMsRby+UTfSHGP/xx lL04T7ENHjg9gvjDaPoSPGJWpwRF18wCSoqT6675sdsqEqqcXnphHHFbXnEynew53kja X4Ye8Zqgep+KlClyH96JZjky4GG5Vh3lOG47DtxUGg08mHDXQddbSffsSEF7l0e4LErj o7kc0sGufJn9qewDtlyiu9OOMcs8UQraj9fOW/KJ/xyV+4Uhp0D8p/35O2PZFp8qCLE4 UC4A== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=RcbSMXhODqJvViCJeZ05GHO33u0xVBh7EIAnE2robwo=; b=Q14poPTWroOb07H9SoDH336i70wogCBmzcntLyxBx+vgPV5dS2NXKIY2i1uSVu7XpY 3VviP8gr5g6AE5INh9DS+QDAexM4MiRac8py/aOkrSd89yshBJWmpKyeP4t5oAYomJpY 2Dx9TfU+Daa0Ae5Oo0QijID9RZ+6esBucglbSU0LhrJEaUU85wi7wnlo1EIl+b02CrLG QeGH75tpHxYYby7CxbmdGF6CZXLDDAzz2xE8gheyxa4kOh+O3H2PJfT+gVkVeI8DZehn HH5vivu65kgrWq5E2uwjqnDt62D+MSRPBLT3ZseIlawQ4OdvFQD3vwrJHXiLmV9nJe+V 335w== |
| X-Gm-Message-State | AOAM531qGqbSJzdeqXS78tNIaMYaz17s64iegPvARXCUdUzOZ3J3vk6W 1/MdAWU3JL/Ackmws5LHZtA= |
| X-Google-SMTP-Source | ABdhPJwfwh+8Ih4JjGYaYrOeqbmbEyu2HyOoQG+TUUvCPNkOnlnUe0GIPorJtVuUAf5BtQaDuo0adg== |
| X-Received | by 2002:a05:600c:29a:: with SMTP id 26mr3838817wmk.76.1592324221467; Tue, 16 Jun 2020 09:17:01 -0700 (PDT) |
| Sender | robomod@news.nic.it |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.10.1 (2018-07-13) |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1608785 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 42 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Elliott Mitchell <ehem+debian@m5p.com>, 962254@bugs.debian.org, linux-nfs@vger.kernel.org, agruenba@redhat.com |
| X-Original-Date | Tue, 16 Jun 2020 18:16:58 +0200 |
| X-Original-Message-ID | <20200616161658.GA17251@lorien.valinor.li> |
| X-Original-References | <20200605051607.GA34405@mattapan.m5p.com> <20200605174349.GA40135@mattapan.m5p.com> <20200605183631.GA1720057@eldamar.local> <20200611223711.GA37917@mattapan.m5p.com> <20200613125431.GA349352@eldamar.local> <20200613184527.GA54221@mattapan.m5p.com> <20200615145035.GA214986@pick.fieldses.org> <20200615185311.GA702681@eldamar.local> <20200616023820.GB214986@pick.fieldses.org> <20200616024212.GC214986@pick.fieldses.org> <20200605051607.GA34405@mattapan.m5p.com> <20200616024212.GC214986@pick.fieldses.org> |
| X-Original-Sender | Salvatore Bonaccorso <salvatore.bonaccorso@gmail.com> |
| Xref | csiph.com linux.debian.bugs.dist:1014139 linux.debian.kernel:67316 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hi Bruce,
On Mon, Jun 15, 2020 at 10:42:12PM -0400, J. Bruce Fields wrote:
> On Mon, Jun 15, 2020 at 10:38:20PM -0400, J. Bruce Fields wrote:
> > Thanks for the detailed reproducer.
> >
> > It's weird, as the server is basically just setting the transmitted
> > umask and then calling into the vfs to handle the rest, so it's not much
> > different from any other user. But the same reproducer run just on the
> > ext4 filesystem does give the right permissions....
> >
> > Oh, but looking at the system call, fs_namei.c:do_mkdirat(), it does:
> >
> > if (!IS_POSIXACL(path.dentry->d_inode))
> > mode &= ~current_umask();
> > error = security_path_mkdir(&path, dentry, mode);
> > if (!error)
> > error = vfs_mkdir(path.dentry->d_inode, dentry, mode);
> >
> > whereas nfsd just calls into vfs_mkdir().
> >
> > And that IS_POSIXACL() check is exactly a check whether the filesystem
> > supports ACLs. So I guess it's the responsibility of the caller of
> > vfs_mkdir() to handle that case.
>
> But, that's unsatisfying: why isn't vfs_mkdir() taking care of this
> itself? And what about that security_path_mkdir() call? And are the
> other cases of that switch in fs/nfsd/vfs.c:nfsd_create_locked()
> correct? I think there may be some more cleanup here called for, I'll
> poke around tomorrow.
This might be unneeded to test but as additional datapoint which
confirms the suspect: I tried check the commit around 47057abde515
("nfsd: add support for the umask attribute") in 4.10-rc1
A kernel built with 47057abde515~1, and mounting from an enough recent
client which has at least dff25ddb4808 ("nfs: add support for the
umask attribute") does not show the observed behaviour, the server
built with 47057abde515 does.
Regards,
Salvatore
Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#962254: NFS(v4) broken at 4.19.118-2 Elliott Mitchell <ehem+debian@m5p.com> - 2020-06-05 07:50 +0200
Processed: Re: Bug#962254: NFS(v4) broken at 4.19.118-2 "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-06-05 08:50 +0200
Bug#962254: NFS(v4) broken at 4.19.118-2 Salvatore Bonaccorso <carnil@debian.org> - 2020-06-05 08:50 +0200
Bug#962254: NFS(v4) broken at 4.19.118-2 Elliott Mitchell <ehem+debian@m5p.com> - 2020-06-05 20:20 +0200
Bug#962254: NFS(v4) broken at 4.19.118-2 Salvatore Bonaccorso <carnil@debian.org> - 2020-06-05 20:40 +0200
Bug#962254: NFS(v4) broken at 4.19.118-2 Elliott Mitchell <ehem+debian@m5p.com> - 2020-06-06 00:40 +0200
Bug#934160: Bug#962254: NFS(v4) broken at 4.19.118-2 Elliott Mitchell <ehem+debian@m5p.com> - 2020-06-09 04:00 +0200
Processed: Re: Bug#962254: NFS(v4) broken at 4.19.118-2 "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-06-09 04:00 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported ZFS (with acltype=off) (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) Salvatore Bonaccorso <carnil@debian.org> - 2020-06-13 15:00 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported ZFS (with acltype=off) (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) "J. Bruce Fields" <bfields@redhat.com> - 2020-06-15 17:10 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) Salvatore Bonaccorso <carnil@debian.org> - 2020-06-15 21:00 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) "J. Bruce Fields" <bfields@redhat.com> - 2020-06-16 04:50 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) Salvatore Bonaccorso <carnil@debian.org> - 2020-06-16 07:40 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) Salvatore Bonaccorso <carnil@debian.org> - 2020-06-16 18:30 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) "J. Bruce Fields" <bfields@redhat.com> - 2020-06-17 03:10 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl Salvatore Bonaccorso <carnil@debian.org> - 2020-06-17 07:10 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) Salvatore Bonaccorso <carnil@debian.org> - 2020-06-16 07:40 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) "J. Bruce Fields" <bfields@redhat.com> - 2020-06-17 17:40 +0200
Bug#962254: Umask ignored when mounting NFSv4.2 share of an exported Filesystem with noacl (was: Re: Bug#962254: NFS(v4) broken at 4.19.118-2) Andreas Gruenbacher <agruenba@redhat.com> - 2020-06-17 19:00 +0200
csiph-web