device syz0 entered promiscuous mode

======================================================
WARNING: possible circular locking dependency detected
4.15.0+ #297 Not tainted
------------------------------------------------------
syz-executor4/6000 is trying to acquire lock:
 (rtnl_mutex){+.+.}, at: [<0000000084856dcc>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74

but task is already holding lock:
 (&xt[i].mutex){+.+.}, at: [<00000000c77c6a29>] xt_find_table_lock+0x3e/0x3e0 net/netfilter/x_tables.c:1041

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&xt[i].mutex){+.+.}:
       __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
       xt_find_table_lock+0x3e/0x3e0 net/netfilter/x_tables.c:1041
       xt_request_find_table_lock+0x28/0xc0 net/netfilter/x_tables.c:1088
       get_info+0x154/0x690 net/ipv6/netfilter/ip6_tables.c:989
       do_ipt_get_ctl+0x159/0xac0 net/ipv4/netfilter/ip_tables.c:1699
       nf_sockopt net/netfilter/nf_sockopt.c:104 [inline]
       nf_getsockopt+0x6a/0xc0 net/netfilter/nf_sockopt.c:122
       ip_getsockopt+0x15c/0x220 net/ipv4/ip_sockglue.c:1571
       tcp_getsockopt+0x82/0xd0 net/ipv4/tcp.c:3359
       sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2934
       SYSC_getsockopt net/socket.c:1880 [inline]
       SyS_getsockopt+0x178/0x340 net/socket.c:1862
       do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
       entry_SYSCALL_64_after_hwframe+0x26/0x9b

-> #1 (sk_lock-AF_INET){+.+.}:
       lock_sock_nested+0xc2/0x110 net/core/sock.c:2777
       lock_sock include/net/sock.h:1463 [inline]
       do_ip_setsockopt.isra.12+0x1d9/0x3210 net/ipv4/ip_sockglue.c:646
       ip_setsockopt+0x3a/0xa0 net/ipv4/ip_sockglue.c:1252
       udp_setsockopt+0x45/0x80 net/ipv4/udp.c:2401
       sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2975
       SYSC_setsockopt net/socket.c:1849 [inline]
       SyS_setsockopt+0x189/0x360 net/socket.c:1828
       do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
       entry_SYSCALL_64_after_hwframe+0x26/0x9b

-> #0 (rtnl_mutex){+.+.}:
       lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920
       __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
       rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74
       unregister_netdevice_notifier+0x91/0x4e0 net/core/dev.c:1673
       tee_tg_destroy+0x61/0xc0 net/netfilter/xt_TEE.c:123
       cleanup_entry+0x218/0x350 net/ipv4/netfilter/ip_tables.c:654
       __do_replace+0x79d/0xa50 net/ipv4/netfilter/ip_tables.c:1089
       do_replace net/ipv4/netfilter/ip_tables.c:1145 [inline]
       do_ipt_set_ctl+0x40f/0x5f0 net/ipv4/netfilter/ip_tables.c:1675
       nf_sockopt net/netfilter/nf_sockopt.c:106 [inline]
       nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115
       ip_setsockopt+0x97/0xa0 net/ipv4/ip_sockglue.c:1259
       tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2905
       sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2975
       SYSC_setsockopt net/socket.c:1849 [inline]
       SyS_setsockopt+0x189/0x360 net/socket.c:1828
       do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
       entry_SYSCALL_64_after_hwframe+0x26/0x9b

other info that might help us debug this:

Chain exists of:
  rtnl_mutex --> sk_lock-AF_INET --> &xt[i].mutex

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&xt[i].mutex);
                               lock(sk_lock-AF_INET);
                               lock(&xt[i].mutex);
  lock(rtnl_mutex);

 *** DEADLOCK ***

1 lock held by syz-executor4/6000:
 #0:  (&xt[i].mutex){+.+.}, at: [<00000000c77c6a29>] xt_find_table_lock+0x3e/0x3e0 net/netfilter/x_tables.c:1041

