<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:06:39 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-7177] First write RPC may set stale ownership to the OST object</title>
                <link>https://jira.whamcloud.com/browse/LU-7177</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When the first write RPC arrives OST, it calls ofd_write_attr_set() -&amp;gt; ofd_attr_handle_ugid() to check if S_ISUID or S_ISGID is present, if the flag is present, it assumes the object is just pre-created without proper uid/gid setting, and it&apos;ll set the uid/gid carried from client to initialize the ownership of the object.&lt;/p&gt;

&lt;p&gt;However, there isn&apos;t any locking in ofd_attr_handle_ugid() to serialize the ownership changing by first write and real chown/chgrp calls, that could lead to the first write overwrite the correct ownership set by chown/chgrp with stale one.&lt;/p&gt;

&lt;p&gt;I think a ofd_write_lock() could be introduced in ofd_attr_handle_ugid() to eliminate such race.&lt;/p&gt;</description>
                <environment></environment>
        <key id="32183">LU-7177</key>
            <summary>First write RPC may set stale ownership to the OST object</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="6">Not a Bug</resolution>
                                        <assignee username="niu">Niu Yawei</assignee>
                                    <reporter username="niu">Niu Yawei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Sep 2015 07:52:34 +0000</created>
                <updated>Thu, 17 Sep 2015 11:35:05 +0000</updated>
                            <resolved>Thu, 17 Sep 2015 11:35:05 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="127617" author="niu" created="Thu, 17 Sep 2015 11:35:05 +0000"  >&lt;p&gt;OST write is covered by ofd_read_lock(), the race doesn&apos;t exist.&lt;/p&gt;</comment>
                    </comments>
                    <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|hzxnx3:</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>