<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:06:50 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-7199] Null pointer dereference in old_init_ucred</title>
                <link>https://jira.whamcloud.com/browse/LU-7199</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Testing current master I hit this:&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;&amp;lt;4&amp;gt;[14176.514805] Lustre: lustre-MDT0000-mdc-ffff880058b347f0: Connection to lustre-MDT0000 (at 0@lo) was lost; in progress operations using this service will wait for recovery to complete
&amp;lt;4&amp;gt;[14176.529190] Lustre: Skipped 34 previous similar messages
&amp;lt;1&amp;gt;[14176.531440] BUG: unable to handle kernel NULL pointer dereference at 000000000000001c
&amp;lt;1&amp;gt;[14176.531442] IP: [&amp;lt;ffffffffa094ee36&amp;gt;] old_init_ucred+0x156/0x390 [mdt]
&amp;lt;4&amp;gt;[14176.531460] PGD 8cea9067 PUD 8ceaa067 PMD 0 
&amp;lt;4&amp;gt;[14176.531462] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
&amp;lt;4&amp;gt;[14176.531464] last sysfs file: /sys/devices/system/cpu/possible
&amp;lt;4&amp;gt;[14176.531465] CPU 1 
&amp;lt;4&amp;gt;[14176.531466] Modules linked in: lustre ofd osp lod ost mdt mdd mgs osd_ldiskfs ldiskfs lquota lfsck obdecho mgc lov osc mdc lmv fid fld ptlrpc obdclass ksocklnd lnet libcfs exportfs jbd sha512_generic sha256_generic ext4 jbd2 mbcache virtio_console virtio_balloon i2c_piix4 i2c_core virtio_blk virtio_net virtio_pci virtio_ring virtio pata_acpi ata_generic ata_piix dm_mirror dm_region_hash dm_log dm_mod nfs lockd fscache auth_rpcgss nfs_acl sunrpc be2iscsi bnx2i cnic uio cxgb3i libcxgbi ipv6 cxgb3 mdio libiscsi_tcp qla4xxx iscsi_boot_sysfs libiscsi scsi_transport_iscsi [last unloaded: libcfs]
&amp;lt;4&amp;gt;[14176.531488] 
&amp;lt;4&amp;gt;[14176.531489] Pid: 4336, comm: mdt00_004 Not tainted 2.6.32-rhe6.7-debug #1 Red Hat KVM
&amp;lt;4&amp;gt;[14176.531491] RIP: 0010:[&amp;lt;ffffffffa094ee36&amp;gt;]  [&amp;lt;ffffffffa094ee36&amp;gt;] old_init_ucred+0x156/0x390 [mdt]
&amp;lt;4&amp;gt;[14176.531503] RSP: 0018:ffff8800972b3b20  EFLAGS: 00010287
&amp;lt;4&amp;gt;[14176.531504] RAX: 0000000000000000 RBX: ffff8800983940e0 RCX: 0000000000000000
&amp;lt;4&amp;gt;[14176.531505] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff8800900dbc70
&amp;lt;4&amp;gt;[14176.531506] RBP: ffff8800972b3b60 R08: 00000000ffffffec R09: 00000000ffffffef
&amp;lt;4&amp;gt;[14176.531508] R10: 000000000000000f R11: 000000000000000f R12: ffff8800969c4f30
&amp;lt;4&amp;gt;[14176.531509] R13: ffff8800900cf7f0 R14: 0000000000000000 R15: ffff8800b2d5c000
&amp;lt;4&amp;gt;[14176.531511] FS:  0000000000000000(0000) GS:ffff880006240000(0000) knlGS:0000000000000000
&amp;lt;4&amp;gt;[14176.531512] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
&amp;lt;4&amp;gt;[14176.531513] CR2: 000000000000001c CR3: 000000008cea8000 CR4: 00000000000006e0
&amp;lt;4&amp;gt;[14176.531517] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
&amp;lt;4&amp;gt;[14176.531518] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
&amp;lt;4&amp;gt;[14176.531519] Process mdt00_004 (pid: 4336, threadinfo ffff8800972b0000, task ffff88006ba1e080)
&amp;lt;4&amp;gt;[14176.531520] Stack:
&amp;lt;4&amp;gt;[14176.531521]  ffff8800972b3b30 00ffffffa104b390 ffff8800972b3b40 ffff8800900cf7f0
&amp;lt;4&amp;gt;[14176.531523] &amp;lt;d&amp;gt; ffff8800969c4f30 ffff880058e65ce8 0000000000001000 0000000000000013
&amp;lt;4&amp;gt;[14176.531525] &amp;lt;d&amp;gt; ffff8800972b3b90 ffffffffa0950e9d 0000000000001000 ffff8800900cf7f0
&amp;lt;4&amp;gt;[14176.531527] Call Trace:
&amp;lt;4&amp;gt;[14176.531537]  [&amp;lt;ffffffffa0950e9d&amp;gt;] mdt_init_ucred_intent_getattr+0x9d/0xe0 [mdt]
&amp;lt;4&amp;gt;[14176.531546]  [&amp;lt;ffffffffa094ad51&amp;gt;] mdt_intent_getattr+0x1e1/0x470 [mdt]
&amp;lt;4&amp;gt;[14176.531554]  [&amp;lt;ffffffffa093a694&amp;gt;] mdt_intent_policy+0x494/0xc40 [mdt]
&amp;lt;4&amp;gt;[14176.531585]  [&amp;lt;ffffffffa11b211f&amp;gt;] ldlm_lock_enqueue+0x12f/0x860 [ptlrpc]
&amp;lt;4&amp;gt;[14176.531613]  [&amp;lt;ffffffffa11de067&amp;gt;] ldlm_handle_enqueue0+0x807/0x1580 [ptlrpc]
&amp;lt;4&amp;gt;[14176.531650]  [&amp;lt;ffffffffa1264dd1&amp;gt;] tgt_enqueue+0x61/0x230 [ptlrpc]
&amp;lt;4&amp;gt;[14176.531681]  [&amp;lt;ffffffffa126585c&amp;gt;] tgt_request_handle+0x8bc/0x12e0 [ptlrpc]
&amp;lt;4&amp;gt;[14176.531710]  [&amp;lt;ffffffffa1210b74&amp;gt;] ptlrpc_main+0xd74/0x1850 [ptlrpc]
&amp;lt;4&amp;gt;[14176.531738]  [&amp;lt;ffffffffa120fe00&amp;gt;] ? ptlrpc_main+0x0/0x1850 [ptlrpc]
&amp;lt;4&amp;gt;[14176.531742]  [&amp;lt;ffffffff8109f82e&amp;gt;] kthread+0x9e/0xc0
&amp;lt;4&amp;gt;[14176.531745]  [&amp;lt;ffffffff8100c2ca&amp;gt;] child_rip+0xa/0x20
&amp;lt;4&amp;gt;[14176.531747]  [&amp;lt;ffffffff8109f790&amp;gt;] ? kthread+0x0/0xc0
&amp;lt;4&amp;gt;[14176.531748]  [&amp;lt;ffffffff8100c2c0&amp;gt;] ? child_rip+0x0/0x20
&amp;lt;4&amp;gt;[14176.531749] Code: c7 c7 57 4d 99 a0 f3 a6 0f 84 37 01 00 00 89 c6 48 89 d7 e8 0d e0 01 00 48 3d 00 f0 ff ff 0f 87 8a 01 00 00 48 89 43 40 8b 43 04 &amp;lt;41&amp;gt; 3b 46 1c 0f 84 23 01 00 00 49 8b 55 00 31 c0 48 85 d2 74 03 
&amp;lt;1&amp;gt;[14176.531764] RIP  [&amp;lt;ffffffffa094ee36&amp;gt;] old_init_ucred+0x156/0x390 [mdt]
&amp;lt;4&amp;gt;[14176.531774]  RSP &amp;lt;ffff8800972b3b20&amp;gt;
&amp;lt;4&amp;gt;[14176.531775] CR2: 000000000000001c
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is in replay-dual test 26.&lt;/p&gt;

