<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:17:35 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-1544] lfs catinfo command crashes</title>
                <link>https://jira.whamcloud.com/browse/LU-1544</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The system crashes when running &quot;lfs catinfo config .&quot; on a lustre client.&lt;/p&gt;

&lt;p&gt;The processing of the OBD_IOC_LLOG_CATINFO in ll_dir_ioctl() expects the obd device pointed by sbi-&amp;gt;ll_md_exp-&amp;gt;exp_obd to be a &quot;mdc&quot; device but it is a &quot;lmv&quot; device, which leads to a GPF in ptlrpc_request_alloc_internal().&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-keyword&quot;&gt;case&lt;/span&gt; OBD_IOC_LLOG_CATINFO: {
                struct ptlrpc_request *req = NULL;
                &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt;                  *buf = NULL;
                &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt;                  *str;
                &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                    len = 0;

                rc = obd_ioctl_getdata(&amp;amp;buf, &amp;amp;len, (void *)arg);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc)
                        RETURN(rc);
                data = (void *)buf;

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!data-&amp;gt;ioc_inlbuf1) {
                        obd_ioctl_freedata(buf, len);
                        RETURN(-EINVAL);
                }

                req = ptlrpc_request_alloc(sbi2mdc(sbi)-&amp;gt;cl_import,
                                           &amp;amp;RQF_LLOG_CATINFO);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here are the informations retrieved from the dump.&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;crash&amp;gt; bt
PID: 4631   TASK: ffff88005495ab00  CPU: 0   COMMAND: &quot;lfs&quot;
 #0 [ffff88005d347a50] machine_kexec at ffffffff81031fcb
 #1 [ffff88005d347ab0] crash_kexec at ffffffff810b8f72
 #2 [ffff88005d347b80] oops_end at ffffffff814f07f0
 #3 [ffff88005d347bb0] die at ffffffff8100f26b
 #4 [ffff88005d347be0] do_general_protection at ffffffff814f0382
 #5 [ffff88005d347c10] general_protection at ffffffff814efb55
    [exception RIP: ptlrpc_request_alloc_internal+99]
    RIP: ffffffffa051b233  RSP: ffff88005d347cc8  RFLAGS: 00010293
    RAX: 5a5a5a5a5a5a5a5a  RBX: ffff88003ea6d400  RCX: ffff880037de7900
    RDX: 0000000000000000  RSI: 0000000000000000  RDI: 0000000000000000
    RBP: ffff88005d347ce8   R8: 0000000000000000   R9: 0000000000000250
    R10: 0000000000000250  R11: 0000000000000000  R12: 3838666666662d76
    R13: ffffffffa05da9e0  R14: ffff88003ea6d400  R15: 00007fffb82b1120
    ORIG_RAX: ffffffffffffffff  CS: 0010  SS: 0018
 #6 [ffff88005d347cf0] ptlrpc_request_alloc at ffffffffa051b4c3 [ptlrpc]
 #7 [ffff88005d347d00] ll_dir_ioctl at ffffffffa0aae59e [lustre]
 #8 [ffff88005d347e60] vfs_ioctl at ffffffff81189342
 #9 [ffff88005d347ea0] do_vfs_ioctl at ffffffff811894e4
#10 [ffff88005d347f30] sys_ioctl at ffffffff81189a61
#11 [ffff88005d347f80] system_call_fastpath at ffffffff8100b0f2
    RIP: 00007faf80fb9847  RSP: 00007fffb82af0f8  RFLAGS: 00010202
    RAX: 0000000000000010  RBX: ffffffff8100b0f2  RCX: 0000000001967050
    RDX: 00007fffb82b1120  RSI: 00000000c00866c4  RDI: 0000000000000003
    RBP: 00007fffb82b33c0   R8: 0000000000000003   R9: 0000000000800000
    R10: 00007fffb82aee80  R11: 0000000000000202  R12: 0000000000000000
    R13: 00007fffb82b3120  R14: 000000000195f030  R15: 00007fffb82b1120
    ORIG_RAX: 0000000000000010  CS: 0033  SS: 002b

crash&amp;gt; mount
    VFSMOUNT         SUPERBLK     TYPE   DEVNAME                      DIRNAME
