<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:21: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-15843] Crash when umount mdt targets lnet with llstat running.</title>
                <link>https://jira.whamcloud.com/browse/LU-15843</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was discovered while analyzing the root cause of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15759&quot; title=&quot;Crash when unloading lnet with routerstat running.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15759&quot;&gt;LU-15759&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Reproducer&lt;/b&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;# llstat -i 5 mds.MDS.mdt.stats &amp;gt; /dev/null &amp;amp;
# umount -at lustre
(Crash ....)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Crash:&lt;/b&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;[151292.415792] Lustre: server umount lustrefs-MDT0001 complete
[151292.491875] LustreError: 11-0: lustrefs-MDT0001-osp-MDT0000: operation mds_disconnect to node 0@lo failed: rc = -107
[151295.103507] general protection fault: 0000 [#1] SMP 
[151295.104283] Modules linked in: osp(OE) mdd(OE) lod(OE) mdt(OE) lfsck(OE) mgs(OE) mgc(OE) osd_ldiskfs(OE) ldiskfs(OE) lquota(OE) lustre(OE) lmv(OE) mdc(OE) lov(OE) osc(OE) fid(OE) fld(OE) ksocklnd(OE) ptlrpc(OE) obdclass(OE) lnet(OE) libcfs(OE) dm_flakey mbcache jbd2 rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache sunrpc dm_snapshot dm_bufio iosf_mbi ppdev crc32_pclmul snd_intel8x0 snd_ac97_codec ac97_bus snd_seq ghash_clmulni_intel snd_seq_device snd_pcm aesni_intel lrw gf128mul glue_helper ablk_helper cryptd snd_timer sg snd pcspkr i2c_piix4 soundcore parport_pc parport video ip_tables xfs libcrc32c sr_mod cdrom sd_mod crc_t10dif crct10dif_generic ata_generic pata_acpi vmwgfx drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm crct10dif_pclmul crct10dif_common
[151295.110133]  crc32c_intel ahci serio_raw libahci ata_piix drm e1000 libata drm_panel_orientation_quirks dm_mirror dm_region_hash dm_log dm_mod [last unloaded: libcfs]
[151295.111650] CPU: 1 PID: 6578 Comm: llstat Kdump: loaded Tainted: G           OE  ------------   3.10.0-1160.59.1.el7.centos.plus.x86_64 #1
[151295.113155] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[151295.113907] task: ffff931a5a4c9080 ti: ffff9319bc80c000 task.ti: ffff9319bc80c000
[151295.114663] RIP: 0010:[&amp;lt;ffffffffc0a129a1&amp;gt;]  [&amp;lt;ffffffffc0a129a1&amp;gt;] lprocfs_stats_collect+0xc1/0x140 [obdclass]
[151295.116235] RSP: 0018:ffff9319bc80fdd8  EFLAGS: 00010202
[151295.117017] RAX: 0000000000004669 RBX: ffff9319bc80fe10 RCX: 0000000000000006
[151295.117778] RDX: dead000000000100 RSI: dead000000000100 RDI: 0000000000000006
[151295.118573] RBP: ffff9319bc80fe00 R08: 0000000000000000 R09: 0000000000000000
[151295.119742] R10: 0000000000000000 R11: ffff9319bc80fc56 R12: ffff931a46694800
[151295.120652] R13: 0000000000000000 R14: ffff931a57bc7000 R15: ffff93199d70d0c0
[151295.121387] FS:  00007fe897599740(0000) GS:ffff931a9fc80000(0000) knlGS:0000000000000000
[151295.122150] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[151295.122888] CR2: 0000000001a11b24 CR3: 0000000069326000 CR4: 00000000000606e0
[151295.123637] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[151295.124336] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[151295.125016] Call Trace:
[151295.125709]  [&amp;lt;ffffffffc0a13308&amp;gt;] lprocfs_stats_seq_show+0x48/0x140 [obdclass]
[151295.126379]  [&amp;lt;ffffffff82476d10&amp;gt;] seq_read+0x130/0x450
[151295.127033]  [&amp;lt;ffffffff8244e3ff&amp;gt;] vfs_read+0x9f/0x170
[151295.127647]  [&amp;lt;ffffffff8244f27f&amp;gt;] SyS_read+0x7f/0xf0
[151295.128248]  [&amp;lt;ffffffff829aaed5&amp;gt;] ? system_call_after_swapgs+0xa2/0x13a
[151295.128839]  [&amp;lt;ffffffff829aaf92&amp;gt;] system_call_fastpath+0x25/0x2a
[151295.129439]  [&amp;lt;ffffffff829aaed5&amp;gt;] ? system_call_after_swapgs+0xa2/0x13a
[151295.130033] Code: c1 e0 03 0f 1f 80 00 00 00 00 48 63 d1 49 83 7c d4 20 00 74 48 4c 89 c2 49 03 54 fc 20 41 f6 44 24 04 02 4a 8d 34 0a 48 0f 45 d6 &amp;lt;48&amp;gt; 8b 32 48 01 33 48 8b 72 20 48 01 73 20 48 8b 72 08 48 3b 73 
[151295.131885] RIP  [&amp;lt;ffffffffc0a129a1&amp;gt;] lprocfs_stats_collect+0xc1/0x140 [obdclass]
[151295.132514]  RSP &amp;lt;ffff9319bc80fdd8&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="70246">LU-15843</key>
            <summary>Crash when umount mdt targets lnet with llstat running.</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="eaujames">Etienne Aujames</assignee>
                                    <reporter username="eaujames">Etienne Aujames</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 May 2022 13:01:16 +0000</created>
                <updated>Fri, 13 May 2022 14:55:36 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="334450" author="adilger" created="Wed, 11 May 2022 19:58:31 +0000"  >&lt;p&gt;Does the patch from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15759&quot; title=&quot;Crash when unloading lnet with routerstat running.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15759&quot;&gt;LU-15759&lt;/a&gt; fix this problem also?&lt;/p&gt;</comment>
                            <comment id="334799" author="eaujames" created="Fri, 13 May 2022 14:55:36 +0000"  >&lt;p&gt;It is not the same issue that &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15759&quot; title=&quot;Crash when unloading lnet with routerstat running.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15759&quot;&gt;LU-15759&lt;/a&gt;.&lt;br/&gt;
The owners are correctly defined for those debugfs files.&lt;/p&gt;

&lt;p&gt;The problem here is that &quot;stats&quot;/obd structure is freed at umount time. If a user have an open handle on the debugfs inode after umount , debugfs fops could access to already freed memory .&lt;/p&gt;

&lt;p&gt;The issue occurs only with debugfs file, procfs stats don&apos;t cause a crash.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="69797">LU-15759</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i02pmf:</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>