<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:21:23 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-15798] RHEL9 / gcc-11 adds -Wstringop-overread false warnings</title>
                <link>https://jira.whamcloud.com/browse/LU-15798</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>
&lt;p&gt;gcc-11 stringop-overread reports a false positive on&lt;br/&gt;
changelog record name.&lt;/p&gt;

&lt;p&gt;Use _Pragma to exclude the diagnostic for this case.&lt;/p&gt;</description>
                <environment></environment>
        <key id="70052">LU-15798</key>
            <summary>RHEL9 / gcc-11 adds -Wstringop-overread false warnings</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="stancheff">Shaun Tancheff</assignee>
                                    <reporter username="stancheff">Shaun Tancheff</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Apr 2022 03:36:25 +0000</created>
                <updated>Tue, 16 Jan 2024 10:34:01 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="333248" author="gerrit" created="Thu, 28 Apr 2022 08:22:53 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47167&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47167&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15798&quot; title=&quot;RHEL9 / gcc-11 adds -Wstringop-overread false warnings&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15798&quot;&gt;LU-15798&lt;/a&gt; build: gcc-11 -Wstringop-overread false warnings&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 35fefe81451287ab6431849d1f9ce9b8cb78c967&lt;/p&gt;</comment>
                            <comment id="333269" author="simmonsja" created="Thu, 28 Apr 2022 12:32:34 +0000"  >&lt;p&gt;Patch &lt;a href=&quot;https://review.whamcloud.com/c/46319&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/46319&lt;/a&gt; resolves this in a clear way,&lt;/p&gt;</comment>
                            <comment id="387056" author="xinliang" created="Mon, 25 Sep 2023 03:18:25 +0000"  >&lt;p&gt;This issue still exists on rhel9.2:&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;
/tmp/rpmbuild-lustre-jenkins-SCTCWlBO/BUILD/lustre-2.15.58_59_g2ddb1d3_dirty/lustre/include/uapi/linux/lustre/lustre_user.h:2095:16: error: &lt;span class=&quot;code-quote&quot;&gt;&apos;strlen&apos;&lt;/span&gt; reading 1 or more bytes from a region of size 0 [-Werror=stringop-overread]
 2095 |         &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; strlen(changelog_rec_sname(rec));
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="387090" author="stancheff" created="Mon, 25 Sep 2023 14:02:27 +0000"  >&lt;p&gt;Strange that I do not see this on x86_64 ... it this aarch64?&lt;/p&gt;</comment>
                            <comment id="387190" author="xinliang" created="Tue, 26 Sep 2023 01:14:41 +0000"  >&lt;p&gt;Yes, it is aarch64.&lt;/p&gt;</comment>
                            <comment id="389201" author="xinliang" created="Fri, 13 Oct 2023 09:06:15 +0000"  >&lt;p&gt;@&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=stancheff&quot; class=&quot;user-hover&quot; rel=&quot;stancheff&quot;&gt;stancheff&lt;/a&gt; have tried make rpms? Just make no compile error.&lt;/p&gt;</comment>
                            <comment id="389212" author="stancheff" created="Fri, 13 Oct 2023 12:18:57 +0000"  >&lt;p&gt;Yes, make and make rpms both work.&lt;/p&gt;

&lt;p&gt;With gcc-12 I do see a few issues with configure and with compiling:&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;In function &#8216;strnlen&#8217;,
    inlined from &#8216;lov_iocontrol&#8217; at /home/shaun/lustre-release/lustre/lov/lov_obd.c:1079:4:
