audit: type=1400 audit(1584103670.848:107): avc: denied { map } for pid=7112 comm="syz-executor.2" path="/root/syzkaller-testdir502458089/syzkaller.wxBDsF/1265/file0/file0" dev="loop2" ino=175 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dosfs_t:s0 tclass=file permissive=1 attempt to access beyond end of device general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7120 Comm: syz-executor.1 Not tainted 4.19.109-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:nfnetlink_parse_nat net/netfilter/nf_nat_core.c:847 [inline] RIP: 0010:nfnetlink_parse_nat_setup+0x21a/0x410 net/netfilter/nf_nat_core.c:884 Code: c3 89 c6 e8 a8 8a 95 fb 85 db 0f 88 72 01 00 00 e8 2b 89 95 fb 49 8d 7e 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d2 01 00 00 48 8b 7c 24 08 4c 89 fe 41 ff 56 38 RSP: 0018:ffff88804f7b71e0 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900080bf000 audit: type=1804 audit(1584103670.848:108): pid=7117 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir502458089/syzkaller.wxBDsF/1265/file0/file0" dev="loop2" ino=175 res=1 RDX: 0000000000000007 RSI: ffffffff85d219a5 RDI: 000000000000003d RBP: ffff888085f1f640 R08: ffff888047474280 R09: ffff88804f7b7260 R10: ffffed1009ef6e51 R11: ffff88804f7b728f R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000005 R15: ffff88804f7b7210 FS: 00007ff0b0884700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000540 CR3: 000000004377f000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ctnetlink_parse_nat_setup+0xb6/0x640 net/netfilter/nf_conntrack_netlink.c:1521 audit: type=1800 audit(1584103671.018:109): pid=7131 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.4" name="bus" dev="sda1" ino=16674 res=0 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1596 [inline] ctnetlink_create_conntrack+0x501/0x1280 net/netfilter/nf_conntrack_netlink.c:1984 ctnetlink_new_conntrack+0x4f5/0xde0 net/netfilter/nf_conntrack_netlink.c:2114 nfnetlink_rcv_msg+0xc9e/0xf4b net/netfilter/nfnetlink.c:228 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455 nfnetlink_rcv+0x1b2/0x420 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:632 ___sys_sendmsg+0x803/0x920 net/socket.c:2115 __sys_sendmsg+0xec/0x1b0 net/socket.c:2153 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c799 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ff0b0883c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff0b08846d4 RCX: 000000000045c799 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000004 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000914 R14: 00000000004cba7e R15: 000000000076bf0c Modules linked in: loop2: rw=0, want=78, limit=63 Buffer I/O error on dev loop2, logical block 77, async page read attempt to access beyond end of device loop2: rw=0, want=78, limit=63 Buffer I/O error on dev loop2, logical block 77, async page read attempt to access beyond end of device loop2: rw=0, want=78, limit=63 Buffer I/O error on dev loop2, logical block 77, async page read attempt to access beyond end of device loop2: rw=0, want=78, limit=63 Buffer I/O error on dev loop2, logical block 77, async page read attempt to access beyond end of device loop2: rw=0, want=78, limit=63 Buffer I/O error on dev loop2, logical block 77, async page read attempt to access beyond end of device loop2: rw=0, want=78, limit=63 Buffer I/O error on dev loop2, logical block 77, async page read attempt to access beyond end of device loop2: rw=0, want=78, limit=63 Buffer I/O error on dev loop2, logical block 77, async page read attempt to access beyond end of device loop2: rw=0, want=78, limit=63 ---[ end trace f5641e31b66b8551 ]--- Buffer I/O error on dev loop2, logical block 77, async page read RIP: 0010:nfnetlink_parse_nat net/netfilter/nf_nat_core.c:847 [inline] RIP: 0010:nfnetlink_parse_nat_setup+0x21a/0x410 net/netfilter/nf_nat_core.c:884 attempt to access beyond end of device Code: c3 89 c6 e8 a8 8a 95 fb 85 db 0f 88 72 01 00 00 e8 2b 89 95 fb 49 8d 7e 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d2 01 00 00 48 8b 7c 24 08 4c 89 fe 41 ff 56 38 loop2: rw=0, want=78, limit=63 RSP: 0018:ffff88804f7b71e0 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900080bf000 attempt to access beyond end of device RDX: 0000000000000007 RSI: ffffffff85d219a5 RDI: 000000000000003d RBP: ffff888085f1f640 R08: ffff888047474280 R09: ffff88804f7b7260 loop2: rw=0, want=78, limit=63 R10: ffffed1009ef6e51 R11: ffff88804f7b728f R12: 0000000000000000 attempt to access beyond end of device loop2: rw=0, want=78, limit=63 attempt to access beyond end of device R13: 0000000000000000 R14: 0000000000000005 R15: ffff88804f7b7210 loop2: rw=0, want=78, limit=63 attempt to access beyond end of device loop2: rw=0, want=78, limit=63 attempt to access beyond end of device FS: 00007ff0b0884700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 loop2: rw=0, want=78, limit=63 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 attempt to access beyond end of device CR2: 00007ff0b0841db8 CR3: 000000004377f000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 loop2: rw=0, want=78, limit=63 attempt to access beyond end of device loop2: rw=0, want=78, limit=63 attempt to access beyond end of device loop2: rw=0, want=78, limit=63 attempt to access beyond end of device loop2: rw=0, want=78, limit=63 attempt to access beyond end of device loop2: rw=0, want=78, limit=63 attempt to access beyond end of device