<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:51:50 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-12352] libcfs crashes with certain cpu_npartitions values</title>
                <link>https://jira.whamcloud.com/browse/LU-12352</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Due to a bug in the code, libcfs will crash if the number of online cpus does not divide by the number of cpu partitions. Based on the checks in cfs_cpt_table_create(), it appears that the original intent was to push the remaining cpus into the initial partitions. &lt;/p&gt;

&lt;p&gt;A simple reproducer for a system with cpus number that is not a multiple of 3 is:&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;
insmod libcfs.ko cpu_pattern=&quot;&quot; cpu_npartitions=3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;
[112628.427628] LNetError: 14786:0:(libcfs_cpu.c:770:cfs_cpt_choose_ncpus()) ASSERTION( number &amp;gt; 0 ) failed: 
[112628.427862] LNetError: 14786:0:(libcfs_cpu.c:770:cfs_cpt_choose_ncpus()) LBUG
[112628.428073] Pid: 14786, comm: insmod 3.10.0-693.21.1.x3.1.10.x86_64 #1 SMP Wed Nov 14 12:16:53 CST 2018
[112628.428082] Call Trace:
[112628.428180]  [&amp;lt;ffffffff8103a212&amp;gt;] save_stack_trace_tsk+0x22/0x40
[112628.428198]  [&amp;lt;ffffffffc067d7cc&amp;gt;] libcfs_call_trace+0x8c/0xc0 [libcfs]
[112628.428231]  [&amp;lt;ffffffffc067d87c&amp;gt;] lbug_with_loc+0x4c/0xa0 [libcfs]
[112628.428261]  [&amp;lt;ffffffffc069137a&amp;gt;] cfs_cpt_choose_ncpus+0x81a/0x820 [libcfs]
[112628.428294]  [&amp;lt;ffffffffc06915ba&amp;gt;] cfs_cpt_table_create+0x23a/0x8d0 [libcfs]
[112628.428325]  [&amp;lt;ffffffffc0691d4b&amp;gt;] cfs_cpu_init+0xbb/0xb70 [libcfs]
[112628.428356]  [&amp;lt;ffffffffc06df031&amp;gt;] libcfs_init+0x31/0x1000 [libcfs]
[112628.428388]  [&amp;lt;ffffffff810020ea&amp;gt;] do_one_initcall+0xba/0x240
[112628.428400]  [&amp;lt;ffffffff81104424&amp;gt;] load_module+0x1f84/0x2a10
[112628.428413]  [&amp;lt;ffffffff81105066&amp;gt;] SyS_finit_module+0xa6/0xd0
[112628.428423]  [&amp;lt;ffffffff816c1715&amp;gt;] system_call_fastpath+0x1c/0x21
[112628.428436]  [&amp;lt;ffffffffffffffff&amp;gt;] 0xffffffffffffffff
[112628.428469] Kernel panic - not syncing: LBUG
[112628.428572] CPU: 3 PID: 14786 Comm: insmod Tainted: G           OE  ------------   3.10.0-693.21.1.x3.1.10.x86_64 #1
[112628.428782] Hardware name:                  /D525MWV, BIOS MWPNT10N.86A.0083.2011.0524.1600 05/24/2011
[112628.428970] Call Trace:
[112628.429046]  [&amp;lt;ffffffff816ae7c8&amp;gt;] dump_stack+0x19/0x1b
[112628.429049]  [&amp;lt;ffffffff816a8634&amp;gt;] panic+0xe8/0x21f
[112628.429049]  [&amp;lt;ffffffffc067d8cb&amp;gt;] lbug_with_loc+0x9b/0xa0 [libcfs]
[112628.429049]  [&amp;lt;ffffffffc069137a&amp;gt;] cfs_cpt_choose_ncpus+0x81a/0x820 [libcfs]
[112628.429049]  [&amp;lt;ffffffffc06915ba&amp;gt;] cfs_cpt_table_create+0x23a/0x8d0 [libcfs]
[112628.429049]  [&amp;lt;ffffffffc06df000&amp;gt;] ? 0xffffffffc06defff
[112628.429049]  [&amp;lt;ffffffffc0691d4b&amp;gt;] cfs_cpu_init+0xbb/0xb70 [libcfs]
[112628.429049]  [&amp;lt;ffffffffc06df000&amp;gt;] ? 0xffffffffc06defff
[112628.429049]  [&amp;lt;ffffffffc06df031&amp;gt;] libcfs_init+0x31/0x1000 [libcfs]
[112628.429049]  [&amp;lt;ffffffff810020ea&amp;gt;] do_one_initcall+0xba/0x240
[112628.429049]  [&amp;lt;ffffffff81104424&amp;gt;] load_module+0x1f84/0x2a10
[112628.429049]  [&amp;lt;ffffffff813523e0&amp;gt;] ? ddebug_proc_write+0xf0/0xf0
[112628.429049]  [&amp;lt;ffffffff816c514a&amp;gt;] ? ftrace_graph_caller+0x5a/0x85
[112628.429049]  [&amp;lt;ffffffff81100a83&amp;gt;] ? copy_module_from_fd.isra.42+0x53/0x150
[112628.429049]  [&amp;lt;ffffffff81105066&amp;gt;] SyS_finit_module+0xa6/0xd0
[112628.429049]  [&amp;lt;ffffffff816c1715&amp;gt;] system_call_fastpath+0x1c/0x21
[112628.429049]  [&amp;lt;ffffffff816c1661&amp;gt;] ? system_call_after_swapgs+0xae/0x146
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A fix will be uploaded shortly.&lt;/p&gt;</description>
                <environment></environment>
        <key id="55778">LU-12352</key>
            <summary>libcfs crashes with certain cpu_npartitions values</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>Wed, 29 May 2019 15:19:36 +0000</created>
                <updated>Thu, 22 Oct 2020 13:46:02 +0000</updated>
                            <resolved>Tue, 4 Jun 2019 12:07:59 +0000</resolved>
                                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.6</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="247964" author="gerrit" created="Wed, 29 May 2019 15:23:56 +0000"  >&lt;p&gt;Andrew Perepechko (c17827@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34991&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34991&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12352&quot; title=&quot;libcfs crashes with certain cpu_npartitions values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12352&quot;&gt;&lt;del&gt;LU-12352&lt;/del&gt;&lt;/a&gt; libcfs: crashes with certain cpu part numbers&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 481632a1ff40201998fd564fbf811303c2535b93&lt;/p&gt;</comment>
                            <comment id="247967" author="panda" created="Wed, 29 May 2019 15:48:22 +0000"  >&lt;p&gt;With the fix:&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;
[root@panda-testbox libcfs]# insmod libcfs.ko cpu_pattern=&quot;&quot; cpu_npartitions=3
[root@panda-testbox libcfs]# cat /sys/kernel/debug/lnet/cpu_partition_table
0       : 0 1
1       : 2
2       : 3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="248332" author="gerrit" created="Tue, 4 Jun 2019 05:27:18 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34991/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34991/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12352&quot; title=&quot;libcfs crashes with certain cpu_npartitions values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12352&quot;&gt;&lt;del&gt;LU-12352&lt;/del&gt;&lt;/a&gt; libcfs: crashes with certain cpu part numbers&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: e33e3da58972a811e6eafc479f95f6df2baf4b9b&lt;/p&gt;</comment>
                            <comment id="248362" author="pjones" created="Tue, 4 Jun 2019 12:07:59 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="265709" author="gerrit" created="Fri, 20 Mar 2020 00:46:02 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/37994&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37994&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12352&quot; title=&quot;libcfs crashes with certain cpu_npartitions values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12352&quot;&gt;&lt;del&gt;LU-12352&lt;/del&gt;&lt;/a&gt; libcfs: crashes with certain cpu part numbers&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4583a0b67d198cf53c6b715e5decd31944fd66b0&lt;/p&gt;</comment>
                            <comment id="282949" author="gerrit" created="Thu, 22 Oct 2020 06:18:37 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/37994/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37994/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12352&quot; title=&quot;libcfs crashes with certain cpu_npartitions values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12352&quot;&gt;&lt;del&gt;LU-12352&lt;/del&gt;&lt;/a&gt; libcfs: crashes with certain cpu part numbers&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 6677b0ad0db9d4b826d77a768bf561bfe6533ffe&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|i00h53:</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>