netlink: 8 bytes leftover after parsing attributes in process `syz-executor4'. ====================================================== WARNING: possible circular locking dependency detected 4.14.0-next-20171127+ #53 Not tainted ------------------------------------------------------ syz-executor7/11056 is trying to acquire lock: (console_lock){+.+.}, at: [] vcs_write+0x14d/0xca0 drivers/tty/vt/vc_screen.c:397 but task is already holding lock: (&pipe->mutex/1){+.+.}, at: [] pipe_lock_nested fs/pipe.c:67 [inline] (&pipe->mutex/1){+.+.}, at: [] pipe_lock+0x56/0x70 fs/pipe.c:75 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (&pipe->mutex/1){+.+.}: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 pipe_lock_nested fs/pipe.c:67 [inline] pipe_lock+0x56/0x70 fs/pipe.c:75 iter_file_splice_write+0x264/0xf30 fs/splice.c:699 do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0x7d5/0x1630 fs/splice.c:1382 entry_SYSCALL_64_fastpath+0x1f/0x96 -> #2 (sb_writers){.+.+}: spin_lock include/linux/spinlock.h:315 [inline] inode_wait_for_writeback+0x1f/0x40 fs/fs-writeback.c:1214 -> #1 ((completion)&req.done){+.+.}: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004 complete_acquire include/linux/completion.h:40 [inline] __wait_for_common kernel/sched/completion.c:109 [inline] wait_for_common kernel/sched/completion.c:123 [inline] wait_for_completion+0xcb/0x7b0 kernel/sched/completion.c:144 devtmpfs_create_node+0x32b/0x4a0 drivers/base/devtmpfs.c:115 device_add+0x120f/0x1640 drivers/base/core.c:1824 device_create_groups_vargs+0x1f3/0x250 drivers/base/core.c:2430 device_create_vargs drivers/base/core.c:2470 [inline] device_create+0xda/0x110 drivers/base/core.c:2506 vcs_make_sysfs+0x35/0x60 drivers/tty/vt/vc_screen.c:629 vc_allocate+0x4b7/0x6b0 drivers/tty/vt/vt.c:797 con_install+0x52/0x440 drivers/tty/vt/vt.c:2876 tty_driver_install_tty drivers/tty/tty_io.c:1215 [inline] tty_init_dev+0xf6/0x4a0 drivers/tty/tty_io.c:1315 tty_open_by_driver drivers/tty/tty_io.c:1942 [inline] tty_open+0x608/0xab0 drivers/tty/tty_io.c:1990 chrdev_open+0x257/0x730 fs/char_dev.c:417 do_dentry_open+0x682/0xd70 fs/open.c:752 vfs_open+0x107/0x230 fs/open.c:866 do_last fs/namei.c:3388 [inline] path_openat+0x1157/0x3530 fs/namei.c:3528 do_filp_open+0x25b/0x3b0 fs/namei.c:3563 do_sys_open+0x502/0x6d0 fs/open.c:1059 SYSC_open fs/open.c:1077 [inline] SyS_open+0x2d/0x40 fs/open.c:1072 entry_SYSCALL_64_fastpath+0x1f/0x96 -> #0 (console_lock){+.+.}: check_prevs_add kernel/locking/lockdep.c:2031 [inline] validate_chain kernel/locking/lockdep.c:2473 [inline] __lock_acquire+0x3498/0x47f0 kernel/locking/lockdep.c:3500 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004 console_lock+0x4b/0x80 kernel/printk/printk.c:2047 vcs_write+0x14d/0xca0 drivers/tty/vt/vc_screen.c:397 __vfs_write+0xef/0x970 fs/read_write.c:480 __kernel_write+0xfe/0x350 fs/read_write.c:501 write_pipe_buf+0x175/0x220 fs/splice.c:797 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x328/0x730 fs/splice.c:626 splice_from_pipe+0x1e9/0x330 fs/splice.c:661 default_file_splice_write+0x40/0x90 fs/splice.c:809 do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0x7d5/0x1630 fs/splice.c:1382 entry_SYSCALL_64_fastpath+0x1f/0x96 other info that might help us debug this: Chain exists of: console_lock --> sb_writers --> &pipe->mutex/1 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&pipe->mutex/1); lock(sb_writers); lock(&pipe->mutex/1); lock(console_lock); *** DEADLOCK *** 1 lock held by syz-executor7/11056: #0: (&pipe->mutex/1){+.+.}, at: [] pipe_lock_nested fs/pipe.c:67 [inline] #0: (&pipe->mutex/1){+.+.}, at: [] pipe_lock+0x56/0x70 fs/pipe.c:75 stack backtrace: CPU: 0 PID: 11056 Comm: syz-executor7 Not tainted 4.14.0-next-20171127+ #53 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 print_circular_bug+0x42d/0x610 kernel/locking/lockdep.c:1271 check_prev_add+0x666/0x15f0 kernel/locking/lockdep.c:1914 check_prevs_add kernel/locking/lockdep.c:2031 [inline] validate_chain kernel/locking/lockdep.c:2473 [inline] __lock_acquire+0x3498/0x47f0 kernel/locking/lockdep.c:3500 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004 console_lock+0x4b/0x80 kernel/printk/printk.c:2047 vcs_write+0x14d/0xca0 drivers/tty/vt/vc_screen.c:397 __vfs_write+0xef/0x970 fs/read_write.c:480 __kernel_write+0xfe/0x350 fs/read_write.c:501 write_pipe_buf+0x175/0x220 fs/splice.c:797 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x328/0x730 fs/splice.c:626 splice_from_pipe+0x1e9/0x330 fs/splice.c:661 default_file_splice_write+0x40/0x90 fs/splice.c:809 do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0x7d5/0x1630 fs/splice.c:1382 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x4529d9 RSP: 002b:00007f912ad91c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9 RDX: 0000000000000013 RSI: 0000000000000000 RDI: 0000000000000014 RBP: 0000000000000086 R08: 00000000fffff5fc R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f3550 R13: 00000000ffffffff R14: 00007f912ad926d4 R15: 0000000000000000 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=0 sclass=netlink_xfrm_socket pig=11121 comm=syz-executor1 could not allocate digest TFM handle @ނMZBڛxQ\: 29¾:r SELinux: unrecognized netlink message: protocol=6 nlmsg_type=0 sclass=netlink_xfrm_socket pig=11129 comm=syz-executor1 could not allocate digest TFM handle @ނMZBڛxQ\: 29¾:r device gre0 entered promiscuous mode device gre0 entered promiscuous mode device gre0 entered promiscuous mode device gre0 entered promiscuous mode binder: 11304:11306 ioctl 40046205 0 returned -22 binder: 11304:11306 ERROR: BC_REGISTER_LOOPER called without request binder: 11306 RLIMIT_NICE not set device gre0 entered promiscuous mode binder: 11304:11320 unknown command 1400526783 binder: 11304:11320 ioctl c0306201 2000b000 returned -22 binder: 11304:11320 got reply transaction with bad transaction stack, transaction 67 has target 11304:0 binder: 11304:11320 transaction failed 29201/-71, size 24-8 line 2685 binder: 11304:11320 ioctl c018620b 20000fe8 returned -14 binder: 11304:11320 ioctl c0306201 20005fd0 returned -14 binder: release 11304:11320 transaction 67 out, still active binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29201 binder: 11304:11320 BC_FREE_BUFFER u0000000000000000 no match binder: 11304:11320 ioctl 40046205 6 returned -22 binder: 11304:11332 ioctl 40046205 0 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 11304:11320 ioctl 40046207 0 returned -16 binder: 11304:11332 ERROR: BC_REGISTER_LOOPER called without request binder: 11332 RLIMIT_NICE not set binder: 11304:11332 ioctl c0306201 20008fd0 returned -11 binder_alloc: 11304: binder_alloc_buf, no vma binder: 11304:11320 transaction failed 29189/-3, size 0-0 line 2870 binder: 11304:11332 got reply transaction with no transaction stack binder: 11304:11332 transaction failed 29201/-71, size 24-8 line 2670 netlink: 2 bytes leftover after parsing attributes in process `syz-executor6'. binder: 11304:11320 ioctl c018620b 20000fe8 returned -14 binder: 11304:11332 BC_FREE_BUFFER uffffffffffffffff no match binder: 11304:11332 IncRefs 0 refcount change on invalid ref 1 ret -22 binder: 11304:11332 got transaction to invalid handle binder: 11304:11332 transaction failed 29201/-22, size 72-8 line 2755 binder: 11304:11332 ioctl c0306201 20005fd0 returned -14 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 netlink: 2 bytes leftover after parsing attributes in process `syz-executor6'. binder: 11306 RLIMIT_NICE not set binder: release 11304:11306 transaction 67 in, still active binder: send failed reply for transaction 67, target dead binder: undelivered TRANSACTION_ERROR: 29201 device gre0 entered promiscuous mode dccp_invalid_packet: P.CsCov 5 exceeds packet length 552 dccp_invalid_packet: P.CsCov 5 exceeds packet length 552 QAT: Invalid ioctl QAT: Invalid ioctl sg_write: data in/out 593982219/6 bytes for SCSI command 0x0-- guessing data in; program syz-executor6 not setting count and/or reply_len properly sg_write: data in/out 593982219/6 bytes for SCSI command 0x0-- guessing data in; program syz-executor6 not setting count and/or reply_len properly device gre0 entered promiscuous mode *** Guest State *** CR0: actual=0x0000000080000031, shadow=0x0000000060000010, gh_mask=fffffffffffffff7 CR4: actual=0x0000000000002051, shadow=0x0000000000000000, gh_mask=ffffffffffffe871 CR3 = 0x00000000fffbc000 RSP = 0x000000000000fffa RIP = 0x0000000000000000 RFLAGS=0x00033000 DR7 = 0x0000000000000400 Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000 CS: sel=0x0000, attr=0x000f3, limit=0x0000ffff, base=0x0000000000000000 DS: sel=0x0000, attr=0x000f3, limit=0x0000ffff, base=0x0000000000000000 SS: sel=0x0000, attr=0x000f3, limit=0x0000ffff, base=0x0000000000000000 ES: sel=0x0000, attr=0x000f3, limit=0x0000ffff, base=0x0000000000000000 FS: sel=0x0000, attr=0x000f3, limit=0x0000ffff, base=0x0000000000000000 GS: sel=0x0000, attr=0x000f3, limit=0x0000ffff, base=0x0000000000000000 GDTR: limit=0x0000ffff, base=0x0000000000000000 LDTR: sel=0x0000, attr=0x00082, limit=0x0000ffff, base=0x0000000000000000 IDTR: limit=0x0000ffff, base=0x0000000000000000 TR: sel=0x0000, attr=0x0008b, limit=0x00002088, base=0x0000000000000000 EFER = 0x0000000000000000 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 Interruptibility = 00000000 ActivityState = 00000000 *** Host State *** RIP = 0xffffffff811be433 RSP = 0xffff8801c3a6f4c8 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 FSBase=00007fb250e46700 GSBase=ffff8801db400000 TRBase=ffff8801db523100 GDTBase=ffffffffff576000 IDTBase=ffffffffff57b000 CR0=0000000080050033 CR3=00000001c3d08000 CR4=00000000001426f0 Sysenter RSP=0000000000000000 CS:RIP=0010:ffffffff85173930 EFER = 0x0000000000000d01 PAT = 0x0000000000000000 *** Control State *** PinBased=0000003f CPUBased=b699edfa SecondaryExec=00000042 EntryControls=0000d1ff ExitControls=0023efff ExceptionBitmap=ffffbfff PFECmask=00000000 PFECmatch=00000000 VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000 VMExit: intr_info=00000000 errcode=00000000 ilen=00000000 reason=80000021 qualification=0000000000000000 IDTVectoring: info=00000000 errcode=00000000 TSC Offset = 0xffffff75623da55c EPT pointer = 0x00000001ccb2b01e binder: 11613:11621 ioctl 40046205 200 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 11613:11663 ioctl 40046205 200 returned -22 binder: 11613:11640 ioctl 40046207 0 returned -16 netlink: 8 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 13 bytes leftover after parsing attributes in process `syz-executor0'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=11720 comm=syz-executor5 binder: 11810:11811 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 11810:11811 Release 1 refcount change on invalid ref 0 ret -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 11810:11820 ioctl 40046207 0 returned -16 RDS: rds_bind could not find a transport for 224.0.0.1, load rds_tcp or rds_rdma? binder: 11810:11811 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 11810:11826 Release 1 refcount change on invalid ref 0 ret -22 RDS: rds_bind could not find a transport for 224.0.0.2, load rds_tcp or rds_rdma? RDS: rds_bind could not find a transport for 224.0.0.1, load rds_tcp or rds_rdma? RDS: rds_bind could not find a transport for 224.0.0.2, load rds_tcp or rds_rdma? device gre0 entered promiscuous mode binder: 11898:11900 got transaction with unaligned buffers size, 58534 binder: 11898:11900 transaction failed 29201/-22, size 64-40 line 2915 binder_alloc: binder_alloc_mmap_handler: 11898 2011a000-2051a000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 11898:11900 ioctl 40046207 0 returned -16 BUG: unable to handle kernel NULL pointer dereference at 0000000000000074 IP: virt_to_cache mm/slab.c:400 [inline] IP: kfree+0xb2/0x250 mm/slab.c:3803 PGD 1cd180067 P4D 1cd180067 PUD 1c77fb067 PMD 0 Oops: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 11924 Comm: syz-executor1 Not tainted 4.14.0-next-20171127+ #53 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801c300e3c0 task.stack: ffff8801c1b38000 RIP: 0010:virt_to_cache mm/slab.c:400 [inline] RIP: 0010:kfree+0xb2/0x250 mm/slab.c:3803 RSP: 0018:ffff8801c1b3f780 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffff8801c1b3f948 RCX: ffffffffffffffff RDX: ffffea000706cfc0 RSI: ffffc9000155e000 RDI: ffff8801c1b3f948 RBP: ffff8801c1b3f7a0 R08: ffffed003b3da2f4 R09: 0000000000000000 R10: 0000000000000001 R11: ffffed003b3da2f3 R12: 0000000000000286 R13: 0000000000000000 R14: ffff8801c1b3f948 R15: ffff8801c1b3f8b0 FS: 00007f107f868700(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000074 CR3: 00000001cd3d9000 CR4: 00000000001406e0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: blkcipher_walk_done+0x72b/0xde0 crypto/blkcipher.c:139 encrypt+0x50a/0xaf0 crypto/salsa20_generic.c:208 skcipher_crypt_blkcipher crypto/skcipher.c:622 [inline] skcipher_encrypt_blkcipher+0x213/0x310 crypto/skcipher.c:631 crypto_skcipher_encrypt include/crypto/skcipher.h:445 [inline] _skcipher_recvmsg crypto/algif_skcipher.c:144 [inline] skcipher_recvmsg+0x9e8/0xf20 crypto/algif_skcipher.c:165 sock_recvmsg_nosec net/socket.c:805 [inline] sock_recvmsg+0xc9/0x110 net/socket.c:812 ___sys_recvmsg+0x29b/0x630 net/socket.c:2207 __sys_recvmsg+0xe2/0x210 net/socket.c:2252 SYSC_recvmsg net/socket.c:2264 [inline] SyS_recvmsg+0x2d/0x50 net/socket.c:2259 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x4529d9 RSP: 002b:00007f107f867c58 EFLAGS: 00000212 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9 RDX: 0000000000000005 RSI: 000000002022efc8 RDI: 0000000000000014 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000 R13: 0000000000a6f7ff R14: 00007f107f8689c0 R15: 0000000000000000 Code: c2 48 b8 00 00 00 00 00 ea ff ff 48 89 df 48 c1 ea 0c 48 c1 e2 06 48 01 c2 48 8b 42 20 48 8d 48 ff a8 01 48 0f 45 d1 4c 8b 6a 30 <49> 63 75 74 e8 b5 5c af ff 48 89 de 4c 89 ef 4c 8b 75 08 e8 76 RIP: virt_to_cache mm/slab.c:400 [inline] RSP: ffff8801c1b3f780 RIP: kfree+0xb2/0x250 mm/slab.c:3803 RSP: ffff8801c1b3f780 CR2: 0000000000000074 ---[ end trace 4e7fe87650925fc7 ]---