<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:50:20 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-5305] use after free in ldlm_resource_get()</title>
                <link>https://jira.whamcloud.com/browse/LU-5305</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When lvbo initialization has failed we have a use after free in ldlm_resource_get().&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;if&lt;/span&gt; (unlikely(res-&amp;gt;lr_lvb_len &amp;lt; 0)) {
                       ldlm_resource_putref(res);
                       res = ERR_PTR(res-&amp;gt;lr_lvb_len);
               }
               &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; res;
       }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;With slab debugging enabled this results in an oops.&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;[  220.086781] LustreError: 14681:0:(ldlm_resource.c:1150:ldlm_resource_get()) lustre-OST0000: lvbo_init failed for resource 0x203:0x0: rc = -12
[  220.086797] LustreError: 14681:0:(ldlm_resource.c:1150:ldlm_resource_get()) Skipped 122 previous similar messages
[  220.238178] BUG: unable to handle kernel paging request at 000000006b6b6b6b
[  220.238326] IP: [&amp;lt;ffffffffa064476e&amp;gt;] ldlm_lock_create+0x22e/0xd00 [ptlrpc]
[  220.238326] PGD 0 
[  220.238326] Oops: 0000 [#1] SMP 
[  220.238326] last sysfs file: /sys/devices/system/cpu/possible
[  220.238326] CPU 5 
[  220.242484] 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) sha512_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]
[  220.242484] 
[  220.242484] Pid: 6170, comm: ll_ost01_004 Not tainted 2.6.32-431.5.1.el6.lustre.x86_64 #1 Bochs Bochs
[  220.242484] RIP: 0010:[&amp;lt;ffffffffa064476e&amp;gt;]  [&amp;lt;ffffffffa064476e&amp;gt;] ldlm_lock_create+0x22e/0xd00 [ptlrpc]
[  220.242484] RSP: 0018:ffff8801e3591c40  EFLAGS: 00010246
[  220.242484] RAX: ffff8801dd655ec8 RBX: ffff8801dd655c38 RCX: 0000000000000000
[  220.242484] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffffffa076d728
[  220.242484] RBP: ffff8801e3591c90 R08: ffffffff81c1b5c0 R09: 0000000000000000
[  220.242484] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801dd655c38
[  220.242484] R13: ffffffffa0766100 R14: ffff8802198b49c8 R15: 000000006b6b6b6b
[  220.242484] FS:  0000000000000000(0000) GS:ffff880030200000(0000) knlGS:0000000000000000
[  220.242484] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
[  220.242484] CR2: 000000006b6b6b6b CR3: 0000000001a85000 CR4: 00000000000006e0
[  220.242484] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  220.242484] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  220.242484] Process ll_ost01_004 (pid: 6170, threadinfo ffff8801e3590000, task ffff8801f0b48700)
[  220.242484] Stack:
[  220.242484]  0000000000000000 0000000000000000 0000000b00000004 ffffffffa0437d9a
[  220.242484] &amp;lt;d&amp;gt; ffff8801ec13d1f0 ffff8801db7912b0 ffff8801ec13d2d0 ffffffffa0766100
[  220.242484] &amp;lt;d&amp;gt; ffff8802198b49c8 ffff8801ec13d1f0 ffff8801e3591d00 ffffffffa066d581
[  220.242484] Call Trace:
[  220.242484]  [&amp;lt;ffffffffa0437d9a&amp;gt;] ? lprocfs_counter_add+0x16a/0x1c0 [obdclass]
[  220.242484]  [&amp;lt;ffffffffa066d581&amp;gt;] ldlm_handle_enqueue0+0x181/0x1210 [ptlrpc]
[  220.242484]  [&amp;lt;ffffffffa06ebf19&amp;gt;] tgt_enqueue+0x89/0x2a0 [ptlrpc]
[  220.242484]  [&amp;lt;ffffffffa06ec71e&amp;gt;] tgt_request_handle+0x5ee/0xb60 [ptlrpc]
[  220.242484]  [&amp;lt;ffffffffa069ee21&amp;gt;] ptlrpc_main+0xcf1/0x1880 [ptlrpc]
[  220.242484]  [&amp;lt;ffffffffa069e130&amp;gt;] ? ptlrpc_main+0x0/0x1880 [ptlrpc]
[  220.242484]  [&amp;lt;ffffffff8109eab6&amp;gt;] kthread+0x96/0xa0
[  220.242484]  [&amp;lt;ffffffff8100c30a&amp;gt;] child_rip+0xa/0x20
[  220.242484]  [&amp;lt;ffffffff81554710&amp;gt;] ? _spin_unlock_irq+0x30/0x40
[  220.242484]  [&amp;lt;ffffffff8100bb10&amp;gt;] ? restore_args+0x0/0x30
[  220.242484]  [&amp;lt;ffffffff8109ea20&amp;gt;] ? kthread+0x0/0xa0
[  220.242484]  [&amp;lt;ffffffff8100c300&amp;gt;] ? child_rip+0x0/0x20
[  220.242484] Code: 00 00 49 8d 84 24 90 02 00 00 49 c7 84 24 10 01 00 00 00 00 00 00 ba 01 00 00 00 49 89 84 24 90 02 00 00 49 89 84 24 98 02 00 00 &amp;lt;49&amp;gt; 8b 07 48 8b 00 48 8b b8 40 02 00 00 e8 b0 34 df ff 4d 89 24 
[  220.242484] RIP  [&amp;lt;ffffffffa064476e&amp;gt;] ldlm_lock_create+0x22e/0xd00 [ptlrpc]
[  220.242484]  RSP &amp;lt;ffff8801e3591c40&amp;gt;
[  220.242484] CR2: 000000006b6b6b6b
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This was found via memory allocation fault injection.&lt;/p&gt;</description>
                <environment></environment>
        <key id="25486">LU-5305</key>
            <summary>use after free in ldlm_resource_get()</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>ldlm</label>
                            <label>malloc</label>
                            <label>patch</label>
                    </labels>
                <created>Tue, 8 Jul 2014 20:14:05 +0000</created>
                <updated>Thu, 15 Jun 2017 13:19:57 +0000</updated>
                            <resolved>Mon, 27 Apr 2015 20:26:34 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="88979" author="jhammond" created="Mon, 14 Jul 2014 21:01:05 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/#/c/11017/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/11017/&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="90042" author="jhammond" created="Fri, 25 Jul 2014 14:25:13 +0000"  >&lt;p&gt;Patch landed to master.&lt;/p&gt;</comment>
                            <comment id="92032" author="jlevi" created="Wed, 20 Aug 2014 12:51:02 +0000"  >&lt;p&gt;Reopening to add label&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <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|hzwqw7:</customfieldvalue>

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