<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:26:13 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-16346] lctl stack smashing on aarch64 platform</title>
                <link>https://jira.whamcloud.com/browse/LU-16346</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;
# uname -m
aarch64&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;
#bash -x lustre/utils/lctl dl
...&#160;
exec /home/ubuntu/lustre-build/lustre-release/lustre/utils/.libs/lctl dl
*** stack smashing detected ***: terminated
Aborted (core dumped) &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;dbg shows this stack:&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;
#0&#160; __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1&#160; 0x0000fffff7d50aac in __GI_abort () at abort.c:79
#2&#160; 0x0000fffff7d9df40 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0xfffff7e5dff0 &lt;span class=&quot;code-quote&quot;&gt;&quot;*** %s ***: terminated\n&quot;&lt;/span&gt;) at ../sysdeps/posix/libc_fatal.c:155
#3&#160; 0x0000fffff7e104c8 in __GI___fortify_fail (msg=msg@entry=0xfffff7e5dfd8 &lt;span class=&quot;code-quote&quot;&gt;&quot;stack smashing detected&quot;&lt;/span&gt;) at fortify_fail.c:26
#4&#160; 0x0000fffff7e1049c in __stack_chk_fail () at stack_chk_fail.c:24
#5&#160; 0x0000fffff7eb9c28 in yaml_netlink_msg_parse (msg=&amp;lt;optimized out&amp;gt;, arg=0xaaaaaab1d040) at liblnetconfig_netlink.c:799
#6&#160; 0x0000fffff7f27464 in nl_recvmsgs_report () from /lib/aarch64-linux-gnu/libnl-3.so.200
#7&#160; 0x0000fffff7eb9c88 in yaml_netlink_read_handler (arg=0xaaaaaab1d040, buffer=0xaaaaaab0c540 &quot;&quot;, size=16384, size_read=0xffffffffeb10) at liblnetconfig_netlink.c:931
#8&#160; 0x0000fffff7eee2e8 in ?? () from /lib/aarch64-linux-gnu/libyaml-0.so.2
#9&#160; 0x0000fffff7eee510 in yaml_parser_update_buffer () from /lib/aarch64-linux-gnu/libyaml-0.so.2
#10 0x0000fffff7ef4a28 in ?? () from /lib/aarch64-linux-gnu/libyaml-0.so.2
#11 0x0000fffff7ef6a34 in yaml_parser_fetch_more_tokens () from /lib/aarch64-linux-gnu/libyaml-0.so.2
#12 0x0000fffff7ef8f88 in yaml_parser_parse () from /lib/aarch64-linux-gnu/libyaml-0.so.2
#13 0x0000aaaaaaac8854 in lcfg_getparam_yaml (path=path@entry=0xaaaaaaad6188 &lt;span class=&quot;code-quote&quot;&gt;&quot;devices&quot;&lt;/span&gt;, popt=popt@entry=0xfffffffff258) at lustre_cfg.c:1220
#14 0x0000aaaaaaac921c in jt_obd_list (argc=&amp;lt;optimized out&amp;gt;, argv=&amp;lt;optimized out&amp;gt;) at lustre_cfg.c:1615
#15 0x0000fffff7f9b744 in Parser_execarg (argc=1, argv=0xfffffffff4f0, cmds=&amp;lt;optimized out&amp;gt;) at util/parser.c:118
#16 0x0000aaaaaaaca11c in lctl_main (argc=2, argv=0xfffffffff4e8) at lctl.c:660
#17 0x0000fffff7d50e10 in __libc_start_main (main=0xaaaaaaab3060 &amp;lt;main&amp;gt;, argc=2, argv=0xfffffffff4e8, init=&amp;lt;optimized out&amp;gt;, fini=&amp;lt;optimized out&amp;gt;, rtld_fini=&amp;lt;optimized out&amp;gt;,&#160;
&#160; &#160; stack_end=&amp;lt;optimized out&amp;gt;) at ../csu/libc-start.c:308
#18 0x0000aaaaaaab3098 in _start () at lctl.c:690
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It looks like genlmsg_parse() was misused. It requires passing maxtype+1 elements.&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;* @tb: destination array with maxtype+1 elements
&#160;* @maxtype: maximum attribute type to be expected
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; inline &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; genlmsg_parse(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct nlmsghdr *nlh,
&#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; struct genl_family *family,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; struct nlattr *tb[], &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; maxtype,
&#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; struct nla_policy *policy,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; struct netlink_ext_ack *extack) &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;But maxtype+1 as a number of elements passed actually. Should be maxtype actually.&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;if&lt;/span&gt; (genlmsg_parse(nlh, 0, attrs, LN_SCALAR_MAX + 1,
&#160; &#160; &#160; &#160; &#160; &#160; scalar_attr_policy)) &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="73397">LU-16346</key>
            <summary>lctl stack smashing on aarch64 platform</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="ablagodarenko">Artem Blagodarenko</assignee>
                                    <reporter username="ablagodarenko">Artem Blagodarenko</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Fri, 25 Nov 2022 12:00:31 +0000</created>
                <updated>Tue, 13 Dec 2022 16:28:18 +0000</updated>
                            <resolved>Tue, 13 Dec 2022 16:28:18 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="354265" author="gerrit" created="Sun, 27 Nov 2022 21:25:06 +0000"  >&lt;p&gt;&quot;Artem Blagodarenko &amp;lt;ablagodarenko@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49254&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49254&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16346&quot; title=&quot;lctl stack smashing on aarch64 platform&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16346&quot;&gt;&lt;del&gt;DDN-3520&lt;/del&gt;&lt;/a&gt; utils: fix lctl stack smashing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4d0b6a824324e5853e318949108caeba7a091334&lt;/p&gt;</comment>
                            <comment id="356209" author="gerrit" created="Tue, 13 Dec 2022 16:09:28 +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/+/49254/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49254/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16346&quot; title=&quot;lctl stack smashing on aarch64 platform&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16346&quot;&gt;&lt;del&gt;LU-16346&lt;/del&gt;&lt;/a&gt; utils: fix lctl stack smashing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 30c5421ad567c851822f92c91595c9753ec648ec&lt;/p&gt;</comment>
                            <comment id="356231" author="pjones" created="Tue, 13 Dec 2022 16:28:18 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="46759">LU-9680</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|i036kf:</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>