<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:51:58 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-5495] osd-ldiskfs: Null pointer may be passed to function that may dereference it</title>
                <link>https://jira.whamcloud.com/browse/LU-5495</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Null pointer &apos;hlock&apos; that comes from line 3617 may be passed to function and can be dereferenced there by passing argument 4 to function &apos;ldiskfs_find_entry&apos; at line 3648.&lt;/p&gt;

&lt;p&gt;Null pointer &apos;hlock&apos; that comes from line 4151 may be passed to function and can be dereferenced there by passing argument 4 to function &apos;ldiskfs_find_entry&apos; at line 4169.&lt;/p&gt;

&lt;p&gt;Null pointer &apos;hlock&apos; that comes from line 4009 may be passed to function and can be dereferenced there by passing argument 6 to function &apos;__osd_ea_add_rec&apos; at line 4037. Also there is one similar error on line 4040.&lt;/p&gt;

&lt;p&gt;TRACEBACK&lt;br/&gt;
osd_handler.c:3617: &apos;hlock&apos; has been assigned a NULL value.&lt;br/&gt;
osd_handler.c:3640: obj-&amp;gt;oo_hl_head!= ( (void* )0) is false&lt;br/&gt;
osd_handler.c:3648: &apos;hlock&apos; is dereferenced by passing argument 4 to function &apos;ldiskfs_find_entry&apos;.&lt;br/&gt;
namei.c:1230: &apos;lck&apos; is passed to function &apos;ldiskfs_find_entry&apos;.&lt;br/&gt;
namei.c:1251: &apos;lck&apos; is dereferenced by passing argument 4 to function &apos;ldiskfs_dx_find_entry&apos;.&lt;br/&gt;
namei.c:1342: &apos;lck&apos; is passed to function &apos;ldiskfs_dx_find_entry&apos;.&lt;br/&gt;
namei.c:1358: &apos;lck&apos; is dereferenced by passing argument 5 to function &apos;dx_probe&apos;.&lt;br/&gt;
namei.c:609: &apos;lck&apos; is passed to function &apos;dx_probe&apos;.&lt;br/&gt;
namei.c:633: hinfo-&amp;gt;hash_version&amp;lt;=2 is true&lt;br/&gt;
namei.c:705: 0 is false&lt;br/&gt;
namei.c:742: ldiskfs_htree_node_locked(lck, LDISKFS_LB_DX) is false&lt;br/&gt;
namei.c:751: &apos;lck&apos; is dereferenced by passing argument 1 to function &apos;dx_probe_hash_collision&apos;.&lt;br/&gt;
namei.c:581: &apos;lck&apos; is passed to function &apos;dx_probe_hash_collision&apos;.&lt;br/&gt;
namei.c:585: &apos;lck&apos; is explicitly dereferenced.&lt;/p&gt;</description>
                <environment></environment>
        <key id="26040">LU-5495</key>
            <summary>osd-ldiskfs: Null pointer may be passed to function that may dereference it</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="dmiter">Dmitry Eremin</assignee>
                                    <reporter username="dmiter">Dmitry Eremin</reporter>
                        <labels>
                            <label>kw</label>
                    </labels>
                <created>Fri, 15 Aug 2014 19:22:12 +0000</created>
                <updated>Fri, 12 Jan 2018 16:26:09 +0000</updated>
                            <resolved>Fri, 12 Jan 2018 16:26:09 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="108897" author="lixi" created="Thu, 5 Mar 2015 15:50:54 +0000"  >&lt;p&gt;Following line is very interesting, because when lck is NULL, that function should always return true.&lt;/p&gt;

&lt;p&gt;&apos;namei.c:742: ldiskfs_htree_node_locked(lck, LDISKFS_LB_DX) is false&apos;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="17451">LU-2753</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hzwtwf:</customfieldvalue>

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