<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:20:01 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-15635] ext4_(inc|dec)_count removed handle_t arg breaking 5.10 server</title>
                <link>https://jira.whamcloud.com/browse/LU-15635</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Linux v5.9-rc7-8-g15ed2851b0f4&lt;br/&gt;
      ext4: remove unused argument from ext4_(inc|dec)_count&lt;/p&gt;

&lt;p&gt;This breaks when the &apos;handle&apos; is treated as inode with random crashes like the following:&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;PID: 1901   TASK: ffff8a4d4151c740  CPU: 0   COMMAND: &quot;mount.lustre&quot;
 #0 [ffffafe480aef6b0] panic at ffffffffb0f54b17
    /home/shaun/rpmbuild/BUILD/kernel-5.10.9/linux-5.10.9-1.ldiskfs.el8.x86_64/kernel/panic.c: 360
 #1 [ffffafe480aef750] no_context at ffffffffb066a2f9
    /home/shaun/rpmbuild/BUILD/kernel-5.10.9/linux-5.10.9-1.ldiskfs.el8.x86_64/arch/x86/mm/fault.c: 747
 #2 [ffffafe480aef7b8] exc_page_fault at ffffffffb0f953c3
    /home/shaun/rpmbuild/BUILD/kernel-5.10.9/linux-5.10.9-1.ldiskfs.el8.x86_64/arch/x86/mm/fault.c: 1320
 #3 [ffffafe480aef810] asm_exc_page_fault at ffffffffb1000ade
    /home/shaun/rpmbuild/BUILD/kernel-5.10.9/linux-5.10.9-1.ldiskfs.el8.x86_64/./arch/x86/include/asm/idtentry.h: 583
    [exception RIP: inc_nlink+32]
    RIP: ffffffffb0934f80  RSP: ffffafe480aef8c0  RFLAGS: 00010202
    RAX: 0000000100037655  RBX: ffff8a4d4467ddc8  RCX: 0000000000000000
    RDX: 0000000000000001  RSI: ffff8a4d44792bd0  RDI: ffff8a4d4467ddc8
    RBP: ffff8a4d44792bd0   R8: 000000000000004c   R9: 0000000000000003
    R10: 0000000000000000  R11: ffff8a4d41ba8700  R12: ffff8a4d41ba8700
    R13: ffffafe480aefb40  R14: ffff8a4d43961800  R15: ffff8a4d41ba8b00
    ORIG_RAX: ffffffffffffffff  CS: 0010  SS: 0018
    /home/shaun/rpmbuild/BUILD/kernel-5.10.9/linux-5.10.9-1.ldiskfs.el8.x86_64/./arch/x86/include/asm/atomic64_64.h: 102
 #4 [ffffafe480aef8c0] ldiskfs_inc_count at ffffffffc0a4ca9e [ldiskfs]
 #5 [ffffafe480aef8d0] osd_ref_add at ffffffffc15fcd65 [osd_ldiskfs]
 #6 [ffffafe480aef8f8] __local_file_create at ffffffffc0cff324 [obdclass]
 #7 [ffffafe480aef950] local_file_find_or_create at ffffffffc0cffd37 [obdclass]
 #8 [ffffafe480aef9a0] mgs_fs_setup at ffffffffc1686712 [mgs]
 #9 [ffffafe480aefa00] mgs_init0 at ffffffffc16821ad [mgs]
#10 [ffffafe480aefae0] mgs_device_alloc at ffffffffc1682c7a [mgs]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</description>
                <environment></environment>
        <key id="69041">LU-15635</key>
            <summary>ext4_(inc|dec)_count removed handle_t arg breaking 5.10 server</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="stancheff">Shaun Tancheff</assignee>
                                    <reporter username="stancheff">Shaun Tancheff</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Mar 2022 19:45:12 +0000</created>
                <updated>Tue, 5 Jul 2022 22:56:41 +0000</updated>
                            <resolved>Sat, 11 Jun 2022 15:41:55 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="328653" author="simmonsja" created="Wed, 9 Mar 2022 20:28:18 +0000"  >&lt;p&gt;Yep I saw this with my UbuntuLTS 5.11 kernel testing. Do you have a fix? I haven&apos;t had time to work out a fix.&#160;&lt;/p&gt;</comment>
                            <comment id="328666" author="adilger" created="Wed, 9 Mar 2022 22:01:50 +0000"  >&lt;p&gt;It looks like a fundamental source of this bug is that &quot;&lt;tt&gt;ldiskfs_inc_count()&lt;/tt&gt;&quot; is declared in &lt;tt&gt;lustre/osd-ldiskfs/osd_internal.h&lt;/tt&gt;, while the function itself is exported from the ldiskfs module in &lt;tt&gt;ext4-misc.patch&lt;/tt&gt; without a declaration.  It would be better to remove the &lt;tt&gt;osd_internal.h&lt;/tt&gt; declaration and put it into &lt;tt&gt;ext4.h&lt;/tt&gt; in the patch, so that it is sure to remain consistent.&lt;/p&gt;

