<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:36:05 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-17517] shift exponent 65 is too large for 64-bit type in lov_request.c</title>
                <link>https://jira.whamcloud.com/browse/LU-17517</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;One of our clients just gave us this:&lt;/p&gt;

&lt;p&gt;[ &#160;201.440391] UBSAN: shift-out-of-bounds in /var/lib/dkms/lustre-client-modules/2.15.4-hpc2n0.2/build/lustre/lov/lov_request.c:230:23&lt;br/&gt;
[ &#160;201.452215] shift exponent 65 is too large for 64-bit type &apos;long long unsigned int&apos;&lt;br/&gt;
[ &#160;201.460108] ================================================================================&lt;br/&gt;
[ &#160;201.468547] ================================================================================&lt;br/&gt;
[ &#160;201.476985] UBSAN: shift-out-of-bounds in /var/lib/dkms/lustre-client-modules/2.15.4-hpc2n0.2/build/lustre/lov/lov_request.c:231:23&lt;br/&gt;
[ &#160;201.488810] shift exponent 65 is too large for 64-bit type &apos;long long unsigned int&apos;&lt;br/&gt;
[ &#160;201.496944] ================================================================================&lt;br/&gt;
[ &#160;201.505378] ================================================================================&lt;br/&gt;
[ &#160;201.513819] UBSAN: shift-out-of-bounds in /var/lib/dkms/lustre-client-modules/2.15.4-hpc2n0.2/build/lustre/lov/lov_request.c:232:23&lt;br/&gt;
[ &#160;201.525642] shift exponent 65 is too large for 64-bit type &apos;long long unsigned int&apos;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="80725">LU-17517</key>
            <summary>shift exponent 65 is too large for 64-bit type in lov_request.c</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="ake_s">&#197;ke Sandgren</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Feb 2024 15:31:37 +0000</created>
                <updated>Fri, 9 Feb 2024 01:07:35 +0000</updated>
                                            <version>Lustre 2.15.4</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="403319" author="JIRAUSER18433" created="Fri, 9 Feb 2024 01:05:25 +0000"  >&lt;p&gt;&lt;tt&gt;Seems like in `lov_update_statfs()`, the logic&lt;/tt&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;tt&gt;&#160;200 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; for (shift = 0; shift &amp;lt;= 64; ++shift) {&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160;201 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (tmp &amp;amp; 1) {&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160;202 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (quit)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160;203 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; break;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160;204 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; quit = 1;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160;205 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; shift = 0;&lt;/tt&gt;&lt;br/&gt;
&#160; 206 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&lt;br/&gt;
&lt;tt&gt;&#160;207 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; tmp &amp;gt;&amp;gt;= 1;&lt;/tt&gt;&lt;br/&gt;
&#160; 208 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;tt&gt;is wrong. If we finish the loop without breaking, `shift` will be 65. I think if `shift` is 64, that&apos;s also undefined behavior. It&apos;d have to be capped at 63.&lt;/tt&gt;&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|i04auv:</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>