<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:06:44 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-7186] division by zero in lod_declare_init_size() from HSM release</title>
                <link>https://jira.whamcloud.com/browse/LU-7186</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If a file is created without striping, truncated to a non-zero size,  and archived then releasing the file causes a division by zero in &lt;tt&gt;lod_declare_init_size()&lt;/tt&gt;. Assume HSM is running:&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;# export LUSTRE=/root/lustre-release/lustre
# cd /mnt/lustre
# $LUSTRE/tests/mcreate f0
# $LUSTRE/tests/truncate f0 42
# lfs hsm_archive f0
# sleep 5
# lfs hsm_release f0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;[592171.190277] divide error: 0000 [#1] SMP
...
[592171.191894] Pid: 13109, comm: mdt_rdpg00_002 Not tainted 2.6.32-431.29.2.el6.lustre.x86_64 #1 Bochs Bochs
[592171.191894] RIP: 0010:[&amp;lt;ffffffffa13ec5e0&amp;gt;]  [&amp;lt;ffffffffa13ec5e0&amp;gt;] lod_declare_striped_object+0x4c0/0x810 [lod]
[592171.191894] RSP: 0000:ffff8800604ef9e0  EFLAGS: 00010246
[592171.191894] RAX: 0000000000000000 RBX: ffff88005b6c2a38 RCX: 0000000000010000
[592171.191894] RDX: 0000000000000000 RSI: 00000000000019ed RDI: 0000000000000000
[592171.191894] RBP: ffff8800604efa30 R08: 0000000000000000 R09: 0000000000000001
[592171.191894] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8800685141d8
[592171.191894] R13: ffff8800685142a8 R14: ffff8800603746c0 R15: ffff880061c2bb50
[592171.191894] FS:  0000000000000000(0000) GS:ffff88002c200000(0000) knlGS:0000000000000000
[592171.191894] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
[592171.191894] CR2: 0000003d04989708 CR3: 000000005ba62000 CR4: 00000000000006e0
[592171.191894] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[592171.191894] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[592171.191894] Process mdt_rdpg00_002 (pid: 13109, threadinfo ffff8800604ee000, task ffff8800604ec300)
[592171.191894] Stack:
[592171.191894]  ffffffffa12f38a8 ffff880062098058 ffff8800685142a8 ffff88006006c708
[592171.191894] &amp;lt;d&amp;gt; ffff8800604efa30 ffff88005b6c2a38 ffff8800603746c0 ffff8800685142a8
[592171.191894] &amp;lt;d&amp;gt; ffff880061c2bb50 ffff8800685141d8 ffff8800604efa90 ffffffffa13ecb68
[592171.191894] Call Trace:
[592171.191894]  [&amp;lt;ffffffffa13ecb68&amp;gt;] lod_declare_xattr_set+0x238/0x2a0 [lod]
[592171.191894]  [&amp;lt;ffffffffa12e2a3f&amp;gt;] mdd_declare_xattr_set+0x8f/0x260 [mdd]
[592171.191894]  [&amp;lt;ffffffffa12e1934&amp;gt;] ? mdo_xattr_get+0xa4/0x1b0 [mdd]
[592171.191894]  [&amp;lt;ffffffffa12e61e4&amp;gt;] mdd_swap_layouts+0x914/0x1240 [mdd]
[592171.191894]  [&amp;lt;ffffffffa12ee4fa&amp;gt;] ? mdd_trans_stop+0x1a/0x1c [mdd]
[592171.191894]  [&amp;lt;ffffffffa1348d43&amp;gt;] mo_swap_layouts+0x33/0xa0 [mdt]
[592171.191894]  [&amp;lt;ffffffffa134cd4a&amp;gt;] mdt_mfd_close+0x128a/0x1980 [mdt]
[592171.191894]  [&amp;lt;ffffffffa0a5a70d&amp;gt;] ? class_handle_unhash_nolock+0x2d/0x150 [obdclass]
[592171.191894]  [&amp;lt;ffffffffa134d654&amp;gt;] mdt_close_internal+0x214/0x4f0 [mdt]
[592171.191894]  [&amp;lt;ffffffffa134dbea&amp;gt;] mdt_close+0x2ba/0x900 [mdt]
[592171.191894]  [&amp;lt;ffffffffa0d0711f&amp;gt;] tgt_request_handle+0x8cf/0x1300 [ptlrpc]
[592171.191894]  [&amp;lt;ffffffffa0cb1aea&amp;gt;] ptlrpc_main+0xdaa/0x18b0 [ptlrpc]
[592171.191894]  [&amp;lt;ffffffffa0cb0d40&amp;gt;] ? ptlrpc_main+0x0/0x18b0 [ptlrpc]
[592171.191894]  [&amp;lt;ffffffff8109e856&amp;gt;] kthread+0x96/0xa0
[592171.191894]  [&amp;lt;ffffffff8100c30a&amp;gt;] child_rip+0xa/0x20
[592171.191894]  [&amp;lt;ffffffff815562e0&amp;gt;] ? _spin_unlock_irq+0x30/0x40
[592171.191894]  [&amp;lt;ffffffff8100bb10&amp;gt;] ? restore_args+0x0/0x30
[592171.191894]  [&amp;lt;ffffffff8109e7c0&amp;gt;] ? kthread+0x0/0xa0
[592171.191894]  [&amp;lt;ffffffff8100c300&amp;gt;] ? child_rip+0x0/0x20
[592171.191894] Code: 83 e2 01 e9 53 fd ff ff 0f 1f 00 8b 4b 44 48 89 f8 31 d2 0f b7 7b 40 49 c7 84 24 18 01 00 00 08 00 00 00 48 f7 f1 48 89 d6 31 d2 &amp;lt;48&amp;gt; f7 f7 4c 89 f7 48 0f af c1 4c 89 f9 48 01 c6 49 89 b4 24 d0
[592171.191894] RIP  [&amp;lt;ffffffffa13ec5e0&amp;gt;] lod_declare_striped_object+0x4c0/0x810 [lod]

