<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:00:03 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-13294] wrong cpt malloc rotor handling leads to oops</title>
                <link>https://jira.whamcloud.com/browse/LU-13294</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;
[  891.249374] BUG: unable to handle kernel paging request at 0000000100002007
[  891.256366] IP: [&amp;lt;ffffffff847c0da7&amp;gt;] __alloc_pages_nodemask+0x97/0x420
[  891.262918] PGD 1fb43dd067 PUD 0 
[  891.266272] Oops: 0000 [#1] SMP 
[  891.269539] Modules linked in: lnet(OE+) libcfs(OE) ext4 mbcache jbd2 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack xt_multiport iptable_filter xt_CT nf_conntrack libcrc32c iptable_raw mst_pciconf(OE) mlx4_ib(OE) mlx4_en(OE) mlx4_core(OE) rdma_ucm(OE) ib_ucm(OE) rdma_cm(OE) iw_cm(OE) ib_umad(OE) ib_ipoib(OE) ib_cm(OE) mlx5_ib(OE) zfs(POE) zunicode(POE) zlua(POE) edac_mce_amd kvm irqbypass crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd pcspkr zcommon(POE) znvpair(POE) ib_uverbs(OE) zavl(POE) icp(POE) ib_core(OE) spl(OE) mlx5_core(OE) dm_mod mlx_compat(OE) mlxfw devlink i2c_piix4 i2c_designware_platform i2c_designware_core pinctrl_amd acpi_cpufreq ip_tables nfsv3 nfs_acl nfs lockd grace fscache team_mode_activebackup team crct10dif_pclmul crct10dif_common crc32c_intel igb i2c_algo_bit dca ptp pps_core nvme nvme_core nfit libnvdimm sunrpc ipmi_si ipmi_devintf ipmi_msghandler [last unloaded: libcfs]
[  891.353833] CPU: 9 PID: 81842 Comm: modprobe Kdump: loaded Tainted: P        W  OE  ------------   3.10.0-957.1.3957.1.3.x4.1.17.x86_64 #1
[  891.366249] Hardware name: None None/None, BIOS 5.14 01/21/2020
[  891.372167] task: ffff8c874fde9040 ti: ffff8c874dbb8000 task.ti: ffff8c874dbb8000
[  891.379638] RIP: 0010:[&amp;lt;ffffffff847c0da7&amp;gt;]  [&amp;lt;ffffffff847c0da7&amp;gt;] __alloc_pages_nodemask+0x97/0x420
[  891.388602] RSP: 0018:ffff8c874dbbba40  EFLAGS: 00010246
[  891.393911] RAX: 0000000100001fff RBX: 0000000000000000 RCX: ffff8c874dbbbfd8
[  891.401037] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000201250
[  891.408169] RBP: ffff8c874dbbbae0 R08: ffff8c974da36600 R09: 0000000100400010
[  891.415292] R10: ffff8c978ff54d40 R11: ffffffffffffff88 R12: 0000000000201250
[  891.422418] R13: 0000000000000400 R14: 0000000000000002 R15: 0000000000000000
[  891.429549] FS:  00007fe9f08bf740(0000) GS:ffff8c974ee40000(0000) knlGS:0000000000000000
[  891.437629] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  891.443373] CR2: 0000000100002007 CR3: 0000001fd6a8c000 CR4: 0000000000340fe0
[  891.450497] Call Trace:
[  891.452944]  [&amp;lt;ffffffff8481a2e2&amp;gt;] ? deactivate_slab+0x122/0x3c0
[  891.458860]  [&amp;lt;ffffffff84818d51&amp;gt;] new_slab+0x91/0x390
[  891.463907]  [&amp;lt;ffffffff8481a9fc&amp;gt;] ___slab_alloc+0x3ac/0x4f0
[  891.469481]  [&amp;lt;ffffffff8488efde&amp;gt;] ? ep_poll_callback+0xee/0x210
[  891.475415]  [&amp;lt;ffffffffc0a71ee5&amp;gt;] ? cfs_percpt_alloc+0xf5/0x480 [libcfs]
[  891.482116]  [&amp;lt;ffffffff846cba9b&amp;gt;] ? __wake_up_common+0x5b/0x90
[  891.487947]  [&amp;lt;ffffffffc09f2000&amp;gt;] ? 0xffffffffc09f1fff
[  891.493088]  [&amp;lt;ffffffff84982634&amp;gt;] ? pointer.isra.19+0xd4/0x4d0
[  891.498921]  [&amp;lt;ffffffffc0a71ee5&amp;gt;] ? cfs_percpt_alloc+0xf5/0x480 [libcfs]
[  891.505620]  [&amp;lt;ffffffff84d6060c&amp;gt;] __slab_alloc+0x40/0x5c
[  891.510930]  [&amp;lt;ffffffff8481ebaf&amp;gt;] __kmalloc_node+0xbf/0x2b0
[  891.516506]  [&amp;lt;ffffffffc0a71ee5&amp;gt;] cfs_percpt_alloc+0xf5/0x480 [libcfs]
[  891.523030]  [&amp;lt;ffffffffc0a72ce0&amp;gt;] cfs_percpt_lock_create+0x90/0x3d0 [libcfs]
[  891.530073]  [&amp;lt;ffffffffc09f2000&amp;gt;] ? 0xffffffffc09f1fff
[  891.535210]  [&amp;lt;ffffffffc0b7328f&amp;gt;] lnet_lib_init+0xef/0x340 [lnet]
[  891.541303]  [&amp;lt;ffffffffc09f2081&amp;gt;] lnet_init+0x81/0x1000 [lnet]
[  891.547131]  [&amp;lt;ffffffff8460210a&amp;gt;] do_one_initcall+0xba/0x240
[  891.552791]  [&amp;lt;ffffffff8471907c&amp;gt;] load_module+0x272c/0x2bc0
[  891.558365]  [&amp;lt;ffffffff849a3480&amp;gt;] ? ddebug_proc_write+0x100/0x100
[  891.564453]  [&amp;lt;ffffffff84714c03&amp;gt;] ? copy_module_from_fd.isra.44+0x53/0x150
[  891.571318]  [&amp;lt;ffffffff847196f6&amp;gt;] SyS_finit_module+0xa6/0xd0
[  891.576981]  [&amp;lt;ffffffff84d76ddb&amp;gt;] system_call_fastpath+0x22/0x27
[  891.582983] Code: c1 eb 02 c1 e8 13 83 e3 02 83 e0 01 09 c3 44 23 25 7f a5 b9 00 48 c7 45 c0 00 00 00 00 41 f6 c4 10 0f 85 3d 02 00 00 48 8b 45 b0 &amp;lt;48&amp;gt; 83 78 08 00 0f 84 93 01 00 00 66 66 66 66 90 48 8b 45 b0 44 
[  891.602977] RIP  [&amp;lt;ffffffff847c0da7&amp;gt;] __alloc_pages_nodemask+0x97/0x420
[  891.609597]  RSP &amp;lt;ffff8c874dbbba40&amp;gt;
[  891.613080] CR2: 0000000100002007
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="58179">LU-13294</key>
            <summary>wrong cpt malloc rotor handling leads to oops</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="panda">Andrew Perepechko</assignee>
                                    <reporter username="panda">Andrew Perepechko</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 25 Feb 2020 09:57:46 +0000</created>
                <updated>Mon, 15 Jun 2020 18:37:38 +0000</updated>
                            <resolved>Tue, 24 Mar 2020 11:52:23 +0000</resolved>
                                    <version>Upstream</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                    <fixVersion>Lustre 2.12.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="263995" author="gerrit" created="Tue, 25 Feb 2020 09:59:30 +0000"  >&lt;p&gt;Andrew Perepechko (c17827@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/37709&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37709&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13294&quot; title=&quot;wrong cpt malloc rotor handling leads to oops&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13294&quot;&gt;&lt;del&gt;LU-13294&lt;/del&gt;&lt;/a&gt; libcfs: incorrect rotor behaviour&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 79896752f0ee74d85650e5fb1d201085bfd55d46&lt;/p&gt;</comment>
                            <comment id="263996" author="panda" created="Tue, 25 Feb 2020 10:11:56 +0000"  >&lt;p&gt;Alternate bug description is in the comments:&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-object&quot;&gt;int&lt;/span&gt; cfs_cpt_spread_node(struct cfs_cpt_table *cptab, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; cpt)
{
        nodemask_t *mask;
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; weight;
        unsigned &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; rotor;
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; node = 0;

        &lt;span class=&quot;code-comment&quot;&gt;/* convert CPU partition ID to HW node id */&lt;/span&gt;

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (cpt &amp;lt; 0 || cpt &amp;gt;= cptab-&amp;gt;ctb_nparts) {
                mask = cptab-&amp;gt;ctb_nodemask;
                rotor = cptab-&amp;gt;ctb_spread_rotor++;
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                mask = cptab-&amp;gt;ctb_parts[cpt].cpt_nodemask;
                rotor = cptab-&amp;gt;ctb_parts[cpt].cpt_spread_rotor++; &lt;span class=&quot;code-comment&quot;&gt;// here rotor is initialized to -1 (the &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; cpt_spread_rotor value)
&lt;/span&gt;                node  = cptab-&amp;gt;ctb_parts[cpt].cpt_node;
        }

        weight = nodes_weight(*mask); &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; numa nodes # is greater than 1, then weight is greater than 1
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (weight &amp;gt; 0) {
                rotor %= weight; &lt;span class=&quot;code-comment&quot;&gt;// -1 mod (anything other than 0 and 1) is -1
&lt;/span&gt;
                for_each_node_mask(node, *mask) {
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!rotor--) &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; check will never succeed, for_each_node_mask will exit with node=1024 which will be passed to kmalloc_node()
&lt;/span&gt;                                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; node;
                }
        }

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; node;
}
EXPORT_SYMBOL(cfs_cpt_spread_node);

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="265945" author="gerrit" created="Tue, 24 Mar 2020 05:19:57 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/37709/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37709/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13294&quot; title=&quot;wrong cpt malloc rotor handling leads to oops&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13294&quot;&gt;&lt;del&gt;LU-13294&lt;/del&gt;&lt;/a&gt; libcfs: incorrect rotor behaviour&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f8aa86dd1622804d81020a7dbb1116f276b340f3&lt;/p&gt;</comment>
                            <comment id="265988" author="pjones" created="Tue, 24 Mar 2020 11:52:23 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                            <comment id="266051" author="gerrit" created="Wed, 25 Mar 2020 02:28:24 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38049&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38049&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13294&quot; title=&quot;wrong cpt malloc rotor handling leads to oops&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13294&quot;&gt;&lt;del&gt;LU-13294&lt;/del&gt;&lt;/a&gt; libcfs: incorrect rotor behaviour&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 82a2789b3ae34348c9409834b29d03a849a16efd&lt;/p&gt;</comment>
                            <comment id="266978" author="gerrit" created="Mon, 6 Apr 2020 21:17:14 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38049/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38049/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13294&quot; title=&quot;wrong cpt malloc rotor handling leads to oops&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13294&quot;&gt;&lt;del&gt;LU-13294&lt;/del&gt;&lt;/a&gt; libcfs: incorrect rotor behaviour&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 4f704583cd561a7b6ce38c032188a6b23d9faf38&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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|i00ub3:</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>