<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:10:30 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-7624] fld_proc_hash_seq_write accesses userspace pointer directly</title>
                <link>https://jira.whamcloud.com/browse/LU-7624</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In lustre/fld/lproc_fld.c we have this gem:&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;&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; ssize_t
fld_proc_hash_seq_write(struct file *file, &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; __user *buffer,
                        size_t count, loff_t *off)
{
...
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!strncmp(fld_hash[i].fh_name, buffer, count)) {
                        hash = &amp;amp;fld_hash[i];
                        &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
                }
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is a bug and we cannot really access user pointers directly. The value first must be copied to a kernel buffer.&lt;/p&gt;

&lt;p&gt;This was introduced in 2006 by Yury, part of cmd3 bringup.&lt;/p&gt;</description>
                <environment></environment>
        <key id="33901">LU-7624</key>
            <summary>fld_proc_hash_seq_write accesses userspace pointer directly</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="bogl">Bob Glossman</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Sun, 3 Jan 2016 21:46:34 +0000</created>
                <updated>Fri, 23 Sep 2016 11:02:28 +0000</updated>
                            <resolved>Tue, 12 Jan 2016 15:41:00 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                    <version>Lustre 2.5.3</version>
                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="137834" author="pjones" created="Mon, 4 Jan 2016 18:50:25 +0000"  >&lt;p&gt;Bob&lt;/p&gt;

&lt;p&gt;Could you please fix this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="137841" author="gerrit" created="Mon, 4 Jan 2016 19:32:02 +0000"  >&lt;p&gt;Bob Glossman (bob.glossman@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/17797&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17797&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7624&quot; title=&quot;fld_proc_hash_seq_write accesses userspace pointer directly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7624&quot;&gt;&lt;del&gt;LU-7624&lt;/del&gt;&lt;/a&gt; fld: copy userspace buffer&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0ad4257e9873502971ce322f7590310e8cd42e33&lt;/p&gt;</comment>
                            <comment id="138627" author="gerrit" created="Tue, 12 Jan 2016 02:48:27 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/17797/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17797/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7624&quot; title=&quot;fld_proc_hash_seq_write accesses userspace pointer directly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7624&quot;&gt;&lt;del&gt;LU-7624&lt;/del&gt;&lt;/a&gt; fld: copy userspace buffer&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ab38c3afa2747c99b766b9bbdd825ef7593bc532&lt;/p&gt;</comment>
                            <comment id="138673" author="simmonsja" created="Tue, 12 Jan 2016 15:39:00 +0000"  >&lt;p&gt;Patch has landed. This ticket can be closed.&lt;/p&gt;</comment>
                            <comment id="138674" author="pjones" created="Tue, 12 Jan 2016 15:41:00 +0000"  >&lt;p&gt;Do you realize that you have permissions to mark tickets as resolved James? &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;/p&gt;</comment>
                            <comment id="138682" author="simmonsja" created="Tue, 12 Jan 2016 16:32:32 +0000"  >&lt;p&gt;Oh I have been given power. How scary!!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="33900">LU-7623</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="28577">LU-6215</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|hzxx3r:</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>