[PATCH 0/2] fcntl: fix potential deadlocks

Desmond Cheong Zhi Xi desmondcheongzx at gmail.com
Fri Jul 2 09:18:29 UTC 2021


Syzbot reports a possible irq lock inversion dependency:

While investigating this error, I discovered that multiple similar lock inversion scenarios can occur. Hence, this series addresses potential deadlocks for two classes of locks, one in each patch:

1. Fix potential deadlocks for &fown_struct.lock

2. Fix potential deadlock for &fasync_struct.fa_lock

Best wishes,

Desmond Cheong Zhi Xi (2):
  fcntl: fix potential deadlocks for &fown_struct.lock
  fcntl: fix potential deadlock for &fasync_struct.fa_lock

 fs/fcntl.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)


More information about the Linux-kernel-mentees mailing list