<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:44:59 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-4689] mds returns EINVAL for hsm commands if fsname is 8-byte aligned</title>
                <link>https://jira.whamcloud.com/browse/LU-4689</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If a filesystem name is 8-byte aligned, all HSM commands will get -EINVALID. The root cause is in following code:&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-comment&quot;&gt;/* Return pointer to first hai in action list */&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; inline struct hsm_action_item *hai_first(struct hsm_action_list *hal)
{
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; (struct hsm_action_item *)(hal-&amp;gt;hal_fsname +
                                          cfs_size_round(strlen(hal-&amp;gt; \
                                                                hal_fsname)));
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;hal_fsname is a string terminated with NULL. If strlen(hal-&amp;gt;hal_fsname) is 8 aligned, hai_first() ends up eating the terminating NULL character.&lt;/p&gt;

&lt;p&gt;Now when the caller first time call hai_first() and set proper value to the returning first hsm_action_item, it ends up appending some non-NULL characters at the address of hal_fsname + strlen(hal_fsname). The side effect is that the next time someone calls hal_first(), strlen(hal-&amp;gt;hal_fsname) is larger than the first time. That would result in misplacement of hsm_action_item and causes hal_is_sane() check to fail.&lt;/p&gt;</description>
                <environment>b2_5 and master have the same issue.</environment>
        <key id="23391">LU-4689</key>
            <summary>mds returns EINVAL for hsm commands if fsname is 8-byte aligned</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="jamesanunez">James Nunez</assignee>
                                    <reporter username="bergwolf">Peng Tao</reporter>
                        <labels>
                            <label>HSM</label>
                            <label>mn4</label>
                            <label>patch</label>
                    </labels>
                <created>Fri, 28 Feb 2014 07:02:26 +0000</created>
                <updated>Tue, 11 Mar 2014 13:46:16 +0000</updated>
                            <resolved>Mon, 10 Mar 2014 18:05:29 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="78080" author="bergwolf" created="Fri, 28 Feb 2014 07:04:52 +0000"  >&lt;p&gt;patch tracking at &lt;a href=&quot;http://review.whamcloud.com/9431&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9431&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="78087" author="pjones" created="Fri, 28 Feb 2014 13:41:08 +0000"  >&lt;p&gt;James&lt;/p&gt;

&lt;p&gt;Could you please look after this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="78306" author="bergwolf" created="Tue, 4 Mar 2014 02:22:21 +0000"  >&lt;p&gt;The patch for master has been landed. I ported it to b2_5 that has the same issue. Please see &lt;a href=&quot;http://review.whamcloud.com/9468&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9468&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="78901" author="jlevi" created="Mon, 10 Mar 2014 18:05:29 +0000"  >&lt;p&gt;Patch landed to Master and will be landed to b2_5&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|hzwgd3:</customfieldvalue>

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