<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:19:26 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-8656] IS_NOSEC check in vvp_io_write_start always returns false</title>
                <link>https://jira.whamcloud.com/browse/LU-8656</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In vvp_io_write_start, we check &quot;IS_NOSEC&quot; to see whether or not to take the inode mutex.  (This is to protect the automatic setuid bit removal when writing to a file.)&lt;/p&gt;

&lt;p&gt;This was added in patch &lt;a href=&quot;http://review.whamcloud.com/19840&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19840&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8025&quot; title=&quot;ll_direct_io code introduced in LU-6260 is based on 2.4/2.5, ignores LU-1669&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8025&quot;&gt;&lt;del&gt;LU-8025&lt;/del&gt;&lt;/a&gt; llite: make vvp_io_write_start lockless for newer kernels&quot;. &lt;/p&gt;

&lt;p&gt;Unfortunately, it looks like that check is not working correctly, and is always returning false, causing us to take the inode mutex.  This may have some dependence on kernel version, as different versions vary in whether they provide IS_NOSEC.&lt;/p&gt;</description>
                <environment></environment>
        <key id="40220">LU-8656</key>
            <summary>IS_NOSEC check in vvp_io_write_start always returns false</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="paf">Patrick Farrell</assignee>
                                    <reporter username="paf">Patrick Farrell</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 Sep 2016 18:25:39 +0000</created>
                <updated>Tue, 8 Jun 2021 17:55:04 +0000</updated>
                            <resolved>Sat, 10 Jun 2017 12:44:37 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="167922" author="gerrit" created="Fri, 30 Sep 2016 18:30:32 +0000"  >&lt;p&gt;Patrick Farrell (paf@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/22853&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/22853&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8656&quot; title=&quot;IS_NOSEC check in vvp_io_write_start always returns false&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8656&quot;&gt;&lt;del&gt;LU-8656&lt;/del&gt;&lt;/a&gt; test: test IS_NOSEC and i_mutex usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 21f2167063086ae7651722991cb2a1fd49467ad0&lt;/p&gt;</comment>
                            <comment id="167923" author="simmonsja" created="Fri, 30 Sep 2016 18:31:06 +0000"  >&lt;p&gt;Which kernel versions is this broken on? The backwards macros are taken straight from the upstream kernel.&lt;/p&gt;</comment>
                            <comment id="167924" author="paf" created="Fri, 30 Sep 2016 18:34:45 +0000"  >&lt;p&gt;Confirmed the IS_NOSEC check isn&apos;t working right on CentOS 6 (which does not provide its own version of the check) and on SLES 12, which does.&lt;/p&gt;

&lt;p&gt;Andreas and I discussed this at LAD, I will share details of what we figured out as I work on fixing this.&lt;/p&gt;</comment>
                            <comment id="167925" author="paf" created="Fri, 30 Sep 2016 18:35:24 +0000"  >&lt;p&gt;James,&lt;/p&gt;

&lt;p&gt;I don&apos;t know exactly.  That&apos;s part of why I contributed the test, so it can run on the Intel infrastructure and hopefully on a few different kernel versions.&lt;/p&gt;</comment>
                            <comment id="167928" author="paf" created="Fri, 30 Sep 2016 18:43:23 +0000"  >&lt;p&gt;James,&lt;/p&gt;

&lt;p&gt;Can you point me at where in the upstream kernel?  I see this:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; inline void inode_has_no_xattr(struct inode *inode)
{
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!is_sxid(inode-&amp;gt;i_mode) &amp;amp;&amp;amp; (inode-&amp;gt;i_sb-&amp;gt;s_flags &amp;amp; MS_NOSEC))
                inode-&amp;gt;i_flags |= S_NOSEC;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But the second part of that is important too, perhaps?&lt;/p&gt;</comment>
                            <comment id="167929" author="paf" created="Fri, 30 Sep 2016 18:46:30 +0000"  >&lt;p&gt;One weird note - I don&apos;t see why the check is wrong on CentOS 6, where IS_NOSEC is not provided by the kernel.  In that case, it looks like our test should work.  But it doesn&apos;t seem to, at least if my test framework test is correct.  (I ran it outside of the framework, but still.)&lt;/p&gt;</comment>
                            <comment id="167935" author="simmonsja" created="Fri, 30 Sep 2016 19:12:33 +0000"  >&lt;p&gt;The commit that introduced the IS_NOSEC work is 69b4573296469fd3f70cf7044693074980517067 for the linux kernel.&lt;/p&gt;</comment>
                            <comment id="168530" author="adilger" created="Thu, 6 Oct 2016 17:32:07 +0000"  >&lt;p&gt;Patrick or James, it would be useful if you could provide a stack trace of where/how &lt;tt&gt;file_remove_perms()&lt;/tt&gt; gets called, because I just can&apos;t find it in the code.&lt;/p&gt;</comment>
                            <comment id="168545" author="paf" created="Thu, 6 Oct 2016 18:27:11 +0000"  >&lt;p&gt;Andreas -&lt;/p&gt;

&lt;p&gt;File_remove_privs.&lt;/p&gt;</comment>
                            <comment id="198809" author="gerrit" created="Sat, 10 Jun 2017 02:49:34 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/22853/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/22853/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8656&quot; title=&quot;IS_NOSEC check in vvp_io_write_start always returns false&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8656&quot;&gt;&lt;del&gt;LU-8656&lt;/del&gt;&lt;/a&gt; vvp: Add S_NOSEC support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8bc4b26453fb9d3296475ab3b9c9f3a9bf905afc&lt;/p&gt;</comment>
                            <comment id="198826" author="pjones" created="Sat, 10 Jun 2017 12:44:37 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="36156">LU-8025</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="37013">LU-8162</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzyq4v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>