<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:36:47 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-3772] Crash in ptlrpc_service_nrs_cleanup() when out of memory</title>
                <link>https://jira.whamcloud.com/browse/LU-3772</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;LustreError: 25425:0:(service.c:156:ptlrpc_grow_req_bufs()) ost: Can&apos;t allocate request buffer
BUG: unable to handle kernel NULL pointer dereference at (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
IP: [&amp;lt;ffffffffa08dfc5c&amp;gt;] ptlrpc_service_nrs_cleanup+0xec/0x440 [ptlrpc]
PGD 5f76c067 PUD 5f76d067 PMD 0 
Oops: 0000 [#1] SMP 
last sysfs file: /sys/devices/system/cpu/possible
CPU 0 
Modules linked in: lustre(U) ofd(U) osp(U) lod(U) ost(U) mdt(U) osd_ldiskfs(U) fsfilt_ldiskfs(U) ldiskfs(U) mdd(U) mgs(U) lquota(U) lfsck(U) obdecho(U) mgc(U) lov(U) osc(U) mdc(U) lmv(U) fid(U) fld(U) ptlrpc(U) obdclass(U) lvfs(U) ksocklnd(U) lnet(U) libcfs(U) exportfs jbd sha512_generic sha256_generic crc32c_intel ebtable_nat ebtables xt_CHECKSUM iptable_mangle ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 ipt_REJECT iptable_filter ip_tables bridge stp llc autofs4 sunrpc ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 zfs(P)(U) zcommon(P)(U) znvpair(P)(U) fuse zavl(P)(U) zunicode(P)(U) vmhgfs(U) spl(U) zlib_deflate vsock(U) dm_mirror dm_region_hash dm_log uinput ppdev parport_pc parport e1000 snd_ens1371 snd_rawmidi snd_ac97_codec ac97_bus snd_seq snd_seq_device snd_pcm snd_timer snd soundcore snd_page_alloc sg vmware_balloon vmci(U) i2c_piix4 i2c_core shpchp ext4 mbcache jbd2 sr_mod cdrom sd_mod crc_t10dif pata_acpi ata_generic ata_piix mptspi mptscsih mptbase scsi_transport_spi dm_mod [last unloaded: libcfs]

Pid: 25425, comm: mount.lustre Tainted: P           ---------------    2.6.32 #1 VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform
RIP: 0010:[&amp;lt;ffffffffa08dfc5c&amp;gt;]  [&amp;lt;ffffffffa08dfc5c&amp;gt;] ptlrpc_service_nrs_cleanup+0xec/0x440 [ptlrpc]
RSP: 0018:ffff88005f75d688  EFLAGS: 00010217
RAX: 0000000000000000 RBX: ffff88003a3f68e0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa097ee40
RBP: ffff88005f75d6c8 R08: 0000000000000000 R09: 0000000000000002
R10: ffff8800767d0000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88005155a180 R14: ffff88003a3f6a18 R15: ffff88003a3f68e8
FS:  00007ffc79049700(0000) GS:ffff88000c400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 000000005f77e000 CR4: 00000000000406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
&lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; mount.lustre (pid: 25425, threadinfo ffff88005f75c000, task ffff8800374a0040)
Stack:
 ffff88003a3f6800 00ff88005f75d708 ffff88005f75d6c8 ffff88005155a180
&amp;lt;d&amp;gt; 0000000000000000 ffff88003a3f6848 ffff88003a3f6a18 ffff88005f75d708
&amp;lt;d&amp;gt; ffff88005f75d768 ffffffffa08a76e3 0000000000000000 ffff88003a3f6a04
Call Trace:
 [&amp;lt;ffffffffa08a76e3&amp;gt;] ptlrpc_unregister_service+0x653/0xfc0 [ptlrpc]
 [&amp;lt;ffffffffa08aa791&amp;gt;] ? ptlrpc_grow_req_bufs+0x231/0x2a0 [ptlrpc]
 [&amp;lt;ffffffffa08aafc2&amp;gt;] ptlrpc_register_service+0x7c2/0x17b0 [ptlrpc]
 [&amp;lt;ffffffffa07f85f9&amp;gt;] ost_setup+0x199/0xc40 [ost]
 [&amp;lt;ffffffffa06f7804&amp;gt;] obd_setup+0x1b4/0x2e0 [obdclass]
 [&amp;lt;ffffffffa06d74bc&amp;gt;] ? class_new_export+0x72c/0x9a0 [obdclass]
 [&amp;lt;ffffffffa06f7b38&amp;gt;] class_setup+0x208/0x870 [obdclass]
 [&amp;lt;ffffffffa06ff48c&amp;gt;] class_process_config+0xc7c/0x1c30 [obdclass]
 [&amp;lt;ffffffffa07044d3&amp;gt;] ? lustre_cfg_new+0x2d3/0x6e0 [obdclass]
 [&amp;lt;ffffffffa0704a29&amp;gt;] do_lcfg+0x149/0x480 [obdclass]
 [&amp;lt;ffffffffa0704df4&amp;gt;] lustre_start_simple+0x94/0x200 [obdclass]
 [&amp;lt;ffffffffa0739432&amp;gt;] server_start_targets+0x782/0x1ac0 [obdclass]
 [&amp;lt;ffffffffa0703f5c&amp;gt;] ? obd_set_info_async.clone.3+0xfc/0x3a0 [obdclass]
 [&amp;lt;ffffffffa06d3cd6&amp;gt;] ? class_name2dev+0x56/0xe0 [obdclass]
 [&amp;lt;ffffffffa0708de3&amp;gt;] ? lustre_start_mgc+0x493/0x1f50 [obdclass]
 [&amp;lt;ffffffffa073e21c&amp;gt;] server_fill_super+0xbbc/0x1a24 [obdclass]
 [&amp;lt;ffffffffa070aa78&amp;gt;] lustre_fill_super+0x1d8/0x530 [obdclass]
 [&amp;lt;ffffffffa070a8a0&amp;gt;] ? lustre_fill_super+0x0/0x530 [obdclass]
 [&amp;lt;ffffffff8117e2af&amp;gt;] get_sb_nodev+0x5f/0xa0
 [&amp;lt;ffffffffa07024b5&amp;gt;] lustre_get_sb+0x25/0x30 [obdclass]
 [&amp;lt;ffffffff8117df0b&amp;gt;] vfs_kern_mount+0x7b/0x1b0
 [&amp;lt;ffffffff8117e0b2&amp;gt;] do_kern_mount+0x52/0x130
 [&amp;lt;ffffffff8119c7c2&amp;gt;] do_mount+0x2d2/0x8d0
 [&amp;lt;ffffffff8119ce50&amp;gt;] sys_mount+0x90/0xe0
 [&amp;lt;ffffffff8100b0f2&amp;gt;] system_call_fastpath+0x16/0x1b
Code: 0b f2 09 00 83 f8 01 0f 84 05 03 00 00 48 8b 45 c0 c6 45 cf 00 48 8d 98 e0 00 00 00 48 8b 43 08 4c 8d 7b 08 80 4b 5c 02 4c 39 f8 &amp;lt;4c&amp;gt; 8b 30 75 0d eb 27 0f 1f 44 00 00 4c 89 f0 49 89 d6 48 8b 70 
RIP  [&amp;lt;ffffffffa08dfc5c&amp;gt;] ptlrpc_service_nrs_cleanup+0xec/0x440 [ptlrpc]
 RSP &amp;lt;ffff88005f75d688&amp;gt;
CR2: 0000000000000000
---[ end trace f9ea4b26383b6592 ]---
Kernel panic - not syncing: Fatal exception
Pid: 25425, comm: mount.lustre Tainted: P      D    ---------------    2.6.32 #1
Call Trace:
 [&amp;lt;ffffffff814fe08e&amp;gt;] ? panic+0xa0/0x168
 [&amp;lt;ffffffff81502224&amp;gt;] ? oops_end+0xe4/0x100
 [&amp;lt;ffffffff81043beb&amp;gt;] ? no_context+0xfb/0x260
 [&amp;lt;ffffffff8127abce&amp;gt;] ? number+0x2ee/0x320
 [&amp;lt;ffffffff81043e75&amp;gt;] ? __bad_area_nosemaphore+0x125/0x1e0
 [&amp;lt;ffffffff81043f9e&amp;gt;] ? bad_area+0x4e/0x60
 [&amp;lt;ffffffff81044750&amp;gt;] ? __do_page_fault+0x3d0/0x480
 [&amp;lt;ffffffff8127d316&amp;gt;] ? vsnprintf+0x2b6/0x5f0
 [&amp;lt;ffffffff8105b4c3&amp;gt;] ? perf_event_task_sched_out+0x33/0x80
 [&amp;lt;ffffffffa111327b&amp;gt;] ? cfs_set_ptldebug_header+0x2b/0xc0 [libcfs]
 [&amp;lt;ffffffff81054c70&amp;gt;] ? __dequeue_entity+0x30/0x50
 [&amp;lt;ffffffff810097dc&amp;gt;] ? __switch_to+0x1ac/0x320
 [&amp;lt;ffffffff815041de&amp;gt;] ? do_page_fault+0x3e/0xa0
 [&amp;lt;ffffffff81501595&amp;gt;] ? page_fault+0x25/0x30
 [&amp;lt;ffffffffa08dfc5c&amp;gt;] ? ptlrpc_service_nrs_cleanup+0xec/0x440 [ptlrpc]
 [&amp;lt;ffffffffa08dfb95&amp;gt;] ? ptlrpc_service_nrs_cleanup+0x25/0x440 [ptlrpc]
 [&amp;lt;ffffffffa08a76e3&amp;gt;] ? ptlrpc_unregister_service+0x653/0xfc0 [ptlrpc]
 [&amp;lt;ffffffffa08aa791&amp;gt;] ? ptlrpc_grow_req_bufs+0x231/0x2a0 [ptlrpc]
 [&amp;lt;ffffffffa08aafc2&amp;gt;] ? ptlrpc_register_service+0x7c2/0x17b0 [ptlrpc]
 [&amp;lt;ffffffffa07f85f9&amp;gt;] ? ost_setup+0x199/0xc40 [ost]
 [&amp;lt;ffffffffa06f7804&amp;gt;] ? obd_setup+0x1b4/0x2e0 [obdclass]
 [&amp;lt;ffffffffa06d74bc&amp;gt;] ? class_new_export+0x72c/0x9a0 [obdclass]
 [&amp;lt;ffffffffa06f7b38&amp;gt;] ? class_setup+0x208/0x870 [obdclass]
 [&amp;lt;ffffffffa06ff48c&amp;gt;] ? class_process_config+0xc7c/0x1c30 [obdclass]
 [&amp;lt;ffffffffa07044d3&amp;gt;] ? lustre_cfg_new+0x2d3/0x6e0 [obdclass]
 [&amp;lt;ffffffffa0704a29&amp;gt;] ? do_lcfg+0x149/0x480 [obdclass]
 [&amp;lt;ffffffffa0704df4&amp;gt;] ? lustre_start_simple+0x94/0x200 [obdclass]
 [&amp;lt;ffffffffa0739432&amp;gt;] ? server_start_targets+0x782/0x1ac0 [obdclass]
 [&amp;lt;ffffffffa0703f5c&amp;gt;] ? obd_set_info_async.clone.3+0xfc/0x3a0 [obdclass]
 [&amp;lt;ffffffffa06d3cd6&amp;gt;] ? class_name2dev+0x56/0xe0 [obdclass]
 [&amp;lt;ffffffffa0708de3&amp;gt;] ? lustre_start_mgc+0x493/0x1f50 [obdclass]
 [&amp;lt;ffffffffa073e21c&amp;gt;] ? server_fill_super+0xbbc/0x1a24 [obdclass]
 [&amp;lt;ffffffffa070aa78&amp;gt;] ? lustre_fill_super+0x1d8/0x530 [obdclass]
 [&amp;lt;ffffffffa070a8a0&amp;gt;] ? lustre_fill_super+0x0/0x530 [obdclass]
 [&amp;lt;ffffffff8117e2af&amp;gt;] ? get_sb_nodev+0x5f/0xa0
 [&amp;lt;ffffffffa07024b5&amp;gt;] ? lustre_get_sb+0x25/0x30 [obdclass]
 [&amp;lt;ffffffff8117df0b&amp;gt;] ? vfs_kern_mount+0x7b/0x1b0
 [&amp;lt;ffffffff8117e0b2&amp;gt;] ? do_kern_mount+0x52/0x130
 [&amp;lt;ffffffff8119c7c2&amp;gt;] ? do_mount+0x2d2/0x8d0
 [&amp;lt;ffffffff8119ce50&amp;gt;] ? sys_mount+0x90/0xe0
 [&amp;lt;ffffffff8100b0f2&amp;gt;] ? system_call_fastpath+0x16/0x1b
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In ptlrpc_register_service(), if the ptlrpc_service_part_init() failed for -ENOMEM, the following ptlrpc_service_nrs_setup() will be skipped, however, ptlrpc_service_nrs_cleanup() will always be called on cleanup no matter if all nrs are intialized, which will operate on uninitialized spin lock &amp;amp; list.&lt;/p&gt;</description>
                <environment></environment>
        <key id="20383">LU-3772</key>
            <summary>Crash in ptlrpc_service_nrs_cleanup() when out of memory</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="keith">Keith Mannthey</assignee>
                                    <reporter username="niu">Niu Yawei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Aug 2013 03:01:45 +0000</created>
                <updated>Fri, 14 Feb 2014 17:20:32 +0000</updated>
                            <resolved>Wed, 12 Feb 2014 07:18:56 +0000</resolved>
                                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="64476" author="jlevi" created="Mon, 19 Aug 2013 16:20:21 +0000"  >&lt;p&gt;Keith,&lt;br/&gt;
Would you be able to have a look at this one?&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                            <comment id="64650" author="keith" created="Tue, 20 Aug 2013 18:23:19 +0000"  >&lt;p&gt;Yes I will take a good look at this today. &lt;/p&gt;</comment>
                            <comment id="64702" author="keith" created="Wed, 21 Aug 2013 01:27:28 +0000"  >&lt;p&gt;A patch is available here for master: &lt;a href=&quot;http://review.whamcloud.com/7410&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7410&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="65421" author="keith" created="Fri, 30 Aug 2013 05:59:22 +0000"  >&lt;p&gt;I setup and VM to induce the error paths in this code path today. When I can fail ever allocation in ptlrpc_register_service() I will submit the next patch. Hopefully tomorrow. &lt;/p&gt;</comment>
                            <comment id="74628" author="adilger" created="Thu, 9 Jan 2014 02:45:18 +0000"  >&lt;p&gt;Hit this again when trying to run a git bisect on v2_5_50.&lt;/p&gt;</comment>
                            <comment id="76778" author="pjones" created="Tue, 11 Feb 2014 20:50:11 +0000"  >&lt;p&gt;#7410 has landed to master. Is that enough to close this ticket?&lt;/p&gt;</comment>
                            <comment id="76806" author="niu" created="Wed, 12 Feb 2014 07:18:56 +0000"  >&lt;p&gt;patch landed to master, I think it can be closed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="21935">LU-4229</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|hzvyhj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9771</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>