<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:59:01 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-6299] OSP does not handle zero length xattr values well</title>
                <link>https://jira.whamcloud.com/browse/LU-6299</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The OSP/OUT code assumes that xattr values always have a non-zero length. For example,&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; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; out_xattr_set(struct tgt_session_info *tsi)
{
         ...
        buf = object_update_param_get(update, 1, &amp;amp;buf_len);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (buf == NULL || buf_len == 0) {
                CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;%s: empty buf &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; xattr set: rc = %d\n&quot;&lt;/span&gt;,
                       tgt_name(tsi-&amp;gt;tsi_tgt), -EPROTO);
                RETURN(err_serious(-EPROTO));
        }
        ...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here is what happens on 2.6.94-18-g7c82a9c&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;t:lustre-release# cd /mnt/lustre
t:lustre# lfs mkdir -c4 d0
t:lustre# setfattr -n user.foo d0

Message from syslogd@t at Feb 26 10:53:15 ...
 kernel:[  409.511761] LustreError: 4876:0:(osp_object.c:1132:__osp_xattr_set()) ASSERTION( buf-&amp;gt;lb_len &amp;gt; 0 &amp;amp;&amp;amp; buf-&amp;gt;lb_buf != ((void *)0) ) failed: 

Message from syslogd@t at Feb 26 10:53:15 ...
 kernel:[  409.515616] LustreError: 4876:0:(osp_object.c:1132:__osp_xattr_set()) LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="28872">LU-6299</key>
            <summary>OSP does not handle zero length xattr values well</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="di.wang">Di Wang</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Feb 2015 16:47:58 +0000</created>
                <updated>Fri, 1 Jul 2016 18:48:47 +0000</updated>
                            <resolved>Thu, 28 May 2015 18:10:52 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="108124" author="adilger" created="Thu, 26 Feb 2015 18:34:26 +0000"  >&lt;p&gt;It surprises me that we don&apos;t have a test for setting zero-length xattrs.   Maybe we do for regular files and not directories? Please add one for this test. The sanity test_102h and test_102k seem like they are close, but don&apos;t start with a zero-length xattr, and don&apos;t run on a directory.  Seems a test_102hb is needed for testing xattrs on directories.&lt;/p&gt;</comment>
                            <comment id="114893" author="adilger" created="Mon, 11 May 2015 17:30:17 +0000"  >&lt;p&gt;Di, any update on this one?&lt;/p&gt;</comment>
                            <comment id="114947" author="di.wang" created="Mon, 11 May 2015 21:31:23 +0000"  >&lt;p&gt;Ah, did not notice this one, will work on it today&lt;/p&gt;</comment>
                            <comment id="115144" author="gerrit" created="Wed, 13 May 2015 06:19:53 +0000"  >&lt;p&gt;wangdi (di.wang@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14787&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14787&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6299&quot; title=&quot;OSP does not handle zero length xattr values well&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6299&quot;&gt;&lt;del&gt;LU-6299&lt;/del&gt;&lt;/a&gt; osp: zero-length EA xattr_set for striped_dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 411b1631c005fd7e80f98f56b932363b9c3e13e5&lt;/p&gt;</comment>
                            <comment id="116707" author="gerrit" created="Thu, 28 May 2015 17:06:28 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14787/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14787/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6299&quot; title=&quot;OSP does not handle zero length xattr values well&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6299&quot;&gt;&lt;del&gt;LU-6299&lt;/del&gt;&lt;/a&gt; osp: zero-length EA xattr_set for striped_dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1cf0952fc28b061932cec40022486a7f78573414&lt;/p&gt;</comment>
                            <comment id="116728" author="pjones" created="Thu, 28 May 2015 18:10:52 +0000"  >&lt;p&gt;Landed for 2.8&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|hzx77b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>17639</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>