<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:35:27 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-3616] HSM restore for execute allows writes to file</title>
                <link>https://jira.whamcloud.com/browse/LU-3616</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Using the Jul 22, 2013 HSM stack, executing a released file (and thereby triggering a restore) leaves the file writable while it&apos;s being executed.&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;# cd /mnt/lustre
# cp /bin/sleep SLEEP
# lfs hsm_archive SLEEP
# sleep 1
# lfs hsm_release SLEEP
# ./SLEEP 10 &amp;amp;&amp;amp; echo DONE &amp;amp;
[1] 4243
# sleep 1
# pgrep -l SLEEP
4244 SLEEP
# cd /mnt/lustre2
# echo &apos;Hi!&apos; &amp;gt; SLEEP
# cat SLEEP
Hi!
# -bash: line 238:  4244 Bus error               (core dumped) ./SLEEP 10

[1]+  Exit 135                ./SLEEP 10 &amp;amp;&amp;amp; echo DONE  (wd: /mnt/lustre)
(wd now: /mnt/lustre2)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="19925">LU-3616</key>
            <summary>HSM restore for execute allows writes to file</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="20020">LU-3647</parent>
                                    <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="bfaccini">Bruno Faccini</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>HSM</label>
                    </labels>
                <created>Mon, 22 Jul 2013 18:45:25 +0000</created>
                <updated>Tue, 31 Dec 2013 15:51:33 +0000</updated>
                            <resolved>Fri, 25 Oct 2013 13:24:51 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="65838" author="bfaccini" created="Thu, 5 Sep 2013 13:38:09 +0000"  >&lt;p&gt;Normal (without HSM actions/cmds) behavior would be to have &quot;echo &apos;Hi!&apos; &amp;gt; SLEEP&quot; fail with &quot;Text file busy&quot;/ETXTBSY.&lt;/p&gt;

&lt;p&gt;And dual/lustre2 mount access is the key ...&lt;/p&gt;

&lt;p&gt;I am walking thru the code to see where we missed something during hsm_release.&lt;/p&gt;</comment>
                            <comment id="66342" author="bfaccini" created="Wed, 11 Sep 2013 14:27:22 +0000"  >&lt;p&gt;This behavior has been introduced in both mdt_mfd_open()/mdt_object_open_lock() routine (in lustre/mdt/mdt_open.c) by commit c42b426c87c3d3b1dc9eda612cc831293dc80d68 from Gerrit patch/Change-Id Ic8f82ddc9a56206307c2e5be2523fb7ce42b8638 (at &lt;a href=&quot;http://review.whamcloud.com/3035&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3035&lt;/a&gt;) for LU-1338 (now HSM-5) ticket.&lt;/p&gt;

&lt;p&gt;And Oleg already warned about this in its Change comment !&lt;/p&gt;

&lt;p&gt;I wonder if I can simply revert these changes to get the correct behavior, and I would like to get  Aurelien (since he is the original change author) feed-back on this.&lt;/p&gt;
</comment>
                            <comment id="66480" author="adegremont" created="Thu, 12 Sep 2013 11:36:52 +0000"  >&lt;p&gt;I did not write this part of the patch, but it seems it could be change. I&apos;m trusting Oleg regarding this.&lt;br/&gt;
If this fix the code snippet you&apos;ve posted, I&apos;m fine. Just ensure restore at exec it is still working.&lt;/p&gt;</comment>
                            <comment id="67523" author="bfaccini" created="Wed, 25 Sep 2013 13:01:55 +0000"  >&lt;p&gt;1st patch attempt is at &lt;a href=&quot;http://review.whamcloud.com/7636&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7636&lt;/a&gt;. Build is ok but auto-tests never started ...&lt;br/&gt;
So, I just re-triggered auto-tests.&lt;/p&gt;
</comment>
                            <comment id="68148" author="bfaccini" created="Wed, 2 Oct 2013 14:38:27 +0000"  >&lt;p&gt;1st patch-set of &lt;a href=&quot;http://review.whamcloud.com/7636&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7636&lt;/a&gt; successfully passed auto-tests and also did not trigger the original problem when running John&apos;s reproducer.&lt;/p&gt;

&lt;p&gt;I will submit a new version/patch-set #2 with the same code but adding a specific+new sub-test in sanity-hsm, based on John&apos;s reproducer.&lt;/p&gt;</comment>
                            <comment id="68806" author="bfaccini" created="Fri, 11 Oct 2013 09:31:03 +0000"  >&lt;p&gt;Patch-set #2 of Change #7636 successfully passed auto-tests including its own+new sanity-hsm/test_30c sub-test.&lt;/p&gt;

&lt;p&gt;This allows restore on exec() to continue to work but now prevents any write to be allowed during exec() and make it fail.&lt;/p&gt;

&lt;p&gt;BTW, reading code of sub-tests test_30&lt;span class=&quot;error&quot;&gt;&amp;#91;a,b&amp;#93;&lt;/span&gt;, against same exec() on released files area, I have been surprised by the following comment :&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;# restore at exec cannot work on agent node (because of Linux kernel
# protection of executables)
needclients 2 || return 0
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;at their beginning. &lt;br/&gt;
Is it (comment and &quot;needclients 2&quot;) still of actuality, because as per my latest tests, restore at exec() also works on Agent-Node (I mean I tested on a single+full node ...) ?&lt;/p&gt;</comment>
                            <comment id="69896" author="pjones" created="Fri, 25 Oct 2013 13:24:51 +0000"  >&lt;p&gt;Landed for 2.6&lt;/p&gt;</comment>
                            <comment id="71304" author="adegremont" created="Tue, 12 Nov 2013 09:30:10 +0000"  >&lt;p&gt;This should also be considered for 2.5.1&lt;/p&gt;</comment>
                            <comment id="71313" author="pjones" created="Tue, 12 Nov 2013 13:13:20 +0000"  >&lt;p&gt;Yes it is being tracked for 2.5.1.&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|hzvvu7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9297</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>