<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:05:38 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-13956] crash - kernel NULL pointer deference when setting project id to 4294967295</title>
                <link>https://jira.whamcloud.com/browse/LU-13956</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hello,&lt;br/&gt;
This is likely not very important as it&apos;s a contrived situation, but I am reliably able to crash an MDS running 2.12.5, by setting the project id on a file to &apos;4294967295&apos;.&lt;/p&gt;

&lt;p&gt;I only stumbled on it, as I was curious what the upper limit of project IDs would be, so tried this value and get a MDS crash.&lt;/p&gt;

&lt;p&gt;I attach the vmcore-dmesg.txt file - I can supply a vmcore file too if requested. Is this a kernel issue rather than a lustre issue?&lt;/p&gt;

&lt;p&gt;Obviously this isn&apos;t a major issue, but I just thought I&apos;d raise the bug report in case it&apos;s a simple fix.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Matt&lt;/p&gt;</description>
                <environment>kernel: 3.10.0-1127.8.2.el7_lustre&lt;br/&gt;
e2fsprogs: </environment>
        <key id="60752">LU-13956</key>
            <summary>crash - kernel NULL pointer deference when setting project id to 4294967295</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="3">Duplicate</resolution>
                                        <assignee username="wshilong">Wang Shilong</assignee>
                                    <reporter username="mrb">Matt R&#225;s&#243;-Barnett</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Sep 2020 10:46:10 +0000</created>
                <updated>Wed, 16 Sep 2020 07:01:34 +0000</updated>
                            <resolved>Tue, 15 Sep 2020 18:57:03 +0000</resolved>
                                    <version>Lustre 2.12.5</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="279325" author="pjones" created="Fri, 11 Sep 2020 11:52:28 +0000"  >&lt;p&gt;Shilong&lt;/p&gt;

&lt;p&gt;As Matt suggests, this is relatively low priority but is likely a simple thing to tidy up&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="279342" author="wshilong" created="Fri, 11 Sep 2020 14:37:26 +0000"  >&lt;p&gt;Would you mind sharing steps to reproduce the problem:&lt;/p&gt;

&lt;p&gt;It looks working for me:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@server_el7_vm1 lustre&amp;#93;&lt;/span&gt;# lfs project -p 4294967295 file&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@server_el7_vm1 lustre&amp;#93;&lt;/span&gt;# lfs project file&lt;br/&gt;
4294967295 - file&lt;/p&gt;</comment>
                            <comment id="279347" author="mrb" created="Fri, 11 Sep 2020 15:29:05 +0000"  >&lt;p&gt;Interesting, I didn&apos;t know about &apos;lfs project&apos; - I get the same issue with that command as well though, just running what you showed exactly.&lt;/p&gt;

&lt;p&gt;Perhaps there is something with my setup then, I&apos;m using RHEL 7.8, 3.10.0-1127.8.2.el7_lustre, Lustre 2.12.5. I&apos;ll redeploy this filesystem and see if the issue goes away.&lt;/p&gt;

&lt;p&gt;Thanks for checking it for me.&lt;/p&gt;</comment>
                            <comment id="279401" author="adilger" created="Sat, 12 Sep 2020 00:02:03 +0000"  >&lt;p&gt;Matt, there was a patch landed recently that may have hidden this?&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;commit 3d9900e78e180a211c50ea1030fa147c5a330f22
Author:     Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;

    LU-12549 utils: Check range of quota ID for &quot;lfs&quot; arguments
    
    strtoul function return a 64bits value on a 64bits system, so an
    overflow occurs when we store user value into a quota/project
    structure.
    
    This commit apply the same 32 bits verification for &quot;lfs&quot; project,
    quota,setquota and find commands on uid, gid and project id arguments.
    
    Signed-off-by: Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;
    Change-Id: I809e9ac55d4bc676c20b18c6c198a69eaba9cff6
    Reviewed-on: https://review.whamcloud.com/38938
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, that only affects the user tools.  If the MDS crashes due to bad input, that should be fixed as well.&lt;/p&gt;