ffff88002468ee80 ffff88005d2ed000 lustre 20.1.12.10@tcp:/lustre       /mnt/lustre

crash&amp;gt; p ((struct super_block *)0xffff88005d2ed000)-&amp;gt;s_fs_info
$3 = (void *) 0xffff880054bb7000

crash&amp;gt; p ((struct lustre_sb_info *)0xffff880054bb7000)-&amp;gt;lsi_llsbi-&amp;gt;ll_md_exp-&amp;gt;exp_obd-&amp;gt;u.cli
$4 = {
  cl_sem = {
    count = 1,
    wait_lock = {
      raw_lock = {
        slock = 1421633408
      }
    },
    wait_list = {
      next = 0xffff880054b23a00,
      prev = 0xffff880054b23a00
    }
  },
  cl_target_uuid = {
    uuid = &quot;\240\337!\240\377\377\377\377\001\000\000\000\001\000\001\000@h\274T\000\210\377\377cli-lustre-clilm&quot;
  },
  cl_import = 0x3838666666662d76,   &amp;lt;== invalid content

crash&amp;gt; p ((struct lustre_sb_info *)0xffff880054bb7000)-&amp;gt;lsi_llsbi-&amp;gt;ll_md_exp-&amp;gt;exp_obd
$5 = (struct obd_device *) 0xffff880054bd0278

crash&amp;gt; struct obd_device 0xffff880054bd0278
struct obd_device {
  obd_type = 0xffff880037fa08c0,
  obd_magic = 2874988271,
  obd_name = &quot;lustre-clilmv-ffff88005d2ed000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000&quot;,
  obd_uuid = {
    uuid = &quot;51facc6e-cb5b-ab32-55cf-27f8db30245d\000\000\000&quot;
  },
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The same issue seems to have been reported in the bugzilla #17289.&lt;/p&gt;

&lt;p&gt;Since the catinfo service has not been maintained and is deprecated, I am going to post a patch that removes the catinfo code, both client and server part.&lt;/p&gt;</description>
                <environment>rhel6.2, lustre 2.2.53</environment>
        <key id="14983">LU-1544</key>
            <summary>lfs catinfo command crashes</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="bogl">Bob Glossman</assignee>
                                    <reporter username="pichong">Gregoire Pichon</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Jun 2012 03:59:13 +0000</created>
                <updated>Sat, 22 Dec 2012 10:37:08 +0000</updated>
                            <resolved>Tue, 17 Jul 2012 10:51:09 +0000</resolved>
                                    <version>Lustre 2.0.0</version>
                    <version>Lustre 2.1.0</version>
                    <version>Lustre 2.2.0</version>
                    <version>Lustre 2.3.0</version>
                    <version>Lustre 2.1.1</version>
                    <version>Lustre 2.1.2</version>
                                    <fixVersion>Lustre 2.3.0</fixVersion>
                    <fixVersion>Lustre 2.1.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="40918" author="pichong" created="Wed, 20 Jun 2012 07:37:25 +0000"  >&lt;p&gt;I have posted a patch into gerrit: &lt;a href=&quot;http://review.whamcloud.com/#change,3151&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3151&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="40931" author="pjones" created="Wed, 20 Jun 2012 10:57:19 +0000"  >&lt;p&gt;Thanks for the patch Gregoire.&lt;/p&gt;

&lt;p&gt;Bob&lt;/p&gt;

&lt;p&gt;Could you please take care of reviewing this patch and seeing that it gets landed?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="41930" author="bogl" created="Tue, 17 Jul 2012 10:51:09 +0000"  >&lt;p&gt;merged to master 7/12&lt;/p&gt;

&lt;p&gt;Change has been successfully cherry-picked as 54183b0637493c995ed2cd5d4cb3cce80192e6cb.&lt;/p&gt;</comment>
                            <comment id="42146" author="bogl" created="Mon, 23 Jul 2012 17:22:27 +0000"  >&lt;p&gt;back port to b2_1&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#change,3450&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3450&lt;/a&gt;&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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>lfs</label>
            <label>llog</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzv69r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4550</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>