Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: WARNING: lock held when returning to user space in gpiolib_seq_start RBP: 00007fe66f38b090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007fe66e775fa0 R15: 00007ffe92372dd8 </TASK> ================================================ WARNING: lock held when returning to user space! 6.12.0-syzkaller-10299-gc1f7eb90d8d5 #0 Not tainted ------------------------------------------------ syz.0.18/6685 is leaving the kernel with locks still held! 1 lock held by syz.0.18/6685: #0: ffffffff8e96d590 (gpio_devices_srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #0: ffffffff8e96d590 (gpio_devices_srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #0: ffffffff8e96d590 (gpio_devices_srcu){.+.+}-{0:0}, at: gpiolib_seq_start+0x13e/0x270 drivers/gpio/gpiolib.c:5039 Tested on: commit: c1f7eb90 fs/seq_file: Exit the subsequent process when.. git tree: https://github.com/ea1davis/linux gpio/syz console output: https://syzkaller.appspot.com/x/log.txt?x=12dfb4f8580000 kernel config: https://syzkaller.appspot.com/x/.config?x=e8d97faf7b870c89 dashboard link: https://syzkaller.appspot.com/bug?extid=b95d0c98f01e7a95da72 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 Note: no patches were applied.