<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:13:15 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-7941] Possible buffer boundaries violation in following string operations.</title>
                <link>https://jira.whamcloud.com/browse/LU-7941</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;function &apos;strncpy&apos; will fill whole buffer &apos;es-&amp;gt;s_last_error_func&apos; of fixed size (32) with string value and will not leave place for NULL-terminator. Possible buffer boundaries violation in following string operations.&lt;/p&gt;

&lt;p&gt;In ldiskfs/super.c&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;301		&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; void __save_error_info(struct super_block *sb, &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *func,
302					    unsigned &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; line)
303		{
304			struct ldiskfs_super_block *es = LDISKFS_SB(sb)-&amp;gt;s_es;
305		 
306			LDISKFS_SB(sb)-&amp;gt;s_mount_state |= LDISKFS_ERROR_FS;
307			es-&amp;gt;s_state |= cpu_to_le16(LDISKFS_ERROR_FS);
308			es-&amp;gt;s_last_error_time = cpu_to_le32(get_seconds());
309			strncpy(es-&amp;gt;s_last_error_func, func, sizeof(es-&amp;gt;s_last_error_func));
310			es-&amp;gt;s_last_error_line = cpu_to_le32(line);
311			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!es-&amp;gt;s_first_error_time) {...}
319			/*
320			 * Start the daily error reporting function &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; it hasn&apos;t been
321			 * started already
322			 */
323			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!es-&amp;gt;s_error_count)
324				mod_timer(&amp;amp;LDISKFS_SB(sb)-&amp;gt;s_err_report, jiffies + 24*60*60*HZ);
325			le32_add_cpu(&amp;amp;es-&amp;gt;s_error_count, 1);
326		}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="35682">LU-7941</key>
            <summary>Possible buffer boundaries violation in following string operations.</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="6">Not a Bug</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="dmiter">Dmitry Eremin</reporter>
                        <labels>
                            <label>kw</label>
                    </labels>
                <created>Tue, 29 Mar 2016 16:30:52 +0000</created>
                <updated>Sat, 10 Mar 2018 03:48:03 +0000</updated>
                            <resolved>Sat, 10 Mar 2018 03:48:03 +0000</resolved>
                                    <version>Lustre 2.9.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="223024" author="adilger" created="Sat, 10 Mar 2018 03:48:03 +0000"  >&lt;p&gt;The only use of &lt;tt&gt;s_last_error_func&lt;/tt&gt; explicitly limits the string printing to the buffer size, and does not depend on a NUL terminator:&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;                printk(KERN_NOTICE &lt;span class=&quot;code-quote&quot;&gt;&quot;EXT4-fs (%s): last error at time %u: %.*s:%d&quot;&lt;/span&gt;,      
                       sb-&amp;gt;s_id, le32_to_cpu(es-&amp;gt;s_last_error_time),
                       (&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;) sizeof(es-&amp;gt;s_last_error_func),
                       es-&amp;gt;s_last_error_func,
                       le32_to_cpu(es-&amp;gt;s_last_error_line));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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|hzy63j:</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>