====================================================== [ INFO: possible circular locking dependency detected ] 4.9.141+ #1 Not tainted ------------------------------------------------------- syz-executor.4/2182 is trying to acquire lock: (&p->lock){+.+.+.}, at: [] seq_read+0xdd/0x12d0 fs/seq_file.c:178 but task is already holding lock: (&pipe->mutex/1){+.+.+.}, at: [] pipe_lock_nested fs/pipe.c:66 [inline] (&pipe->mutex/1){+.+.+.}, at: [] pipe_lock+0x5e/0x70 fs/pipe.c:74 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 __mutex_lock_common kernel/locking/mutex.c:521 [inline] mutex_lock_nested+0xc0/0x900 kernel/locking/mutex.c:621 __pipe_lock fs/pipe.c:87 [inline] fifo_open+0x15c/0x9e0 fs/pipe.c:921 do_dentry_open+0x3ef/0xc90 fs/open.c:766 vfs_open+0x11c/0x210 fs/open.c:879 do_last fs/namei.c:3410 [inline] path_openat+0x542/0x2790 fs/namei.c:3534 do_filp_open+0x197/0x270 fs/namei.c:3568 binder_alloc: 2180: binder_alloc_buf size 4294967296 failed, no address space binder_alloc: allocated: 0 (num: 0 largest: 0), free: 12288 (num: 1 largest: 12288) binder: 2180:2181 transaction failed 29201/-28, size 0-0 line 3136 do_open_execat+0x10f/0x640 fs/exec.c:844 do_execveat_common.isra.14+0x687/0x1ed0 fs/exec.c:1723 do_execve fs/exec.c:1829 [inline] SYSC_execve fs/exec.c:1910 [inline] SyS_execve+0x42/0x50 fs/exec.c:1905 do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 entry_SYSCALL_64_after_swapgs+0x5d/0xdb lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 __mutex_lock_common kernel/locking/mutex.c:521 [inline] mutex_lock_killable_nested+0xcc/0x9f0 kernel/locking/mutex.c:641 lock_trace+0x44/0xc0 fs/proc/base.c:431 proc_pid_personality+0x1c/0xc0 fs/proc/base.c:2878 proc_single_show+0xfd/0x170 fs/proc/base.c:785 seq_read+0x4b6/0x12d0 fs/seq_file.c:240 __vfs_read+0x115/0x560 fs/read_write.c:449 vfs_read+0x124/0x390 fs/read_write.c:472 SYSC_pread64 fs/read_write.c:626 [inline] SyS_pread64+0x145/0x170 fs/read_write.c:613 do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 entry_SYSCALL_64_after_swapgs+0x5d/0xdb check_prev_add kernel/locking/lockdep.c:1828 [inline] check_prevs_add kernel/locking/lockdep.c:1938 [inline] validate_chain kernel/locking/lockdep.c:2265 [inline] __lock_acquire+0x3189/0x4a10 kernel/locking/lockdep.c:3345 lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 __mutex_lock_common kernel/locking/mutex.c:521 [inline] mutex_lock_nested+0xc0/0x900 kernel/locking/mutex.c:621 seq_read+0xdd/0x12d0 fs/seq_file.c:178 proc_reg_read+0xfd/0x180 fs/proc/inode.c:203 do_loop_readv_writev.part.1+0xd5/0x280 fs/read_write.c:718 do_loop_readv_writev fs/read_write.c:707 [inline] do_readv_writev+0x56e/0x7b0 fs/read_write.c:873 vfs_readv+0x84/0xc0 fs/read_write.c:897 kernel_readv fs/splice.c:363 [inline] default_file_splice_read+0x451/0x7f0 fs/splice.c:435 do_splice_to+0x10c/0x170 fs/splice.c:899 do_splice fs/splice.c:1192 [inline] SYSC_splice fs/splice.c:1416 [inline] SyS_splice+0x10d2/0x14d0 fs/splice.c:1399 do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 entry_SYSCALL_64_after_swapgs+0x5d/0xdb other info that might help us debug this: Chain exists of: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&pipe->mutex/1); lock(&sig->cred_guard_mutex); lock(&pipe->mutex/1); lock(&p->lock); *** DEADLOCK *** 1 lock held by syz-executor.4/2182: #0: (&pipe->mutex/1){+.+.+.}, at: [] pipe_lock_nested fs/pipe.c:66 [inline] #0: (&pipe->mutex/1){+.+.+.}, at: [] pipe_lock+0x5e/0x70 fs/pipe.c:74 stack backtrace: CPU: 1 PID: 2182 Comm: syz-executor.4 Not tainted 4.9.141+ #1 ffff880194ee7278 ffffffff81b42e79 ffffffff83ca2fd0 ffffffff83ca9a20 ffffffff83ca4770 ffff8801cffee7d0 ffff8801cffedf00 ffff880194ee72c0 ffffffff813fee40 0000000000000001 00000000cffee7b0 0000000000000001 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_circular_bug.cold.36+0x2f7/0x432 kernel/locking/lockdep.c:1202 [] check_prev_add kernel/locking/lockdep.c:1828 [inline] [] check_prevs_add kernel/locking/lockdep.c:1938 [inline] [] validate_chain kernel/locking/lockdep.c:2265 [inline] [] __lock_acquire+0x3189/0x4a10 kernel/locking/lockdep.c:3345 [] lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 [] __mutex_lock_common kernel/locking/mutex.c:521 [inline] [] mutex_lock_nested+0xc0/0x900 kernel/locking/mutex.c:621 [] seq_read+0xdd/0x12d0 fs/seq_file.c:178 [] proc_reg_read+0xfd/0x180 fs/proc/inode.c:203 [] do_loop_readv_writev.part.1+0xd5/0x280 fs/read_write.c:718 [] do_loop_readv_writev fs/read_write.c:707 [inline] [] do_readv_writev+0x56e/0x7b0 fs/read_write.c:873 [] vfs_readv+0x84/0xc0 fs/read_write.c:897 [] kernel_readv fs/splice.c:363 [inline] [] default_file_splice_read+0x451/0x7f0 fs/splice.c:435 [] do_splice_to+0x10c/0x170 fs/splice.c:899 [] do_splice fs/splice.c:1192 [inline] [] SYSC_splice fs/splice.c:1416 [inline] [] SyS_splice+0x10d2/0x14d0 fs/splice.c:1399 [] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb binder: undelivered TRANSACTION_ERROR: 29201 binder_alloc: 2204: binder_alloc_buf size 2305844658481135616 failed, no address space binder_alloc: allocated: 0 (num: 0 largest: 0), free: 12288 (num: 1 largest: 12288) binder: 2204:2205 transaction failed 29201/-28, size 0-0 line 3136 binder: 2204:2205 unknown command 25388 binder: 2204:2205 ioctl c0306201 20000000 returned -22 binder: undelivered TRANSACTION_ERROR: 29201 binder_alloc: 2204: binder_alloc_buf size 2305844658481135616 failed, no address space binder_alloc: allocated: 0 (num: 0 largest: 0), free: 12288 (num: 1 largest: 12288) binder: 2204:2220 transaction failed 29201/-28, size 0-0 line 3136 binder: undelivered TRANSACTION_ERROR: 29201 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=0 sclass=netlink_xfrm_socket pig=2299 comm=syz-executor.4 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=0 sclass=netlink_xfrm_socket pig=2316 comm=syz-executor.4 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=2327 comm=syz-executor.1 binder: 2326:2327 unknown command 808464432 binder: 2326:2327 ioctl c0306201 20000500 returned -22 binder: 2326:2327 unknown command 26380 binder: 2326:2327 ioctl c0306201 20000000 returned -22 binder: 2367:2368 transaction failed 29189/-22, size 0-0 line 3013 binder: undelivered TRANSACTION_ERROR: 29189 binder: 2385 RLIMIT_NICE not set binder: release 2384:2385 transaction 1075 out, still active binder: undelivered TRANSACTION_COMPLETE binder: release 2384:2385 transaction 1075 in, still active binder: send failed reply for transaction 1075, target dead binder_alloc: 2384: binder_alloc_buf size 1886218096 failed, no address space binder_alloc: allocated: 0 (num: 0 largest: 0), free: 12288 (num: 1 largest: 12288) binder: 2384:2398 transaction failed 29201/-28, size 0-0 line 3136 binder: undelivered TRANSACTION_ERROR: 29201 ip6_tunnel: f xmit: Local address not yet configured! binder: undelivered TRANSACTION_COMPLETE binder: BINDER_SET_CONTEXT_MGR already set binder: 2424:2459 ioctl 40046207 0 returned -16 binder: undelivered transaction 1079, process died. binder: 2424:2459 transaction failed 29189/-22, size 0-0 line 3013 binder: undelivered TRANSACTION_ERROR: 29189 binder: 2471 RLIMIT_NICE not set binder: release 2470:2471 transaction 1082 out, still active binder: undelivered TRANSACTION_COMPLETE binder: release 2470:2471 transaction 1082 in, still active binder: send failed reply for transaction 1082, target dead binder: 2471 RLIMIT_NICE not set binder: undelivered TRANSACTION_COMPLETE binder: 2495 RLIMIT_NICE not set binder: undelivered TRANSACTION_COMPLETE binder: 2509 RLIMIT_NICE not set binder: undelivered TRANSACTION_COMPLETE SELinux: unrecognized netlink message: protocol=0 nlmsg_type=272 sclass=netlink_route_socket pig=2526 comm=syz-executor.1 nla_parse: 15 callbacks suppressed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=272 sclass=netlink_route_socket pig=2561 comm=syz-executor.1 binder: 2573 RLIMIT_NICE not set SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=2573 comm=syz-executor.1 binder: release 2563:2573 transaction 1092 out, still active binder: undelivered TRANSACTION_COMPLETE binder: release 2563:2573 transaction 1092 in, still active binder: send failed reply for transaction 1092, target dead binder: 2573 RLIMIT_NICE not set SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=2575 comm=syz-executor.1 binder: undelivered TRANSACTION_COMPLETE netlink: 8 bytes leftover after parsing attributes in process `syz-executor.1'. binder: 2588:2589 transaction failed 29201/-28, size 0-0 line 3136 binder: undelivered TRANSACTION_ERROR: 29201 binder: 2588:2626 transaction failed 29201/-28, size 0-0 line 3136 binder: undelivered TRANSACTION_ERROR: 29201 binder: 2638:2639 unknown command 1078518553 binder: 2638:2639 ioctl c0306201 20000500 returned -22 binder: 2638:2677 unknown command 1078518553 binder: 2638:2677 ioctl c0306201 20000500 returned -22 binder: 2688 RLIMIT_NICE not set binder: release 2685:2688 transaction 1104 out, still active binder: undelivered TRANSACTION_COMPLETE binder: release 2685:2688 transaction 1104 in, still active binder: send failed reply for transaction 1104, target dead binder: 2689 RLIMIT_NICE not set binder: release 2685:2688 transaction 1106 out, still active binder: undelivered TRANSACTION_COMPLETE binder: release 2685:2689 transaction 1106 in, still active binder: send failed reply for transaction 1106, target dead binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 1101, process died. binder: 2714:2715 unknown command 1078485525 binder: 2714:2715 ioctl c0306201 20000500 returned -22 binder: 2714:2715 unknown command 4219660 binder: 2714:2715 ioctl c0306201 20000000 returned -22 binder: 2719:2720 transaction failed 29201/-28, size 0-0 line 3136 binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 1109, process died. binder: undelivered TRANSACTION_ERROR: 29201 binder: 2719:2737 transaction failed 29201/-28, size 0-0 line 3136 binder: undelivered TRANSACTION_ERROR: 29201 binder_alloc: 2768: binder_alloc_buf size 1886218096 failed, no address space binder_alloc: allocated: 0 (num: 0 largest: 0), free: 12288 (num: 1 largest: 12288) binder: 2768:2769 transaction failed 29201/-28, size 0-0 line 3136 binder: 2768:2769 unknown command 0 binder: 2768:2769 ioctl c0306201 20000000 returned -22 binder: undelivered TRANSACTION_ERROR: 29201 binder_alloc: 2768: binder_alloc_buf size 1886218096 failed, no address space binder: 2768:2774 unknown command 0 binder: 2768:2774 ioctl c0306201 20000000 returned -22 binder_alloc: allocated: 0 (num: 0 largest: 0), free: 12288 (num: 1 largest: 12288) binder: 2768:2769 transaction failed 29201/-28, size 0-0 line 3136 binder: undelivered TRANSACTION_ERROR: 29201 binder_alloc: 2781: binder_alloc_buf size 1886218096 failed, no address space binder_alloc: allocated: 0 (num: 0 largest: 0), free: 12288 (num: 1 largest: 12288) binder: 2781:2783 transaction failed 29201/-28, size 0-0 line 3136 binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 1115, process died. binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 1124, process died. binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 1126, process died. binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 1129, process died. binder: undelivered TRANSACTION_COMPLETE binder: 2834 RLIMIT_NICE not set binder: undelivered transaction 1133, process died. binder: release 2833:2834 transaction 1132 out, still active binder: undelivered TRANSACTION_COMPLETE binder: release 2833:2834 transaction 1132 in, still active binder: send failed reply for transaction 1132, target dead binder: 2847 RLIMIT_NICE not set binder: release 2843:2847 transaction 1135 out, still active binder: undelivered TRANSACTION_COMPLETE binder: BINDER_SET_CONTEXT_MGR already set binder: 2843:2852 ioctl 40046207 0 returned -16 binder_alloc: 2843: binder_alloc_buf, no vma binder: 2843:2852 transaction failed 29189/-3, size 0-0 line 3136 binder: release 2843:2847 transaction 1135 in, still active binder: send failed reply for transaction 1135, target dead binder: undelivered TRANSACTION_ERROR: 29189 binder: 2863:2865 unknown command 0 binder: 2863:2865 ioctl c0306201 20000500 returned -22