<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:44:51 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-4674] __{LITTLE,BIG}_ENDIAN macros used incorrectly</title>
                <link>https://jira.whamcloud.com/browse/LU-4674</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There are a few places in the source where __&lt;/p&gt;
{LITTLE,BIG}
&lt;p&gt;_ENDIAN is tested with #ifdef:&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;static __inline__ int ext2_set_bit(int nr, void *addr)
{
#ifdef __BIG_ENDIAN
        return set_bit((nr ^ ((BITS_PER_LONG-1) &amp;amp; ~0x7)), addr);
#else
        return set_bit(nr, addr);
#endif
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;const struct dt_rec *osd_quota_pack(struct osd_object *obj,
                                    const struct dt_rec *rec,
                                    union lquota_rec *quota_rec)
{
#ifdef __BIG_ENDIAN
        struct iam_descr        *descr;

        LASSERT(obj-&amp;gt;oo_dir != NULL);
        descr = obj-&amp;gt;oo_dir-&amp;gt;od_container.ic_descr;

        memcpy(quota_rec, rec, descr-&amp;gt;id_rec_size);

        osd_quota_swab((char *)quota_rec, descr-&amp;gt;id_rec_size);
        return (const struct dt_rec *)quota_rec;
#else
        return rec;
#endif
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In userspace, including endian.h always defines __BIG_ENDIAN to 4321. The correct test is &apos;#if __BYTE_ORDER == __BIG_ENDIAN&apos;. All uses of these macros should be audited.&lt;/p&gt;</description>
                <environment></environment>
        <key id="23325">LU-4674</key>
            <summary>__{LITTLE,BIG}_ENDIAN macros used incorrectly</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="1">Fixed</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>cleanup</label>
                            <label>endianness</label>
                            <label>patch</label>
                    </labels>
                <created>Wed, 26 Feb 2014 20:33:25 +0000</created>
                <updated>Wed, 26 Mar 2014 15:48:04 +0000</updated>
                            <resolved>Wed, 26 Mar 2014 15:47:56 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="79223" author="spimpale" created="Thu, 13 Mar 2014 11:00:43 +0000"  >&lt;p&gt;patch: &lt;a href=&quot;http://review.whamcloud.com/#/c/9641/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9641/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="80300" author="jhammond" created="Wed, 26 Mar 2014 15:47:56 +0000"  >&lt;p&gt;Patch landed to master. Thanks Swapnil.&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|hzwg0v:</customfieldvalue>

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