Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EDF9145FE4 for ; Sat, 17 Aug 2024 09:24:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886647; cv=none; b=AicKTlfG2UpTbxhjtVFy7+d0tw2dU03f/iyww/xFka8RPwwVNCFDOdjgwuadvxh6VIS3tFDufgAv/ZyApJs4IVOpB5QTH+JY32L8rtZJy5ZREET73yurpFXbj06bLn01Gq+nONqZkUq+UpQl5tEHNAetcAtMqI9ZxcpZEC7USNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886647; c=relaxed/simple; bh=vAEmmATjpKWeH8F/1FC1gE+EHXpBH3iH+FZzjZOWWiQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XIYlw03FdCdmC+67Duspt2OYrIodYxV5LJqdvUl9eH3HvI3u7vSkIfln+xRrYGedOcXg+naaSV4UzrJQvlGlw34lYi7g2iN4qCQOXZz44sAtdsj537/fOOqbCapce0Yyj8KYMm1vVuDgw4TJV3npt2cqSoEdtMNblbpL0qP/6ec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g9lKeKKQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="g9lKeKKQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 746EFC116B1; Sat, 17 Aug 2024 09:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886646; bh=vAEmmATjpKWeH8F/1FC1gE+EHXpBH3iH+FZzjZOWWiQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=g9lKeKKQHn8PXGgkiMpwEM+x35K6N0sxOOr1AyBxZjB4yKLU3+czIDblRm+MEqtBm DPcng2ofXC96bXJz7swrt/s01jTup8413YXjptm8LblkJ5IHw4Hhl0rOxTxJDbisDE Ua95rXz7ROwRoKKA5fIbEJBfElVI/W7j6FmIceF0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43851: soc: xilinx: rename cpu_number1 to dummy_cpu_number Date: Sat, 17 Aug 2024 11:22:55 +0200 Message-ID: <2024081733-CVE-2024-43851-26f9@gregkh> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3086; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vAEmmATjpKWeH8F/1FC1gE+EHXpBH3iH+FZzjZOWWiQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsm9mOYSr3n7wcsWZzuprrprvbvybtK+hI6PtfMZ5t nPqdQ3zO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiveUMC664rD/bbF/fEf4i MWj6Ml9f1kt+5Qzz019Wnz76RuhouH/k7a8dj7/fi342EwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: soc: xilinx: rename cpu_number1 to dummy_cpu_number The per cpu variable cpu_number1 is passed to xlnx_event_handler as argument "dev_id", but it is not used in this function. So drop the initialization of this variable and rename it to dummy_cpu_number. This patch is to fix the following call trace when the kernel option CONFIG_DEBUG_ATOMIC_SLEEP is enabled: BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0 preempt_count: 1, expected: 0 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.0 #53 Hardware name: Xilinx Versal vmk180 Eval board rev1.1 (QSPI) (DT) Call trace: dump_backtrace+0xd0/0xe0 show_stack+0x18/0x40 dump_stack_lvl+0x7c/0xa0 dump_stack+0x18/0x34 __might_resched+0x10c/0x140 __might_sleep+0x4c/0xa0 __kmem_cache_alloc_node+0xf4/0x168 kmalloc_trace+0x28/0x38 __request_percpu_irq+0x74/0x138 xlnx_event_manager_probe+0xf8/0x298 platform_probe+0x68/0xd8 The Linux kernel CVE team has assigned CVE-2024-43851 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.77 with commit 01946c3c83b2 and fixed in 6.1.103 with commit a5e507fadab7 Issue introduced in 6.6.16 with commit 4722924e7a62 and fixed in 6.6.44 with commit a96e60a6ea68 Issue introduced in 6.8 with commit daed80ed0758 and fixed in 6.10.3 with commit f762acdaff9e Issue introduced in 6.8 with commit daed80ed0758 and fixed in 6.11-rc1 with commit 4a95449dd975 Issue introduced in 6.7.4 with commit 548bdbbdcd35 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2024-43851 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/soc/xilinx/xlnx_event_manager.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a5e507fadab76393cbc12344ebd65a417a09aa46 https://git.kernel.org/stable/c/a96e60a6ea6818fd37b1853283a512c49af38cf5 https://git.kernel.org/stable/c/f762acdaff9e54688be16e6c832c73a61533c1df https://git.kernel.org/stable/c/4a95449dd975e2ea6629a034f3e74b46c9634916