QAT: Invalid ioctl ====================================================== WARNING: possible circular locking dependency detected 4.13.0-rc6-next-20170825+ #9 Not tainted ------------------------------------------------------ kworker/2:2/1256 is trying to acquire lock: ((perf_sched_work).work){+.+.}, at: [] process_one_work+0xb2c/0x1be0 kernel/workqueue.c:2094 but now in release context of a crosslock acquired at the following: ((complete)&rcu.completion){+.+.}, at: [] __synchronize_srcu+0x1b5/0x250 kernel/rcu/srcutree.c:898 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 ((complete)&rcu.completion){+.+.}: check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x3286/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 complete_acquire include/linux/completion.h:39 [inline] __wait_for_common kernel/sched/completion.c:108 [inline] wait_for_common kernel/sched/completion.c:122 [inline] wait_for_completion+0xc8/0x770 kernel/sched/completion.c:143 __synchronize_srcu+0x1b5/0x250 kernel/rcu/srcutree.c:898 synchronize_srcu_expedited kernel/rcu/srcutree.c:923 [inline] synchronize_srcu+0x1a3/0x560 kernel/rcu/srcutree.c:974 quarantine_remove_cache+0xd7/0xf0 mm/kasan/quarantine.c:327 kasan_cache_shrink+0x9/0x10 mm/kasan/kasan.c:380 kmem_cache_shrink+0x15/0x30 mm/slab_common.c:857 acpi_os_purge_cache+0x15/0x20 drivers/acpi/osl.c:1560 acpi_purge_cached_objects+0x38/0xc9 drivers/acpi/acpica/utxface.c:271 acpi_initialize_objects+0xc5/0x112 drivers/acpi/acpica/utxfinit.c:302 acpi_bus_init drivers/acpi/bus.c:1131 [inline] acpi_init+0x23c/0x8e6 drivers/acpi/bus.c:1220 do_one_initcall+0x9e/0x330 init/main.c:826 do_initcall_level init/main.c:892 [inline] do_initcalls init/main.c:900 [inline] do_basic_setup init/main.c:918 [inline] kernel_init_freeable+0x469/0x521 init/main.c:1066 kernel_init+0x13/0x172 init/main.c:993 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 -> #2 (cpu_hotplug_lock.rw_sem){++++}: check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x3286/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:35 [inline] percpu_down_read include/linux/percpu-rwsem.h:58 [inline] cpus_read_lock+0x42/0x90 kernel/cpu.c:218 static_key_enable+0x12/0x30 kernel/jump_label.c:153 account_event kernel/events/core.c:9345 [inline] perf_event_alloc+0x227f/0x2a00 kernel/events/core.c:9534 SYSC_perf_event_open+0x7f3/0x2d90 kernel/events/core.c:9950 SyS_perf_event_open+0x39/0x50 kernel/events/core.c:9841 entry_SYSCALL_64_fastpath+0x1f/0xbe -> #1 (perf_sched_mutex){+.+.}: check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x3286/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0x16f/0x1870 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 perf_sched_delayed+0x17/0x50 kernel/events/core.c:4060 process_one_work+0xbfd/0x1be0 kernel/workqueue.c:2098 worker_thread+0x223/0x1860 kernel/workqueue.c:2233 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 -> #0 ((perf_sched_work).work){+.+.}: process_one_work+0xba5/0x1be0 kernel/workqueue.c:2095 worker_thread+0x223/0x1860 kernel/workqueue.c:2233 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 0xffffffffffffffff other info that might help us debug this: Chain exists of: (perf_sched_work).work --> cpu_hotplug_lock.rw_sem --> (complete)&rcu.completion Possible unsafe locking scenario by crosslock: CPU0 CPU1 ---- ---- lock(cpu_hotplug_lock.rw_sem); lock((complete)&rcu.completion); lock((perf_sched_work).work); unlock((complete)&rcu.completion); *** DEADLOCK *** 3 locks held by kworker/2:2/1256: #0: ("events_power_efficient"){.+.+}, at: [] __write_once_size include/linux/compiler.h:305 [inline] #0: ("events_power_efficient"){.+.+}, at: [] atomic64_set arch/x86/include/asm/atomic64_64.h:33 [inline] #0: ("events_power_efficient"){.+.+}, at: [] atomic_long_set include/asm-generic/atomic-long.h:56 [inline] #0: ("events_power_efficient"){.+.+}, at: [] set_work_data kernel/workqueue.c:617 [inline] #0: ("events_power_efficient"){.+.+}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ("events_power_efficient"){.+.+}, at: [] process_one_work+0xad4/0x1be0 kernel/workqueue.c:2090 #1: ((&(&sdp->work)->work)){+.+.}, at: [] process_one_work+0xb2c/0x1be0 kernel/workqueue.c:2094 #2: (&x->wait#5){....}, at: [] complete+0x18/0x80 kernel/sched/completion.c:34 stack backtrace: CPU: 2 PID: 1256 Comm: kworker/2:2 Not tainted 4.13.0-rc6-next-20170825+ #9 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Workqueue: events_power_efficient srcu_invoke_callbacks Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 print_circular_bug+0x503/0x710 kernel/locking/lockdep.c:1259 check_prev_add+0x865/0x1520 kernel/locking/lockdep.c:1894 commit_xhlock kernel/locking/lockdep.c:5002 [inline] commit_xhlocks kernel/locking/lockdep.c:5046 [inline] lock_commit_crosslock+0xe73/0x1d10 kernel/locking/lockdep.c:5085 complete_release_commit include/linux/completion.h:49 [inline] complete+0x24/0x80 kernel/sched/completion.c:39 wakeme_after_rcu+0xd/0x10 kernel/rcu/update.c:376 srcu_invoke_callbacks+0x280/0x4d0 kernel/rcu/srcutree.c:1161 process_one_work+0xbfd/0x1be0 kernel/workqueue.c:2098 worker_thread+0x223/0x1860 kernel/workqueue.c:2233 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl device syz5 entered promiscuous mode netlink: 6 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor6'. sctp: [Deprecated]: syz-executor5 (pid 5598) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor5 (pid 5604) Use of int in maxseg socket option. Use struct sctp_assoc_value instead SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=5604 comm=syz-executor5 sock: process `syz-executor2' is using obsolete getsockopt SO_BSDCOMPAT SELinux: unrecognized netlink message: protocol=0 nlmsg_type=32767 sclass=netlink_route_socket pig=5707 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=5707 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=32767 sclass=netlink_route_socket pig=5718 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=5721 comm=syz-executor5 sr 1:0:0:0: [sg1] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK sr 1:0:0:0: [sg1] tag#0 CDB: Read density support 44 00 00 00 00 00 00 00 00 sr 1:0:0:0: [sg1] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK sr 1:0:0:0: [sg1] tag#0 CDB: Read density support 44 00 00 00 00 00 00 00 00 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 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl loop: Write error at byte offset 18446744073709551613, length 1024. QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl syz-executor4 (6328) used greatest stack depth: 14992 bytes left sctp: [Deprecated]: syz-executor0 (pid 6497) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor0 (pid 6497) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor0 (pid 6497) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor0 (pid 6499) Use of int in maxseg socket option. Use struct sctp_assoc_value instead kvm: MONITOR instruction emulated as NOP! syz1: Invalid MTU 26 requested, hw min 68 syz1: Invalid MTU 26 requested, hw min 68 nla_parse: 13 callbacks suppressed netlink: 5 bytes leftover after parsing attributes in process `syz-executor0'. QAT: Invalid ioctl netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. QAT: Invalid ioctl netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor1'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6734 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6738 comm=syz-executor1 device syz6 left promiscuous mode device syz6 entered promiscuous mode device syz6 left promiscuous mode device syz6 entered promiscuous mode raw_sendmsg: syz-executor0 forgot to set AF_INET. Fix it! Assertion failed! net/irda/ircomm/ircomm_core.c:ircomm_flow_request:475 self != NULL print_req_error: 156 callbacks suppressed print_req_error: I/O error, dev loop0, sector 0 print_req_error: I/O error, dev loop0, sector 0 buffer_io_error: 134 callbacks suppressed Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read Buffer I/O error on dev loop0, logical block 0, async page read device syz1 entered promiscuous mode netlink: 1 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor5'. device syz3 entered promiscuous mode QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl sctp: [Deprecated]: syz-executor1 (pid 7193) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor1 (pid 7193) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead netlink: 4 bytes leftover after parsing attributes in process `syz-executor7'. QAT: Invalid ioctl QAT: Invalid ioctl netlink: 4 bytes leftover after parsing attributes in process `syz-executor7'. 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.1, load rds_tcp or rds_rdma? device syz3 left promiscuous mode syz7: Invalid MTU 26 requested, hw min 68 netlink: 5 bytes leftover after parsing attributes in process `syz-executor1'. syz7: Invalid MTU 26 requested, hw min 68 QAT: Invalid ioctl QAT: Invalid ioctl device lo entered promiscuous mode device lo left promiscuous mode sctp: [Deprecated]: syz-executor4 (pid 7599) Use of int in maxseg socket option. Use struct sctp_assoc_value instead TCP: request_sock_TCP: Possible SYN flooding on port 20004. Sending cookies. Check SNMP counters. sctp: [Deprecated]: syz-executor4 (pid 7637) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor4 (pid 7700) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor4 (pid 7735) Use of int in maxseg socket option. Use struct sctp_assoc_value instead SELinux: unrecognized netlink message: protocol=0 nlmsg_type=47729 sclass=netlink_route_socket pig=7750 comm=syz-executor5 device syz4 entered promiscuous mode device syz4 left promiscuous mode device syz4 entered promiscuous mode kvm_hv_get_msr: 24 callbacks suppressed kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008f kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008e kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008d kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008c kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008b kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008a kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x40000089 kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x40000088 kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x40000087 kvm [7820]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x40000086 device lo entered promiscuous mode sctp: [Deprecated]: syz-executor5 (pid 7876) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead SELinux: unrecognized netlink message: protocol=6 nlmsg_type=3131 sclass=netlink_xfrm_socket pig=7913 comm=syz-executor6 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=3131 sclass=netlink_xfrm_socket pig=7918 comm=syz-executor6 sctp: [Deprecated]: syz-executor5 (pid 7876) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead BUG: sleeping function called from invalid context at ./include/linux/uaccess.h:71 in_atomic(): 1, irqs_disabled(): 0, pid: 7933, name: syz-executor5 INFO: lockdep is turned off. CPU: 0 PID: 7933 Comm: syz-executor5 Not tainted 4.13.0-rc6-next-20170825+ #9 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6022 __might_sleep+0x95/0x190 kernel/sched/core.c:5975 __might_fault+0xab/0x1d0 mm/memory.c:4483 __copy_from_user include/linux/uaccess.h:71 [inline] paging32_walk_addr_generic+0x427/0x1e10 arch/x86/kvm/paging_tmpl.h:369 paging32_walk_addr arch/x86/kvm/paging_tmpl.h:475 [inline] paging32_gva_to_gpa+0xa5/0x230 arch/x86/kvm/paging_tmpl.h:913 kvm_read_guest_virt_helper+0xd8/0x140 arch/x86/kvm/x86.c:4427 kvm_read_guest_virt_system+0x3c/0x50 arch/x86/kvm/x86.c:4494 segmented_read_std+0x10c/0x180 arch/x86/kvm/emulate.c:822 em_fxrstor+0x27b/0x410 arch/x86/kvm/emulate.c:4025 x86_emulate_insn+0x55d/0x3cf0 arch/x86/kvm/emulate.c:5483 x86_emulate_instruction+0x411/0x1ca0 arch/x86/kvm/x86.c:5726 kvm_mmu_page_fault+0x1b0/0x2f0 arch/x86/kvm/mmu.c:4932 handle_ept_violation+0x194/0x540 arch/x86/kvm/vmx.c:6509 vmx_handle_exit+0x24b/0x1a60 arch/x86/kvm/vmx.c:8830 vcpu_enter_guest arch/x86/kvm/x86.c:7040 [inline] vcpu_run arch/x86/kvm/x86.c:7102 [inline] kvm_arch_vcpu_ioctl_run+0x1d36/0x5a30 arch/x86/kvm/x86.c:7263 kvm_vcpu_ioctl+0x64c/0x1010 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2592 vfs_ioctl fs/ioctl.c:45 [inline] do_vfs_ioctl+0x1b1/0x1530 fs/ioctl.c:685 SYSC_ioctl fs/ioctl.c:700 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:691 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x446749 RSP: 002b:00007f2f94df6c08 EFLAGS: 00000282 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000019 RCX: 0000000000446749 RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000019 RBP: 000000002007a800 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000009120 R13: 000000002aaaaaab R14: 00000000006e7690 R15: 0000000000000019 kauditd_printk_skb: 1938 callbacks suppressed audit: type=1326 audit(1503866324.276:1960): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=8006 comm="syz-executor2" exe="/syz-executor2" sig=9 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0x0 audit: type=1326 audit(1503866324.339:1961): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=8006 comm="syz-executor2" exe="/syz-executor2" sig=9 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0x0 audit: type=1326 audit(1503866324.405:1962): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=8053 comm="syz-executor6" exe="/syz-executor6" sig=31 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0xffff0000 capability: warning: `syz-executor6' uses deprecated v2 capabilities in a way that may be insecure 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.1, load rds_tcp or rds_rdma? dccp_invalid_packet: pskb_may_pull failed dccp_invalid_packet: pskb_may_pull failed sock: process `syz-executor1' is using obsolete getsockopt SO_BSDCOMPAT sctp: [Deprecated]: syz-executor0 (pid 8362) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor0 (pid 8377) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead syz-executor5: vmalloc: allocation failure: 4833356120 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor5 cpuset=/ mems_allowed=0-1 CPU: 2 PID: 8419 Comm: syz-executor5 Tainted: G W 4.13.0-rc6-next-20170825+ #9 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 warn_alloc+0x1c2/0x2f0 mm/page_alloc.c:3254 __vmalloc_node_range+0x599/0x730 mm/vmalloc.c:1781 __vmalloc_node mm/vmalloc.c:1810 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1832 kvmalloc_node+0x82/0xd0 mm/util.c:406 kvmalloc include/linux/mm.h:529 [inline] kvmalloc_array include/linux/mm.h:545 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:774 translate_table+0x235/0x1610 net/ipv4/netfilter/ip_tables.c:692 do_replace net/ipv4/netfilter/ip_tables.c:1135 [inline] do_ipt_set_ctl+0x34b/0x5c0 net/ipv4/netfilter/ip_tables.c:1669 nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:114 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1251 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2800 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2970 SYSC_setsockopt net/socket.c:1852 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1831 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x446749 RSP: 002b:00007f2f94df6c08 EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000017 RCX: 0000000000446749 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000017 RBP: 0000000000000000 R08: 0000000000000056 R09: 0000000000000000 R10: 0000000020006000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2f94df79c0 R15: 00007f2f94df7700 Mem-Info: active_anon:117114 inactive_anon:42 isolated_anon:0 active_file:3612 inactive_file:4641 isolated_file:0 unevictable:3 dirty:242 writeback:0 unstable:0 slab_reclaimable:5953 slab_unreclaimable:37215 mapped:20976 shmem:186 pagetables:893 bounce:0 free:223772 free_pcp:942 free_cma:0 Node 0 active_anon:184204kB inactive_anon:92kB active_file:7424kB inactive_file:15348kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:38984kB dirty:540kB writeback:0kB shmem:120kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 34816kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no Node 1 active_anon:284252kB inactive_anon:76kB active_file:7024kB inactive_file:3216kB unevictable:12kB isolated(anon):0kB isolated(file):0kB mapped:44920kB dirty:428kB writeback:0kB shmem:624kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 26624kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no Node 0 DMA free:15908kB min:640kB low:800kB high:960kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 886 886 886 Node 0 DMA32 free:567964kB min:36536kB low:45668kB high:54800kB active_anon:184204kB inactive_anon:92kB active_file:7424kB inactive_file:15348kB unevictable:0kB writepending:540kB present:1032192kB managed:909748kB mlocked:0kB kernel_stack:2176kB pagetables:1452kB bounce:0kB free_pcp:2152kB local_pcp:664kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 Node 1 DMA32 free:311216kB min:30404kB low:38004kB high:45604kB active_anon:284252kB inactive_anon:76kB active_file:7024kB inactive_file:3216kB unevictable:12kB writepending:428kB present:1048560kB managed:755216kB mlocked:0kB kernel_stack:3392kB pagetables:2120kB bounce:0kB free_pcp:1712kB local_pcp:96kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 Node 0 DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 DMA32: 719*4kB (UME) 138*8kB (UME) 769*16kB (UME) 1058*32kB (UME) 623*64kB (UME) 222*128kB (UME) 66*256kB (UME) 7*512kB (UM) 3*1024kB (ME) 6*2048kB (UME) 101*4096kB (UM) = 567964kB Node 1 DMA32: 48*4kB (UME) 40*8kB (ME) 175*16kB (UME) 176*32kB (UME) 73*64kB (UME) 21*128kB (UM) 30*256kB (UME) 15*512kB (UME) 9*1024kB (UM) 2*2048kB (UM) 65*4096kB (UM) = 311216kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB Node 1 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 8438 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 524186 pages RAM 0 pages HighMem/MovableOnly 103968 pages reserved syz-executor5: vmalloc: allocation failure: 4833356120 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor5 cpuset=/ mems_allowed=0-1 CPU: 1 PID: 8427 Comm: syz-executor5 Tainted: G W 4.13.0-rc6-next-20170825+ #9 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 warn_alloc+0x1c2/0x2f0 mm/page_alloc.c:3254 __vmalloc_node_range+0x599/0x730 mm/vmalloc.c:1781 __vmalloc_node mm/vmalloc.c:1810 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1832 kvmalloc_node+0x82/0xd0 mm/util.c:406 kvmalloc include/linux/mm.h:529 [inline] kvmalloc_array include/linux/mm.h:545 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:774 translate_table+0x235/0x1610 net/ipv4/netfilter/ip_tables.c:692 do_replace net/ipv4/netfilter/ip_tables.c:1135 [inline] do_ipt_set_ctl+0x34b/0x5c0 net/ipv4/netfilter/ip_tables.c:1669 nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:114 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1251 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2800 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2970 SYSC_setsockopt net/socket.c:1852 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1831 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x446749 RSP: 002b:00007f2f94dd5c08 EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000017 RCX: 0000000000446749 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000017 RBP: 0000000000a5f870 R08: 0000000000000056 R09: 0000000000000000 R10: 0000000020006000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2f94dd69c0 R15: 00007f2f94dd6700 IPv6: NLM_F_REPLACE set, but no existing node found! IPv6: NLM_F_REPLACE set, but no existing node found! QAT: Invalid ioctl QAT: Invalid ioctl rpcbind: RPC call returned error 22 rpcbind: RPC call returned error 22 device  entered promiscuous mode device  left promiscuous mode device  entered promiscuous mode device  left promiscuous mode dccp_close: ABORT with 9617 bytes unread SELinux: unrecognized netlink message: protocol=6 nlmsg_type=65535 sclass=netlink_xfrm_socket pig=8760 comm=syz-executor2 nla_parse: 23 callbacks suppressed netlink: 24 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 60 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 4052 bytes leftover after parsing attributes in process `syz-executor2'. SELinux: unrecognized netlink message: protocol=6 nlmsg_type=65535 sclass=netlink_xfrm_socket pig=8778 comm=syz-executor2 netlink: 24 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 60 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 4052 bytes leftover after parsing attributes in process `syz-executor2'. audit: type=1326 audit(1503866326.694:1963): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=8788 comm="syz-executor2" exe="/syz-executor2" sig=31 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0xffff0000 netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. kvm: vcpu 1: requested 68374 ns lapic timer period limited to 500000 ns netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x4000008f data 0x0 netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. device syz3 entered promiscuous mode kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x4000008e data 0x0 kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x4000008d data 0x0 device syz3 left promiscuous mode kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x4000008c data 0x0 kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x4000008b data 0x0 kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x4000008a data 0x0 kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x40000089 data 0x0 kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x40000088 data 0x0 kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x40000087 data 0x0 kvm [8838]: vcpu2, guest rIP: 0x9115 Hyper-V uhandled wrmsr: 0x40000086 data 0x0 device syz3 entered promiscuous mode device syz3 left promiscuous mode TCP: request_sock_TCP: Possible SYN flooding on port 20016. Sending cookies. Check SNMP counters. TCP: tcp_parse_options: Illegal window scaling value 205 > 14 received TCP: tcp_parse_options: Illegal window scaling value 205 > 14 received device syz6 left promiscuous mode QAT: Invalid ioctl QAT: Invalid ioctl TCP: request_sock_TCP: Possible SYN flooding on port 20004. Sending cookies. Check SNMP counters. QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1 sclass=netlink_route_socket pig=9095 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=9103 comm=syz-executor5 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl audit: type=1326 audit(1503866327.443:1964): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9141 comm="syz-executor1" exe="/syz-executor1" sig=9 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0x0 audit: type=1326 audit(1503866327.502:1965): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9141 comm="syz-executor1" exe="/syz-executor1" sig=9 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0x0 QAT: Invalid ioctl QAT: Invalid ioctl SELinux: unrecognized netlink message: protocol=6 nlmsg_type=65535 sclass=netlink_xfrm_socket pig=9196 comm=syz-executor7 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=65535 sclass=netlink_xfrm_socket pig=9196 comm=syz-executor7 sctp: [Deprecated]: syz-executor7 (pid 9252) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor7 (pid 9252) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead 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.1, load rds_tcp or rds_rdma? SELinux: unrecognized netlink message: protocol=0 nlmsg_type=14606 sclass=netlink_route_socket pig=9392 comm=syz-executor7 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=14606 sclass=netlink_route_socket pig=9402 comm=syz-executor7 PF_BRIDGE: RTM_NEWNEIGH with invalid address PF_BRIDGE: RTM_NEWNEIGH with invalid address audit: type=1326 audit(1503866328.118:1966): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9519 comm="syz-executor0" exe="/syz-executor0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0xffff0000 audit: type=1326 audit(1503866328.204:1967): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9519 comm="syz-executor0" exe="/syz-executor0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0xffff0000 sctp: [Deprecated]: syz-executor5 (pid 9600) Use of int in max_burst socket option. Use struct sctp_assoc_value instead kvm: pic: non byte read picdev_write: 7 callbacks suppressed kvm: pic: non byte write kvm: pic: non byte write kvm: pic: non byte write kvm: pic: non byte write kvm: pic: non byte write kvm: pic: non byte write kvm: pic: non byte write kvm: pic: non byte write kvm: pic: non byte write kvm: pic: level sensitive irq not supported kvm: pic: non byte write kvm: pic: level sensitive irq not supported kvm: pic: single mode not supported kvm: pic: single mode not supported kvm: pic: level sensitive irq not supported kvm: pic: single mode not supported kvm: pic: level sensitive irq not supported QAT: Invalid ioctl sctp: [Deprecated]: syz-executor5 (pid 9600) Use of int in max_burst socket option. Use struct sctp_assoc_value instead QAT: Invalid ioctl IPv6: NLM_F_REPLACE set, but no existing node found! IPv6: NLM_F_REPLACE set, but no existing node found! audit: type=1326 audit(1503866328.388:1968): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9702 comm="syz-executor7" exe="/syz-executor7" sig=31 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0x0 audit: type=1326 audit(1503866328.439:1969): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9702 comm="syz-executor7" exe="/syz-executor7" sig=31 arch=c000003e syscall=202 compat=0 ip=0x446749 code=0x0 bond0: port 1(syz3) entered blocking state bond0: port 1(syz3) entered disabled state device syz3 entered promiscuous mode sctp: [Deprecated]: syz-executor1 (pid 9758) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor1 (pid 9758) Use of int in maxseg socket option. Use struct sctp_assoc_value instead dccp_invalid_packet: invalid packet type sctp: [Deprecated]: syz-executor1 (pid 9776) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor1 (pid 9799) Use of int in maxseg socket option. Use struct sctp_assoc_value instead QAT: Invalid ioctl QAT: Invalid ioctl sd 0:0:0:0: tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE sd 0:0:0:0: tag#0 Sense Key : No Sense [current] sd 0:0:0:0: tag#0 Add. Sense: No additional sense information sd 0:0:0:0: tag#0 CDB: Request Sense 03 00 00 00 71 75 sd 0:0:0:0: tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE sd 0:0:0:0: tag#0 Sense Key : No Sense [current] sd 0:0:0:0: tag#0 Add. Sense: No additional sense information sd 0:0:0:0: tag#0 CDB: Request Sense 03 00 00 00 71 75 device lo entered promiscuous mode 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.1, load rds_tcp or rds_rdma? QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl device syz1.0 entered promiscuous mode device syz1.0 left promiscuous mode selinux_nlmsg_perm: 5 callbacks suppressed SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=10024 comm=syz-executor2 handle_userfault: 3 callbacks suppressed FAULT_FLAG_ALLOW_RETRY missing 31 CPU: 0 PID: 10261 Comm: syz-executor6 Tainted: G W 4.13.0-rc6-next-20170825+ #9 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 handle_userfault+0x11ec/0x2390 fs/userfaultfd.c:427 do_anonymous_page mm/memory.c:3135 [inline] handle_pte_fault mm/memory.c:3908 [inline] __handle_mm_fault+0x3823/0x39c0 mm/memory.c:4034 handle_mm_fault+0x3bb/0x860 mm/memory.c:4071 __do_page_fault+0x4f6/0xb60 arch/x86/mm/fault.c:1445 trace_do_page_fault+0x141/0x730 arch/x86/mm/fault.c:1538 do_async_page_fault+0x72/0xc0 arch/x86/kernel/kvm.c:266 async_page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1093 RIP: 0010:copy_user_generic_string+0x2c/0x40 arch/x86/lib/copy_user_64.S:143 RSP: 0018:ffff88003da47e38 EFLAGS: 00010246 RAX: ffffed0007b48fd5 RBX: 0000000000000008 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffff88003da47ea0 RDI: 0000000020002000 RBP: ffff88003da47e68 R08: ffffed0007b48fd5 R09: ffffed0007b48fd5 R10: 0000000000000001 R11: ffffed0007b48fd4 R12: 0000000020002000 R13: ffff88003da47ea0 R14: 00007ffffffff000 R15: 0000000020002008 copy_to_user include/linux/uaccess.h:154 [inline] SYSC_pipe2 fs/pipe.c:846 [inline] SyS_pipe2 fs/pipe.c:838 [inline] SYSC_pipe fs/pipe.c:862 [inline] SyS_pipe+0xfd/0x2e0 fs/pipe.c:860 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x446749 RSP: 002b:00007fb229fe4c08 EFLAGS: 00000292 ORIG_RAX: 0000000000000016 RAX: ffffffffffffffda RBX: 0000000020002000 RCX: 0000000000446749 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020002000 RBP: 00000000007080a8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 00000000ffffffff R13: 0000000000002dc0 R14: 00000000006e4e80 R15: 00000000c020aa00 TCP: request_sock_TCP: Possible SYN flooding on port 20016. Sending cookies. Check SNMP counters.