<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:01:15 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-6558] replay-single: test_61c, test_90 timeout: nrs_orr_res_get() accessed NULL pointer</title>
                <link>https://jira.whamcloud.com/browse/LU-6558</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for nasf &amp;lt;fan.yong@intel.com&amp;gt;&lt;/p&gt;

&lt;p&gt;Please provide additional information about the failure here.&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/f8be94f2-f1f7-11e4-98d4-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/f8be94f2-f1f7-11e4-98d4-5254006e85c2&lt;/a&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;14:46:00:BUG: unable to handle kernel NULL pointer dereference at 00000000000000c0
14:46:00:IP: [&amp;lt;ffffffffa0ace822&amp;gt;] nrs_orr_res_get+0x102/0xc20 [ptlrpc]
14:46:00:PGD 7c6e5067 PUD 7c6e6067 PMD 0 
14:46:00:Oops: 0000 [#1] SMP 
14:46:00:last sysfs file: /sys/devices/system/cpu/online
14:46:00:CPU 1 
14:46:00:Modules linked in: osp(U) ofd(U) lfsck(U) ost(U) mgc(U) osd_zfs(U) lquota(U) lustre(U) lov(U) mdc(U) fid(U) lmv(U) fld(U) ksocklnd(U) ptlrpc(U) obdclass(U) lnet(U) sha512_generic libcfs(U) nfsd exportfs nfs lockd fscache auth_rpcgss nfs_acl sunrpc ib_ipoib rdma_ucm ib_ucm ib_uverbs ib_umad rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr ipv6 zfs(P)(U) zcommon(P)(U) znvpair(P)(U) spl(U) zlib_deflate zavl(P)(U) zunicode(P)(U) microcode virtio_balloon i2c_piix4 i2c_core 8139too 8139cp mii ext3 jbd mbcache virtio_blk virtio_pci virtio_ring virtio pata_acpi ata_generic ata_piix dm_mirror dm_region_hash dm_log dm_mod [last unloaded: speedstep_lib]
14:46:00:
14:46:00:Pid: 9827, comm: ll_ost_io00_009 Tainted: P           ---------------    2.6.32-504.16.2.el6_lustre.gd805a88.x86_64 #1 Red Hat KVM
14:46:00:RIP: 0010:[&amp;lt;ffffffffa0ace822&amp;gt;]  [&amp;lt;ffffffffa0ace822&amp;gt;] nrs_orr_res_get+0x102/0xc20 [ptlrpc]
14:46:00:RSP: 0018:ffff880073a4fc20  EFLAGS: 00010246
14:46:00:RAX: 0000000000000000 RBX: ffff88006ff68bc0 RCX: 0000000000000000
14:46:00:RDX: ffff880072ff16c0 RSI: ffff88007cc2bc41 RDI: ffffffffa0b17fb0
14:46:00:RBP: ffff880073a4fca0 R08: 0000000000000000 R09: 0000000000000000
14:46:00:R10: ffff88003d6c0840 R11: 00000000000000c0 R12: ffff880071baa9c0
14:46:00:R13: ffff880073a4fcc8 R14: ffff880072ff17b8 R15: 0000000000000004
14:46:00:FS:  0000000000000000(0000) GS:ffff880002300000(0000) knlGS:0000000000000000
14:46:00:CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
14:46:00:CR2: 00000000000000c0 CR3: 000000007c6e4000 CR4: 00000000000006e0
14:46:00:DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
14:46:00:DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
14:46:00:Process ll_ost_io00_009 (pid: 9827, threadinfo ffff880073a4e000, task ffff8800703ccab0)
14:46:00:Stack:
14:46:00: 0000005600000000 ffffffffa0b2563f ffff880072ff16c0 0010000000000100
14:46:00:&amp;lt;d&amp;gt; 554634a300000001 00000000000a1fd5 0000266300000000 0000000000000286
14:46:00:&amp;lt;d&amp;gt; 0000000000000000 0000000000000000 ffff88007e4e4000 ffff88006ff68bc0
14:46:00:Call Trace:
14:46:00: [&amp;lt;ffffffffa0ac4fb6&amp;gt;] nrs_resource_get+0x56/0x110 [ptlrpc]
14:46:00: [&amp;lt;ffffffffa0ac597b&amp;gt;] nrs_resource_get_safe+0x8b/0x100 [ptlrpc]
14:46:00: [&amp;lt;ffffffffa0ac7fbb&amp;gt;] ptlrpc_nrs_req_initialize+0x3b/0x90 [ptlrpc]
14:46:00: [&amp;lt;ffffffffa0a8e297&amp;gt;] ptlrpc_server_handle_req_in+0x8c7/0xca0 [ptlrpc]
14:46:00: [&amp;lt;ffffffffa0a957a3&amp;gt;] ptlrpc_main+0x9f3/0x1970 [ptlrpc]
14:46:00: [&amp;lt;ffffffffa0a94db0&amp;gt;] ? ptlrpc_main+0x0/0x1970 [ptlrpc]
14:46:00: [&amp;lt;ffffffff8109e71e&amp;gt;] kthread+0x9e/0xc0
14:46:00: [&amp;lt;ffffffff8100c20a&amp;gt;] child_rip+0xa/0x20
14:46:00: [&amp;lt;ffffffff8109e680&amp;gt;] ? kthread+0x0/0xc0
14:46:00: [&amp;lt;ffffffff8100c200&amp;gt;] ? child_rip+0x0/0x20
14:46:00:Cod
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="29829">LU-6558</key>
            <summary>replay-single: test_61c, test_90 timeout: nrs_orr_res_get() accessed NULL pointer</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 May 2015 04:06:35 +0000</created>
                <updated>Mon, 16 May 2016 15:16:16 +0000</updated>
                            <resolved>Mon, 11 May 2015 17:19:57 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>12</watches>
                                                                            <comments>
                            <comment id="114149" author="adilger" created="Mon, 4 May 2015 17:25:52 +0000"  >&lt;p&gt;Nikitas, can you please take a look at this problem?&lt;/p&gt;</comment>
                            <comment id="114366" author="bogl" created="Wed, 6 May 2015 13:35:36 +0000"  >&lt;p&gt;another in master:&lt;br/&gt;
&lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/cc3202ac-f39b-11e4-9186-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/cc3202ac-f39b-11e4-9186-5254006e85c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="114394" author="jhammond" created="Wed, 6 May 2015 16:56:40 +0000"  >&lt;p&gt;I saw a crash dump for this. The request has a NULL export in nrs_orr_key_fill():&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;[jlhammon@shadow-1 ~]$ xddr2line ./usr/lib/debug/lib/modules/2.6.32-504.16.2.el6_lustre.g
d805a88.x86_64/extra/kernel/fs/lustre/ptlrpc.ko.debug nrs_orr_res_get+258
class_server_data
/usr/src/debug/lustre-2.7.52/lustre/include/obd_class.h:313
nrs_orr_key_fill
/usr/src/debug/lustre-2.7.52/lustre/ptlrpc/nrs_orr.c:160
nrs_orr_res_get
/usr/src/debug/lustre-2.7.52/lustre/ptlrpc/nrs_orr.c:855

nrs_orr_res_get()
        /**
         * Fill in the key &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; the request; OST FID &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ORR policy instances,
         * and OST index &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; TRR policy instances.
         */
855:    rc = nrs_orr_key_fill(orrd, nrq, opc, policy-&amp;gt;pol_desc-&amp;gt;pd_name, &amp;amp;key);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc &amp;lt; 0)
        	RETURN(rc);