&lt;p&gt;Code is &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) l *(old_init_ucred+0x156)
0x1ee66 is in old_init_ucred (/home/green/git/lustre-release/lustre/mdt/mdt_lib.c:469).
464	}
465	
466	&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; void mdt_squash_nodemap_id(struct lu_ucred *ucred,
467					  struct lu_nodemap *nodemap)
468	{
469		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ucred-&amp;gt;uc_o_uid == nodemap-&amp;gt;nm_squash_uid) {
470			ucred-&amp;gt;uc_fsuid = nodemap-&amp;gt;nm_squash_uid;
471			ucred-&amp;gt;uc_fsgid = nodemap-&amp;gt;nm_squash_gid;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;nodemap is NULL in this case.&lt;/p&gt;</description>
                <environment></environment>
        <key id="32280">LU-7199</key>
            <summary>Null pointer dereference in old_init_ucred</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="green">Oleg Drokin</reporter>
                        <labels>
                            <label>cea</label>
                            <label>patch</label>
                    </labels>
                <created>Tue, 22 Sep 2015 23:26:53 +0000</created>
                <updated>Thu, 29 Mar 2018 21:46:48 +0000</updated>
                            <resolved>Wed, 2 Dec 2015 15:48:28 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="130062" author="green" created="Mon, 12 Oct 2015 01:23:40 +0000"  >&lt;p&gt;just hit this once more&lt;/p&gt;</comment>
                            <comment id="130166" author="kit.westneat" created="Tue, 13 Oct 2015 03:08:51 +0000"  >&lt;p&gt;The nodemap is changed while the export is connected, but it seems like it would be better to do the nodemap assignment before the export is connected. I&apos;ll post a patch.&lt;/p&gt;</comment>
                            <comment id="130167" author="gerrit" created="Tue, 13 Oct 2015 03:09:11 +0000"  >&lt;p&gt;Kit Westneat (kit.westneat@gmail.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/16802&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16802&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7199&quot; title=&quot;Null pointer dereference in old_init_ucred&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7199&quot;&gt;&lt;del&gt;LU-7199&lt;/del&gt;&lt;/a&gt; nodemap: assign nodemap to export before connecting&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4cd83b68b5d53377d2d08bec2adfe030fd0b57d4&lt;/p&gt;</comment>
                            <comment id="134954" author="gerrit" created="Wed, 2 Dec 2015 03:54:59 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/16802/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16802/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7199&quot; title=&quot;Null pointer dereference in old_init_ucred&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7199&quot;&gt;&lt;del&gt;LU-7199&lt;/del&gt;&lt;/a&gt; nodemap: assign nodemap to export before connecting&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2aea469a3a6e214db485b091e92d8bca84af4f51&lt;/p&gt;</comment>
                            <comment id="134984" author="jgmitter" created="Wed, 2 Dec 2015 15:48:28 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                            <comment id="224840" author="gerrit" created="Thu, 29 Mar 2018 21:23:34 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31832&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31832&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7199&quot; title=&quot;Null pointer dereference in old_init_ucred&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7199&quot;&gt;&lt;del&gt;LU-7199&lt;/del&gt;&lt;/a&gt; chef: add chromatest user&lt;br/&gt;
Project: private/lab&lt;br/&gt;
Branch: onyx&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6ec0ca93e94a190fda8a7134a1e054f00a483206&lt;/p&gt;</comment>
                            <comment id="224844" author="gerrit" created="Thu, 29 Mar 2018 21:46:48 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31832/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31832/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7199&quot; title=&quot;Null pointer dereference in old_init_ucred&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7199&quot;&gt;&lt;del&gt;LU-7199&lt;/del&gt;&lt;/a&gt; chef: add chromatest user&lt;br/&gt;
Project: private/lab&lt;br/&gt;
Branch: onyx&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: fe60cf7ab29c3a2c4c4bc91ad2d468e1b29f2bf4&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="33519">LU-7530</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="33932">LU-7630</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|hzxofz:</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>