<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:27:38 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-16510] Provide an interim &apos;good&apos; fortified memcpy from 6.1</title>
                <link>https://jira.whamcloud.com/browse/LU-16510</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The fortified memcpy() from kernel v5.11-11104-ga28a6e860c6c through v5.18-rc5-1405-g43213daed6d6 incorrectly reports a false positive.&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; 13:54:25 In function &apos;memcpy&apos;,
 13:54:25     inlined from &apos;lov_iocontrol&apos; at /tmp/rpmbuild-lustre-jenkins-4fGYbbr1/BUILD/lustre-2.15.53_116_g5d22f15/lustre/lov/lov_obd.c:1057:4:
 13:54:25 include/linux/fortify-string.h:187:25: error: call to &apos;__read_overflow2&apos; declared with attribute error: detected read beyond size of object passed as 2nd parameter
 13:54:25   187 |                         __read_overflow2();
 13:54:25       |                         ^~~~~~~~~~~~~~~~~~
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="74220">LU-16510</key>
            <summary>Provide an interim &apos;good&apos; fortified memcpy from 6.1</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="paf0186">Patrick Farrell</assignee>
                                    <reporter username="stancheff">Shaun Tancheff</reporter>
                        <labels>
                    </labels>
                <created>Sun, 29 Jan 2023 13:47:22 +0000</created>
                <updated>Thu, 14 Sep 2023 14:05:51 +0000</updated>
                            <resolved>Thu, 14 Sep 2023 14:05:51 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="360789" author="gerrit" created="Sun, 29 Jan 2023 13:59:24 +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/c/fs/lustre-release/+/49811&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49811&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: fortified memcpy from linux 6.1&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e4b87269f249f94c004ffb3d7ed6c4b369956fcf&lt;/p&gt;</comment>
                            <comment id="360810" author="gerrit" created="Mon, 30 Jan 2023 07:42:06 +0000"  >&lt;p&gt;&quot;Jian Yu &amp;lt;yujian@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49815&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49815&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: fortified memcpy from linux 6.1&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0217d59249441102d6d4d51e6ec8d87d339d5e8c&lt;/p&gt;</comment>
                            <comment id="362049" author="gerrit" created="Wed, 8 Feb 2023 06:27:31 +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/c/fs/lustre-release/+/49811/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49811/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: fortified memcpy from linux 6.1&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 919b93b951d4a9aa0400b9c882a1f68b79d8f118&lt;/p&gt;</comment>
                            <comment id="362148" author="pjones" created="Wed, 8 Feb 2023 17:28:56 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="367506" author="gerrit" created="Tue, 28 Mar 2023 07:13: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/c/fs/lustre-release/+/49815/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49815/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: fortified memcpy from linux 6.1&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 83658e38cd497c777a3056edebc8cd34803b45f8&lt;/p&gt;</comment>
                            <comment id="368818" author="paf0186" created="Fri, 7 Apr 2023 17:28:52 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adegremont_nvda&quot; class=&quot;user-hover&quot; rel=&quot;adegremont_nvda&quot;&gt;adegremont_nvda&lt;/a&gt; pointed out this patch is missing a key component.&#160; Quoting him:&lt;/p&gt;

&lt;p&gt;&quot;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt;&#160;has a defect. The fortify.h file is missing one important bit compared to the upstream file it copied:&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;
+/**
+ * unsafe_memcpy - memcpy implementation with no FORTIFY bounds checking
+ *
+ * @dst: Destination memory address to write to
+ * @src: Source memory address to read from
+ * @bytes: How many bytes to write to @dst from @src
+ * @justification: Free-form text or comment describing why the use is needed
+ *
+ * This should be used &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; corner cases where the compiler cannot &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; the
+ * right thing, or during transitions between APIs, etc. It should be used
+ * very rarely, and includes a place &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; justification detailing where bounds
+ * checking has happened, and why existing solutions cannot be employed.
+ */
+#define unsafe_memcpy(dst, src, bytes, justification) &#160; &#160; &#160; &#160; &#160;\
+ &#160; &#160; &#160; __underlying_memcpy(dst, src, bytes)
+&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&quot;&lt;/p&gt;

