<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 02 Oct 2026 11:10:55 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-47178 — scsi: target: core: Avoid smp_processor_id() in preemptible code</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2021-47178</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;scsi: target: core: Avoid smp_processor_id() in preemptible code&lt;/p&gt;
&lt;p&gt;The BUG message &amp;#34;BUG: using smp_processor_id() in preemptible [00000000]
code&amp;#34; was observed for TCMU devices with kernel config DEBUG_PREEMPT.&lt;/p&gt;
&lt;p&gt;The message was observed when blktests block/005 was run on TCMU devices
with fileio backend or user:zbc backend [1]. The commit 1130b499b4a7
(&amp;#34;scsi: target: tcm_loop: Use LIO wq cmd submission helper&amp;#34;) triggered the
symptom. The commit modified work queue to handle commands and changed
&amp;#39;current-&amp;gt;nr_cpu_allowed&amp;#39; at smp_processor_id() call.&lt;/p&gt;
&lt;p&gt;The message was also observed at system shutdown when TCMU devices were not
cleaned up [2]. The function smp_processor_id() was called in SCSI host
work queue for abort handling, and triggered the BUG message. This symptom
was observed regardless of the commit 1130b499b4a7 (&amp;#34;scsi: target:
tcm_loop: Use LIO wq cmd submission helper&amp;#34;).&lt;/p&gt;
&lt;p&gt;To avoid the preemptible code check at smp_processor_id(), get CPU ID with
raw_smp_processor_id() instead. The CPU ID is used for performance
improvement then thread move to other CPU will not affect the code.&lt;/p&gt;
&lt;p&gt;[1]&lt;/p&gt;
&lt;p&gt;[   56.468103] run blktests block/005 at 2021-05-12 14:16:38
[   57.369473] check_preemption_disabled: 85 callbacks suppressed
[   57.369480] BUG: using smp_processor_id() in preemptible [00000000] code: fio/1511
[   57.369506] BUG: using smp_processor_id() in preemptible [00000000] code: fio/1510
[   57.369512] BUG: using…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;scsi: target: core: Avoid smp_processor_id() in preemptible code&lt;/p&gt;
&lt;p&gt;The BUG message &amp;#34;BUG: using smp_processor_id() in preemptible [00000000]
code&amp;#34; was observed for TCMU devices with kernel config DEBUG_PREEMPT.&lt;/p&gt;
&lt;p&gt;The message was observed when blktests block/005 was run on TCMU devices
with fileio backend or user:zbc backend [1]. The commit 1130b499b4a7
(&amp;#34;scsi: target: tcm_loop: Use LIO wq cmd submission helper&amp;#34;) triggered the
symptom. The commit modified work queue to handle commands and changed
&amp;#39;current-&amp;gt;nr_cpu_allowed&amp;#39; at smp_processor_id() call.&lt;/p&gt;
&lt;p&gt;The message was also observed at system shutdown when TCMU devices were not
cleaned up [2]. The function smp_processor_id() was called in SCSI host
work queue for abort handling, and triggered the BUG message. This symptom
was observed regardless of the commit 1130b499b4a7 (&amp;#34;scsi: target:
tcm_loop: Use LIO wq cmd submission helper&amp;#34;).&lt;/p&gt;
&lt;p&gt;To avoid the preemptible code check at smp_processor_id(), get CPU ID with
raw_smp_processor_id() instead. The CPU ID is used for performance
improvement then thread move to other CPU will not affect the code.&lt;/p&gt;
&lt;p&gt;[1]&lt;/p&gt;
&lt;p&gt;[   56.468103] run blktests block/005 at 2021-05-12 14:16:38
[   57.369473] check_preemption_disabled: 85 callbacks suppressed
[   57.369480] BUG: using smp_processor_id() in preemptible [00000000] code: fio/1511
[   57.369506] BUG: using smp_processor_id() in preemptible [00000000] code: fio/1510
[   57.369512] BUG: using…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2021-47178</guid>
    </item>
  </channel>
</rss>
