<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:34:36 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-17336] BUG while setting rsi_upcall path</title>
                <link>https://jira.whamcloud.com/browse/LU-17336</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Kernel crashes when changing rsi_upcall path value with:&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;
lctl set_param sptlrpc.gss.rsi_upcall=/usr/sbin/l_getauth2&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&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;
[ &#160;184.300846] BUG: unable to handle kernel paging request at 00007ffee6a74617
[ &#160;184.301698] PGD 1cf3a3067 P4D 1cf3a3067 PUD 56eb02067 PMD 3356f0067 PTE 80000004857c2867
[ &#160;184.302636] Oops: 0001 [#1] SMP NOPTI
[ &#160;184.303197] CPU: 4 PID: 19026 Comm: lctl Kdump: loaded Tainted: G &#160; &#160; &#160; &#160; &#160; OE &#160; &#160;--------- - &#160;- 4.18.0-425.13.1.el8_lustre.ddn17.x86_64 #1
[ &#160;184.304736] Hardware name: DDN SFA400NVXE, BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
[ &#160;184.306154] RIP: 0010:vsscanf+0x11b/0x900
[ &#160;184.307334] Code: 80 fa 6c 0f 84 3f 01 00 00 48 89 f9 41 bf ff ff ff ff 3c 7a 0f 84 2e 01 00 00 84 c0 0f 84 50 ff ff ff 3c 6e 0f 84 4e 05 00 00 &amp;lt;80&amp;gt; 3b 00 0f 84 3f ff ff ff 48 8d 51 01 48 89 54 24 08 0f b6 01 3c
[ &#160;184.310163] RSP: 0018:ffffb3b8ccf2bdd0 EFLAGS: 00010216
[ &#160;184.311062] RAX: 0000000000000073 RBX: 00007ffee6a74617 RCX: ffffffffc1abe6a8
[ &#160;184.312379] RDX: 0000000000000073 RSI: ffffffffc1abe6a7 RDI: ffffffffc1abe6a8
[ &#160;184.313476] RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000001
[ &#160;184.314790] R10: 0000000000000000 R11: 0000000000000001 R12: ffffb3b8ccf2be48
[ &#160;184.315873] R13: 00007ffee6a74617 R14: ffffffffad50bfe0 R15: 00000000ffffffff
[ &#160;184.317181] FS: &#160;00007f943fabc140(0000) GS:ffff9495a9900000(0000) knlGS:0000000000000000
[ &#160;184.318370] CS: &#160;0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ &#160;184.319477] CR2: 00007ffee6a74617 CR3: 0000000187a2c004 CR4: 0000000000770ee0
[ &#160;184.320566] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ &#160;184.321649] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ &#160;184.322740] PKRU: 55555554
[ &#160;184.323325] Call Trace:
[ &#160;184.323900] &#160;sscanf+0x4e/0x70
[ &#160;184.324520] &#160;? kmem_cache_free+0x116/0x300
[ &#160;184.325251] &#160;rsi_upcall_seq_write+0x44/0x1a0 [ptlrpc_gss]
[ &#160;184.326142] &#160;proc_reg_write+0x39/0x60
[ &#160;184.326819] &#160;vfs_write+0xa5/0x1b0
[ &#160;184.327557] &#160;ksys_write+0x4f/0xb0
[ &#160;184.328184] &#160;do_syscall_64+0x5b/0x1b0
[ &#160;184.328974] &#160;entry_SYSCALL_64_after_hwframe+0x61/0xc6
[ &#160;184.329817] RIP: 0033:0x7f943ec979e5
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is because &lt;tt&gt;rsi_upcall_seq_write()&lt;/tt&gt; uses &lt;tt&gt;sscanf&lt;/tt&gt; with a &lt;tt&gt;__user&lt;/tt&gt; pointer:&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 rsi_upcall_seq_write(struct file *file,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &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,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; size_t count, loff_t *off)
{
&#160; &#160; &#160; &#160; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; rc;
&#160; &#160; &#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (count &amp;gt;= UC_CACHE_UPCALL_MAXPATH) {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;%s: rsi upcall too &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;\n&quot;&lt;/span&gt;, rsicache-&amp;gt;uc_name);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; -EINVAL;
&#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; &lt;span class=&quot;code-comment&quot;&gt;/* Remove any extraneous bits from the upcall (e.g. linefeeds) */&lt;/span&gt;
&#160; &#160; &#160; &#160; down_write(&amp;amp;rsicache-&amp;gt;uc_upcall_rwsem);
  &#160; &#160; &#160; rc = sscanf(buffer, &lt;span class=&quot;code-quote&quot;&gt;&quot;%s&quot;&lt;/span&gt;, rsicache-&amp;gt;uc_upcall);   &amp;lt;-----
&#160; &#160; &#160; &#160; up_write(&amp;amp;rsicache-&amp;gt;uc_upcall_rwsem);
&#160; &#160; &#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 1) {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;%s: invalid rsi upcall provided\n&quot;&lt;/span&gt;, rsicache-&amp;gt;uc_name);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; -EINVAL;
&#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; CDEBUG(D_CONFIG, &lt;span class=&quot;code-quote&quot;&gt;&quot;%s: rsi upcall set to %s\n&quot;&lt;/span&gt;, rsicache-&amp;gt;uc_name,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;rsicache-&amp;gt;uc_upcall);
&#160; &#160; &#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; count;
}
LPROC_SEQ_FOPS(rsi_upcall);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="79348">LU-17336</key>
            <summary>BUG while setting rsi_upcall path</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>gss</label>
                            <label>patch</label>
                            <label>security</label>
                    </labels>
                <created>Wed, 6 Dec 2023 08:20:32 +0000</created>
                <updated>Wed, 20 Dec 2023 02:44:42 +0000</updated>
                            <resolved>Wed, 20 Dec 2023 02:44:42 +0000</resolved>
                                    <version>Lustre 2.16.0</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="395634" author="gerrit" created="Wed, 6 Dec 2023 08:24:20 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53342&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53342&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17336&quot; title=&quot;BUG while setting rsi_upcall path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17336&quot;&gt;&lt;del&gt;LU-17336&lt;/del&gt;&lt;/a&gt; gss: fix __user pointer in rsi_upcall_seq_write&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9747b550bc7fc09563e5c04550f7d126f0d76c43&lt;/p&gt;</comment>
                            <comment id="397551" author="gerrit" created="Wed, 20 Dec 2023 01:59:42 +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/+/53342/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53342/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17336&quot; title=&quot;BUG while setting rsi_upcall path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17336&quot;&gt;&lt;del&gt;LU-17336&lt;/del&gt;&lt;/a&gt; gss: fix __user pointer in rsi_upcall_seq_write&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7b90925dcdd96e2e8a0c25a5d04803d22eb2e80f&lt;/p&gt;</comment>
                            <comment id="397569" author="pjones" created="Wed, 20 Dec 2023 02:44:42 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <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|i043zj:</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>