<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:13:55 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-14922] mmap read of writable mapping updates mtime</title>
                <link>https://jira.whamcloud.com/browse/LU-14922</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Generating a read fault (ie, reading) from a memory mapped file mapped with PROT_WRITE updates mtime.&#160; This is incorrect (compare with behavior of other POSIX file systems).&lt;/p&gt;

&lt;p&gt;This seems to be related to how we handle the difference between a writable mapping and a mkwrite operation - There is an oddity where ll_fault_io_init is called and sets ft_writable by directly checking the vm_flags, but mkwrite also sets ft_writable directly.&lt;/p&gt;

&lt;p&gt;This is definitely &lt;b&gt;strange&lt;/b&gt; and should be cleaned up, but it&apos;s not clear to me if it&apos;s the issue - a read of a writable mapping doesn&apos;t cause a mkwrite, it&apos;s still just a page fault.&lt;/p&gt;

&lt;p&gt;But it could be we&apos;re not handling this correctly - this is unclear to me.&lt;/p&gt;

&lt;p&gt;In any case, the specific bug is that reading a writable mmap updates mtime, which it should not.&lt;/p&gt;</description>
                <environment></environment>
        <key id="65569">LU-14922</key>
            <summary>mmap read of writable mapping updates mtime</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="paf0186">Patrick Farrell</assignee>
                                    <reporter username="paf0186">Patrick Farrell</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Aug 2021 20:44:35 +0000</created>
                <updated>Fri, 18 Mar 2022 02:05:21 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="329503" author="paf0186" created="Thu, 17 Mar 2022 15:53:23 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=qian_wc&quot; class=&quot;user-hover&quot; rel=&quot;qian_wc&quot;&gt;qian_wc&lt;/a&gt;, &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=bobijam&quot; class=&quot;user-hover&quot; rel=&quot;bobijam&quot;&gt;bobijam&lt;/a&gt; did one of you fix this issue in another patch?&#160; I think I remember that but I can&apos;t find it right now.&lt;/p&gt;</comment>
                            <comment id="329551" author="qian_wc" created="Fri, 18 Mar 2022 02:04:57 +0000"  >&lt;p&gt;I did not fix this issue IIRC.&lt;/p&gt;

&lt;p&gt;After dig the code, the problem is caused by:&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;
osc_io_fault_start() -&amp;gt;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (fio-&amp;gt;ft_writable)
		osc_page_touch_at(env, ios-&amp;gt;cis_obj,
				  fio-&amp;gt;ft_index, fio-&amp;gt;ft_nob);

osc_page_touch_at()-&amp;gt;
     attr-&amp;gt;cat_mtime = attr-&amp;gt;cat_ctime = ktime_get_real_seconds();
	valid = CAT_MTIME | CAT_CTIME;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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|i021an:</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>