<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:22:38 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-15944] LNet: adding dst udsp rule before peer is discovered causes oops on peer discovery</title>
                <link>https://jira.whamcloud.com/browse/LU-15944</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This has been found and reported by &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=hornc&quot; class=&quot;user-hover&quot; rel=&quot;hornc&quot;&gt;hornc&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;The following sequence of commands causes a crash:&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;
# lnetctl peer del --prim_nid=10.1.0.60@o2ib1 # &amp;lt;-- make sure there no record of &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; peer
# lnetctl udsp add --dst tcp --prio 1
# lnetctl discover 192.168.122.60@tcp&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The trace is as follows:&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;
[5449781.397300] BUG: unable to handle kernel NULL pointer dereference at 0000000000000028
[5449781.399193] IP: [&amp;lt;ffffffffc0c36ddb&amp;gt;] lnet_udsp_apply_rule_on_lpni+0xbb/0x7b0 [lnet]
[5449781.400130] PGD 8000000055a7f067 PUD 4964e067 PMD 0&#160;
[5449781.400717] Oops: 0000 [#1] SMP&#160;
[5449781.418329] Call Trace:
[5449781.419109] &#160;[&amp;lt;ffffffffc0c35844&amp;gt;] lnet_udsp_apply_single_policy+0xf4/0x540 [lnet]
[5449781.419881] &#160;[&amp;lt;ffffffffc0c35cce&amp;gt;] lnet_udsp_apply_policies_helper.part.8+0x3e/0x70 [lnet]
[5449781.420644] &#160;[&amp;lt;ffffffffc0c37db6&amp;gt;] lnet_udsp_apply_policies_on_lpni+0x56/0x80 [lnet]
[5449781.421386] &#160;[&amp;lt;ffffffffc0c36d20&amp;gt;] ? lnet_udsp_apply_rte_rule_on_nets+0x130/0x130 [lnet]
[5449781.422228] &#160;[&amp;lt;ffffffffc0c28231&amp;gt;] lnet_peer_attach_peer_ni+0x161/0x600 [lnet]
[5449781.422987] &#160;[&amp;lt;ffffffffc0c2883e&amp;gt;] lnet_peer_ni_traffic_add+0x16e/0x2b0 [lnet]
[5449781.423761] &#160;[&amp;lt;ffffffffc0c2de25&amp;gt;] lnet_peerni_by_nid_locked+0xe5/0x140 [lnet]
[5449781.424521] &#160;[&amp;lt;ffffffffc0c2df5e&amp;gt;] lnet_nid2peerni_locked+0xde/0xf0 [lnet]
[5449781.425281] &#160;[&amp;lt;ffffffffc0bf8713&amp;gt;] LNetCtl+0x14d3/0x1c80 [lnet]
[5449781.426061] &#160;[&amp;lt;ffffffffc0bf59fb&amp;gt;] ? LNetNIInit+0x8b/0xd50 [lnet]
[5449781.426818] &#160;[&amp;lt;ffffffffc0c18a33&amp;gt;] lnet_ioctl+0x63/0x270 [lnet]
[5449781.427581] &#160;[&amp;lt;ffffffff8ad90b6f&amp;gt;] notifier_call_chain+0x4f/0x70
[5449781.428345] &#160;[&amp;lt;ffffffff8a6cc15d&amp;gt;] __blocking_notifier_call_chain+0x4d/0x70
[5449781.429083] &#160;[&amp;lt;ffffffff8a6cc196&amp;gt;] blocking_notifier_call_chain+0x16/0x20
[5449781.429837] &#160;[&amp;lt;ffffffffc0bbc3ad&amp;gt;] libcfs_psdev_ioctl+0x43d/0x5c0 [libcfs]
[5449781.430580] &#160;[&amp;lt;ffffffff8a863590&amp;gt;] do_vfs_ioctl+0x3a0/0x5b0
[5449781.431319] &#160;[&amp;lt;ffffffff8a863841&amp;gt;] SyS_ioctl+0xa1/0xc0
[5449781.432065] &#160;[&amp;lt;ffffffff8ad95f92&amp;gt;] system_call_fastpath+0x25/0x2a
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="70743">LU-15944</key>
            <summary>LNet: adding dst udsp rule before peer is discovered causes oops on peer discovery</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="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="cbordage">Cyril Bordage</assignee>
                                    <reporter username="ssmirnov">Serguei Smirnov</reporter>
                        <labels>
                            <label>lnet</label>
                            <label>udsp</label>
                    </labels>
                <created>Tue, 14 Jun 2022 19:37:44 +0000</created>
                <updated>Wed, 8 Mar 2023 04:08:40 +0000</updated>
                            <resolved>Wed, 8 Mar 2023 04:08:40 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="337755" author="ssmirnov" created="Tue, 14 Jun 2022 19:42:39 +0000"  >&lt;p&gt;Temporary fix applied by Chris locally:&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;
diff --git a/lnet/lnet/udsp.c b/lnet/lnet/udsp.c
index 08c1a7fccc..1f55b9289f 100644
--- a/lnet/lnet/udsp.c
+++ b/lnet/lnet/udsp.c
@@ -536,6 +536,9 @@ lnet_udsp_apply_rule_on_lpni(struct udsp_info *udi)
&#160; &#160; &#160; &#160; &#160;&amp;amp;lp_match-&amp;gt;ud_net_id.udn_net_num_range,
&#160; &#160; &#160; &#160; &#160;&amp;amp;lp_match-&amp;gt;ud_addr_range);
+ &#160; &#160;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!udi-&amp;gt;udi_lpn)
+ &#160; &#160; &#160; &#160;udi-&amp;gt;udi_lpn = lpni-&amp;gt;lpni_peer_net;
+
&#160; &#160; &#160;&lt;span class=&quot;code-comment&quot;&gt;/* check &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; looking &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; a net match */&lt;/span&gt;
&#160; &#160; &#160;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!rc &amp;amp;&amp;amp;
&#160; &#160; &#160; &#160; &#160;(lnet_get_list_len(&amp;amp;lp_match-&amp;gt;ud_addr_range) ||&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This prevents the crash, but causes nid priority to be inherited from the previously set net priority for the peer.&lt;/p&gt;</comment>
                            <comment id="348971" author="gerrit" created="Fri, 7 Oct 2022 08:45:36 +0000"  >&lt;p&gt;&quot;Cyril Bordage &amp;lt;cbordage@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/48801&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/48801&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15944&quot; title=&quot;LNet: adding dst udsp rule before peer is discovered causes oops on peer discovery&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15944&quot;&gt;&lt;del&gt;LU-15944&lt;/del&gt;&lt;/a&gt; lnet: remove crash with UDSP&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cea355d4837c945a3f0193fb92331abb65c13d5c&lt;/p&gt;</comment>
                            <comment id="365191" author="gerrit" created="Wed, 8 Mar 2023 03:28:09 +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/+/48801/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/48801/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15944&quot; title=&quot;LNet: adding dst udsp rule before peer is discovered causes oops on peer discovery&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15944&quot;&gt;&lt;del&gt;LU-15944&lt;/del&gt;&lt;/a&gt; lnet: remove crash with UDSP&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c56b9455f05f760aea6785c47061761bbc76f3b6&lt;/p&gt;</comment>
                            <comment id="365201" author="pjones" created="Wed, 8 Mar 2023 04:08:40 +0000"  >&lt;p&gt;Landed for 2.16&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|i02s47:</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>