<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:02:35 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-13593] Fix growing message buffer</title>
                <link>https://jira.whamcloud.com/browse/LU-13593</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&lt;tt&gt;lustre_grow_msg_v2()&lt;/tt&gt; should move memory region even if new size for buffer has already been set. The use case is when it is called via &lt;tt&gt;mdt_dom_read_on_open()&lt;/tt&gt; and &lt;tt&gt;req_capsule_server_grow()&lt;/tt&gt; in order to put DoM file content into &lt;tt&gt;RMF_NIOBUF_INLINE&lt;/tt&gt; field (&lt;tt&gt;RQF_LDLM_INTENT_OPEN&lt;/tt&gt; request with &lt;tt&gt;ldlm_intent_open_server&lt;/tt&gt; format for server part). Indeed, there is another field &lt;tt&gt;RMF_FILE_SECCTX&lt;/tt&gt; (and soon another one for encryption context support) after &lt;tt&gt;RMF_NIOBUF_INLINE&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;To achieve this, I will push a patch that adds an &apos;oldlen&apos; parameter.&lt;/p&gt;</description>
                <environment></environment>
        <key id="59299">LU-13593</key>
            <summary>Fix growing message buffer</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="sebastien">Sebastien Buisson</assignee>
                                    <reporter username="sebastien">Sebastien Buisson</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Fri, 22 May 2020 11:11:11 +0000</created>
                <updated>Mon, 8 Feb 2021 05:23:53 +0000</updated>
                            <resolved>Mon, 20 Jul 2020 13:31:52 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="270918" author="gerrit" created="Fri, 22 May 2020 11:16:29 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38701&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38701&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13593&quot; title=&quot;Fix growing message buffer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13593&quot;&gt;&lt;del&gt;LU-13593&lt;/del&gt;&lt;/a&gt; ptlrpc: fix growing message buffer&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 37e5ca4de3f1ef810cdbe710145a7e776d9e3798&lt;/p&gt;</comment>
                            <comment id="271071" author="tappro" created="Mon, 25 May 2020 15:54:20 +0000"  >&lt;p&gt;Sebastien, I don&apos;t understand the reason of the patch still. Could you give an example why memcpy() is needed if size is set already? You mean the size was set but data weren&apos;t moved? Or something else?&lt;/p&gt;</comment>
                            <comment id="271072" author="sebastien" created="Mon, 25 May 2020 15:59:43 +0000"  >&lt;p&gt;Hi Mike,&lt;/p&gt;

&lt;p&gt;With the path explained in the description of this ticket, new size of grown buffer &lt;tt&gt;RMF_NIOBUF_INLINE&lt;/tt&gt; is set, but content of fields after it, like &lt;tt&gt;RMF_FILE_SECCTX&lt;/tt&gt;, is not moved, which ends up in corrupted request content.&lt;br/&gt;
In order to fix this problem I had to modify code according to patch &lt;a href=&quot;https://review.whamcloud.com/38701&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38701&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="271076" author="tappro" created="Mon, 25 May 2020 17:04:33 +0000"  >&lt;p&gt;so problem is that next buffers after &lt;tt&gt;NIOBUF_INLINE&lt;/tt&gt;&#160;were not moved? At the same time old code has part that suppose to move such tail, so it does that wrongly and you fixed that, right?&lt;/p&gt;</comment>
                            <comment id="271107" author="sebastien" created="Tue, 26 May 2020 06:59:11 +0000"  >&lt;p&gt;Correct, at least that is my intention with patch submitted under this Jira ticket &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
But maybe my fix proposal is not ideal?&lt;/p&gt;</comment>
                            <comment id="275744" author="gerrit" created="Mon, 20 Jul 2020 05:19:05 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38701/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38701/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13593&quot; title=&quot;Fix growing message buffer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13593&quot;&gt;&lt;del&gt;LU-13593&lt;/del&gt;&lt;/a&gt; ptlrpc: fix growing message buffer&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2c62cef8ae4107602664271627cf03ff859f7b21&lt;/p&gt;</comment>
                            <comment id="275759" author="pjones" created="Mon, 20 Jul 2020 13:31:52 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="55969">LU-12443</issuekey>
        </issuelink>
                            </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|i0112f:</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>