<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:43: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-11403] lov_io_init_empty() Page fault on a file without stripes</title>
                <link>https://jira.whamcloud.com/browse/LU-11403</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;REFORMAT=yes RACER_ENABLE_DOM=false MOUNT_2=yes SLOW=yes sh racer.sh&lt;/p&gt;

&lt;p&gt;&#160;&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;
LustreError: 20867:0:(lov_io.c:1481:lov_io_init_empty()) Page fault on a file without stripes: [0x200000402:0x116f5:0x0]
BUG: unable to handle kernel NULL pointer dereference at           (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
IP: [&amp;lt;ffffffffa0cc04e8&amp;gt;] ll_fault+0xb8/0x610 [lustre]
PGD 0 
Oops: 0002 [#1] SMP 
Modules linked in: zfs(PO) zunicode(PO) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) lustre(O) ofd(O) osp(O) lod(O) ost(O) mdt(O) mdd(O) mgs(O) osd_ldiskfs(O) ldiskfs(O) lquota(O) lfsck(O) obdecho(O) mgc(O) lov(O) mdc(O) osc(O) lmv(O) fid(O) fld(O) ptlrpc(O) obdclass(O) ksocklnd(O) lnet(O) libcfs(O)
CPU: 0 PID: 20867 Comm: systemd-coredum Tainted: P           O   ------------   3.10.0 #5
Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
task: ffff8800aebaa0c0 ti: ffff88006485c000 task.ti: ffff88006485c000
RIP: 0010:[&amp;lt;ffffffffa0cc04e8&amp;gt;]  [&amp;lt;ffffffffa0cc04e8&amp;gt;] ll_fault+0xb8/0x610 [lustre]
RSP: 0018:ffff88006485fc70  EFLAGS: 00010246
RAX: 0000000000000001 RBX: 0000000000000100 RCX: 00000000c0000100
RDX: ffffffff81ab94c0 RSI: ffff8800aebaa0c0 RDI: ffff88011fc15b00
RBP: ffff88006485fcd8 R08: ffff88006485c000 R09: 00000000000004c1
R10: 000000009837f050 R11: ffff88011fc15b70 R12: 0000000000000000
R13: ffff8801157a4b60 R14: ffff88006485fce8 R15: ffff8800aebaa0c0
FS:  00007f4c1846c940(0000) GS:ffff88011fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000689c0000 CR4: 00000000000007b0
Call Trace:
 [&amp;lt;ffffffff811649f9&amp;gt;] __do_fault.isra.12+0x79/0xd0
 [&amp;lt;ffffffff8116d563&amp;gt;] ? __vma_link_file+0x43/0x80
 [&amp;lt;ffffffff81164a88&amp;gt;] do_read_fault.isra.14+0x38/0x170
 [&amp;lt;ffffffff811703f7&amp;gt;] ? mmap_region+0x207/0x740
 [&amp;lt;ffffffff8116a7ae&amp;gt;] handle_mm_fault+0x77e/0x11a0
 [&amp;lt;ffffffff815b1078&amp;gt;] __do_page_fault+0x1b8/0x4b0
 [&amp;lt;ffffffff815b13e3&amp;gt;] trace_do_page_fault+0x43/0xd0
 [&amp;lt;ffffffff815b08ed&amp;gt;] do_async_page_fault+0x5d/0xa0
 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="53361">LU-11403</key>
            <summary>lov_io_init_empty() Page fault on a file without stripes</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="pfarrell">Patrick Farrell</assignee>
                                    <reporter username="bzzz">Alex Zhuravlev</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Sep 2018 18:55:11 +0000</created>
                <updated>Sat, 8 Jun 2019 12:18:07 +0000</updated>
                            <resolved>Sat, 4 May 2019 14:36:24 +0000</resolved>
                                    <version>Upstream</version>
                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="241914" author="pfarrell" created="Wed, 13 Feb 2019 20:46:26 +0000"  >&lt;p&gt;Not sure why we haven&apos;t been hitting this forever, but I&apos;m pretty sure this is the bug.&lt;/p&gt;

&lt;p&gt;When there&apos;s no stripe, we return EFAULT (lov_io_init_empty):&lt;/p&gt;

&lt;p&gt;Which is translated to VM_FAULT_NOPAGE (to_fault_error)&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; case -EFAULT:
         result = VM_FAULT_NOPAGE;
 break;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Then in ll_fault:&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;        if (!(result &amp;amp; (VM_FAULT_RETRY | VM_FAULT_ERROR | VM_FAULT_LOCKED))) {
                struct page *vmpage = vmf-&amp;gt;page;                /* check if this page has been truncated */
                lock_page(vmpage);
 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But the page is &lt;b&gt;not&lt;/b&gt; set in this case.&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;static int __do_fault(struct vm_area_struct *vma, unsigned long address,
                        pgoff_t pgoff, unsigned int flags,
                        struct page *cow_page, struct page **page,
                        void **entry, pmd_t *pmd, pte_t orig_pte)
{
        struct vm_fault vmf;
        int ret;        vmf.virtual_address = (void __user *)(address &amp;amp; PAGE_MASK);
        vmf.pgoff = pgoff;
        vmf.flags = flags;
        vmf.page = NULL; &amp;lt;----------------------
        vmf.gfp_mask = __get_fault_gfp_mask(vma);
        vmf.cow_page = cow_page;
        vmf.orig_pte = orig_pte;
        vmf.pmd = pmd;
        vmf.vma = vma;

        ret = vma-&amp;gt;vm_ops-&amp;gt;fault(vma, &amp;amp;vmf); &amp;lt;------------- ll_fault &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Various errors can cause page to not get set.&lt;/p&gt;

&lt;p&gt;Fix seems clear - Check for the page.&lt;/p&gt;</comment>
                            <comment id="241915" author="gerrit" created="Wed, 13 Feb 2019 20:48:35 +0000"  >&lt;p&gt;Patrick Farrell (pfarrell@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34247&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34247&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11403&quot; title=&quot;lov_io_init_empty() Page fault on a file without stripes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11403&quot;&gt;&lt;del&gt;LU-11403&lt;/del&gt;&lt;/a&gt; llite: Check if page is set&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b0522f8f147f71a2bb150570769693de196df763&lt;/p&gt;</comment>
                            <comment id="243634" author="zam" created="Mon, 11 Mar 2019 14:04:26 +0000"  >&lt;p&gt;attached a simpler reproducer for the ll_fault() crash  &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/32210/32210_m.c&quot; title=&quot;m.c attached to LU-11403&quot;&gt;m.c&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; (made by Andrew Perepechko).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/34247&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34247&lt;/a&gt; causes the reproducer to hang with repeatable messages in kernel log:&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;[   87.575164] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Page fault on a file without stripes: [0x200000401:0x1:0x0]
[   87.575546] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Skipped 251880 previous similar messages
[   89.577930] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Page fault on a file without stripes: [0x200000401:0x1:0x0]
[   89.578283] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Skipped 493482 previous similar messages
[   93.579391] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Page fault on a file without stripes: [0x200000401:0x1:0x0]
[   93.579750] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Skipped 946319 previous similar messages
[  101.581054] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Page fault on a file without stripes: [0x200000401:0x1:0x0]
[  101.581550] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Skipped 1945088 previous similar messages
[  117.585786] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Page fault on a file without stripes: [0x200000401:0x1:0x0]
[  117.586855] LustreError: 5061:0:(lov_io.c:1481:lov_io_init_empty()) Skipped 4004012 previous similar messages
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;instead of crash. however , the hang is interruptible from the terminal.&lt;/p&gt;</comment>
                            <comment id="243660" author="pfarrell" created="Mon, 11 Mar 2019 16:53:52 +0000"  >&lt;p&gt;Oh, cool!&#160; Thanks very much to Panda for the reproducer and Zam for the report.&#160; I will take a look at the hang.&#160; (Agreed it&apos;s better than panicking, but we should be able to do better.)&lt;/p&gt;</comment>
                            <comment id="245698" author="gerrit" created="Sat, 13 Apr 2019 04:50:01 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34247/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34247/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11403&quot; title=&quot;lov_io_init_empty() Page fault on a file without stripes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11403&quot;&gt;&lt;del&gt;LU-11403&lt;/del&gt;&lt;/a&gt; llite: ll_fault fixes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a8f4d1e5fd79e77f1347e983ec52f2ddc3e75ab9&lt;/p&gt;</comment>
                            <comment id="245721" author="pjones" created="Sat, 13 Apr 2019 13:34:42 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="245926" author="adilger" created="Wed, 17 Apr 2019 14:31:19 +0000"  >&lt;p&gt;The sanity.sh test_61b added from this patch is failing regularly.&lt;/p&gt;

&lt;p&gt;My thinking is that it makes sense to instantiate the layout at the time that mmap() is called for the full range of the mapping, rather than waiting for the page fault. &lt;/p&gt;</comment>
                            <comment id="245935" author="gerrit" created="Wed, 17 Apr 2019 16:19:31 +0000"  >&lt;p&gt;Patrick Farrell (pfarrell@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34698&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34698&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11403&quot; title=&quot;lov_io_init_empty() Page fault on a file without stripes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11403&quot;&gt;&lt;del&gt;LU-11403&lt;/del&gt;&lt;/a&gt; tests: Fix $tfile usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 37a5b05ac0fe80f551ec279f070726edb04d7b33&lt;/p&gt;</comment>
                            <comment id="246701" author="gerrit" created="Sat, 4 May 2019 05:57:57 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34698/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34698/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11403&quot; title=&quot;lov_io_init_empty() Page fault on a file without stripes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11403&quot;&gt;&lt;del&gt;LU-11403&lt;/del&gt;&lt;/a&gt; tests: Fix $tfile usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 4191e0cdd0d96b848c1235471179d25d37a889dc&lt;/p&gt;</comment>
                            <comment id="246714" author="pjones" created="Sat, 4 May 2019 14:36:24 +0000"  >&lt;p&gt;Take two&lt;/p&gt;</comment>
                            <comment id="247462" author="gerrit" created="Tue, 21 May 2019 18:37:33 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34914&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34914&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11403&quot; title=&quot;lov_io_init_empty() Page fault on a file without stripes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11403&quot;&gt;&lt;del&gt;LU-11403&lt;/del&gt;&lt;/a&gt; tests: Fix $tfile usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 58572b0ba1be608226af3695c4f7d50399e2bded&lt;/p&gt;</comment>
                            <comment id="247498" author="gerrit" created="Tue, 21 May 2019 22:21:05 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34935&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34935&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11403&quot; title=&quot;lov_io_init_empty() Page fault on a file without stripes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11403&quot;&gt;&lt;del&gt;LU-11403&lt;/del&gt;&lt;/a&gt; llite: ll_fault fixes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9760d68dd6915492f4d2241d0009b86fba85e770&lt;/p&gt;</comment>
                            <comment id="248788" author="gerrit" created="Sat, 8 Jun 2019 02:34:01 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34935/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34935/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11403&quot; title=&quot;lov_io_init_empty() Page fault on a file without stripes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11403&quot;&gt;&lt;del&gt;LU-11403&lt;/del&gt;&lt;/a&gt; llite: ll_fault fixes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a1ffe58ab0c41009b77abe553850798a1030d653&lt;/p&gt;</comment>
                            <comment id="248789" author="gerrit" created="Sat, 8 Jun 2019 02:34:49 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34914/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34914/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11403&quot; title=&quot;lov_io_init_empty() Page fault on a file without stripes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11403&quot;&gt;&lt;del&gt;LU-11403&lt;/del&gt;&lt;/a&gt; tests: Fix $tfile usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 5866a8975fe95cbd07b370ee4cf838ba223c13da&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="55459">LU-12213</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="32210" name="m.c" size="585" author="zam" created="Mon, 11 Mar 2019 13:56:31 +0000"/>
                    </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|i002q7:</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>