<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:26:48 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-16412] check truncated page in -&gt;read page()</title>
                <link>https://jira.whamcloud.com/browse/LU-16412</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I found the page end offset calculation in filemap_get_read_batch() was off by one in 5.x kernel.&lt;/p&gt;

&lt;p&gt;When a read is submitted with end offset 1048575, then it incorrectly calculates&lt;br/&gt;
the end page for read of 1024 when it should be 1023. This result in the &lt;tt&gt;readpage()&lt;/tt&gt; call of the page is over stripe boundary and may be not covered by a DLM extent lock.&lt;/p&gt;

&lt;p&gt;In some corner racer case, &lt;tt&gt;filemap_get_read_batch()&lt;/tt&gt; batches the page with index 1024 for read, but later this page is truncated and removed from page cache due to the lock protected it being revoked. This results in this page in the read path is not covered by a DLM lock.  This will trigger an assertion in the code:&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;LustreError: 14129:0:(osc_object.c:397:osc_req_attr_set()) uncovered page!
Pid: 14129, comm: ptlrpcd_04_18 5.14.0-1038-oem #42-Ubuntu SMP Thu May 19 05:03:08 UTC 2022
LustreError: 14129:0:(osc_object.c:411:osc_req_attr_set()) LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To work around this bug in the kernel, we can simply check whether this page got truncated and was removed from page cache in &lt;tt&gt;-&amp;gt;readpage()&lt;/tt&gt;, and return &lt;tt&gt;AOP_TRUNCATED_PAGE&lt;/tt&gt; to the upper layer, and then it will retry to batch pages and it will not add this truncated page into batches as it was removed from page cache.&lt;/p&gt;</description>
                <environment></environment>
        <key id="73678">LU-16412</key>
            <summary>check truncated page in -&gt;read page()</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="qian_wc">Qian Yingjin</assignee>
                                    <reporter username="qian_wc">Qian Yingjin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Dec 2022 02:52:15 +0000</created>
                <updated>Fri, 7 Jul 2023 06:50:32 +0000</updated>
                            <resolved>Fri, 3 Feb 2023 13:56:21 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="356805" author="gerrit" created="Mon, 19 Dec 2022 07:19:59 +0000"  >&lt;p&gt;&quot;Qian Yingjin &amp;lt;qian@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49433&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49433&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16412&quot; title=&quot;check truncated page in -&amp;gt;read page()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16412&quot;&gt;&lt;del&gt;LU-16412&lt;/del&gt;&lt;/a&gt; llite: check truncated page in -&amp;gt;readpage()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: be18ce2d198ffa48093b0125ebb30188aabf0213&lt;/p&gt;</comment>
                            <comment id="359888" author="gerrit" created="Fri, 20 Jan 2023 17:28:53 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;farr0186@gmail.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49723&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49723&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16412&quot; title=&quot;check truncated page in -&amp;gt;read page()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16412&quot;&gt;&lt;del&gt;LU-16412&lt;/del&gt;&lt;/a&gt; llite: check read page past requested&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6cd31b52dda862131b619b4e5acccf248611b358&lt;/p&gt;</comment>
                            <comment id="360982" author="gerrit" created="Tue, 31 Jan 2023 02:34:27 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49433/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49433/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16412&quot; title=&quot;check truncated page in -&amp;gt;read page()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16412&quot;&gt;&lt;del&gt;LU-16412&lt;/del&gt;&lt;/a&gt; llite: check truncated page in -&amp;gt;readpage()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 209afbe28b5f164bda81f54ff0797be459e14b44&lt;/p&gt;</comment>
                            <comment id="361484" author="gerrit" created="Fri, 3 Feb 2023 06:51:47 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49723/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49723/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16412&quot; title=&quot;check truncated page in -&amp;gt;read page()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16412&quot;&gt;&lt;del&gt;LU-16412&lt;/del&gt;&lt;/a&gt; llite: check read page past requested&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2f8f38effac3a95199cdcdbd4854f958cdb0c72c&lt;/p&gt;</comment>
                            <comment id="361511" author="pjones" created="Fri, 3 Feb 2023 13:56:21 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="365751" author="adilger" created="Mon, 13 Mar 2023 17:11:14 +0000"  >&lt;p&gt;Patch for the upstream kernel submitted:&lt;br/&gt;
&lt;a href=&quot;https://lore.kernel.org/linux-fsdevel/20230208022400.28962-1-coolqyj@163.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lore.kernel.org/linux-fsdevel/20230208022400.28962-1-coolqyj@163.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Accepted into kernel and nackported to 6.1 and 5.15 stable trees:&lt;br/&gt;
&lt;a href=&quot;https://lore.kernel.org/stable/20230220133603.227781589@linuxfoundation.org/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lore.kernel.org/stable/20230220133603.227781589@linuxfoundation.org/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://lore.kernel.org/stable/20230220133556.188276389@linuxfoundation.org/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lore.kernel.org/stable/20230220133556.188276389@linuxfoundation.org/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This patch also ends up improving fxmark benchmark performance by 13%, likely due to avoiding extraneous reads of pages not actually requested by the application:&lt;br/&gt;
&lt;a href=&quot;https://lore.kernel.org/linux-fsdevel/202302171032.69bd3cf7-yujie.liu@intel.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lore.kernel.org/linux-fsdevel/202302171032.69bd3cf7-yujie.liu@intel.com/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="365757" author="gerrit" created="Mon, 13 Mar 2023 17:28:31 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50277&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50277&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16412&quot; title=&quot;check truncated page in -&amp;gt;read page()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16412&quot;&gt;&lt;del&gt;LU-16412&lt;/del&gt;&lt;/a&gt; llite: check read page past requested&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3c35c311211e561dd83b665f081e0112044de98a&lt;/p&gt;</comment>
                            <comment id="368983" author="gerrit" created="Tue, 11 Apr 2023 00:06:59 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50277/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50277/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16412&quot; title=&quot;check truncated page in -&amp;gt;read page()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16412&quot;&gt;&lt;del&gt;LU-16412&lt;/del&gt;&lt;/a&gt; llite: check read page past requested&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c6388ef80ff593936296f394a0154729578ac6eb&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                                                <inwardlinks description="is blocked by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="75024">LU-16638</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="74744">LU-16579</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|i0389r:</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>