&lt;p&gt;Could you please attach reproducer steps and a stack trace, so that the MDS can be suitably hardened.&lt;/p&gt;</comment>
                            <comment id="279403" author="wshilong" created="Sat, 12 Sep 2020 04:39:09 +0000"  >&lt;p&gt;Maybe i should try b2_12, at least i tried to revert &quot; &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12549&quot; title=&quot;Lustre project PID 32-bit overflow&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12549&quot;&gt;&lt;del&gt;LU-12549&lt;/del&gt;&lt;/a&gt; utils: Check range of quota ID for &quot;lfs&quot; arguments&quot; on master, could not reproduce the problem.&lt;/p&gt;</comment>
                            <comment id="279462" author="adilger" created="Sun, 13 Sep 2020 03:13:06 +0000"  >&lt;p&gt;Sorry, I didn&apos;t see the vmcore file, it already has the stack:&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;[ 1160.328702] BUG: unable to handle kernel NULL pointer dereference at 000000000000007e
[ 1160.336576] IP: [&amp;lt;ffffffffa14bbe26&amp;gt;] check_idq.constprop.23+0x16/0x1c0
[ 1160.343128] PGD 0 
[ 1160.345166] Oops: 0000 [#1] SMP 
[ 1160.460913] CPU: 21 PID: 5663 Comm: mdt01_012  3.10.0-1127.8.2.el7_lustre.x86_64 #1
[ 1160.488092] RIP: 0010:[&amp;lt;ffffffffa14bbe26&amp;gt;]  [&amp;lt;ffffffffa14bbe26&amp;gt;] check_idq.constprop.23+0x16/0x1c0
[ 1160.575912] Call Trace:
[ 1160.578361]  [&amp;lt;ffffffffa14bf1ac&amp;gt;] __dquot_transfer+0x32c/0x510
[ 1160.630492]  [&amp;lt;ffffffffc16e354f&amp;gt;] osd_transfer_project+0x14f/0x1a0 [osd_ldiskfs]
[ 1160.638470]  [&amp;lt;ffffffffc16e3630&amp;gt;] osd_quota_transfer+0x90/0x230 [osd_ldiskfs]
[ 1160.653446]  [&amp;lt;ffffffffc16f0d3f&amp;gt;] osd_attr_set+0x11f/0xb90 [osd_ldiskfs]
[ 1160.660718]  [&amp;lt;ffffffffc198ab68&amp;gt;] lod_sub_attr_set+0x1c8/0x460 [lod]
[ 1160.675739]  [&amp;lt;ffffffffc197370a&amp;gt;] lod_attr_set+0xba/0x9e0 [lod]
[ 1160.689502]  [&amp;lt;ffffffffc19f24d0&amp;gt;] mdd_attr_set_internal+0x120/0x2a0 [mdd]
[ 1160.696819]  [&amp;lt;ffffffffc19f4f08&amp;gt;] mdd_attr_set+0x928/0xda0 [mdd]
[ 1160.711153]  [&amp;lt;ffffffffc18a4bcb&amp;gt;] mdt_reint_setattr+0x9db/0x1290 [mdt]
[ 1160.718202]  [&amp;lt;ffffffffc18a6963&amp;gt;] mdt_reint_rec+0x83/0x210 [mdt]
[ 1160.724713]  [&amp;lt;ffffffffc1883273&amp;gt;] mdt_reint_internal+0x6e3/0xaf0 [mdt]
[ 1160.731738]  [&amp;lt;ffffffffc188e6e7&amp;gt;] mdt_reint+0x67/0x140 [mdt]
[ 1160.737905]  [&amp;lt;ffffffffc14799da&amp;gt;] tgt_request_handle+0xada/0x1570 [ptlrpc]
[ 1160.760792]  [&amp;lt;ffffffffc141e48b&amp;gt;] ptlrpc_server_handle_request+0x24b/0xab0 [ptlrpc]
[ 1160.781758]  [&amp;lt;ffffffffc1421df4&amp;gt;] ptlrpc_main+0xb34/0x1470 [ptlrpc]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="279634" author="eaujames" created="Tue, 15 Sep 2020 16:15:12 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I have already created a ticket on the subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13845&quot; title=&quot;Kernel crash on: lfs quota -u $(( (1&amp;lt;&amp;lt;32) -1))&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13845&quot;&gt;&lt;del&gt;LU-13845&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(patch: &lt;a href=&quot;https://review.whamcloud.com/39559&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39559&lt;/a&gt;)&lt;/p&gt;</comment>
                            <comment id="279644" author="mrb" created="Tue, 15 Sep 2020 18:35:05 +0000"  >&lt;p&gt;Ah thanks for pointing that out. Happy for this to be closed as dupe of that.&lt;br/&gt;
Cheers,&lt;br/&gt;
Matt&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="60222">LU-13845</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="36000" name="vmcore-dmesg.txt" size="242941" author="mrb" created="Fri, 11 Sep 2020 10:45:51 +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|i019lr:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>