<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:06:46 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-14093] gcc10 fails to build Lustre</title>
                <link>https://jira.whamcloud.com/browse/LU-14093</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;
/ldiskfs_extents.h:214:12: error: &#8216;zero_ex2.ee_start_hi&#8217; may be used uninitialized in &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; function [-Werror=maybe-uninitialized]
  214 |  block |= ((ldiskfs_fsblk_t) le16_to_cpu(ex-&amp;gt;ee_start_hi) &amp;lt;&amp;lt; 31) &amp;lt;&amp;lt; 1;
/home/alexey/head2/ldiskfs/extents.c:3411:34: note: &#8216;zero_ex2.ee_start_hi&#8217; was declared here
 3411 |  struct ldiskfs_extent zero_ex1, zero_ex2;
      |                                  ^~~~~~~~
...
/home/alexey/head2/lustre/obdclass/llog_swab.c: In function &#8216;lustre_swab_update_ops&#8217;:
/home/alexey/head2/lustre/obdclass/llog_swab.c:137:46: error: array subscript 65534 is outside the bounds of an interior zero-length array &#8216;__u16[0]&#8217; {aka &#8216;&lt;span class=&quot;code-object&quot;&gt;short&lt;/span&gt; unsigned &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;[]&#8217;} [-Werror=zero-length-bounds]
  137 |    __swab16s(&amp;amp;uops-&amp;gt;uops_op[i].uop_params_off[j]);
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
...
/home/alexey/head2/lustre/mgc/mgc_request.c: In function &#8216;mgc_apply_recover_logs&#8217;:
/home/alexey/head2/lustre/mgc/mgc_request.c:1506:24: error: &#8216;sprintf&#8217; argument 4 may overlap destination object &#8216;&amp;lt;unknown&amp;gt;&#8217; [-Werror=restrict]
 1506 |                 pos += sprintf(obdname + pos, &lt;span class=&quot;code-quote&quot;&gt;&quot;-%s-%s&quot;&lt;/span&gt;, cname, inst);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
In function &#8216;lfs_project_item_alloc&#8217;,
    inlined from &#8216;lfs_project_handle_dir&#8217; at lfs_project.c:288:9:
lfs_project.c:72:2: error: &#8216;strncpy&#8217; output may be truncated copying 4095 bytes from a string of length 4095 [-Werror=stringop-truncation]
   72 |  strncpy(lpi-&amp;gt;lpi_pathname, pathname, sizeof(lpi-&amp;gt;lpi_pathname) - 1);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="61430">LU-14093</key>
            <summary>gcc10 fails to build Lustre</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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="bzzz">Alex Zhuravlev</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Oct 2020 16:43:27 +0000</created>
                <updated>Mon, 24 Jan 2022 05:41:22 +0000</updated>
                            <resolved>Wed, 25 Aug 2021 12:31:36 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="283751" author="gerrit" created="Fri, 30 Oct 2020 06:47:38 +0000"  >&lt;p&gt;Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40484&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40484&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; mgc: rework mgc_apply_recover_logs() for gcc10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 19a6b718741568661f45b7c01f9f2b52f4941f2b&lt;/p&gt;</comment>
                            <comment id="283752" author="gerrit" created="Fri, 30 Oct 2020 06:48:58 +0000"  >&lt;p&gt;Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40485&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40485&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; utils: trivial changes to support gcc10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4e3ceb36b1f6eacef5dd9e1b7db46463eb8e384c&lt;/p&gt;</comment>
                            <comment id="283753" author="gerrit" created="Fri, 30 Oct 2020 07:05:05 +0000"  >&lt;p&gt;Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40486&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40486&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; ptlrpc: redefine uop_params_off to support gcc10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 830439c1eb1a64865ec183b72489f57a1d817bb7&lt;/p&gt;</comment>
                            <comment id="284609" author="gerrit" created="Sat, 7 Nov 2020 08:15:26 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40486/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40486/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; ptlrpc: redefine uop_params_off to support gcc10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 99ad32e7b9af807ef80d074c901a4d390c1ac0a1&lt;/p&gt;</comment>
                            <comment id="298475" author="gerrit" created="Sat, 10 Apr 2021 17:39:55 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40485/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40485/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; utils: trivial changes to support gcc10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 79acd674e3bc49ac630d84ef64df2291fc9ade01&lt;/p&gt;</comment>
                            <comment id="301731" author="gerrit" created="Sat, 15 May 2021 22:38:30 +0000"  >&lt;p&gt;Dominique Martinet (qhufhnrynczannqp.f@noclue.notk.org) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43711&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43711&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; utils: fix format-overflow warning&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2c211160d8bddd1b7fe635de5ed4917ffb6bdc73&lt;/p&gt;</comment>
                            <comment id="301732" author="gerrit" created="Sat, 15 May 2021 22:38:30 +0000"  >&lt;p&gt;Dominique Martinet (qhufhnrynczannqp.f@noclue.notk.org) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43712&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43712&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; llapi: remove ignored qualifier&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e287a5e9205baa14d40a5aa7d5a6f300e0e698d0&lt;/p&gt;</comment>
                            <comment id="301733" author="gerrit" created="Sat, 15 May 2021 22:38:31 +0000"  >&lt;p&gt;Dominique Martinet (qhufhnrynczannqp.f@noclue.notk.org) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43713&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43713&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; lnet: annotate LNET_WIRE_HANDLE_COOKIE_NONE as u64&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d59c0272db78be520b0f47ab64ab5f37bdeda0d1&lt;/p&gt;</comment>
                            <comment id="303714" author="gerrit" created="Mon, 7 Jun 2021 12:40:01 +0000"  >&lt;p&gt;James Simmons (jsimmons@infradead.org) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43938&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43938&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; utils: fix DLSYM buffer over flow&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 35ddaafe03c74e998d67071848eafd5d90d1ff34&lt;/p&gt;</comment>
                            <comment id="303715" author="simmonsja" created="Mon, 7 Jun 2021 12:45:04 +0000"  >&lt;p&gt;I&apos;m also seeing this compile error but don&apos;t have a solution.&lt;/p&gt;