t:~# xd lod_declare_striped_object+0x4c0/0x810 [lod]
lod_declare_init_size
/root/lustre-release/lustre/lod/lod_object.c:3387
lod_declare_striped_object
/root/lustre-release/lustre/lod/lod_object.c:3474

        stripe = ll_do_div64(size, (__u64) lo-&amp;gt;ldo_stripenr);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I saw this on 2.7.59-44-g703195a it is likely present in several other versions.&lt;/p&gt;</description>
                <environment></environment>
        <key id="32219">LU-7186</key>
            <summary>division by zero in lod_declare_init_size() from HSM release</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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>HSM</label>
                    </labels>
                <created>Fri, 18 Sep 2015 16:24:22 +0000</created>
                <updated>Fri, 13 May 2016 04:49:31 +0000</updated>
                            <resolved>Wed, 28 Oct 2015 15:31:33 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="127833" author="jgmitter" created="Fri, 18 Sep 2015 18:17:04 +0000"  >&lt;p&gt;Hi Alex,&lt;br/&gt;
Can you take a look at this?&lt;br/&gt;
Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="127834" author="adilger" created="Fri, 18 Sep 2015 18:17:50 +0000"  >&lt;p&gt;Looks like the stripe count is zero here:&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; 
     &lt;span class=&quot;code-comment&quot;&gt;/* ll_do_div64(a, b) returns a % b, and a = a / b */&lt;/span&gt;
     ll_do_div64(size, (__u64) lo-&amp;gt;ldo_stripe_size);
     stripe = ll_do_div64(size, (__u64) lo-&amp;gt;ldo_stripenr);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="129673" author="gerrit" created="Wed, 7 Oct 2015 08:22:47 +0000"  >&lt;p&gt;Alex Zhuravlev (alexey.zhuravlev@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/16743&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16743&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7186&quot; title=&quot;division by zero in lod_declare_init_size() from HSM release&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7186&quot;&gt;&lt;del&gt;LU-7186&lt;/del&gt;&lt;/a&gt; lod: do not propagate size if stripeless&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: bff343cc1dd6cf20a1e88aeb6fcdfb3e7046fa4c&lt;/p&gt;</comment>
                            <comment id="131817" author="gerrit" created="Wed, 28 Oct 2015 13:51:59 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/16743/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16743/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7186&quot; title=&quot;division by zero in lod_declare_init_size() from HSM release&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7186&quot;&gt;&lt;del&gt;LU-7186&lt;/del&gt;&lt;/a&gt; lod: do not propagate size if stripeless&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7a6b48c2f97f165b4449f6283e313cfa33aea5a1&lt;/p&gt;</comment>
                            <comment id="131848" author="jgmitter" created="Wed, 28 Oct 2015 15:31:33 +0000"  >&lt;p&gt;Landed for 2.8&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|hzxo47:</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>