BUG: sleeping function called from invalid context at net/core/sock.c:2761 in_atomic(): 1, irqs_disabled(): 0, pid: 1307, name: kworker/1:2 2 locks held by kworker/1:2/1307: #0: ((wq_completion)"%s"name){+.+.}, at: [] __write_once_size include/linux/compiler.h:212 [inline] #0: ((wq_completion)"%s"name){+.+.}, at: [] atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ((wq_completion)"%s"name){+.+.}, at: [] atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: ((wq_completion)"%s"name){+.+.}, at: [] set_work_data kernel/workqueue.c:618 [inline] #0: ((wq_completion)"%s"name){+.+.}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:645 [inline] #0: ((wq_completion)"%s"name){+.+.}, at: [] process_one_work+0xad4/0x1be0 kernel/workqueue.c:2083 #1: ((work_completion)(&squeue->work)){+.+.}, at: [] process_one_work+0xb2f/0x1be0 kernel/workqueue.c:2087 CPU: 1 PID: 1307 Comm: kworker/1:2 Not tainted 4.14.0-next-20171124+ #51 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: pencrypt padata_serial_worker Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6060 __might_sleep+0x95/0x190 kernel/sched/core.c:6013 lock_sock_nested+0x37/0x110 net/core/sock.c:2761 lock_sock include/net/sock.h:1467 [inline] af_alg_async_cb+0x86/0x1a0 crypto/af_alg.c:1039 aead_request_complete include/crypto/internal/aead.h:75 [inline] pcrypt_aead_serial+0x75/0xa0 crypto/pcrypt.c:123 padata_serial_worker+0x476/0x750 kernel/padata.c:348 process_one_work+0xbfd/0x1be0 kernel/workqueue.c:2112 worker_thread+0x223/0x1990 kernel/workqueue.c:2246 kthread+0x37a/0x440 kernel/kthread.c:238 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:437 device sit0 entered promiscuous mode device sit0 left promiscuous mode device sit0 entered promiscuous mode QAT: Invalid ioctl SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=11846 comm=syz-executor1 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl device gre0 left promiscuous mode device gre0 entered promiscuous mode sg_write: data in/out 45116/228 bytes for SCSI command 0x0-- guessing data in; program syz-executor6 not setting count and/or reply_len properly device gre0 left promiscuous mode device gre0 entered promiscuous mode sg_write: data in/out 45116/228 bytes for SCSI command 0x0-- guessing data in; program syz-executor6 not setting count and/or reply_len properly nla_parse: 5 callbacks suppressed netlink: 3 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor5'. device gre0 entered promiscuous mode device gre0 entered promiscuous mode SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7083 sclass=netlink_route_socket pig=12145 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7083 sclass=netlink_route_socket pig=12145 comm=syz-executor5 Started in network mode Own node address <128.2424.2694>, network identity 4711 netlink: 8 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor4'. RDS: rds_bind could not find a transport for 172.20.0.170, load rds_tcp or rds_rdma? QAT: Invalid ioctl netlink: 5 bytes leftover after parsing attributes in process `syz-executor4'. QAT: Invalid ioctl RDS: rds_bind could not find a transport for 172.20.0.170, load rds_tcp or rds_rdma? tmpfs: No value for mount option '‹¶K"WöËO¢©S£d€Yl®' tmpfs: No value for mount option '‹¶K"WöËO¢©S£d€Yl®' device lo left promiscuous mode device lo entered promiscuous mode IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready device lo left promiscuous mode sock: process `syz-executor0' is using obsolete setsockopt SO_BSDCOMPAT netlink: 5 bytes leftover after parsing attributes in process `syz-executor0'. IPv6: Can't replace route, no match found handle_userfault: 1620 callbacks suppressed FAULT_FLAG_ALLOW_RETRY missing 30 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 12528 Comm: syz-executor2 Tainted: G W 4.14.0-next-20171124+ #51 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 handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427 do_anonymous_page mm/memory.c:3109 [inline] handle_pte_fault mm/memory.c:3922 [inline] __handle_mm_fault+0x3402/0x3dd0 mm/memory.c:4048 handle_mm_fault+0x38f/0x930 mm/memory.c:4085 __do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1429 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504 page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1088 RIP: 0010:fault_in_pages_readable include/linux/pagemap.h:601 [inline] RIP: 0010:iov_iter_fault_in_readable+0x1a7/0x410 lib/iov_iter.c:421 RSP: 0018:ffff8801c6bdf928 EFLAGS: 00010246 RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff8250c7e1 RDX: 00000000000000c6 RSI: ffffc9000337d000 RDI: ffff8801c6bdfd28 RBP: ffff8801c6bdfa08 R08: 1ffff100389f7db2 R09: 0000000000000000 R10: ffff8801d9056580 R11: 0000000000000000 R12: 1ffff10038d7bf28 R13: ffff8801c6bdf9e0 R14: 0000000000000000 R15: ffff8801c6bdfd20 generic_perform_write+0x200/0x600 mm/filemap.c:3128 __generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3263 generic_file_write_iter+0x399/0x7a0 mm/filemap.c:3291 call_write_iter include/linux/fs.h:1772 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x68a/0x970 fs/read_write.c:482 vfs_write+0x18f/0x510 fs/read_write.c:544 SYSC_write fs/read_write.c:589 [inline] SyS_write+0xef/0x220 fs/read_write.c:581 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x452879 RSP: 002b:00007ff889c98be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452879 RDX: 0000000000000030 RSI: 0000000020011fd2 RDI: 0000000000000014 RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ed8e0 R13: 00000000ffffffff R14: 00007ff889c996d4 R15: 0000000000000000 Disabled LAPIC found during irq injection CPU: 1 PID: 12551 Comm: syz-executor2 Tainted: G W 4.14.0-next-20171124+ #51 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 handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427 do_anonymous_page mm/memory.c:3109 [inline] handle_pte_fault mm/memory.c:3922 [inline] __handle_mm_fault+0x3402/0x3dd0 mm/memory.c:4048 handle_mm_fault+0x38f/0x930 mm/memory.c:4085 __do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1429 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504 page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1088 RIP: 0010:do_strnlen_user lib/strnlen_user.c:49 [inline] RIP: 0010:strnlen_user+0x15c/0x300 lib/strnlen_user.c:118 RSP: 0018:ffff8801cd8a7db8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000020012000 RCX: ffffffff825a4387 RDX: 8080808080808080 RSI: ffffc90003887000 RDI: ffff8801cd8a7e10 RBP: ffff8801cd8a7e70 R08: ffffed003b0445f0 R09: ffffed003b0445f0 R10: 0000000000000001 R11: ffffed003b0445f0 R12: ffff8801cd8a7e48 R13: 0000000000000000 R14: 1ffff10039b14fbd R15: 0000000000001000 strndup_user+0x28/0xb0 mm/util.c:187 SYSC_request_key security/keys/keyctl.c:186 [inline] SyS_request_key+0xbb/0x2a0 security/keys/keyctl.c:158 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x452879 RSP: 002b:00007ff889c35be8 EFLAGS: 00000212 ORIG_RAX: 00000000000000f9 RAX: ffffffffffffffda RBX: 0000000000758248 RCX: 0000000000452879 RDX: 0000000020012000 RSI: 0000000020000000 RDI: 0000000020000ffa RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ed970 R13: 00000000ffffffff R14: 00007ff889c366d4 R15: 0000000000000014 netlink: 17 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 17 bytes leftover after parsing attributes in process `syz-executor4'. QAT: Invalid ioctl sg_write: data in/out 45116/228 bytes for SCSI command 0x0-- guessing data in; program syz-executor5 not setting count and/or reply_len properly device sit0 entered promiscuous mode QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl device sit0 left promiscuous mode sg_write: data in/out 45116/228 bytes for SCSI command 0x0-- guessing data in; program syz-executor5 not setting count and/or reply_len properly device sit0 entered promiscuous mode QAT: Invalid ioctl QAT: Invalid ioctl audit: type=1326 audit(1511656222.082:3450): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=12711 comm="syz-executor4" exe="/root/syz-executor4" sig=31 arch=c000003e syscall=202 compat=0 ip=0x452879 code=0xffff0000 audit: type=1326 audit(1511656222.279:3451): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=12711 comm="syz-executor4" exe="/root/syz-executor4" sig=31 arch=c000003e syscall=202 compat=0 ip=0x452879 code=0xffff0000 device sit0 left promiscuous mode device sit0 entered promiscuous mode device sit0 left promiscuous mode device sit0 entered promiscuous mode do_dccp_setsockopt: sockopt(CHANGE_L/R) is deprecated: fix your app do_dccp_setsockopt: sockopt(CHANGE_L/R) is deprecated: fix your app QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl audit: type=1326 audit(1511656223.547:3452): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=12948 comm="syz-executor3" exe="/root/syz-executor3" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452879 code=0x7ffc0000 audit: type=1326 audit(1511656223.572:3453): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=12948 comm="syz-executor3" exe="/root/syz-executor3" sig=0 arch=c000003e syscall=16 compat=0 ip=0x452879 code=0x7ffc0000 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12973 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12982 comm=syz-executor5 audit: type=1326 audit(1511656223.572:3454): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=12948 comm="syz-executor3" exe="/root/syz-executor3" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452879 code=0x7ffc0000 audit: type=1326 audit(1511656223.581:3455): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=12948 comm="syz-executor3" exe="/root/syz-executor3" sig=0 arch=c000003e syscall=248 compat=0 ip=0x452879 code=0x7ffc0000 audit: type=1326 audit(1511656223.581:3456): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=12948 comm="syz-executor3" exe="/root/syz-executor3" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452879 code=0x7ffc0000 dccp_invalid_packet: P.Data Offset(4) too small audit: type=1326 audit(1511656223.581:3457): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=12948 comm="syz-executor3" exe="/root/syz-executor3" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452879 code=0x7ffc0000 dccp_invalid_packet: P.Data Offset(4) too small device sit0 entered promiscuous mode device sit0 left promiscuous mode device sit0 entered promiscuous mode netlink: 1 bytes leftover after parsing attributes in process `syz-executor5'. QAT: Invalid ioctl IPv6: Can't replace route, no match found QAT: failed to copy from user. netlink: 1 bytes leftover after parsing attributes in process `syz-executor5'. QAT: Invalid ioctl QAT: failed to copy from user. IPv6: Can't replace route, no match found kvm: vcpu 2: requested 68374 ns lapic timer period limited to 500000 ns kvm: vcpu 2: requested 68374 ns lapic timer period limited to 500000 ns device gre0 entered promiscuous mode netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. device gre0 entered promiscuous mode