<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:50:34 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-12206] error handling on mdt_init0()</title>
                <link>https://jira.whamcloud.com/browse/LU-12206</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When mdt_init0() returns with error, it has to guarantee that destroying of exports is completed before mdt_device_free() frees the mdt_device:&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;
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; struct lu_device *mdt_device_alloc(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env,
...
                rc = mdt_init0(env, m, t, cfg);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0) {
                        mdt_device_free(env, l);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Otherwise, zombied work queue may access freed memory resulting in general protection, something like:&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;[  472.711559] general protection fault: 0000 [#1] SMP 
[  472.714047] Modules linked in: loop lustre(OE) ofd(OE) osp(OE) lod(OE) ost(OE) mdt(OE) mdd(OE) mgs(OE) osd_ldiskfs(OE) ldiskfs(OE) lquota(OE) lfsck(OE) obdecho(OE) mgc(OE) lov(OE
) mdc(OE) osc(OE) lmv(OE) fid(OE) fld(OE) ptlrpc_gss(OE) ptlrpc(OE) obdclass(OE) ksocklnd(OE) lnet(OE) dm_flakey libcfs(OE) ext4 mbcache jbd2 ip6table_filter ip6_tables devlink ipta
ble_filter sunrpc intel_powerclamp iosf_mbi crc32_pclmul ghash_clmulni_intel aesni_intel linear lrw gf128mul glue_helper ablk_helper cryptd sg pcspkr video ip_tables xfs libcrc32c s
d_mod crc_t10dif crct10dif_generic sr_mod cdrom ata_generic pata_acpi crct10dif_pclmul crct10dif_common crc32c_intel serio_raw ahci libahci ata_piix e1000 libata dm_mirror dm_region
_hash dm_log dm_mod
[  472.737938] CPU: 0 PID: 44 Comm: kworker/0:2 Kdump: loaded Tainted: G           OE  ------------   3.10.0-862.14.4.el7.x86_64 #10
[  472.741324] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[  472.743571] Workqueue: obd_zombid obd_zombie_exp_cull [obdclass]
[  472.745032] task: ffff9a64378b2f40 ti: ffff9a643791c000 task.ti: ffff9a643791c000
[  472.747274] RIP: 0010:[&amp;lt;ffffffffc08829c5&amp;gt;]  [&amp;lt;ffffffffc08829c5&amp;gt;] tgt_client_free+0x1e5/0x3c0 [ptlrpc]
[  472.749950] RSP: 0018:ffff9a643791fda8  EFLAGS: 00010206
[  472.751172] RAX: 5a5a5a5a5a5a5a5a RBX: ffff9a640354af28 RCX: 000000018020001a
[  472.752730] RDX: 0000000000000000 RSI: ffffeb4e0112a7c0 RDI: 0000000040000000
[  472.754243] RBP: ffff9a643791fdd0 R08: ffff9a6404a9f880 R09: 000000018020001a
[  472.755651] R10: 0000000004a9f801 R11: ffffeb4e0112a7c0 R12: ffff9a640354ac00
[  472.757045] R13: ffff9a640354aec8 R14: ffff9a64118530b8 R15: ffff9a640354af28
[  472.758840] FS:  0000000000000000(0000) GS:ffff9a643fc00000(0000) knlGS:0000000000000000
[  472.761192] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  472.763423] CR2: 00007f04d8ed3000 CR3: 000000007850c000 CR4: 00000000000606f0
[  472.765355] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  472.775769] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  472.778600] Call Trace:
[  472.779383]  [&amp;lt;ffffffffc0ec2327&amp;gt;] mdt_destroy_export+0x57/0x200 [mdt]
[  472.781139]  [&amp;lt;ffffffffc05bf20e&amp;gt;] class_export_destroy+0xee/0x490 [obdclass]
[  472.783158]  [&amp;lt;ffffffffc05bf5c5&amp;gt;] obd_zombie_exp_cull+0x15/0x20 [obdclass]
[  472.784599]  [&amp;lt;ffffffff93ab1d2f&amp;gt;] process_one_work+0x17f/0x440
[  472.785836]  [&amp;lt;ffffffff93ab2dc6&amp;gt;] worker_thread+0x126/0x3c0
[  472.787047]  [&amp;lt;ffffffff93ab2ca0&amp;gt;] ? manage_workers.isra.24+0x2a0/0x2a0
[  472.788592]  [&amp;lt;ffffffff93ab9b51&amp;gt;] kthread+0xd1/0xe0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="55450">LU-12206</key>
            <summary>error handling on mdt_init0()</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="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="vsaveliev">Vladimir Saveliev</assignee>
                                    <reporter username="vsaveliev">Vladimir Saveliev</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Fri, 19 Apr 2019 12:43:01 +0000</created>
                <updated>Sat, 25 May 2019 05:41:48 +0000</updated>
                            <resolved>Sat, 25 May 2019 05:41:48 +0000</resolved>
                                                    <fixVersion>Lustre 2.13.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="246078" author="gerrit" created="Fri, 19 Apr 2019 12:45:01 +0000"  >&lt;p&gt;Vladimir Saveliev (c17830@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34724&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34724&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12206&quot; title=&quot;error handling on mdt_init0()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12206&quot;&gt;&lt;del&gt;LU-12206&lt;/del&gt;&lt;/a&gt; mdt: mdt_init0 failure handling&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 49806583020b38d32c5c535fda975fda965aa3b6&lt;/p&gt;</comment>
                            <comment id="247691" author="gerrit" created="Sat, 25 May 2019 04:57:55 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34724/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34724/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12206&quot; title=&quot;error handling on mdt_init0()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12206&quot;&gt;&lt;del&gt;LU-12206&lt;/del&gt;&lt;/a&gt; mdt: mdt_init0 failure handling&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d1b5146eda4fdaa77dd44bc2195435bda0f83a94&lt;/p&gt;</comment>
                            <comment id="247704" author="pjones" created="Sat, 25 May 2019 05:41:48 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                    </comments>
                    <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|i00f47:</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>