&lt;p&gt;It should never happen that functions are declared in a file that is not itself included where the function is implemented, exactly to catch issues like this at compile time rather than run time.&lt;/p&gt;

&lt;p&gt;I had a quick look through the rest of &lt;tt&gt;osd_internal.h&lt;/tt&gt; and didn&apos;t see any other &lt;tt&gt;ldiskfs_&amp;#42;&lt;/tt&gt; function declarations (though there are some inline functions and macros, but those are OK).&lt;/p&gt;</comment>
                            <comment id="328687" author="gerrit" created="Thu, 10 Mar 2022 03:03:53 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46775&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46775&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15635&quot; title=&quot;ext4_(inc|dec)_count removed handle_t arg breaking 5.10 server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15635&quot;&gt;&lt;del&gt;LU-15635&lt;/del&gt;&lt;/a&gt; ldiskfs: Interface change fix server v5.10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 5a6c0b92df59ae411134c89fcf405e12ff3fac8c&lt;/p&gt;</comment>
                            <comment id="328717" author="stancheff" created="Thu, 10 Mar 2022 07:42:26 +0000"  >&lt;p&gt;I will rework the patch to fix ext4-misc.patch, probably only for &apos;newer&apos; kernels first and reworking the older kernels later (there are 12 versions of this patch and some of the targets are a bit old and I do not have active images for some of them to test).&lt;/p&gt;</comment>
                            <comment id="328722" author="adilger" created="Thu, 10 Mar 2022 08:33:51 +0000"  >&lt;p&gt;IMHO the high value targets are the newer kernels and the recent distro kernels - RHEL8.5/7.9, Ubuntu 20, SLES15.  It is unlikely that older kernels would break from such a simple change, but at the same time moving the function declaration is mostly to avoid problems in the future, so there isn&apos;t a strict need to do it for all kernels  &lt;/p&gt;</comment>
                            <comment id="337419" author="gerrit" created="Sat, 11 Jun 2022 05:35:07 +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/46775/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46775/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15635&quot; title=&quot;ext4_(inc|dec)_count removed handle_t arg breaking 5.10 server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15635&quot;&gt;&lt;del&gt;LU-15635&lt;/del&gt;&lt;/a&gt; ldiskfs: Interface change fix server v5.10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 68d96d2f650a6d9ae04e48eac9c66b2cd4be0a23&lt;/p&gt;</comment>
                            <comment id="337511" author="pjones" created="Sat, 11 Jun 2022 15:41:55 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="338596" author="gerrit" created="Fri, 24 Jun 2022 04:04:20 +0000"  >&lt;p&gt;&quot;Jian Yu &amp;lt;yujian@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47731&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47731&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15635&quot; title=&quot;ext4_(inc|dec)_count removed handle_t arg breaking 5.10 server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15635&quot;&gt;&lt;del&gt;LU-15635&lt;/del&gt;&lt;/a&gt; ldiskfs: Interface change fix server v5.10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b5ea75bd1660fe8f6d4cba611b72af7c3568b6c2&lt;/p&gt;</comment>
                            <comment id="339631" author="gerrit" created="Tue, 5 Jul 2022 22:14:15 +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/47731/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47731/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15635&quot; title=&quot;ext4_(inc|dec)_count removed handle_t arg breaking 5.10 server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15635&quot;&gt;&lt;del&gt;LU-15635&lt;/del&gt;&lt;/a&gt; ldiskfs: Interface change fix server v5.10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 401b5002230d8a2fcc8a4cbe77fa81eac7605c38&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="61899">LU-14195</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|i02kfz:</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>