<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:08:36 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-14306] sanity-sec test_52: BUG: Bad rss-counter state</title>
                <link>https://jira.whamcloud.com/browse/LU-14306</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for S Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://testing.whamcloud.com/test_sets/c31eb44e-b299-487e-99da-794b128f0cc5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/c31eb44e-b299-487e-99da-794b128f0cc5&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Even if it does not fail, test_52 shows the following error in the console:&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;[  694.000072] BUG: Bad rss-counter state mm:0000000049598c66 idx:1 val:2
[  694.001372] BUG: Bad rss-counter state mm:0000000049598c66 idx:3 val:-2
[  694.009960] BUG: Bad rss-counter state mm:0000000049598c66 idx:1 val:2
[  694.011094] BUG: Bad rss-counter state mm:0000000049598c66 idx:3 val:-2
[  694.092732] BUG: Bad rss-counter state mm:00000000e37c077b idx:1 val:2
[  694.094024] BUG: Bad rss-counter state mm:00000000e37c077b idx:3 val:-2
[  694.124577] BUG: Bad rss-counter state mm:0000000049598c66 idx:1 val:2
[  694.125755] BUG: Bad rss-counter state mm:0000000049598c66 idx:3 val:-2
[  694.367283] BUG: Bad rss-counter state mm:0000000049598c66 idx:1 val:3
[  694.368441] BUG: Bad rss-counter state mm:0000000049598c66 idx:3 val:-3
[  694.376602] BUG: Bad rss-counter state mm:0000000084701c1b idx:1 val:3
[  694.377761] BUG: Bad rss-counter state mm:0000000084701c1b idx:3 val:-3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Also, from time to time, some pages are dumped, because of a nonzero mapcount:&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;[  700.614727] BUG: Bad page state in process lfs  pfn:3ca01
[  700.615774] page:ffffd87ac0f28040 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x0
[  700.617194] flags: 0xfffffc0000000()
[  700.617850] raw: 000fffffc0000000 0000000000000000 ffffffffc0f20903 0000000000000000
[  700.622001] raw: 0000000000000000 0000000000000000 00000000fffffffe 0000000000000000
[  700.623329] page dumped because: nonzero mapcount
[  700.624155] Modules linked in: lustre(OE) obdecho(OE) mgc(OE) mdc(OE) lov(OE) osc(OE) lmv(OE) fid(OE) fld(OE) ptlrpc_gss(OE) ptlrpc(OE) obdclass(OE) ksocklnd(OE) lnet(OE) libcfs(OE) rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache ib_isert iscsi_target_mod ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma ib_iser ib_ipoib libiscsi scsi_transport_iscsi rdma_ucm ib_umad rdma_cm ib_cm iw_cm mlx4_ib ib_uverbs ib_core sunrpc intel_rapl_msr intel_rapl_common crct10dif_pclmul crc32_pclmul ghash_clmulni_intel i2c_piix4 virtio_balloon joydev pcspkr ip_tables ext4 mbcache jbd2 mlx4_en ata_generic ata_piix 8139too mlx4_core libata crc32c_intel serio_raw 8139cp virtio_blk mii
[  700.633949] CPU: 1 PID: 45813 Comm: lfs Kdump: loaded Tainted: G           OE    --------- -  - 4.18.0-240.1.1.el8_3.x86_64 #1
[  700.635821] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[  700.636800] Call Trace:
[  700.637382]  dump_stack+0x5c/0x80
[  700.638015]  bad_page.cold.115+0xba/0xbf
[  700.638726]  __free_pages_ok+0x2c4/0x2d0
[  700.639436]  release_pages+0x305/0x430
[  700.640117]  ? cpumask_any_but+0x20/0x40
[  700.640819]  tlb_flush_mmu_free+0x3d/0x60
[  700.641539]  arch_tlb_finish_mmu+0x89/0x130
[  700.642277]  tlb_finish_mmu+0x1f/0x30
[  700.642931]  unmap_region+0xdd/0x110
[  700.643585]  ? __vma_rb_erase+0x127/0x250
[  700.644294]  do_munmap+0x256/0x440
[  700.644913]  vm_munmap+0x5f/0xa0
[  700.645499]  __x64_sys_munmap+0x22/0x30
[  700.646208]  do_syscall_64+0x5b/0x1a0
[  700.646887]  entry_SYSCALL_64_after_hwframe+0x65/0xca
[  700.647778] RIP: 0033:0x7f4035528a0b
[  700.648418] Code: ff ff 0f 1f 44 00 00 48 8b 15 79 54 2c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff e9 6f ff ff ff f3 0f 1e fa b8 0b 00 00 00 0f 05 &amp;lt;48&amp;gt; 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4d 54 2c 00 f7 d8 64 89 01 48
[  700.651441] RSP: 002b:00007ffc550ab5f8 EFLAGS: 00000202 ORIG_RAX: 000000000000000b
[  700.652712] RAX: ffffffffffffffda RBX: 00007ffc550ab7e0 RCX: 00007f4035528a0b
[  700.653907] RDX: 0000000000000000 RSI: 0000000000402000 RDI: 00007f4034bfe000
[  700.655109] RBP: 0000000000000002 R08: 0000000000401010 R09: 00007ffc550ab4c0
[  700.656330] R10: 000000000000000a R11: 0000000000000202 R12: 0000000000000002
[  700.657530] R13: 00007ffc550ab6d0 R14: 00007f4034bff000 R15: 00007ffc550ab7e0
[  700.658764] Disabling lock debugging due to kernel taint
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;






