<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:50:21 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-5308]  ofd_fs_setup() oopses if ofd_seqs_init() fails</title>
                <link>https://jira.whamcloud.com/browse/LU-5308</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If ofd_seqs_init() fails then ofd_fs_setup() passes a NULL object to lu_object_put().&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; ofd_fs_setup(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct ofd_device *ofd,
                 struct obd_device *obd)
{
        struct ofd_thread_info  *info = ofd_info(env);
        struct dt_object        *fo;
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      rc = 0;

        ENTRY;

        rc = ofd_seqs_init(env, ofd);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc)
                GOTO(out_hc, rc);

         ....

        ofd-&amp;gt;ofd_health_check_file = fo;

        RETURN(0);
out_hc:
        lu_object_put(env, &amp;amp;ofd-&amp;gt;ofd_health_check_file-&amp;gt;do_lu);
out:
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; rc;
}
&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;[  218.776538] BUG: unable to handle kernel NULL pointer dereference at (null)
[  218.777508] IP: [&amp;lt;ffffffffa0457cb6&amp;gt;] lu_object_put+0x16/0x330 [obdclass]
[  218.777508] PGD 1fc42d067 PUD 1de4f1067 PMD 0
[  218.777508] Oops: 0000 [#1] SMP
[  218.777508] last sysfs file: /sys/devices/system/cpu/online
[  218.777508] CPU 4
[  218.777508] Modules linked in: lustre(U) ofd(U) osp(U) lod(U) ost(U) mdt(U) mdd(U) mgs\
(U) nodemap(U) osd_ldiskfs(U) ldiskfs(U) exportfs lquota(U) lfsck(U) jbd obdecho(U) mgc(U\
) lov(U) osc(U) mdc(U) lmv(U) fid(U) fld(U) ptlrpc(U) obdclass(U) ksocklnd(U) lnet(U) sha\
512_generic sha256_generic libcfs(U) autofs4 nfs lockd fscache auth_rpcgss nfs_acl sunrpc\
 ipv6 microcode virtio_balloon virtio_net i2c_piix4 i2c_core ext4 jbd2 mbcache virtio_blk\
 virtio_pci virtio_ring virtio pata_acpi ata_generic ata_piix dm_mirror dm_region_hash dm\
_log dm_mod [last unloaded: speedstep_lib]
[  218.777508]
[  218.777508] Pid: 9583, comm: llog_process_th Not tainted 2.6.32-431.5.1.el6.lustre.x86\
_64 #1 Bochs Bochs
[  218.777508] RIP: 0010:[&amp;lt;ffffffffa0457cb6&amp;gt;]  [&amp;lt;ffffffffa0457cb6&amp;gt;] lu_object_put+0x16/0x\
330 [obdclass]
[  218.777508] RSP: 0018:ffff8801fc015a10  EFLAGS: 00010282
[  218.777508] RAX: 00000000fffffff4 RBX: ffff8801fc015b30 RCX: 0000000000000000
[  218.777508] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff8801fc015b30
[  218.777508] RBP: ffff8801fc015a70 R08: 0000000000000001 R09: 0000000000000001
[  218.777508] R10: ffffffff81a9e6b8 R11: 0000000000000000 R12: ffff8801e535a000
[  218.777508] R13: 00000000fffffff4 R14: ffff8801ee2bcf60 R15: ffff8801e535a0a8
[  218.777508] FS:  0000000000000000(0000) GS:ffff880030000000(0000) knlGS:00000000000000\
00
[  218.777508] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
[  218.777508] CR2: 0000000000000000 CR3: 00000001de4cb000 CR4: 00000000000006e0
[  218.777508] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  218.777508] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  218.777508] Process llog_process_th (pid: 9583, threadinfo ffff8801fc014000, task ffff\
8801e49dc0c0)
[  218.777508] Stack:
[  218.777508]  ffff8801ea90a258 ffff8801e535a000 ffff8801fd726a8c 00000000fffffff4
[  218.777508] &amp;lt;d&amp;gt; 0000000000000000 ffff8801e1f706a0 ffff8801fc015a70 ffff8801fc015b30
[  218.777508] &amp;lt;d&amp;gt; ffff8801e535a000 00000000fffffff4 ffff8801ee2bcf60 ffff8801e535a0a8
[  218.777508] Call Trace:
[  218.777508]  [&amp;lt;ffffffffa0df1a8a&amp;gt;] ofd_fs_setup+0x1aa/0x320 [ofd]
[  218.777508]  [&amp;lt;ffffffffa0de22dc&amp;gt;] ofd_device_alloc+0x101c/0x14c0 [ofd]
[  218.777508]  [&amp;lt;ffffffffa045595e&amp;gt;] ? lu_context_init+0xae/0x190 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa044138f&amp;gt;] obd_setup+0x1bf/0x290 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa0441667&amp;gt;] class_setup+0x207/0x870 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa0448e2c&amp;gt;] class_process_config+0xc6c/0x1ad0 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa04429fb&amp;gt;] ? lustre_cfg_new+0x16b/0x610 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa0442c8b&amp;gt;] ? lustre_cfg_new+0x3fb/0x610 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa044ae24&amp;gt;] class_config_llog_handler+0xab4/0x17b0 [obdclass]
[  218.777508]  [&amp;lt;ffffffff81538b40&amp;gt;] ? kmemleak_alloc+0x20/0xd0
[  218.777508]  [&amp;lt;ffffffffa040dfb6&amp;gt;] llog_process_thread+0x896/0xcc0 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa04544ff&amp;gt;] ? keys_fill+0x6f/0x190 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa040ed88&amp;gt;] llog_process_thread_daemonize+0x48/0x70 [obdclass]
[  218.777508]  [&amp;lt;ffffffffa040ed40&amp;gt;] ? llog_process_thread_daemonize+0x0/0x70 [obdclass]
[  218.777508]  [&amp;lt;ffffffff8109eab6&amp;gt;] kthread+0x96/0xa0
[  218.777508]  [&amp;lt;ffffffff8100c30a&amp;gt;] child_rip+0xa/0x20
[  218.777508]  [&amp;lt;ffffffff81554710&amp;gt;] ? _spin_unlock_irq+0x30/0x40
[  218.777508]  [&amp;lt;ffffffff8100bb10&amp;gt;] ? restore_args+0x0/0x30
[  218.777508]  [&amp;lt;ffffffff8109ea20&amp;gt;] ? kthread+0x0/0xa0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This was found via memory allocation fault injection.&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;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="25489">LU-5308</key>
            <summary> ofd_fs_setup() oopses if ofd_seqs_init() fails</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>malloc</label>
                            <label>ofd</label>
                            <label>patch</label>
                    </labels>
                <created>Tue, 8 Jul 2014 23:15:11 +0000</created>
                <updated>Thu, 4 Jun 2015 17:54:17 +0000</updated>
                            <resolved>Mon, 27 Apr 2015 20:27:00 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="88626" author="jhammond" created="Wed, 9 Jul 2014 18:04:41 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/11027&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11027&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="91265" author="jhammond" created="Mon, 11 Aug 2014 13:27:49 +0000"  >&lt;p&gt;Patch landed to master.&lt;/p&gt;</comment>
                            <comment id="92033" author="jlevi" created="Wed, 20 Aug 2014 12:51:35 +0000"  >&lt;p&gt;Reopening to add label&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|hzwqwv:</customfieldvalue>

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