&lt;p&gt;I&apos;ll push a patch.&lt;/p&gt;</comment>
                            <comment id="368827" author="gerrit" created="Fri, 7 Apr 2023 18:13:13 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50573&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50573&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: include unsafe_memcpy definition&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 991db242d198ab56d354cd374bf8606fa312fd65&lt;/p&gt;</comment>
                            <comment id="369717" author="gerrit" created="Tue, 18 Apr 2023 03:24:40 +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/c/fs/lustre-release/+/50573/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50573/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: include unsafe_memcpy definition&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 565b21bf65e385a9b4fd8ee31cabe7892345b783&lt;/p&gt;</comment>
                            <comment id="369728" author="gerrit" created="Tue, 18 Apr 2023 06:15:13 +0000"  >&lt;p&gt;&quot;Jian Yu &amp;lt;yujian@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50667&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50667&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: include unsafe_memcpy definition&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 379a6b3d4696e28b1db6a5bfd0d6f92fbe6378de&lt;/p&gt;</comment>
                            <comment id="369756" author="pjones" created="Tue, 18 Apr 2023 12:21:45 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="370965" author="gerrit" created="Sat, 29 Apr 2023 01:29:24 +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/c/fs/lustre-release/+/50667/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50667/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: include unsafe_memcpy definition&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8f4004809461bb2cab20c72d20980edf32c98793&lt;/p&gt;</comment>
                            <comment id="382879" author="gerrit" created="Thu, 17 Aug 2023 21:27:57 +0000"  >&lt;p&gt;&quot;Jian Yu &amp;lt;yujian@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51973&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51973&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: check if CONFIG_FORTIFY_SOURCE is defined&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 06956ef63fd7a0489648fe85c2f1e1904e78424e&lt;/p&gt;</comment>
                            <comment id="384348" author="gerrit" created="Thu, 31 Aug 2023 06:39: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/c/fs/lustre-release/+/51973/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51973/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16510&quot; title=&quot;Provide an interim &amp;#39;good&amp;#39; fortified memcpy from 6.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16510&quot;&gt;&lt;del&gt;LU-16510&lt;/del&gt;&lt;/a&gt; build: check if CONFIG_FORTIFY_SOURCE is defined&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a52545afeda06441841f6143d8fd563251549acb&lt;/p&gt;</comment>
                            <comment id="384844" author="simmonsja" created="Tue, 5 Sep 2023 18:56:54 +0000"  >&lt;p&gt;Another bug has shown up. This time its the __QCTL_COPY macro in lustre_idl.h that fails to build.&lt;br/&gt;
In function &apos;memcpy&apos;,&lt;b&gt;10:33:49&lt;/b&gt;     inlined from &apos;lov_iocontrol&apos; at /tmp/rpmbuild-lustre-jenkins-MOxpnLlK/BUILD/lustre-2.15.58_1_g13e68ce/lustre/lov/lov_obd.c:1079:4:&lt;b&gt;10:33:49&lt;/b&gt; include/linux/fortify-string.h:187:25: error: call to &apos;__read_overflow2&apos; declared with attribute error: detected read beyond size of object passed as 2nd parameter*10:33:49*   187 |                         __read_overflow2();&lt;b&gt;10:33:49&lt;/b&gt;       |                         ^~~~~~~~~~~~~~~~~~&lt;/p&gt;</comment>
                            <comment id="386000" author="simmonsja" created="Thu, 14 Sep 2023 14:05:51 +0000"  >&lt;p&gt;I looked into this bug and found the issue is that memcpy that is fortify doesn&apos;t work with flexible arrays like QCTL_COPY works with. The infrastructure to support this has landed in the newest kernels; but to support that with every kernel Lustre supports requires way too much back porting. So the solution is not blanket include linux-fortify-string.h since it will break things. Just include it where it is needed.&#160;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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|i03baf:</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>