<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:19:43 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-15601] osd_inode_iteration err ptr dereference, wrong bitmap checks in osd scrub</title>
                <link>https://jira.whamcloud.com/browse/LU-15601</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;it looks like osd_inode_iteration and all around code in osd-ldiskfs/osd_scrub.c is incorrect&lt;/p&gt;

&lt;p&gt;osd_inode_iteration:&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;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; param-&amp;gt;bitmap = ldiskfs_read_inode_bitmap(param-&amp;gt;sb, param-&amp;gt;bg);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (!param-&amp;gt;bitmap) {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; CERROR(&quot;%s: fail to read bitmap for %u, &quot;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&quot;scrub will stop, urgent mode\n&quot;,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;osd_scrub2name(scrub), (__u32)param-&amp;gt;bg);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; RETURN(-EIO);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }
 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;But the comment in ldiskfs_read_inode_bitmap() is incorrect:&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; * Return buffer_head of bitmap on success or NULL.
&#160;*/
struct buffer_head *
ldiskfs_read_inode_bitmap(struct super_block *sb, ldiskfs_group_t block_group)
{
&#160; &#160; &#160; &#160; struct ldiskfs_group_desc *desc;
&#160; &#160; &#160; &#160; struct ldiskfs_sb_info *sbi = LDISKFS_SB(sb);
&#160; &#160; &#160; &#160; struct buffer_head *bh = NULL;
&#160; &#160; &#160; &#160; ldiskfs_fsblk_t bitmap_blk;
&#160; &#160; &#160; &#160; int err;&#160; &#160; &#160; &#160; desc = ldiskfs_get_group_desc(sb, block_group, NULL);
&#160; &#160; &#160; &#160; if (!desc)
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; return ERR_PTR(-EFSCORRUPTED);
...
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; return ERR_PTR(-EIO);
 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and so on.&lt;/p&gt;

&lt;p&gt;this is not the case in centos7, but on rhel8 is already affected&lt;/p&gt;</description>
                <environment></environment>
        <key id="68881">LU-15601</key>
            <summary>osd_inode_iteration err ptr dereference, wrong bitmap checks in osd scrub</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="adilger">Andreas Dilger</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Feb 2022 00:09:19 +0000</created>
                <updated>Sat, 5 Mar 2022 21:04:36 +0000</updated>
                            <resolved>Sat, 5 Mar 2022 21:04:36 +0000</resolved>
                                    <version>Lustre 2.15.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="327575" author="adilger" created="Mon, 28 Feb 2022 03:28:06 +0000"  >&lt;p&gt;Looks like the osd-ldiskfs code should be changed to use IS_ERR_OR_NULL() so it works with both kernels. &lt;/p&gt;</comment>
                            <comment id="327722" author="gerrit" created="Tue, 1 Mar 2022 05:21:49 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46660&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46660&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15601&quot; title=&quot;osd_inode_iteration err ptr dereference, wrong bitmap checks in osd scrub&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15601&quot;&gt;&lt;del&gt;LU-15601&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: handle read_inode_bitmap() error&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ee840530156ad961c3340428a0e01c7bafec23a6&lt;/p&gt;</comment>
                            <comment id="328205" author="gerrit" created="Sat, 5 Mar 2022 20:44:06 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/46660/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46660/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15601&quot; title=&quot;osd_inode_iteration err ptr dereference, wrong bitmap checks in osd scrub&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15601&quot;&gt;&lt;del&gt;LU-15601&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: handle read_inode_bitmap() error&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 06134ff9addec8c74af78dd0f361f503ef8d3ba6&lt;/p&gt;</comment>
                            <comment id="328211" author="pjones" created="Sat, 5 Mar 2022 21:04:36 +0000"  >&lt;p&gt;Landed for 2.15&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|i02jin:</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>