<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:05:52 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-13985] seq_file next function must change *pos</title>
                <link>https://jira.whamcloud.com/browse/LU-13985</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If the .next function used to implement a seq_file ever doesn&apos;t change the value of *pos, the result of reading the file can be incorrect.&lt;/p&gt;

&lt;p&gt;This specifically includes when the end-of-file is found and NULL is returned.&lt;/p&gt;

&lt;p&gt;The error occurs if a &apos;read()&apos; request is performed while the file pointer is in the middle of the last record, as you could happen if you seek there, or read a block that is not a whole number of records.&#160; In this case the remainder of the last record will be returned followed by a complete copy of that last record.&#160; To avoid the complete copy, *pos must be be changed so that a subsequent call to -&amp;gt;start reports an immediate end of file.&lt;br/&gt;
Because this is a common bug, seq_file core code will report a warning if *pos is not changed.&lt;/p&gt;

&lt;p&gt;There are several -&amp;gt;next functions in lustre which don&apos;t always change *pos.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="60933">LU-13985</key>
            <summary>seq_file next function must change *pos</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="neilb">Neil Brown</assignee>
                                    <reporter username="neilb">Neil Brown</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Sep 2020 23:45:35 +0000</created>
                <updated>Mon, 12 Oct 2020 12:34:42 +0000</updated>
                            <resolved>Mon, 12 Oct 2020 12:34:42 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="280553" author="gerrit" created="Thu, 24 Sep 2020 23:50:19 +0000"  >&lt;p&gt;Neil Brown (neilb@suse.de) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40035&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40035&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13985&quot; title=&quot;seq_file next function must change *pos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13985&quot;&gt;&lt;del&gt;LU-13985&lt;/del&gt;&lt;/a&gt; lustre: seq_file .next functions must update *pos&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 10f498a9e008cf31fa8b45b04b31bf361e5909ab&lt;/p&gt;</comment>
                            <comment id="282015" author="gerrit" created="Mon, 12 Oct 2020 05:47:35 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40035/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40035/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13985&quot; title=&quot;seq_file next function must change *pos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13985&quot;&gt;&lt;del&gt;LU-13985&lt;/del&gt;&lt;/a&gt; lustre: seq_file .next functions must update *pos&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 817d6c116599639599919bcde7999a7f06b74d2c&lt;/p&gt;</comment>
                            <comment id="282042" author="pjones" created="Mon, 12 Oct 2020 12:34:42 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="59127">LU-13543</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="36381">LU-8066</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|i01apr:</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>