nrs_orr_key_fill()

160:    ost_idx = class_server_data(req-&amp;gt;rq_export-&amp;gt;exp_obd)-&amp;gt;lsd_osd_index;

class_server_data()
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; inline struct lr_server_data *class_server_data(struct obd_device *obd)
{
313:    LASSERT(obd-&amp;gt;u.obt.obt_lut);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &amp;amp;obd-&amp;gt;u.obt.obt_lut-&amp;gt;lut_lsd;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="114434" author="gerrit" created="Wed, 6 May 2015 21:38:17 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14699&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14699&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6558&quot; title=&quot;replay-single: test_61c, test_90 timeout: nrs_orr_res_get() accessed NULL pointer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6558&quot;&gt;&lt;del&gt;LU-6558&lt;/del&gt;&lt;/a&gt; nrs: test patch&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ff98f2354ef56af9f205e7d120fa0c0caa0e614e&lt;/p&gt;</comment>
                            <comment id="114456" author="adilger" created="Thu, 7 May 2015 04:53:11 +0000"  >&lt;p&gt;This is causing quite a few test failures.&lt;/p&gt;</comment>
                            <comment id="114622" author="nangelinas" created="Thu, 7 May 2015 17:57:47 +0000"  >&lt;p&gt;I&apos;ll do my best to look at this today; just swamped with other things as well atm; sorry.&lt;/p&gt;</comment>
                            <comment id="114647" author="adilger" created="Thu, 7 May 2015 20:34:11 +0000"  >&lt;p&gt;It seems this failure is fallout from landing &lt;a href=&quot;http://review.whamcloud.com/9286&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9286&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3266&quot; title=&quot;Regression tests for NRS policies&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3266&quot;&gt;&lt;del&gt;LU-3266&lt;/del&gt;&lt;/a&gt; test: regression tests for nrs policies&quot;, which is enabling NRS in sanity.sh test_77* but it seems that it isn&apos;t changing the NRS policy back to FIFO afterward, so the following tests are all running with TRR enabled after test_77d.  The failures started being hit intermittently on May 2, the day after the NRS tests were landed as new patches were rebased to include that change:&lt;br/&gt;
&lt;a href=&quot;https://testing.hpdd.intel.com/sub_tests/query?utf8=%E2%9C%93&amp;amp;test_set[test_set_script_id]=f6a12204-32c3-11e0-a61c-52540025f9ae&amp;amp;sub_test[sub_test_script_id]=fb61f372-32c3-11e0-a61c-52540025f9ae&amp;amp;sub_test[status]=TIMEOUT&amp;amp;sub_test[query_bugs]=&amp;amp;test_session[test_host]=&amp;amp;test_session[test_group]=&amp;amp;test_session[user_id]=&amp;amp;test_session[query_date]=&amp;amp;test_session[query_recent_period]=2419200&amp;amp;test_node[os_type_id]=&amp;amp;test_node[distribution_type_id]=&amp;amp;test_node[architecture_type_id]=&amp;amp;test_node[file_system_type_id]=&amp;amp;test_node[lustre_branch_id]=24a6947e-04a9-11e1-bb5f-52540025f9af&amp;amp;test_node_network[network_type_id]=&amp;amp;commit=Update+results&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/sub_tests/query?utf8=%E2%9C%93&amp;amp;test_set[test_set_script_id]=f6a12204-32c3-11e0-a61c-52540025f9ae&amp;amp;sub_test[sub_test_script_id]=fb61f372-32c3-11e0-a61c-52540025f9ae&amp;amp;sub_test[status]=TIMEOUT&amp;amp;sub_test[query_bugs]=&amp;amp;test_session[test_host]=&amp;amp;test_session[test_group]=&amp;amp;test_session[user_id]=&amp;amp;test_session[query_date]=&amp;amp;test_session[query_recent_period]=2419200&amp;amp;test_node[os_type_id]=&amp;amp;test_node[distribution_type_id]=&amp;amp;test_node[architecture_type_id]=&amp;amp;test_node[file_system_type_id]=&amp;amp;test_node[lustre_branch_id]=24a6947e-04a9-11e1-bb5f-52540025f9af&amp;amp;test_node_network[network_type_id]=&amp;amp;commit=Update+results&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The simple path forward would be to disable NRS at the end of each test_77 sub-test, but I&apos;d rather avoid that if keeping NRS running for later tests is giving us better test coverage, as seen by this ticket.&lt;/p&gt;</comment>
                            <comment id="114751" author="jhammond" created="Fri, 8 May 2015 18:43:20 +0000"  >&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;llmount.sh
lctl set_param ost.OSS.ost_io.nrs_policies=trr
lctl set_param ost.OSS.*.nrs_trr_supported=reads_and_writes
cd /mnt/lustre
lfs setstripe -c1 -i0 f0
echo XXX &amp;gt; f0
umount /mnt/ost1
sync
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="114754" author="gerrit" created="Fri, 8 May 2015 19:05:28 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14737&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14737&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6558&quot; title=&quot;replay-single: test_61c, test_90 timeout: nrs_orr_res_get() accessed NULL pointer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6558&quot;&gt;&lt;del&gt;LU-6558&lt;/del&gt;&lt;/a&gt; ptlrpc: handle NULL export in nrs_orr_key_fill()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b953627757184e722c78e19390acc59eff25c0bd&lt;/p&gt;</comment>
                            <comment id="114790" author="nangelinas" created="Sat, 9 May 2015 00:40:40 +0000"  >&lt;p&gt;I can&apos;t figure out how to log in to Gerrit using my stackexchange OpenID, so I am posting here instead.&lt;/p&gt;

&lt;p&gt;John, could you please consider to return -ve from nrs_orr_key_fill()? 0 signifies successful completion for this function, but if we exit early due to an invalid obd_export the nrs_orr_key (OST FID for the ORR policy, and OST idx for the TRR policy) will not be filled in, so continuing with handling the RPC using the ORR/TRR policies would likely not help much with RPC scheduling; returning -ve should hand over the RPC to the default FIFO policy.&lt;/p&gt;

&lt;p&gt;The test for rq_export == NULL could also be made above if (nrq-&amp;gt;nr_u.orr.or_orr_set || nrq-&amp;gt;nr_u.orr.or_trr_set), as a very insignificant optimization.&lt;/p&gt;</comment>
                            <comment id="114809" author="adilger" created="Sat, 9 May 2015 05:45:54 +0000"  >&lt;p&gt;Nikitas, since this is only happening during shutdown, it shouldn&apos;t matter what is being returned.&lt;/p&gt;</comment>
                            <comment id="114818" author="jhammond" created="Sun, 10 May 2015 14:39:51 +0000"  >&lt;p&gt;Nikitas: Done.&lt;/p&gt;

&lt;p&gt;BTW, I tried to add you as a reviewer on gerrit but it fails and says &quot;Nikitas Angelinas &amp;lt;nikitas.angelinas@seagate.com&amp;gt; does not identify a registered user or group.&quot;&lt;/p&gt;</comment>
                            <comment id="114819" author="adilger" created="Sun, 10 May 2015 22:42:54 +0000"  >&lt;p&gt;It seems there are two different accounts for Nikitas with the same email address. I was able to add him to a different patch by using only the email address, which is a bit tricky because it always autocompletes to include the full name, which produces an error. John, could you give that a try?  I&apos;m currently not able to login myself. &lt;/p&gt;</comment>
                            <comment id="114885" author="gerrit" created="Mon, 11 May 2015 17:17:16 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14737/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14737/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6558&quot; title=&quot;replay-single: test_61c, test_90 timeout: nrs_orr_res_get() accessed NULL pointer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6558&quot;&gt;&lt;del&gt;LU-6558&lt;/del&gt;&lt;/a&gt; ptlrpc: handle NULL export in nrs_orr_key_fill()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 46af0e8dd04d01679865704e06c1037e4f30f1a3&lt;/p&gt;</comment>
                            <comment id="114887" author="pjones" created="Mon, 11 May 2015 17:19:57 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="29877">LU-6571</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|hzxcen:</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>