<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:08:20 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-14276] NULL pointer dereference in obd_set_max_mod_rpcs_in_flight()</title>
                <link>https://jira.whamcloud.com/browse/LU-14276</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;
Lustre: DEBUG MARKER: == conf-sanity test 90c: check max_mod_rpcs_in_flight update limits ================================== 00:36:11 (1608665771)
..
Lustre: Unmounted lustre-client
Lustre: Modifying parameter lustre.mdc.lustre-MDT0000-mdc-*.max_rpcs_in_flight in log params
Lustre: Skipped 1 previous similar message
BUG: unable to handle kernel NULL pointer dereference at 00000000000000e0
PGD 143a13067 P4D 143a13067 PUD 120aa8067 PMD 0 
Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
CPU: 1 PID: 15115 Comm: lctl Tainted: G        W  O     --------- ---  4.18.0 #34
Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
RIP: 0010:obd_set_max_mod_rpcs_in_flight+0x3a/0x2e0 [obdclass]
Code: be e7 ff 40 41 55 41 54 41 89 f4 55 89 f5 53 48 89 fb 4c 8b af c8 00 00 00 8b 87 4c 02 00 00 74 7d f6 05 18 be e7 ff 20 74 74 &amp;lt;49&amp;gt; 8b 95 e0 00 00 00 48 b9 20 00 00 00 5b 08 00 00 48 c7 c7 e0 ac
RSP: 0018:ffff880158a0fde8 EFLAGS: 00010202
RAX: 0000000000000008 RBX: ffff880145b050e0 RCX: 0000000000000007
RDX: 00000000ffffffbf RSI: 0000000000000007 RDI: ffff880145b050e0
RBP: 0000000000000007 R08: 0000000000000007 R09: 0000000000000001
R10: 000000000000000a R11: f000000000000000 R12: 0000000000000007
R13: 0000000000000000 R14: ffff880158a0ff10 R15: ffff880120a88e20
FS:  00007fc7a8b42740(0000) GS:ffff88016b000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000000e0 CR3: 000000015ad60000 CR4: 00000000000006a0
Call Trace:
 max_mod_rpcs_in_flight_store+0x3c/0x50 [mdc]
 kernfs_fop_write+0x10d/0x190
 __vfs_write+0x1f/0x160
 ? rcu_sync_lockdep_assert+0x9/0x50
 ? __sb_start_write+0x13f/0x1a0
 ? vfs_write+0x183/0x1b0
 vfs_write+0xba/0x1b0
 ksys_write+0x3d/0xa0
 do_syscall_64+0x4b/0x1a0
 entry_SYSCALL_64_after_hwframe+0x6a/0xdf
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;in gdb:&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;
(gdb) p/x &amp;amp;((struct client_obd *)0)-&amp;gt;cl_import
$1 = 0xc8
(gdb) p/x &amp;amp;((struct client_obd *)0)-&amp;gt;cl_max_rpcs_in_flight
$2 = 0x24c
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;in objdump:&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;
000000000001e952 &amp;lt;obd_set_max_mod_rpcs_in_flight+0x22&amp;gt; mov    0xc8(%rdi),%r13
000000000001e959 &amp;lt;obd_set_max_mod_rpcs_in_flight+0x29&amp;gt; mov    0x24c(%rdi),%eax
000000000001e95f &amp;lt;obd_set_max_mod_rpcs_in_flight+0x2f&amp;gt; je     000000000001e9de &amp;lt;obd_set_max_mod_rpcs_in_flight+0xae&amp;gt;
000000000001e961 &amp;lt;obd_set_max_mod_rpcs_in_flight+0x31&amp;gt; testb  $0x20,0x0(%rip)        # 000000000001e968 &amp;lt;obd_set_max_mod_rpcs_in_flight+0x38&amp;gt;
                        1e963: R_X86_64_PC32    libcfs_subsystem_debug-0x5
000000000001e968 &amp;lt;obd_set_max_mod_rpcs_in_flight+0x38&amp;gt; je     000000000001e9de &amp;lt;obd_set_max_mod_rpcs_in_flight+0xae&amp;gt;
000000000001e96a &amp;lt;obd_set_max_mod_rpcs_in_flight+0x3a&amp;gt; mov    0xe0(%r13),%rdx

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;so this is cli-&amp;gt;cl_import=NULL in&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;
        ocd = &amp;amp;cli-&amp;gt;cl_import-&amp;gt;imp_connect_data;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="62150">LU-14276</key>
            <summary>NULL pointer dereference in obd_set_max_mod_rpcs_in_flight()</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="bzzz">Alex Zhuravlev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Dec 2020 19:55:12 +0000</created>
                <updated>Tue, 22 Dec 2020 19:55:12 +0000</updated>
                                            <version>Upstream</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                    <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|i01i53:</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>