====================================================== selinux_nlmsg_perm: 7 callbacks suppressed SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18347 comm=syz-executor3 WARNING: possible circular locking dependency detected 4.13.0-rc6+ #31 Not tainted ------------------------------------------------------ syz-executor6/18314 is trying to acquire lock: (sk_lock-AF_KCM){+.+.+.}, at: [] lock_sock include/net/sock.h:1459 [inline] (sk_lock-AF_KCM){+.+.+.}, at: [] kcm_sendpage+0x16e/0x1880 net/kcm/kcmsock.c:774 but task is already holding lock: SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18356 comm=syz-executor3 (k-sk_lock-AF_KCM){+.+.+.}, at: [] lock_sock include/net/sock.h:1459 [inline] (k-sk_lock-AF_KCM){+.+.+.}, at: [] kcm_sendmsg+0x1ec/0x2200 net/kcm/kcmsock.c:910 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (k-sk_lock-AF_KCM){+.+.+.}: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3855 lock_sock_nested+0xc2/0x110 net/core/sock.c:2762 lock_sock include/net/sock.h:1459 [inline] kcm_sendpage+0x16e/0x1880 net/kcm/kcmsock.c:774 kernel_sendpage+0x8d/0xe0 net/socket.c:3387 kcm_write_msgs+0x404/0x1b80 net/kcm/kcmsock.c:646 kcm_sendmsg+0x1446/0x2200 net/kcm/kcmsock.c:1035 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 sock_write_iter+0x31a/0x5d0 net/socket.c:912 call_write_iter include/linux/fs.h:1743 [inline] new_sync_write fs/read_write.c:457 [inline] __vfs_write+0x684/0x970 fs/read_write.c:470 vfs_write+0x189/0x510 fs/read_write.c:518 SYSC_write fs/read_write.c:565 [inline] SyS_write+0xef/0x220 fs/read_write.c:557 entry_SYSCALL_64_fastpath+0x1f/0xbe -> #0 (sk_lock-AF_KCM){+.+.+.}: check_prev_add kernel/locking/lockdep.c:1844 [inline] check_prevs_add kernel/locking/lockdep.c:1954 [inline] validate_chain kernel/locking/lockdep.c:2281 [inline] __lock_acquire+0x2f2c/0x3dc0 kernel/locking/lockdep.c:3367 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3855 lock_sock_nested+0xc2/0x110 net/core/sock.c:2762 lock_sock include/net/sock.h:1459 [inline] kcm_sendpage+0x16e/0x1880 net/kcm/kcmsock.c:774 kernel_sendpage+0x8d/0xe0 net/socket.c:3387 kcm_write_msgs+0x404/0x1b80 net/kcm/kcmsock.c:646 kcm_sendmsg+0x1446/0x2200 net/kcm/kcmsock.c:1035 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 sock_write_iter+0x31a/0x5d0 net/socket.c:912 call_write_iter include/linux/fs.h:1743 [inline] new_sync_write fs/read_write.c:457 [inline] __vfs_write+0x684/0x970 fs/read_write.c:470 vfs_write+0x189/0x510 fs/read_write.c:518 SYSC_write fs/read_write.c:565 [inline] SyS_write+0xef/0x220 fs/read_write.c:557 entry_SYSCALL_64_fastpath+0x1f/0xbe other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(k-sk_lock-AF_KCM); lock(sk_lock-AF_KCM); lock(k-sk_lock-AF_KCM); lock(sk_lock-AF_KCM); *** DEADLOCK *** 1 lock held by syz-executor6/18314: #0: (k-sk_lock-AF_KCM){+.+.+.}, at: [] lock_sock include/net/sock.h:1459 [inline] #0: (k-sk_lock-AF_KCM){+.+.+.}, at: [] kcm_sendmsg+0x1ec/0x2200 net/kcm/kcmsock.c:910 stack backtrace: CPU: 0 PID: 18314 Comm: syz-executor6 Not tainted 4.13.0-rc6+ #31 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 print_circular_bug+0x358/0x400 kernel/locking/lockdep.c:1218 check_prev_add kernel/locking/lockdep.c:1844 [inline] check_prevs_add kernel/locking/lockdep.c:1954 [inline] validate_chain kernel/locking/lockdep.c:2281 [inline] __lock_acquire+0x2f2c/0x3dc0 kernel/locking/lockdep.c:3367 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3855 lock_sock_nested+0xc2/0x110 net/core/sock.c:2762 lock_sock include/net/sock.h:1459 [inline] kcm_sendpage+0x16e/0x1880 net/kcm/kcmsock.c:774 kernel_sendpage+0x8d/0xe0 net/socket.c:3387 kcm_write_msgs+0x404/0x1b80 net/kcm/kcmsock.c:646 kcm_sendmsg+0x1446/0x2200 net/kcm/kcmsock.c:1035 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 sock_write_iter+0x31a/0x5d0 net/socket.c:912 call_write_iter include/linux/fs.h:1743 [inline] new_sync_write fs/read_write.c:457 [inline] __vfs_write+0x684/0x970 fs/read_write.c:470 vfs_write+0x189/0x510 fs/read_write.c:518 SYSC_write fs/read_write.c:565 [inline] SyS_write+0xef/0x220 fs/read_write.c:557 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x451e59 RSP: 002b:00007f63631f6c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 RDX: 00000000000000e2 RSI: 0000000020bf3000 RDI: 0000000000000018 RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b9ce7 R13: 00000000ffffffff R14: 0000000000000005 R15: 0000000000008914 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18398 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18407 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18457 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18466 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18506 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18514 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18558 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=256 sclass=netlink_xfrm_socket pig=18558 comm=syz-executor3 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 19526 Comm: syz-executor2 Not tainted 4.13.0-rc6+ #31 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x8c0/0xa40 lib/fault-inject.c:149 should_failslab+0xec/0x120 mm/failslab.c:31 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc+0x40/0x750 mm/slab.c:3559 alloc_inode+0x128/0x180 fs/inode.c:210 new_inode_pseudo+0x69/0x190 fs/inode.c:889 get_pipe_inode fs/pipe.c:698 [inline] create_pipe_files+0x9a/0x930 fs/pipe.c:739 __do_pipe_flags+0x35/0x220 fs/pipe.c:796 SYSC_pipe2 fs/pipe.c:844 [inline] SyS_pipe2 fs/pipe.c:838 [inline] SYSC_pipe fs/pipe.c:862 [inline] SyS_pipe+0x8d/0x2e0 fs/pipe.c:860 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x451e59 RSP: 002b:00007ff3abba4c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000016 RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020997000 RBP: 00007ff3abba4a10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b69f7 R13: 00007ff3abba4b48 R14: 00000000004b6a07 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 19572 Comm: syz-executor5 Not tainted 4.13.0-rc6+ #31 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x8c0/0xa40 lib/fault-inject.c:149 should_failslab+0xec/0x120 mm/failslab.c:31 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node+0x4f/0x750 mm/slab.c:3649 __alloc_skb+0xf1/0x740 net/core/skbuff.c:194 alloc_skb include/linux/skbuff.h:975 [inline] alloc_skb_with_frags+0x10d/0x710 net/core/skbuff.c:5143 sock_alloc_send_pskb+0x7b4/0x9d0 net/core/sock.c:2073 sock_alloc_send_skb+0x32/0x40 net/core/sock.c:2090 __ip_append_data.isra.47+0x13a5/0x24a0 net/ipv4/ip_output.c:969 ip_make_skb+0x273/0x300 net/ipv4/ip_output.c:1481 udp_sendmsg+0xb43/0x2c70 net/ipv4/udp.c:1049 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:762 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 ___sys_sendmsg+0x31c/0x890 net/socket.c:2049 __sys_sendmmsg+0x1e6/0x5f0 net/socket.c:2139 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 SYSC_sendmmsg net/socket.c:2170 [inline] SyS_sendmmsg+0x35/0x60 net/socket.c:2165 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x451e59 RSP: 002b:00007f36e244ec08 EFLAGS: 00000216 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 RDX: 0000000000000001 RSI: 0000000020954f00 RDI: 0000000000000005 RBP: 00007f36e244ea10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b69f7 R13: 00007f36e244eb48 R14: 00000000004b6a07 R15: 0000000000000000 CPU: 1 PID: 19593 Comm: syz-executor4 Not tainted 4.13.0-rc6+ #31 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x8c0/0xa40 lib/fault-inject.c:149 should_failslab+0xec/0x120 mm/failslab.c:31 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc+0x40/0x750 mm/slab.c:3559 alloc_inode+0x128/0x180 fs/inode.c:210 new_inode_pseudo+0x69/0x190 fs/inode.c:889 get_pipe_inode fs/pipe.c:698 [inline] create_pipe_files+0x9a/0x930 fs/pipe.c:739 __do_pipe_flags+0x35/0x220 fs/pipe.c:796 SYSC_pipe2 fs/pipe.c:844 [inline] SyS_pipe2 fs/pipe.c:838 [inline] SYSC_pipe fs/pipe.c:862 [inline] SyS_pipe+0x8d/0x2e0 fs/pipe.c:860 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x451e59 RSP: 002b:00007ff25b0f6c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000016 RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020f85000 RBP: 00007ff25b0f6a10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b69f7 R13: 00007ff25b0f6b48 R14: 00000000004b6a07 R15: 0000000000000000