<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:34:37 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-3521] LBUG in cl_page_cache_add() using &apos;--enable-invariants&apos; configure option</title>
                <link>https://jira.whamcloud.com/browse/LU-3521</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Building Lustre using the &apos;--enable-invariants&apos; configure option and running a simple single shared file FIO causes an LBUG. This is easily reproducible using a stock 2.4.0 tag:&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;$ cat /tmp/test.fio                                                                                                                    
[global]
directory=/mnt/lustre
filename=ssf
size=1m
blocksize=1m
direct=0
ioengine=sync
numjobs=32
group_reporting=1
fallocate=none
runtime=60
stonewall

$ git describe
v2_4_50_0

$ sh autogen.sh &amp;amp;&amp;amp; ./configure --enable-invariants &amp;amp;&amp;amp; make
$ sudo FSTYPE=zfs sh ./lustre/tests/llmount.sh
$ sudo fio /tmp/test.fio
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here&apos;s the LBUG triggered:&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: 2491:0:(cl_page.c:1392:cl_page_cache_add()) page@ffff880027691800[3 ffff88001c1ede70:0 ^(null)_ffff880027691600 1 0 1 ffff880037eef608 (null) 0x0]
LustreError: 2491:0:(cl_page.c:1392:cl_page_cache_add()) page@ffff880027691600[2 ffff880006e73148:0 ^ffff880027691800_(null) 1 0 1 ffff88003b2f2a10 (null) 0x0]
LustreError: 2491:0:(cl_page.c:1392:cl_page_cache_add()) vvp-page@ffff8800276918c0(0:0:0) vm@ffffea000024cf50 20000000000805 4:0 ffff880027691800 0 lru 
LustreError: 2491:0:(cl_page.c:1392:cl_page_cache_add()) lov-page@ffff880027691910
LustreError: 2491:0:(cl_page.c:1392:cl_page_cache_add()) osc-page@ffff8800276916e8: 1&amp;lt; 0x845fed 0 0 - - &amp;gt; 2&amp;lt; 0 0 0 0x0 0x100 | (null) ffff880010e8ca40 ffff88001c1de6c0 &amp;gt; 3&amp;lt; - (null) 0 0 0 &amp;gt; 4&amp;lt; 0 0 8 413696 - | - - - - &amp;gt; 5&amp;lt; - - - - | 0 - | 0 - -&amp;gt;
LustreError: 2491:0:(cl_page.c:1392:cl_page_cache_add()) end page@ffff880027691600
LustreError: 2491:0:(cl_page.c:1392:cl_page_cache_add()) cl_page_invariant(pg)  
LustreError: 2491:0:(cl_page.c:1392:cl_page_cache_add()) ASSERTION( 0 ) failed: 
LustreError: 2491:0:(cl_page.c:1392:cl_page_cache_add()) LBUG                      
Kernel panic - not syncing: LBUG                                                   
Pid: 2491, comm: fio Tainted: P           ---------------    2.6.32-358.5chaos.ch5.1.x86_64 #1
Call Trace:                                                                        
 [&amp;lt;ffffffff8150d3ec&amp;gt;] ? panic+0xa7/0x16f                                           
 [&amp;lt;ffffffffa0b69eeb&amp;gt;] ? lbug_with_loc+0x9b/0xb0 [libcfs]                           
 [&amp;lt;ffffffffa05bfb34&amp;gt;] ? cl_page_cache_add+0x144/0x5b0 [obdclass]                   
 [&amp;lt;ffffffffa0c172aa&amp;gt;] ? lov_page_cache_add+0x15a/0x2d0 [lov]                       
 [&amp;lt;ffffffffa05bfc4f&amp;gt;] ? cl_page_cache_add+0x25f/0x5b0 [obdclass]                   
 [&amp;lt;ffffffffa05bd6ac&amp;gt;] ? cl_page_find0+0x47c/0x8f0 [obdclass]                       
 [&amp;lt;ffffffffa0931f61&amp;gt;] ? cl2osc_io+0x21/0xa0 [osc]                                  
 [&amp;lt;ffffffffa05b6219&amp;gt;] ? cl_env_hops_keycmp+0x19/0x70 [obdclass]                    
 [&amp;lt;ffffffffa0b7fa0d&amp;gt;] ? cfs_hash_bd_lookup_intent+0xdd/0x130 [libcfs]              
 [&amp;lt;ffffffffa0f63c55&amp;gt;] ? vvp_io_commit_write+0x3f5/0x5f0 [lustre]                   
 [&amp;lt;ffffffffa05cc82c&amp;gt;] ? cl_io_commit_write+0xdc/0x2e0 [obdclass]                   
 [&amp;lt;ffffffffa0f3856e&amp;gt;] ? ll_commit_write+0xee/0x320 [lustre]                        
 [&amp;lt;ffffffffa0f50860&amp;gt;] ? ll_write_end+0x30/0x60 [lustre]                            
 [&amp;lt;ffffffff8111a21a&amp;gt;] ? generic_file_buffered_write+0x18a/0x2e0                    
 [&amp;lt;ffffffff8111bc20&amp;gt;] ? __generic_file_aio_write+0x260/0x490                       
 [&amp;lt;ffffffffa05c18fc&amp;gt;] ? cl_lock_trace0+0x11c/0x130 [obdclass]                      
 [&amp;lt;ffffffff8111bed8&amp;gt;] ? generic_file_aio_write+0x88/0x100                          
 [&amp;lt;ffffffffa0f6614b&amp;gt;] ? vvp_io_write_start+0xcb/0x2d0 [lustre]                     
 [&amp;lt;ffffffffa05c8d7a&amp;gt;] ? cl_io_start+0xea/0x1f0 [obdclass]                          
 [&amp;lt;ffffffffa05ce0a0&amp;gt;] ? cl_io_loop+0x180/0x200 [obdclass]                          
 [&amp;lt;ffffffffa0f0bb80&amp;gt;] ? ll_file_io_generic+0x450/0x600 [lustre]                    
 [&amp;lt;ffffffffa0f0cac2&amp;gt;] ? ll_file_aio_write+0x142/0x2c0 [lustre]                     
 [&amp;lt;ffffffffa0f0cdac&amp;gt;] ? ll_file_write+0x16c/0x2a0 [lustre]                         
 [&amp;lt;ffffffff81180b38&amp;gt;] ? vfs_write+0xb8/0x1a0                                       
 [&amp;lt;ffffffff81181431&amp;gt;] ? sys_write+0x51/0x90                                        
 [&amp;lt;ffffffff810dc0a5&amp;gt;] ? __audit_syscall_exit+0x265/0x290                           
 [&amp;lt;ffffffff8100b072&amp;gt;] ? system_call_fastpath+0x16/0x1b
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="19587">LU-3521</key>
            <summary>LBUG in cl_page_cache_add() using &apos;--enable-invariants&apos; configure option</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="niu">Niu Yawei</assignee>
                                    <reporter username="prakash">Prakash Surya</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Jun 2013 17:16:43 +0000</created>
                <updated>Thu, 5 Sep 2013 22:49:12 +0000</updated>
                            <resolved>Thu, 5 Sep 2013 22:49:12 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.5.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="61474" author="pjones" created="Fri, 28 Jun 2013 13:14:36 +0000"  >&lt;p&gt;Niu&lt;/p&gt;

&lt;p&gt;Could you please advise on this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="61555" author="niu" created="Mon, 1 Jul 2013 04:22:31 +0000"  >&lt;p&gt;The assertion is triggered for the sub cl_page is not cl_page_in_use():&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;page@ffff880027691600[2 ffff880006e73148:0 ^ffff880027691800_(&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) 1 0 1 ffff88003b2f2a10 (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) 0x0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Actually, this assertion is incorrect for the sub cl_page, because we didn&apos;t hold extra ref for the sub cl_page before (see cl_vmpage_page()). I think there should be more other wrong asserstions like this, because we never test the &apos;--enable-invariants&apos; option.&lt;/p&gt;</comment>
                            <comment id="61556" author="niu" created="Mon, 1 Jul 2013 04:42:29 +0000"  >&lt;p&gt;Fixed several wrong assumptions when &apos;enable-invariants&apos;: &lt;a href=&quot;http://review.whamcloud.com/6832&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/6832&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="65889" author="pjones" created="Thu, 5 Sep 2013 22:49:12 +0000"  >&lt;p&gt;Landed for 2.5&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|hzvu53:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8856</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>