<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:33:15 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-17174] lustre hashes broken now.</title>
                <link>https://jira.whamcloud.com/browse/LU-17174</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;lustre hash functions broken now after landing&lt;br/&gt;
commit 239e826876e5e20405e14a180a8fd4377d6553b2&lt;br/&gt;
Author: Timothy Day &amp;lt;timday@amazon.com&amp;gt;&lt;br/&gt;
Date:   Mon Feb 6 20:02:15 2023 +0000&lt;/p&gt;

&lt;p&gt;    &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16518&quot; title=&quot;Fix Clang build errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16518&quot;&gt;&lt;del&gt;LU-16518&lt;/del&gt;&lt;/a&gt; misc: use fixed hash 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-keyword&quot;&gt;static&lt;/span&gt; __always_inline u32 cfs_hash_64(u64 val, unsigned &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; bits)
{
#&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; BITS_PER_LONG == 64
        / 64x64-bit multiply is efficient on all 64-bit processors /
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; val * GOLDEN_RATIO_64 &amp;gt;&amp;gt; (64 - bits);
#&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
        / Hash 64 bits using only 32x32-bit multiply. /
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; cfs_hash_32(((u32)val ^ ((val &amp;gt;&amp;gt; 32) * GOLDEN_RATIO_32)), bits);
#endif
}

 &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; unsigned
 ldlm_export_flock_hash(struct cfs_hash hs, &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; void key, unsigned mask)
 {
-       &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; cfs_hash_u64_hash(*(__u64 *)key, mask);
+       &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; cfs_hash_64(*(__u64 *)key, 0) &amp;amp; mask;
 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;this change means we have shift for 64bits for any result, it caused a return zero/0xfffff... at any input and warning with debug kernel.&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;[10939.945272] ================================================================================
[10939.946792] UBSAN: Undefined behaviour in include/linux/hash.h:81:31
[10939.948193] shift exponent 64 is too large for 64-bit type &apos;long long unsigned int&apos;
[10939.949869] CPU: 2 PID: 384127 Comm: ll_mgs_0002 Tainted: G    B   W  OE    ---------r-  - 4.18.0-305.25.1.el8_4.x86_64+debug #1
[10939.952333] Hardware name: Red Hat KVM/RHEL-AV, BIOS 1.16.0-3.module_el8.7.0+3346+68867adb 04/01/2014
[10939.954274] Call Trace:
[10939.954823]  dump_stack+0x8e/0xd0
[10939.955543]  ubsan_epilogue+0x5/0x21
[10939.956329]  __ubsan_handle_shift_out_of_bounds.cold.13+0x14/0x98
[10939.957581]  ? rcu_read_unlock+0x50/0x50
[10939.958418]  ? lock_acquired+0x6c6/0xe60
[10939.959367]  ? lprocfs_stats_lock+0x15d/0x1b0 [obdclass]
[10939.960699]  ldlm_export_lock_hash+0x49/0x4d [ptlrpc]
[10939.961715]  cfs_hash_bd_from_key+0x88/0x2e0 [libcfs]
[10939.962821]  cfs_hash_add+0xef/0xb60 [libcfs]
[10939.963830]  ? class_handle_hash+0x274/0x5f0 [obdclass]
[10939.964961]  ? cfs_hash_rehash+0x7a0/0x7a0 [libcfs]
[10939.966167]  ? ldlm_lock_create+0x734/0x1e20 [ptlrpc]
[10939.967287]  ldlm_handle_enqueue+0x8dc/0x48e0 [ptlrpc]
[10939.968352]  ? do_raw_spin_unlock+0x14b/0x230
[10939.969377]  ? ldlm_setup+0x1af0/0x1af0 [ptlrpc]
[10939.970509]  ? __req_capsule_get+0x7ff/0x11f0 [ptlrpc]
[10939.971710]  ? lustre_swab_ldlm_lock_desc+0x230/0x230 [ptlrpc]
[10939.972973]  tgt_enqueue+0x148/0x5a0 [ptlrpc]
[10939.974139]  tgt_request_handle+0x179c/0x3ff0 [ptlrpc]
[10939.975403]  ? tgt_brw_write+0x5a00/0x5a00 [ptlrpc]
[10939.976594]  ptlrpc_server_handle_request+0xa34/0x1f50 [ptlrpc]
[10939.977936]  ? lu_context_exit+0x15a/0x2c0 [obdclass]
[10939.979045]  ptlrpc_main+0x1ae0/0x2f40 [ptlrpc]
[10939.980062]  ? __kthread_parkme+0xc4/0x190
[10939.981068]  ? ptlrpc_wait_event+0xf40/0xf40 [ptlrpc]
[10939.982107]  kthread+0x344/0x410
[10939.982811]  ? kthread_insert_work_sanity_check+0xd0/0xd0
[10939.983941]  ret_from_fork+0x3a/0x50
[10939.984776] ================================================================================
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="78303">LU-17174</key>
            <summary>lustre hashes broken now.</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="shadow">Alexey Lyashkov</assignee>
                                    <reporter username="shadow">Alexey Lyashkov</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Oct 2023 18:58:34 +0000</created>
                <updated>Sat, 2 Dec 2023 05:39:48 +0000</updated>
                            <resolved>Wed, 29 Nov 2023 22:42:39 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="388611" author="gerrit" created="Tue, 10 Oct 2023 08:39:37 +0000"  >&lt;p&gt;&quot;Alexey Lyashkov &amp;lt;alexey.lyashkov@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52611&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52611&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17174&quot; title=&quot;lustre hashes broken now.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17174&quot;&gt;&lt;del&gt;LU-17174&lt;/del&gt;&lt;/a&gt; misc: fix hash functions&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1067d1baf9d5592cb249ecd7562630bbbb32f5b4&lt;/p&gt;</comment>
                            <comment id="394798" author="gerrit" created="Wed, 29 Nov 2023 21:24:27 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52611/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52611/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17174&quot; title=&quot;lustre hashes broken now.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17174&quot;&gt;&lt;del&gt;LU-17174&lt;/del&gt;&lt;/a&gt; misc: fix hash functions&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ce404bd07c37f45d8c8fe0cf3e3ecf6e18740f43&lt;/p&gt;</comment>
                            <comment id="394824" author="pjones" created="Wed, 29 Nov 2023 22:42:39 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="395101" author="bzzz" created="Fri, 1 Dec 2023 09:11:49 +0000"  >&lt;p&gt;I noticed slowdown running FSTYPE=zfs ONLY=123f  bash sanity.sh:&lt;br/&gt;
with 52611 applied: PASS 123f (380s)&lt;br/&gt;
with 52611 reverted: PASS 123f (106s)&lt;/p&gt;

&lt;p&gt;just checked the local runtime for subtests:&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;
sanity-benchmark@bonnie	77	349
sanity-quota@38		472	693
sanity@103e		630	754
sanity@123e		21	114
sanity@123ab		58	145
sanity@55b		268	337
conf-sanity@135		82	137
sanity@123aa		103	151
sanity@51e		134	171
sanity-lfsck@10		77	107
conf-sanity@48		324	352
sanity@60c		19	41
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="395118" author="shadow" created="Fri, 1 Dec 2023 13:39:36 +0000"  >&lt;p&gt;Alex can you look into lu_site stats ?&lt;/p&gt;</comment>
                            <comment id="395241" author="bzzz" created="Sat, 2 Dec 2023 05:39:48 +0000"  >&lt;p&gt;yes, sure, though I guess you can do as well, nothing special..&lt;/p&gt;

&lt;p&gt;with:&lt;br/&gt;
mdt.lustre-MDT0000.site_stats=93/104 0/256 0 61595 51429 73 0 0 1&lt;br/&gt;
obdfilter.lustre-OST0000.site_stats=23/2067 0/4096 0 20588 39329 20577 0 0 0&lt;br/&gt;
obdfilter.lustre-OST0001.site_stats=23/2069 0/4096 0 20588 39339 20577 0 0 0&lt;/p&gt;

&lt;p&gt;w/o:&lt;br/&gt;
mdt.lustre-MDT0000.site_stats=93/104 0/256 0 61595 51430 73 0 0 1&lt;br/&gt;
obdfilter.lustre-OST0000.site_stats=30/7335 0/16384 0 20908 34390 20897 0 0 0&lt;br/&gt;
obdfilter.lustre-OST0001.site_stats=26/7303 0/16384 0 20876 34394 20865 0 0 0&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|i03xtj:</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>