stack backtrace:
CPU: 1 PID: 6000 Comm: syz-executor4 Not tainted 4.15.0+ #297
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.isra.38+0x2cd/0x2dc kernel/locking/lockdep.c:1223
 check_prev_add kernel/locking/lockdep.c:1863 [inline]
 check_prevs_add kernel/locking/lockdep.c:1976 [inline]
 validate_chain kernel/locking/lockdep.c:2417 [inline]
 __lock_acquire+0x30a8/0x3e00 kernel/locking/lockdep.c:3431
 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920
 __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
 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74
 unregister_netdevice_notifier+0x91/0x4e0 net/core/dev.c:1673
 tee_tg_destroy+0x61/0xc0 net/netfilter/xt_TEE.c:123
 cleanup_entry+0x218/0x350 net/ipv4/netfilter/ip_tables.c:654
 __do_replace+0x79d/0xa50 net/ipv4/netfilter/ip_tables.c:1089
 do_replace net/ipv4/netfilter/ip_tables.c:1145 [inline]
 do_ipt_set_ctl+0x40f/0x5f0 net/ipv4/netfilter/ip_tables.c:1675
 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline]
 nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115
 ip_setsockopt+0x97/0xa0 net/ipv4/ip_sockglue.c:1259
 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2905
 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2975
 SYSC_setsockopt net/socket.c:1849 [inline]
 SyS_setsockopt+0x189/0x360 net/socket.c:1828
 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x26/0x9b
