CVE-2024-57891

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/01/2025
Last modified:
15/01/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> sched_ext: Fix invalid irq restore in scx_ops_bypass()<br /> <br /> While adding outer irqsave/restore locking, 0e7ffff1b811 ("scx: Fix raciness<br /> in scx_ops_bypass()") forgot to convert an inner rq_unlock_irqrestore() to<br /> rq_unlock() which could re-enable IRQ prematurely leading to the following<br /> warning:<br /> <br /> raw_local_irq_restore() called with IRQs enabled<br /> WARNING: CPU: 1 PID: 96 at kernel/locking/irqflag-debug.c:10 warn_bogus_irq_restore+0x30/0x40<br /> ...<br /> Sched_ext: create_dsq (enabling)<br /> pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)<br /> pc : warn_bogus_irq_restore+0x30/0x40<br /> lr : warn_bogus_irq_restore+0x30/0x40<br /> ...<br /> Call trace:<br /> warn_bogus_irq_restore+0x30/0x40 (P)<br /> warn_bogus_irq_restore+0x30/0x40 (L)<br /> scx_ops_bypass+0x224/0x3b8<br /> scx_ops_enable.isra.0+0x2c8/0xaa8<br /> bpf_scx_reg+0x18/0x30<br /> ...<br /> irq event stamp: 33739<br /> hardirqs last enabled at (33739): [] scx_ops_bypass+0x174/0x3b8<br /> hardirqs last disabled at (33738): [] _raw_spin_lock_irqsave+0xb4/0xd8<br /> <br /> Drop the stray _irqrestore().

Impact