Medium · published June 21, 2024
In the Linux kernel, the following vulnerability has been resolved:
dma-buf/sw-sync: don't enable IRQ from sync_print_obj()
Since commit a6aa8fca4d79 ("dma-buf/sw-sync: Reduce irqsave/irqrestore from
known context") by error replaced spin_unlock_irqrestore() with
spin_unlock_irq() for both sync_debugfs_show() and sync_print_obj() despite
sync_print_obj() is called from sync_debugfs_show(), lockdep complains
inconsistent lock state warning.
Use plain spin_{lock,unlock}() for sync_print_obj(), for
sync_debugfs_show() is already using spin_{lock,unlock}_irq().
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | < 4.14 | 4.14 |
| linux/linux_kernel | ≥ 4.19, < 4.19.316 | 4.19.316 |
| linux/linux_kernel | ≥ 5.4, < 5.4.278 | 5.4.278 |
| linux/linux_kernel | ≥ 5.10, < 5.10.219 | 5.10.219 |
| linux/linux_kernel | ≥ 5.15, < 5.15.161 | 5.15.161 |
| linux/linux_kernel | ≥ 6.1, < 6.1.93 | 6.1.93 |
| linux/linux_kernel | ≥ 6.6, < 6.6.33 | 6.6.33 |
| linux/linux_kernel | ≥ 6.9, < 6.9.4 | 6.9.4 |
| linux/linux_kernel | all versions | — |