&lt;p&gt;llog_reader.c: In function &#8216;lustre_swab_lu_fid&#8217;:&lt;/p&gt;

&lt;p&gt;llog_reader.c:781:12: error: taking address of packed member of &#8216;struct lu_fid&#8217; may result in an unaligned pointer value &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=address-of-packed-member&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160; 781 |&#160; __swab64s(&amp;amp;fid-&amp;gt;f_seq);&lt;/p&gt;</comment>
                            <comment id="304447" author="gerrit" created="Mon, 14 Jun 2021 16:43:53 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43711/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43711/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; utils: fix format-overflow warning&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a0fe9be254b944f5b005dd4b36c414827bcb40df&lt;/p&gt;</comment>
                            <comment id="304448" author="gerrit" created="Mon, 14 Jun 2021 16:44:01 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43712/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43712/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; llapi: remove ignored qualifier&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 90ee0457c9fb1da939558186961f346c917d678f&lt;/p&gt;</comment>
                            <comment id="304457" author="simmonsja" created="Mon, 14 Jun 2021 17:05:51 +0000"  >&lt;p&gt;A few more patches are needed so don&apos;t close just yet.&lt;/p&gt;</comment>
                            <comment id="305119" author="gerrit" created="Mon, 21 Jun 2021 22:18:24 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43938/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43938/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; utils: fix DLSYM buffer over flow&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 76bea6ca661609e3788d1cfe7e08e4a63af0a349&lt;/p&gt;</comment>
                            <comment id="306549" author="gerrit" created="Thu, 8 Jul 2021 02:06:06 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43713/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43713/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; lnet: annotate LNET_WIRE_HANDLE_COOKIE_NONE as u64&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 27214876fcdfbda016c920bce4ab1da800fcda4b&lt;/p&gt;</comment>
                            <comment id="306558" author="simmonsja" created="Thu, 8 Jul 2021 02:20:56 +0000"  >&lt;p&gt;Need two more patches to complete this on my end.&lt;/p&gt;</comment>
                            <comment id="307849" author="simmonsja" created="Tue, 20 Jul 2021 14:37:39 +0000"  >&lt;p&gt;Ubuntu 20 HWE has moved to gcc 10. New bugs are showing up.&lt;/p&gt;</comment>
                            <comment id="307961" author="gerrit" created="Wed, 21 Jul 2021 16:47:15 +0000"  >&lt;p&gt;James Simmons (jsimmons@infradead.org) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/44363&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44363&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; gss: gcc10 fixes for GSS&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4377e1485433732ab08724806d8b26be21dc0649&lt;/p&gt;</comment>
                            <comment id="308997" author="gerrit" created="Sat, 31 Jul 2021 06:39:27 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/44363/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44363/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; gss: gcc10 fixes for GSS&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 39e4c97530c4657192e7c0d6a22ca30c90cdb6e4&lt;/p&gt;</comment>
                            <comment id="309004" author="simmonsja" created="Sat, 31 Jul 2021 12:53:21 +0000"  >&lt;p&gt;Couple of more patches.&lt;/p&gt;</comment>
                            <comment id="309153" author="simmonsja" created="Tue, 3 Aug 2021 14:30:16 +0000"  >&lt;p&gt;So I see this error:&lt;/p&gt;

&lt;p&gt;badarea_io.c: In function &#8216;main&#8217;:&lt;/p&gt;

&lt;p&gt;badarea_io.c:59:7: error: &#8216;write&#8217; reading 2097152 bytes from a region of size 4 &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=stringop-overflow=&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&#160; 59 |&#160; rc = write(fd, &amp;amp;fd, 2UL*1024*1024);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; | &#160; &#160; &#160; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/p&gt;

&lt;p&gt;In file included from badarea_io.c:30:&lt;/p&gt;

&lt;p&gt;/usr/include/unistd.h:367:16: note: in a call to function &#8216;write&#8217; declared with attribute &#8216;read_only (2, 3)&#8217;&lt;/p&gt;

