<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:23:23 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-2221] Kerberos support for kernel &gt;= 2.6.24 is broken</title>
                <link>https://jira.whamcloud.com/browse/LU-2221</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Since kernel version 2.6.24 the scatterlist struct has no field &quot;page&quot;. &lt;br/&gt;
The related Lustre kerberos code in gss_krb5_mech.c is not working anymore,&lt;br/&gt;
as for instance:&lt;/p&gt;

&lt;p&gt;static&lt;br/&gt;
void buf_to_sg(struct scatterlist *sg, void *ptr, int len)&lt;br/&gt;
{&lt;br/&gt;
        sg-&amp;gt;page = virt_to_page(ptr);&lt;br/&gt;
        sg-&amp;gt;offset = offset_in_page(ptr);&lt;br/&gt;
        sg-&amp;gt;length = len;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;access the field page in scatterlist struct. &lt;/p&gt;

&lt;p&gt;The new struct provided in the Linux kernel &amp;gt;= 2.6.24 is&lt;/p&gt;

&lt;p&gt;struct scatterlist {&lt;br/&gt;
#ifdef CONFIG_DEBUG_SG&lt;br/&gt;
        unsigned long   sg_magic;&lt;br/&gt;
#endif&lt;br/&gt;
        unsigned long   page_link;&lt;br/&gt;
        unsigned int    offset;&lt;br/&gt;
        unsigned int    length;&lt;br/&gt;
        dma_addr_t      dma_address;&lt;br/&gt;
        unsigned int    dma_length;&lt;br/&gt;
};&lt;/p&gt;


&lt;p&gt;The problem can be fixed by using the scatterlist sg_set_page function, e.g:&lt;/p&gt;

&lt;p&gt; static&lt;br/&gt;
 void buf_to_sg(struct scatterlist *sg, void *ptr, int len)&lt;/p&gt;
 {
+#if LINUX_VERSION_CODE &amp;gt;= KERNEL_VERSION(2,6,24)
+        sg_set_page(sg, virt_to_page(ptr), 
+                   len, offset_in_page(ptr));
+#else
         sg-&amp;gt;page = virt_to_page(ptr);
         sg-&amp;gt;offset = offset_in_page(ptr);
         sg-&amp;gt;length = len;
+#endif
 }

&lt;p&gt;I will prepare a patch to fix this problem.&lt;/p&gt;</description>
                <environment>Linux distributions running kernel &amp;gt;= 2.6.24</environment>
        <key id="16419">LU-2221</key>
            <summary>Kerberos support for kernel &gt;= 2.6.24 is broken</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="yong.fan">nasf</assignee>
                                    <reporter username="thomas.stibor">Thomas Stibor</reporter>
                        <labels>
                            <label>kerberos</label>
                            <label>patch</label>
                    </labels>
                <created>Wed, 24 Oct 2012 07:18:46 +0000</created>
                <updated>Thu, 17 Oct 2013 05:47:25 +0000</updated>
                            <resolved>Tue, 19 Feb 2013 21:12:45 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="46891" author="pjones" created="Wed, 24 Oct 2012 19:54:36 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,4379&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,4379&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="51016" author="yong.fan" created="Wed, 23 Jan 2013 04:38:09 +0000"  >&lt;p&gt;patches have been updated:&lt;/p&gt;

&lt;p&gt;For master:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#change,4394,set5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,4394,set5&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For b2_3:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#change,4379,set2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,4379,set2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52548" author="yong.fan" created="Sat, 16 Feb 2013 23:15:08 +0000"  >&lt;p&gt;4394 has been landed to Lustre-2.4&lt;/p&gt;

&lt;p&gt;4379 still needs to be inspected.&lt;/p&gt;</comment>
                            <comment id="52578" author="yong.fan" created="Sun, 17 Feb 2013 19:48:28 +0000"  >&lt;p&gt;Thomas, would you please to verify whether the patches works on your branch or not? Thanks!&lt;/p&gt;


&lt;p&gt;Since b2_3 is feature release, related fixes are landed to master (Lustre-2.4) already.&lt;/p&gt;</comment>
                            <comment id="52613" author="thomas.stibor" created="Mon, 18 Feb 2013 07:17:13 +0000"  >&lt;p&gt;Yes, the patches are also working for b2_3.&lt;/p&gt;</comment>
                            <comment id="52661" author="yong.fan" created="Mon, 18 Feb 2013 20:04:01 +0000"  >&lt;p&gt;Good, then I will mark it as resolved and close it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="12501">LU-867</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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>client</label>
            <label>server</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzvarj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5279</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>