include/linux/fortify-string.h:23:34: error: array subscript 112 is outside array bounds of &#8216;void[112]&#8217; [-Werror=array-bounds]
   23 |             __builtin_constant_p(*__p)) {                       \
      |                                  ^~~~
include/linux/fortify-string.h:141:24: note: in expansion of macro &#8216;__compiletime_strlen&#8217;
  141 |         size_t p_len = __compiletime_strlen(p);
      |                        ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/fs.h:44,
                 from /home/shaun/lustre-release/libcfs/include/libcfs/linux/linux-misc.h:35,
                 from /home/shaun/lustre-release/libcfs/include/libcfs/libcfs.h:43:
In function &#8216;kmalloc&#8217;,
    inlined from &#8216;lov_iocontrol&#8217; at /home/shaun/lustre-release/lustre/lov/lov_obd.c:1072:3:
include/linux/slab.h:611:24: note: at offset 112 into object of size 112 allocated by &#8216;kmem_cache_alloc_trace&#8217;
  611 |                 return kmem_cache_alloc_trace(
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
  612 |                                 kmalloc_caches[kmalloc_type(flags)][index],
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  613 |                                 flags, size);
      |                                 ~~~~~~~~~~~~
cc1: all warnings being treated as errors
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="389340" author="xinliang" created="Mon, 16 Oct 2023 02:25:43 +0000"  >&lt;p&gt;Thanks, &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=stancheff&quot; class=&quot;user-hover&quot; rel=&quot;stancheff&quot;&gt;stancheff&lt;/a&gt;&#160;for the info, it seems an Aarch64 specific issue.&lt;/p&gt;</comment>
                            <comment id="389539" author="xinliang" created="Tue, 17 Oct 2023 02:18:25 +0000"  >&lt;p&gt;Find that the below commit breaks the compiling on rhel9.2.&lt;/p&gt;

&lt;p&gt;efc5c8d4de60 &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; build: remove _GNU_SOURCE dependency in lustre_user.h&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;
~/work/lustre/lustre-release$ git log -p efc5c8d4de60 --&#160; lustre&lt;span class=&quot;code-comment&quot;&gt;//include/uapi/linux/lustre/lustre_user.h
&lt;/span&gt;Author: Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;
Date: &#160; Thu Dec 1 03:17:00 2022 -0500


&#160; &#160; LU-16335 build: remove _GNU_SOURCE dependency in lustre_user.h
&#160;&#160; &#160;
&#160; &#160; The lustre_user.h header uses the non-standard strchrnul() function
&#160; &#160; in userspace.&#160; This will always leads to LC_IOC_REMOVE_ENTRY configure
&#160; &#160; check to fail, and in the end &lt;span class=&quot;code-quote&quot;&gt;&quot;lfs rm_entry&quot;&lt;/span&gt; always returns -ENOTSUP.
&#160;&#160; &#160;
&#160; &#160; Implement an alternative approach to avoid external dependencies on
&#160; &#160; the lustre_user.h header.&#160; Also, LC_IOC_REMOVE_ENTRY is itself
&#160; &#160; unnecessary, the code can check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; LL_IOC_REMOVE_ENTRY directly.
&#160;&#160; &#160;
&#160; &#160; Replace the NFS-specific -ENOTSUP error &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; code with -EOPNOTSUPP.
&#160;&#160; &#160;
&#160; &#160; Fix the compile test_400[ab] checks to not use &lt;span class=&quot;code-quote&quot;&gt;&quot;-std=c99&quot;&lt;/span&gt; to verify
&#160; &#160; that the uapi headers are usable without &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; dependency.
&#160;&#160; &#160;
...
diff --git a/lustre/include/uapi/linux/lustre/lustre_user.h b/lustre/include/uapi/linux/lustre/lustre_user.h
index 1b1e60acf805..36e1e70b9224 100644
--- a/lustre/include/uapi/linux/lustre/lustre_user.h
+++ b/lustre/include/uapi/linux/lustre/lustre_user.h
@@ -2033,7 +2033,11 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; inline &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *changelog_rec_name(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct changelog_rec *rec)
 
 &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; inline &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *changelog_rec_sname(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct changelog_rec *rec)
 {
- &#160; &#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; strchrnul(changelog_rec_name(rec), &lt;span class=&quot;code-quote&quot;&gt;&apos;\0&apos;&lt;/span&gt;) + 1;
+ &#160; &#160; &#160; &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *str = changelog_rec_name(rec);
+
+ &#160; &#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; (*str != &lt;span class=&quot;code-quote&quot;&gt;&apos;\0&apos;&lt;/span&gt;)
+ &#160; &#160; &#160; &#160; &#160; &#160; &#160; str++;
+ &#160; &#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; str + 1;
 }
  &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="399813" author="gerrit" created="Tue, 16 Jan 2024 10:03:15 +0000"  >&lt;p&gt;&quot;xinliang &amp;lt;xinliang.liu@linaro.org&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53685&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53685&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15798&quot; title=&quot;RHEL9 / gcc-11 adds -Wstringop-overread false warnings&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15798&quot;&gt;LU-15798&lt;/a&gt; build: fix gcc-11 -Wstringop-overread warnings&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d14dc3ce31e06bacdb79e2c2457b65669c554358&lt;/p&gt;</comment>
                            <comment id="399815" author="xinliang" created="Tue, 16 Jan 2024 10:34:01 +0000"  >&lt;p&gt;This issue can be fixed by patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53624&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53624&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="79871">LU-17400</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="67850">LU-15420</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|i02ofb:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>