<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:24:55 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-9296] ptlrpc_check_set()) @@@ bad phase ebc0de00 LBUG when OOM</title>
                <link>https://jira.whamcloud.com/browse/LU-9296</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;To reproduce inject a &lt;tt&gt;-ENOMEM&lt;/tt&gt; return from &lt;tt&gt;LNetMEAttach()&lt;/tt&gt; in &lt;tt&gt;ptl_send_rpc()&lt;/tt&gt;:&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;diff --git a/lustre/ptlrpc/niobuf.c b/lustre/ptlrpc/niobuf.c
index e80d5b0..a4864a2 100644
--- a/lustre/ptlrpc/niobuf.c
+++ b/lustre/ptlrpc/niobuf.c
@@ -822,9 +822,12 @@ int ptl_send_rpc(struct ptlrpc_request *request, int noreply)
                         request-&amp;gt;rq_repmsg = NULL;
                 }
 
-                rc = LNetMEAttach(request-&amp;gt;rq_reply_portal,/*XXX FIXME bug 249*/
-                                  connection-&amp;gt;c_peer, request-&amp;gt;rq_xid, 0,
-                                  LNET_UNLINK, LNET_INS_AFTER, &amp;amp;reply_me_h);
+               if (OBD_FAIL_CHECK(0x9000))
+                       rc = -ENOMEM;
+               else
+                       rc = LNetMEAttach(request-&amp;gt;rq_reply_portal,/*XXX FIXME bug 249*/
+                                         connection-&amp;gt;c_peer, request-&amp;gt;rq_xid, 0,
+                                         LNET_UNLINK, LNET_INS_AFTER, &amp;amp;reply_me_h);
                 if (rc != 0) {
                         CERROR(&quot;LNetMEAttach failed: %d\n&quot;, rc);
                         LASSERT (rc == -ENOMEM);
&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;[  144.795157] LustreError: 2790:0:(niobuf.c:832:ptl_send_rpc()) LNetMEAttach failed: -12
[  144.797953] LustreError: 2790:0:(client.c:1740:ptlrpc_check_set()) @@@ bad phase ebc0de00  req@ff\
ff8801ee4dfc00 x1563854704784176/t0(0) o2-&amp;gt;lustre-OST0001-osc-MDT0000@0@lo:28/4 lens 560/432 e 0 to \
0 dl 0 ref 1 fl New:/0/ffffffff rc 0/-1
[  144.805042] LustreError: 2790:0:(client.c:1741:ptlrpc_check_set()) LBUG
[  144.807415] Pid: 2790, comm: ptlrpcd_00_06
[  144.808852]
[  144.808852] Call Trace:
[  144.810310]  [&amp;lt;ffffffffa07b57f3&amp;gt;] libcfs_debug_dumpstack+0x53/0x80 [libcfs]
[  144.812804]  [&amp;lt;ffffffffa07b5861&amp;gt;] lbug_with_loc+0x41/0xb0 [libcfs]
[  144.815261]  [&amp;lt;ffffffffa0c6b725&amp;gt;] ptlrpc_check_set.part.22+0xa15/0x1dd0 [ptlrpc]
[  144.818524]  [&amp;lt;ffffffffa0c6cb3b&amp;gt;] ptlrpc_check_set+0x5b/0xe0 [ptlrpc]
[  144.820082]  [&amp;lt;ffffffffa0c98d0b&amp;gt;] ptlrpcd_check+0x4db/0x5d0 [ptlrpc]
[  144.822272]  [&amp;lt;ffffffffa0c990bb&amp;gt;] ptlrpcd+0x2bb/0x560 [ptlrpc]
[  144.824208]  [&amp;lt;ffffffff810b8940&amp;gt;] ? default_wake_function+0x0/0x20
[  144.826392]  [&amp;lt;ffffffffa0c98e00&amp;gt;] ? ptlrpcd+0x0/0x560 [ptlrpc]
[  144.829318]  [&amp;lt;ffffffff810a5b8f&amp;gt;] kthread+0xcf/0xe0
[  144.831181]  [&amp;lt;ffffffff810a5ac0&amp;gt;] ? kthread+0x0/0xe0
[  144.832725]  [&amp;lt;ffffffff81646b98&amp;gt;] ret_from_fork+0x58/0x90
[  144.834325]  [&amp;lt;ffffffff810a5ac0&amp;gt;] ? kthread+0x0/0xe0
[  144.836045]
[  144.836596] Kernel panic - not syncing: LBUG
[  144.837031] CPU: 0 PID: 2790 Comm: ptlrpcd_00_06 Tainted: P           OE  ------------   3.10.0-327.36.1.el7_lustre.x86_64 #1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In this case &lt;tt&gt;ptl_send_rpc()&lt;/tt&gt; is returning &lt;tt&gt;-ENOMEM&lt;/tt&gt; without first setting &lt;tt&gt;rq_sent&lt;/tt&gt;. But the logic &lt;tt&gt;ptlrpc_check_set()&lt;/tt&gt; expects that &lt;tt&gt;rq_sent&lt;/tt&gt; be set when &lt;tt&gt;-ENOMEM&lt;/tt&gt; is returned.&lt;/p&gt;</description>
                <environment></environment>
        <key id="45315">LU-9296</key>
            <summary>ptlrpc_check_set()) @@@ bad phase ebc0de00 LBUG when OOM</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="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>ptlrpc</label>
                    </labels>
                <created>Wed, 5 Apr 2017 16:17:53 +0000</created>
                <updated>Tue, 16 May 2017 07:17:19 +0000</updated>
                            <resolved>Mon, 1 May 2017 18:47:28 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                    <version>Lustre 2.8.0</version>
                    <version>Lustre 2.9.0</version>
                    <version>Lustre 2.10.0</version>
                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="191346" author="gerrit" created="Mon, 10 Apr 2017 14:26:18 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/26470&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/26470&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9296&quot; title=&quot;ptlrpc_check_set()) @@@ bad phase ebc0de00 LBUG when OOM&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9296&quot;&gt;&lt;del&gt;LU-9296&lt;/del&gt;&lt;/a&gt; ptlrcp: set rq_sent when send fails due to ENOMEM&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 89bfa76651b5d37cfe1f8ddd32df52d38b2ba175&lt;/p&gt;</comment>
                            <comment id="193240" author="jgmitter" created="Mon, 24 Apr 2017 16:58:52 +0000"  >&lt;p&gt;John already has a patch in flight.&lt;/p&gt;</comment>
                            <comment id="194039" author="gerrit" created="Mon, 1 May 2017 17:49:34 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/26470/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/26470/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9296&quot; title=&quot;ptlrpc_check_set()) @@@ bad phase ebc0de00 LBUG when OOM&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9296&quot;&gt;&lt;del&gt;LU-9296&lt;/del&gt;&lt;/a&gt; ptlrpc: set rq_sent when send fails due to -ENOMEM&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 32c3775bab8902e533fd153a357b46da12076933&lt;/p&gt;</comment>
                            <comment id="194065" author="pjones" created="Mon, 1 May 2017 18:47:28 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="45756">LU-9414</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hzz9ef:</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>