linux-stable/drivers/dma-buf
Tetsuo Handa a4ee782444 dma-buf/sw-sync: don't enable IRQ from sync_print_obj()
[ Upstream commit b794918961 ]

Since commit a6aa8fca4d ("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().

Reported-by: syzbot <syzbot+a225ee3df7e7f9372dbe@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=a225ee3df7e7f9372dbe
Fixes: a6aa8fca4d ("dma-buf/sw-sync: Reduce irqsave/irqrestore from known context")
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/c2e46020-aaa6-4e06-bf73-f05823f913f0@I-love.SAKURA.ne.jp
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:12:54 +02:00
..
heaps dma-buf/heaps: Don't assert held reservation lock for dma-buf mmapping 2023-06-21 20:22:20 +03:00
Kconfig
Makefile
dma-buf-sysfs-stats.c dma-buf: Fix the typo in DMA-BUF statistics doc 2023-07-27 09:43:33 +02:00
dma-buf-sysfs-stats.h dma-buf: fix dma_buf_export init order v2 2022-12-13 08:31:45 +01:00
dma-buf.c dma-buf: Change locking policy for mmap() 2023-06-21 20:22:20 +03:00
dma-fence-array.c dma-buf/fence-array: Add fence deadline support 2023-03-25 10:55:07 -07:00
dma-fence-chain.c dma-buf/fence-chain: Add fence deadline support 2023-03-28 13:38:52 -07:00
dma-fence-unwrap.c dma-buf: add dma_fence_timestamp helper 2023-10-05 11:05:58 +02:00
dma-fence.c dma-buf: fix an error pointer vs NULL bug 2023-07-06 19:50:23 +05:30
dma-heap.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
dma-resv.c dma-buf: fix check in dma_resv_add_fence 2023-12-08 08:52:19 +01:00
selftest.c
selftest.h
selftests.h
st-dma-fence-chain.c kthread: add kthread_stop_put 2024-06-12 11:12:52 +02:00
st-dma-fence-unwrap.c dma-buf: Enable signaling on fence for selftests 2022-09-16 15:53:25 +02:00
st-dma-fence.c kthread: add kthread_stop_put 2024-06-12 11:12:52 +02:00
st-dma-resv.c dma-buf: Enable signaling on fence for selftests 2022-09-16 15:53:25 +02:00
sw_sync.c dma-buf/sw_sync: Avoid recursive lock during fence signal 2023-08-23 10:22:49 +02:00
sync_debug.c dma-buf/sw-sync: don't enable IRQ from sync_print_obj() 2024-06-12 11:12:54 +02:00
sync_debug.h
sync_file.c dma-buf: add dma_fence_timestamp helper 2023-10-05 11:05:58 +02:00
sync_trace.h
udmabuf.c drm-misc-next for v6.6: 2023-07-17 15:37:57 +02:00