&lt;p&gt;VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV&lt;br/&gt;
sanity-sec test_52 - &lt;/p&gt;</description>
                <environment></environment>
        <key id="62258">LU-14306</key>
            <summary>sanity-sec test_52: BUG: Bad rss-counter state</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="sebastien">Sebastien Buisson</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Jan 2021 10:18:29 +0000</created>
                <updated>Mon, 25 Jan 2021 19:35:28 +0000</updated>
                            <resolved>Mon, 25 Jan 2021 19:35:28 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="288916" author="gerrit" created="Thu, 7 Jan 2021 10:57:33 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41159&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41159&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14306&quot; title=&quot;sanity-sec test_52: BUG: Bad rss-counter state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14306&quot;&gt;&lt;del&gt;LU-14306&lt;/del&gt;&lt;/a&gt; tests: debug patch&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 91b117e0916969466137e43c0d1bf57fdca6d681&lt;/p&gt;</comment>
                            <comment id="288925" author="adilger" created="Thu, 7 Jan 2021 13:33:50 +0000"  >&lt;p&gt;It seems possible that this problem is caused by the use of &quot;fake&quot; pages for handling O_DIRECT writes from &lt;tt&gt;lfs mirror resync&lt;/tt&gt;?  Is it possible that the pages are not being reset properly after use, or they are not being initialized correctly before use?&lt;/p&gt;</comment>
                            <comment id="288927" author="sebastien" created="Thu, 7 Jan 2021 13:38:25 +0000"  >&lt;p&gt;Indeed, that is most likely because we twist the Lustre pages used for RPCs so that they have a proper mapping and index,&lt;br/&gt;
suitable for encryption/decryption. This is done in order to be able to support O_DIRECT for encrypted files, which is the IO mode used when syncing mirrors.&lt;/p&gt;</comment>
                            <comment id="288941" author="jhammond" created="Thu, 7 Jan 2021 15:33:17 +0000"  >&lt;p&gt;These messages start in &lt;tt&gt;test_44&lt;/tt&gt; which appears to be the first subtest to invoke direct IO.&lt;/p&gt;</comment>
                            <comment id="288943" author="sebastien" created="Thu, 7 Jan 2021 15:37:21 +0000"  >&lt;p&gt;You are right, I would better try to get traces from sanity-sec test_44 instead of test_52, because test_44 explicitly does O_DIRECT IOs whereas test_52 indirectly triggers that via calls to &lt;tt&gt;lfs mirror&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="288958" author="gerrit" created="Thu, 7 Jan 2021 16:57:24 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41164&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41164&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14306&quot; title=&quot;sanity-sec test_52: BUG: Bad rss-counter state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14306&quot;&gt;&lt;del&gt;LU-14306&lt;/del&gt;&lt;/a&gt; tests: attempt 1&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c10dae7f3c5909ff4a3b3e47d3f0561cf68ea161&lt;/p&gt;</comment>
                            <comment id="288961" author="gerrit" created="Thu, 7 Jan 2021 17:05:40 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41165&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41165&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14306&quot; title=&quot;sanity-sec test_52: BUG: Bad rss-counter state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14306&quot;&gt;&lt;del&gt;LU-14306&lt;/del&gt;&lt;/a&gt; tests: attempt 2&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 509d599f967095ed7969b037a93f747c7b975c38&lt;/p&gt;</comment>
                            <comment id="289199" author="gerrit" created="Mon, 11 Jan 2021 16:03:43 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41199&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41199&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14306&quot; title=&quot;sanity-sec test_52: BUG: Bad rss-counter state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14306&quot;&gt;&lt;del&gt;LU-14306&lt;/del&gt;&lt;/a&gt; sec: get rid of bad rss-counter state messages&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9d94fafbadd6fa2e1f0ce554d911113fb91cb3c9&lt;/p&gt;</comment>
                            <comment id="289253" author="gerrit" created="Tue, 12 Jan 2021 08:08:47 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41205&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41205&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14306&quot; title=&quot;sanity-sec test_52: BUG: Bad rss-counter state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14306&quot;&gt;&lt;del&gt;LU-14306&lt;/del&gt;&lt;/a&gt; sec: debug patch&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0b249bdf4981e915083c9f116649f392582cdc30&lt;/p&gt;</comment>
                            <comment id="289260" author="gerrit" created="Tue, 12 Jan 2021 10:12:38 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41208&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41208&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14306&quot; title=&quot;sanity-sec test_52: BUG: Bad rss-counter state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14306&quot;&gt;&lt;del&gt;LU-14306&lt;/del&gt;&lt;/a&gt; sec: debug patch 2&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cb8a25627b68d5cfc2d962e61f9aef815ab8d97b&lt;/p&gt;</comment>
                            <comment id="290304" author="gerrit" created="Mon, 25 Jan 2021 19:19:05 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/41199/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41199/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14306&quot; title=&quot;sanity-sec test_52: BUG: Bad rss-counter state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14306&quot;&gt;&lt;del&gt;LU-14306&lt;/del&gt;&lt;/a&gt; sec: get rid of bad rss-counter state messages&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a71e0dd7f7aa445dc06a99c0a1ef34383cafa2e2&lt;/p&gt;</comment>
                            <comment id="290308" author="pjones" created="Mon, 25 Jan 2021 19:35:28 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="61249">LU-14045</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i01it3:</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>