====================================================== WARNING: possible circular locking dependency detected 4.14.289-syzkaller #0 Not tainted ------------------------------------------------------ kworker/u4:6/9276 is trying to acquire lock: (sk_lock-AF_INET){+.+.}, at: [] do_strp_work net/strparser/strparser.c:415 [inline] (sk_lock-AF_INET){+.+.}, at: [] strp_work+0x3e/0x100 net/strparser/strparser.c:434 but task is already holding lock: ((&strp->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2092 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 ((&strp->work)){+.+.}: flush_work+0xad/0x770 kernel/workqueue.c:2890 __cancel_work_timer+0x321/0x460 kernel/workqueue.c:2965 strp_done+0x53/0xd0 net/strparser/strparser.c:519 kcm_attach net/kcm/kcmsock.c:1429 [inline] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] kcm_ioctl+0x828/0xfb0 net/kcm/kcmsock.c:1701 sock_do_ioctl net/socket.c:974 [inline] sock_ioctl+0x2cc/0x4c0 net/socket.c:1071 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb -> #0 (sk_lock-AF_INET){+.+.}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 lock_sock_nested+0xb7/0x100 net/core/sock.c:2813 do_strp_work net/strparser/strparser.c:415 [inline] strp_work+0x3e/0x100 net/strparser/strparser.c:434 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock((&strp->work)); lock(sk_lock-AF_INET); lock((&strp->work)); lock(sk_lock-AF_INET); *** DEADLOCK *** 2 locks held by kworker/u4:6/9276: #0: ("%s""kstrp"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2088 #1: ((&strp->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2092 stack backtrace: CPU: 0 PID: 9276 Comm: kworker/u4:6 Not tainted 4.14.289-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Workqueue: kstrp strp_work Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 lock_sock_nested+0xb7/0x100 net/core/sock.c:2813 do_strp_work net/strparser/strparser.c:415 [inline] strp_work+0x3e/0x100 net/strparser/strparser.c:434 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 print_req_error: I/O error, dev loop3, sector 0 print_req_error: I/O error, dev loop3, sector 24 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue print_req_error: I/O error, dev loop3, sector 0 print_req_error: I/O error, dev loop3, sector 0 print_req_error: I/O error, dev loop3, sector 0 serio: Serial port pts0 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop5): ext4_lookup:1625: inode #2: comm syz-executor.5: deleted inode referenced: 12 serio: Serial port pts0 serio: Serial port pts1 EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. serio: Serial port pts0 EXT4-fs (loop5): mount failed serio: Serial port pts1 EXT4-fs (loop0): VFS: Can't find ext4 filesystem serio: Serial port pts0 EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 print_req_error: I/O error, dev loop0, sector 0 EXT4-fs error (device loop4): ext4_quota_enable:5739: comm syz-executor.4: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. EXT4-fs warning (device loop4): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. EXT4-fs (loop5): mount failed serio: Serial port pts0 EXT4-fs (loop4): mount failed serio: Serial port pts0 EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 UDF-fs: error (device loop2): udf_process_sequence: Block 99 of volume descriptor sequence is corrupted or we could not read it EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. UDF-fs: error (device loop2): udf_process_sequence: Block 1984 of volume descriptor sequence is corrupted or we could not read it EXT4-fs (loop5): mount failed UDF-fs: Scanning with blocksize 512 failed serio: Serial port pts0 UDF-fs: warning (device loop2): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 1024 failed EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 UDF-fs: warning (device loop2): udf_load_vrs: No anchor found EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. UDF-fs: Scanning with blocksize 2048 failed SQUASHFS error: squashfs_read_data failed to read block 0x0 UDF-fs: warning (device loop2): udf_load_vrs: No VRS found squashfs: SQUASHFS error: unable to read xattr id index table EXT4-fs (loop5): mount failed UDF-fs: Scanning with blocksize 4096 failed SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read xattr id index table SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read xattr id index table UDF-fs: error (device loop2): udf_process_sequence: Block 99 of volume descriptor sequence is corrupted or we could not read it EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. UDF-fs: error (device loop2): udf_process_sequence: Block 1984 of volume descriptor sequence is corrupted or we could not read it EXT4-fs (loop5): mount failed UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop2): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop2): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: warning (device loop2): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 4096 failed serio: Serial port pts0 UDF-fs: error (device loop2): udf_process_sequence: Block 99 of volume descriptor sequence is corrupted or we could not read it UDF-fs: error (device loop2): udf_process_sequence: Block 1984 of volume descriptor sequence is corrupted or we could not read it EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. UDF-fs: Scanning with blocksize 512 failed EXT4-fs (loop5): mount failed UDF-fs: warning (device loop2): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 1024 failed SQUASHFS error: squashfs_read_data failed to read block 0x0 UDF-fs: warning (device loop2): udf_load_vrs: No anchor found squashfs: SQUASHFS error: unable to read xattr id index table UDF-fs: Scanning with blocksize 2048 failed EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 UDF-fs: warning (device loop2): udf_load_vrs: No VRS found EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. UDF-fs: Scanning with blocksize 4096 failed EXT4-fs (loop5): mount failed UDF-fs: error (device loop2): udf_read_tagged: tag checksum failed, block 256: 0xb9 != 0x6c SQUASHFS error: squashfs_read_data failed to read block 0x0 print_req_error: 1 callbacks suppressed print_req_error: I/O error, dev loop5, sector 0 squashfs: SQUASHFS error: unable to read xattr id index table UDF-fs: warning (device loop2): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop2): udf_load_vrs: No anchor found EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 UDF-fs: Scanning with blocksize 1024 failed EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. EXT4-fs (loop5): mount failed SQUASHFS error: squashfs_read_data failed to read block 0x0 UDF-fs: warning (device loop2): udf_load_vrs: No anchor found squashfs: SQUASHFS error: unable to read xattr id index table UDF-fs: Scanning with blocksize 2048 failed UDF-fs: warning (device loop2): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 4096 failed UDF-fs: error (device loop2): udf_read_tagged: tag checksum failed, block 256: 0xb9 != 0x6c UDF-fs: warning (device loop2): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop2): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop2): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: warning (device loop2): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 4096 failed EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-116). Please run e2fsck to fix. EXT4-fs (loop5): mount failed serio: Serial port pts0 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read xattr id index table EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read xattr id index table EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed serio: Serial port pts0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0) serio: Serial port pts0 EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed serio: Serial port pts0 serio: Serial port pts0 print_req_error: I/O error, dev loop0, sector 0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) serio: Serial port pts0 EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed serio: Serial port pts0 print_req_error: I/O error, dev loop0, sector 0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) serio: Serial port pts0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. serio: Serial port pts0 EXT4-fs (loop5): mount failed squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 serio: Serial port pts0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed serio: Serial port pts0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 serio: Serial port pts0 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 serio: Serial port pts0 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. squashfs: SQUASHFS error: Major/Minor mismatch, older Squashfs 0.0 filesystems are unsupported EXT4-fs (loop5): mount failed serio: Serial port pts0 squashfs: SQUASHFS error: Major/Minor mismatch, older Squashfs 0.0 filesystems are unsupported EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed squashfs: SQUASHFS error: Major/Minor mismatch, older Squashfs 0.0 filesystems are unsupported EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 squashfs: SQUASHFS error: Major/Minor mismatch, older Squashfs 0.0 filesystems are unsupported EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed squashfs: SQUASHFS error: Major/Minor mismatch, older Squashfs 0.0 filesystems are unsupported EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) squashfs: SQUASHFS error: Major/Minor mismatch, older Squashfs 0.0 filesystems are unsupported EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read xattr id index table EXT4-fs error (device loop5): ext4_ext_check_inode:510: inode #4: comm syz-executor.5: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 2, max 4(4), depth 0(0) EXT4-fs error (device loop5): ext4_quota_enable:5739: comm syz-executor.5: Bad quota inode # 4 squashfs: SQUASHFS error: Major/Minor mismatch, older Squashfs 0.0 filesystems are unsupported EXT4-fs warning (device loop5): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): mount failed squashfs: SQUASHFS error: Major/Minor mismatch, older Squashfs 0.0 filesystems are unsupported