&lt;p&gt;&#160; 367 | extern ssize_t write (int _&lt;em&gt;fd, const void *&lt;/em&gt;_buf, size_t __n) __wur&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; |&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ^~~~~&lt;/p&gt;

&lt;p&gt;badarea_io.c:63:7: error: &#8216;write&#8217; reading 2147483648 bytes from a region of size 4 &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=stringop-overflow=&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&#160; 63 |&#160; rc = write(fd, &amp;amp;fd, 2UL*1024*1024*1024);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; | &#160; &#160; &#160; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/p&gt;

&lt;p&gt;In file included from badarea_io.c:30:&lt;/p&gt;

&lt;p&gt;/usr/include/unistd.h:367:16: note: in a call to function &#8216;write&#8217; declared with attribute &#8216;read_only (2, 3)&#8217;&lt;/p&gt;

&lt;p&gt;&#160; 367 | extern ssize_t write (int _&lt;em&gt;fd, const void *&lt;/em&gt;_buf, size_t __n) __wur&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; |&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ^~~~~&lt;/p&gt;

&lt;p&gt;badarea_io.c:67:7: error: &#8216;write&#8217; specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=stringop-overflow=&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&#160; 67 |&#160; rc = write(fd, &amp;amp;fd, -2);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; | &#160; &#160; &#160; ^~~~~~~~~~~~~~~~~~&lt;/p&gt;

&lt;p&gt;In file included from badarea_io.c:30:&lt;/p&gt;

&lt;p&gt;/usr/include/unistd.h:367:16: note: in a call to function &#8216;write&#8217; declared with attribute &#8216;read_only (2, 3)&#8217;&lt;/p&gt;

&lt;p&gt;&#160; 367 | extern ssize_t write (int _&lt;em&gt;fd, const void *&lt;/em&gt;_buf, size_t __n) __wur&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; |&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ^~~~~&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Was the original intent to actually write large amounts of data ? Just want to understand what the original intent was.&lt;/p&gt;</comment>
                            <comment id="309396" author="adilger" created="Thu, 5 Aug 2021 18:45:32 +0000"  >&lt;p&gt;James, the goal of &lt;tt&gt;badarea_io&lt;/tt&gt; is to verify that the /procfs, /sysfs, /debugfs handlers are not doing anything bad with invalid input (e.g. buffer overflows, choking on garbage data, etc).  That used to happen on occasion and caused a kernel crash, but is largely robust now due to these tests.&lt;/p&gt;

&lt;p&gt;It should be fine to replace &quot;&lt;tt&gt;&amp;amp;fd&lt;/tt&gt;&quot; with any other pointer, since the kernel input parsing &lt;b&gt;should&lt;/b&gt; stop long before accessing 2MiB or 2GiB or 16EiB of data.  It might be enough to &lt;tt&gt;malloc()&lt;/tt&gt; a buffer (e.g. 4KB) and use that directly, but if newer GCC also complains about overflowing the 4KB static buffer size, then it would also be possible to (optionally) accept the buffer size on the command-line just to work around any static size logic in the compiler.  We don&apos;t necessarily want to &lt;b&gt;avoid&lt;/b&gt; passing a bad pointer to the kernel, since that is exactly what this test is trying to exercise (e.g. &lt;tt&gt;copy_from_user()&lt;/tt&gt; is being used properly, etc).&lt;/p&gt;</comment>
                            <comment id="310315" author="simmonsja" created="Mon, 16 Aug 2021 17:49:51 +0000"  >&lt;p&gt;I pushed the last patch for this work that I see.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/#/c/44670&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/44670&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Alex if you see anything else let me know.&lt;/p&gt;</comment>
                            <comment id="310504" author="gerrit" created="Wed, 18 Aug 2021 01:57:58 +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/40484/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40484/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; mgc: rework mgc_apply_recover_logs() for gcc10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d13d8158e816b7ac4437ff6d6c6aec3926ba7531&lt;/p&gt;</comment>
                            <comment id="310520" author="gerrit" created="Wed, 18 Aug 2021 02:00:23 +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/44484/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44484/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; lutf: fix build with gcc10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 5220160648140800ced6466a1f75071ca80162da&lt;/p&gt;</comment>
                            <comment id="311123" author="gerrit" created="Wed, 25 Aug 2021 06:23:54 +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/44670/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44670/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14093&quot; title=&quot;gcc10 fails to build Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14093&quot;&gt;&lt;del&gt;LU-14093&lt;/del&gt;&lt;/a&gt; tests: silence gcc10 error for badarea_io&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 084546f7d01b0eec8dafae9bc50edc778c3886ca&lt;/p&gt;</comment>
                            <comment id="311138" author="simmonsja" created="Wed, 25 Aug 2021 12:31:36 +0000"  >&lt;p&gt;All the build issues I have seen have been addresses. Alex if you have any more please reopen this ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="64786">LU-14776</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|i01dpj:</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>