RIP: 0033:0x453299
RSP: 002b:00007f8b96138c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299
RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000014
RBP: 00000000000004d4 R08: 00000000000002e0 R09: 0000000000000000
R10: 0000000020777825 R11: 0000000000000212 R12: 00000000006f6480
R13: 00000000ffffffff R14: 00007f8b961396d4 R15: 0000000000000000
device syz0 left promiscuous mode
kauditd_printk_skb: 12 callbacks suppressed
audit: type=1400 audit(1517834941.266:37): avc:  denied  { prog_run } for  pid=6021 comm="syz-executor2" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1
audit: type=1400 audit(1517834941.585:38): avc:  denied  { map } for  pid=6076 comm="syz-executor4" path=2F6D656D66643A706F73FB202864656C6574656429 dev="tmpfs" ino=15897 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:tmpfs_t:s0 tclass=file permissive=1
QAT: Invalid ioctl
could not allocate digest TFM handle e
X��7i��犸P{�qv
netlink: 'syz-executor3': attribute type 16 has an invalid length.
netlink: 'syz-executor3': attribute type 16 has an invalid length.
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 1 PID: 6185 Comm: syz-executor1 Not tainted 4.15.0+ #297
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+0xbd9/0x2500 fs/userfaultfd.c:430
 do_anonymous_page mm/memory.c:3153 [inline]
 handle_pte_fault mm/memory.c:3967 [inline]
 __handle_mm_fault+0x32a3/0x3ce0 mm/memory.c:4093
 handle_mm_fault+0x38f/0x930 mm/memory.c:4130
 __do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1426
 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1501
 page_fault+0x2c/0x60 arch/x86/entry/entry_64.S:1148
RIP: 0010:SYSC_pselect6 arch/x86/include/asm/smap.h:58 [inline]
RIP: 0010:SyS_pselect6+0x127/0x650 fs/select.c:756
RSP: 0018:ffff8801d2a47c78 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff1003a548f97 RCX: ffffffff81b7431f
RDX: 0000000000000008 RSI: ffffc90003d5e000 RDI: ffff8801ae33d998
RBP: ffff8801d2a47e00 R08: 0000000020005000 R09: 0000000020011000
R10: 1ffff1003a548ff9 R11: 0000000000000212 R12: ffff8801d2a47dd8
R13: 0000000020011000 R14: ffff8801ae33c5c0 R15: 0000000020005000
 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x26/0x9b
RIP: 0033:0x453299
RSP: 002b:00007f137eb53c58 EFLAGS: 00000212 ORIG_RAX: 000000000000010e
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299
RDX: 0000000020005fc0 RSI: 0000000020000fc0 RDI: 0000000000000040
RBP: 000000000000044d R08: 0000000020005000 R09: 0000000020011000
R10: 0000000020002000 R11: 0000000000000212 R12: 00000000006f57d8
R13: 00000000ffffffff R14: 00007f137eb546d4 R15: 0000000000000000
audit: type=1400 audit(1517834942.456:39): avc:  denied  { name_bind } for  pid=6201 comm="syz-executor1" src=20007 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:port_t:s0 tclass=dccp_socket permissive=1
binder: 6253:6254 ioctl 400445a0 2081effc returned -22
binder: send failed reply for transaction 14 to 6253:6254
audit: type=1400 audit(1517834942.733:40): avc:  denied  { map } for  pid=6271 comm="syz-executor2" path="/dev/sg0" dev="devtmpfs" ino=9073 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:scsi_generic_device_t:s0 tclass=chr_file permissive=1
binder: 6253:6254 BC_INCREFS_DONE u00000000204edf8a no match
binder: 6253:6254 BC_DEAD_BINDER_DONE 0000000000000003 not found
binder: 6253:6254 BC_INCREFS_DONE u00000000204edf8a no match
binder: 6253:6254 ioctl 400445a0 2081effc returned -22
binder: 6253:6302 transaction failed 29189/-22, size 40-8 line 2842
binder: 6253:6254 BC_INCREFS_DONE u0000000000000000 no match
binder: undelivered TRANSACTION_ERROR: 29189
binder: undelivered TRANSACTION_ERROR: 29189
xt_limit: Overflow, try lower: 2147483649/4
netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'.
netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'.
xt_limit: Overflow, try lower: 2147483649/4
rfkill: input handler disabled
audit: type=1326 audit(1517834943.100:41): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6363 comm="syz-executor5" exe="/root/syz-executor5" sig=9 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x0
audit: type=1400 audit(1517834943.137:42): avc:  denied  { read } for  pid=6380 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1
rfkill: input handler enabled
audit: type=1400 audit(1517834943.173:43): avc:  denied  { ioctl } for  pid=6380 comm="syz-executor0" path="socket:[16173]" dev="sockfs" ino=16173 ioctlcmd=0x89a0 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1
audit: type=1326 audit(1517834943.229:44): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6363 comm="syz-executor5" exe="/root/syz-executor5" sig=9 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x0
audit: type=1400 audit(1517834943.283:45): avc:  denied  { map } for  pid=6411 comm="syz-executor0" path="/dev/ptmx" dev="devtmpfs" ino=9053 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ptmx_t:s0 tclass=chr_file permissive=1
TCP: request_sock_TCP: Possible SYN flooding on port 20026. Sending cookies.  Check SNMP counters.
*** Guest State ***
CR0: actual=0x0000000000000031, shadow=0x0000000060000011, gh_mask=fffffffffffffff7
CR4: actual=0x0000000000402058, shadow=0x0000000000400008, gh_mask=ffffffffffffe871
CR3 = 0x00000000fffbc000
RSP = 0x0000000000000f80  RIP = 0x0000000000000000
RFLAGS=0x00000002         DR7 = 0x0000000000000400
Sysenter RSP=0000000000000f80 CS:RIP=0030:0000000000002810
CS:   sel=0x0030, attr=0x0409b, limit=0x000fffff, base=0x0000000000000000
DS:   sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000
SS:   sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000
ES:   sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000
FS:   sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000
GS:   sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000
GDTR:                           limit=0x000007ff, base=0x0000000000001000
LDTR: sel=0x0008, attr=0x04082, limit=0x000007ff, base=0x0000000000001800
IDTR:                           limit=0x000001ff, base=0x0000000000003800
TR:   sel=0x0000, attr=0x0008b, limit=0x0000ffff, base=0x0000000000000000
EFER =     0x0000000000000001  PAT = 0x0007040600070406
DebugCtl = 0x0000000000000000  DebugExceptions = 0x0000000000000000
Interruptibility = 00000008  ActivityState = 00000000
*** Host State ***
RIP = 0xffffffff811c99dc  RSP = 0xffff8801ace5f3b8
CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040
FSBase=00007f8b96117700 GSBase=ffff8801db400000 TRBase=fffffe0000003000
GDTBase=fffffe0000001000 IDTBase=fffffe0000000000
CR0=0000000080050033 CR3=00000001d817f002 CR4=00000000001626f0
Sysenter RSP=fffffe0000002200 CS:RIP=0010:ffffffff85a019f0
EFER = 0x0000000000000d01  PAT = 0x0000000000000000
*** Control State ***
PinBased=0000003f CPUBased=b699edfa SecondaryExec=000000ca
EntryControls=0000d1ff ExitControls=0023efff
ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000
VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000
VMExit: intr_info=00000000 errcode=00000000 ilen=00000002
        reason=80000021 qualification=0000000000000000
IDTVectoring: info=00000000 errcode=00000000
TSC Offset = 0xffffffe55e6e8992
EPT pointer = 0x00000001ab9a101e
RDS: rds_bind could not find a transport for 172.20.0.12, load rds_tcp or rds_rdma?
RDS: rds_bind could not find a transport for 172.20.0.12, load rds_tcp or rds_rdma?
binder_alloc: binder_alloc_mmap_handler: 6986 20229000-2022a000 already mapped failed -16
binder: 6986:6994 got transaction with invalid offset (1, min 0 max 24) or object.
mmap: syz-executor4 (6996) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt.
binder: 6986:6994 transaction failed 29201/-22, size 24-16 line 3020
binder_alloc: binder_alloc_mmap_handler: 6986 20000000-20002000 already mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6986:6994 ioctl 40046207 0 returned -16
binder: undelivered TRANSACTION_ERROR: 29201
irq bypass consumer (token 000000005385568c) registration fails: -16
ion_ioctl: ioctl validate failed
rfkill: input handler disabled
rfkill: input handler enabled
QAT: Invalid ioctl
kauditd_printk_skb: 45 callbacks suppressed
audit: type=1326 audit(1517834946.680:91): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7265 comm="syz-executor1" exe="/root/syz-executor1" sig=9 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x0
QAT: Invalid ioctl
audit: type=1326 audit(1517834946.726:92): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7265 comm="syz-executor1" exe="/root/syz-executor1" sig=9 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x0
Bearer <> rejected, not supported in standalone mode
Bearer <> rejected, not supported in standalone mode
Bearer <> rejected, not supported in standalone mode
Bearer <> rejected, not supported in standalone mode
Bearer <> rejected, not supported in standalone mode
Bearer <> rejected, not supported in standalone mode
Bearer <> rejected, not supported in standalone mode
Bearer <> rejected, not supported in standalone mode
netlink: 'syz-executor1': attribute type 21 has an invalid length.
netlink: 'syz-executor1': attribute type 21 has an invalid length.
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 1 PID: 7541 Comm: syz-executor7 Not tainted 4.15.0+ #297
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+0xbd9/0x2500 fs/userfaultfd.c:430
 do_anonymous_page mm/memory.c:3153 [inline]
 handle_pte_fault mm/memory.c:3967 [inline]
 __handle_mm_fault+0x32a3/0x3ce0 mm/memory.c:4093
 handle_mm_fault+0x38f/0x930 mm/memory.c:4130
 __do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1426
 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1501
 page_fault+0x2c/0x60 arch/x86/entry/entry_64.S:1148
RIP: 0010:fault_in_pages_readable arch/x86/include/asm/smap.h:58 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1aa/0x420 lib/iov_iter.c:421
RSP: 0018:ffff8801d3b4f7e0 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff825be591
RDX: 0000000000000103 RSI: ffffc90001916000 RDI: ffff8801d3b4fbe0
RBP: ffff8801d3b4f8c0 R08: 0000000000000000 R09: 1ffff1003a769ea8
R10: ffff8801d3b4f710 R11: ffff8801adf726d0 R12: 1ffff1003a769eff
R13: ffff8801d3b4f898 R14: 0000000000000000 R15: ffff8801d3b4fbd8
 generic_perform_write+0x200/0x600 mm/filemap.c:3128
 __generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3263
 generic_file_write_iter+0x399/0x790 mm/filemap.c:3291
 call_write_iter include/linux/fs.h:1781 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x684/0x970 fs/read_write.c:482
 vfs_write+0x189/0x510 fs/read_write.c:544
 SYSC_write fs/read_write.c:589 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:581
 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x26/0x9b
RIP: 0033:0x453299
RSP: 002b:00007f3053f4ac58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299
RDX: 0000000000000030 RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 000000000000065e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f8970
R13: 00000000ffffffff R14: 00007f3053f4b6d4 R15: 0000000000000000
audit: type=1400 audit(1517834948.160:93): avc:  denied  { create } for  pid=7567 comm="syz-executor5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_iscsi_socket permissive=1
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 1 PID: 7583 Comm: syz-executor7 Not tainted 4.15.0+ #297
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+0xbd9/0x2500 fs/userfaultfd.c:430
 do_anonymous_page mm/memory.c:3153 [inline]
 handle_pte_fault mm/memory.c:3967 [inline]
 __handle_mm_fault+0x32a3/0x3ce0 mm/memory.c:4093
 handle_mm_fault+0x38f/0x930 mm/memory.c:4130
 __do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1426
 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1501
 page_fault+0x2c/0x60 arch/x86/entry/entry_64.S:1148
RIP: 0010:fault_in_pages_readable arch/x86/include/asm/smap.h:58 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1aa/0x420 lib/iov_iter.c:421
RSP: 0018:ffff8801c50d77e0 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff825be591
RDX: 0000000000000103 RSI: ffffc90001916000 RDI: ffff8801c50d7be0
RBP: ffff8801c50d78c0 R08: 0000000000000000 R09: 1ffff10038a1aea8
R10: ffff8801c50d7710 R11: ffff8801ce6771a0 R12: 1ffff10038a1aeff
R13: ffff8801c50d7898 R14: 0000000000000000 R15: ffff8801c50d7bd8
 generic_perform_write+0x200/0x600 mm/filemap.c:3128
 __generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3263
 generic_file_write_iter+0x399/0x790 mm/filemap.c:3291
 call_write_iter include/linux/fs.h:1781 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x684/0x970 fs/read_write.c:482
 vfs_write+0x189/0x510 fs/read_write.c:544
 SYSC_write fs/read_write.c:589 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:581
 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x26/0x9b
RIP: 0033:0x453299
RSP: 002b:00007f3053f4ac58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299
RDX: 0000000000000030 RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 000000000000065e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f8970
R13: 00000000ffffffff R14: 00007f3053f4b6d4 R15: 0000000000000000
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 1 PID: 7623 Comm: syz-executor7 Not tainted 4.15.0+ #297
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+0xbd9/0x2500 fs/userfaultfd.c:430
 do_anonymous_page mm/memory.c:3153 [inline]
 handle_pte_fault mm/memory.c:3967 [inline]
 __handle_mm_fault+0x32a3/0x3ce0 mm/memory.c:4093
 handle_mm_fault+0x38f/0x930 mm/memory.c:4130
 __do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1426
 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1501
 page_fault+0x2c/0x60 arch/x86/entry/entry_64.S:1148
RIP: 0010:fault_in_pages_readable arch/x86/include/asm/smap.h:58 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1aa/0x420 lib/iov_iter.c:421
RSP: 0018:ffff8801d3c777e0 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff825be591
RDX: 00000000000000c6 RSI: ffffc90001916000 RDI: ffff8801d3c77be0
RBP: ffff8801d3c778c0 R08: 1ffff1003969e40a R09: 1ffff1003a78eef1
R10: ffff8801d3c77710 R11: ffffffff8814c0c8 R12: 1ffff1003a78eeff
R13: ffff8801d3c77898 R14: 0000000000000000 R15: ffff8801d3c77bd8
 generic_perform_write+0x200/0x600 mm/filemap.c:3128
 __generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3263
 generic_file_write_iter+0x399/0x790 mm/filemap.c:3291
 call_write_iter include/linux/fs.h:1781 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x684/0x970 fs/read_write.c:482
 vfs_write+0x189/0x510 fs/read_write.c:544
 SYSC_write fs/read_write.c:589 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:581
 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x26/0x9b
RIP: 0033:0x453299
RSP: 002b:00007f3053f4ac58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299
RDX: 0000000000000030 RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 000000000000065e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f8970
R13: 00000000ffffffff R14: 00007f3053f4b6d4 R15: 0000000000000000
audit: type=1400 audit(1517834949.426:94): avc:  denied  { map } for  pid=7643 comm="syz-executor0" path="/selinux/policy" dev="selinuxfs" ino=20 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:security_t:s0 tclass=file permissive=1
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=35 sclass=netlink_route_socket pig=7668 comm=syz-executor4
binder: 7664:7674 got transaction with invalid handle, 0
hrtimer: interrupt took 34129 ns
binder: 7664:7674 transaction failed 29201/-22, size 56-8 line 3049
binder_alloc: binder_alloc_mmap_handler: 7664 20000000-20002000 already mapped failed -16
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=35 sclass=netlink_route_socket pig=7682 comm=syz-executor4
binder: BINDER_SET_CONTEXT_MGR already set
binder_alloc: 7664: binder_alloc_buf, no vma
binder: 7664:7688 transaction failed 29189/-3, size 56-8 line 2957
binder: 7664:7674 ioctl 40046207 0 returned -16
binder: undelivered TRANSACTION_ERROR: 29189
binder: undelivered TRANSACTION_ERROR: 29201
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=35 sclass=netlink_route_socket pig=7703 comm=syz-executor4
audit: type=1400 audit(1517834949.889:95): avc:  denied  { create } for  pid=7768 comm="syz-executor6" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_rdma_socket permissive=1
ptrace attach of "/root/syz-executor0"[4230] was attempted by "/root/syz-executor0"[7870]
ptrace attach of "/root/syz-executor0"[4230] was attempted by "/root/syz-executor0"[7879]