<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:30:53 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-16893] Fix cfs_force_sig(sig, task) deadlock on 5.3 and later kernels.</title>
                <link>https://jira.whamcloud.com/browse/LU-16893</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When HAVE_FORCE_SIG_WITH_TASK is not available cfs_force_sig() is used.&lt;/p&gt;

&lt;p&gt;However cfs_force_sig holds a spin lock on &apos;siglock&apos;:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;#define cfs_force_sig(sig, task) \
do { \
unsigned long flags;\
\
spin_lock_irqsave(&amp;amp;task-&amp;gt;sighand-&amp;gt;siglock, flags);\
task-&amp;gt;sighand-&amp;gt;action[sig - 1].sa.sa_handler = SIG_DFL;\
send_sig(sig, task, 1);\
spin_unlock_irqrestore(&amp;amp;task-&amp;gt;sighand-&amp;gt;siglock, flags);&#160; &#160; &#160; &#160; &#160;\
} while (0)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This causes a dead lock on &apos;siglock&apos; as do_send_sig_info also takes the same lock.&lt;br/&gt;
&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;cfs_force_sig(sig, task)
&#160; -&amp;gt; spin_lock_irqsave(&amp;amp;task-&amp;gt;sighand-&amp;gt;siglock, flags); \
&#160; &#160; -&amp;gt; send_sig(.., task,..)
&#160; &#160; &#160;-&amp;gt; send_sig_info(.., task)
&#160; &#160; &#160; &#160;-&amp;gt; do_send_sig_info(..., task)
&#160; &#160; &#160; &#160; &#160;-&amp;gt; lock_task_sighand(task)
&#160; &#160; &#160; &#160; &#160; &#160;-&amp;gt; __lock_task_sighand(task, flags)
&#160; &#160; &#160; &#160; &#160; &#160; &#160; {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; sighand = rcu_dereference(task-&amp;gt;sighand);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; spin_lock_irqsave(&amp;amp;sighand-&amp;gt;siglock, *flags);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ...
&#160; &#160; &#160; &#160; &#160; &#160; &#160; }&#160;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;cfs_force_sig() should release the spin lock before calling send_sig()&lt;/p&gt;</description>
                <environment></environment>
        <key id="76560">LU-16893</key>
            <summary>Fix cfs_force_sig(sig, task) deadlock on 5.3 and later kernels.</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="stancheff">Shaun Tancheff</assignee>
                                    <reporter username="stancheff">Shaun Tancheff</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Jun 2023 03:15:19 +0000</created>
                <updated>Wed, 2 Aug 2023 08:40:30 +0000</updated>
                            <resolved>Wed, 26 Jul 2023 02:35:49 +0000</resolved>
                                                    <fixVersion>Upstream</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="375354" author="gerrit" created="Wed, 14 Jun 2023 04:53:27 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51312&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51312&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16893&quot; title=&quot;Fix cfs_force_sig(sig, task) deadlock on 5.3 and later kernels.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16893&quot;&gt;&lt;del&gt;LU-16893&lt;/del&gt;&lt;/a&gt; libcfs: cfs_force_sig deadklock on send_sig&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 95d7c82a03e9d888f6c5a1a4a66b21af383d8b6c&lt;/p&gt;</comment>
                            <comment id="376593" author="gerrit" created="Tue, 27 Jun 2023 08:01:00 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51470&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51470&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16893&quot; title=&quot;Fix cfs_force_sig(sig, task) deadlock on 5.3 and later kernels.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16893&quot;&gt;&lt;del&gt;LU-16893&lt;/del&gt;&lt;/a&gt; libcfs: Remove force_sig usage from lfsck&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 58a87c8d409417a45f01ec99b2af0da612764449&lt;/p&gt;</comment>
                            <comment id="379355" author="gerrit" created="Wed, 19 Jul 2023 16:45:07 +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/+/51470/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51470/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16893&quot; title=&quot;Fix cfs_force_sig(sig, task) deadlock on 5.3 and later kernels.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16893&quot;&gt;&lt;del&gt;LU-16893&lt;/del&gt;&lt;/a&gt; libcfs: Remove force_sig usage from lfsck&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b876e22466a83dacfbbbeb90d841dc917a793666&lt;/p&gt;</comment>
                            <comment id="380107" author="stancheff" created="Wed, 26 Jul 2023 02:35:49 +0000"  >&lt;p&gt;Issue is resolved on master&lt;/p&gt;</comment>
                            <comment id="381043" author="gerrit" created="Wed, 2 Aug 2023 08:40:30 +0000"  >&lt;p&gt;&quot;xinliang &amp;lt;xinliang.liu@linaro.org&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51848&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51848&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16893&quot; title=&quot;Fix cfs_force_sig(sig, task) deadlock on 5.3 and later kernels.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16893&quot;&gt;&lt;del&gt;LU-16893&lt;/del&gt;&lt;/a&gt; libcfs: Remove force_sig usage from lfsck&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3db7d6c415bf1d2931cd05498c7b3289ef8fd720&lt;/p&gt;</comment>
                    </comments>
                    <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|i03nzr:</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>