kernel_samsung_a53x/drivers/dma-buf
Tetsuo Handa b89189f48e dma-buf/sw-sync: don't enable IRQ from sync_print_obj()
[ Upstream commit b794918961516f667b0c745aebdfebbb8a98df39 ]

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().

Reported-by: syzbot <syzbot+a225ee3df7e7f9372dbe@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=a225ee3df7e7f9372dbe
Fixes: a6aa8fca4d79 ("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-11-19 12:27:10 +01:00
..
heaps Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-buf-sysfs-stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-buf-sysfs-stats.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-buf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-fence-array.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-fence-chain.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-fence.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-heap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-resv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
selftest.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
selftest.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
selftests.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
seqno-fence.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st-dma-fence-chain.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st-dma-fence.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sw_sync.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sync_debug.c dma-buf/sw-sync: don't enable IRQ from sync_print_obj() 2024-11-19 12:27:10 +01:00
sync_debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sync_file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sync_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udmabuf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00