should_fail_alloc_page mm/page_alloc.c:3065 [inline] prepare_alloc_pages mm/page_alloc.c:4334 [inline] __alloc_pages_nodemask+0x365/0xd10 mm/page_alloc.c:4372 kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN CPU: 1 PID: 28640 Comm: syz-executor3 Not tainted 4.18.0-next-20180813+ #37 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:73 [inline] RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:98 [inline] RIP: 0010:scatterwalk_copychunks+0x3ae/0x500 crypto/scatterwalk.c:55 Code: 4c 89 f8 48 c1 e8 03 80 3c 08 00 0f 85 2b 01 00 00 49 8d 7c 24 08 4d 89 27 48 ba 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 <0f> b6 04 10 84 c0 74 08 3c 03 0f 8e 34 01 00 00 48 8b 45 c8 0f b6 RSP: 0018:ffff88018df76b10 EFLAGS: 00010202 alloc_pages_current+0x10c/0x210 mm/mempolicy.c:2093 RAX: 0000000000000001 RBX: 0000000000000022 RCX: dffffc0000000000 alloc_pages include/linux/gfp.h:509 [inline] push_pipe+0x400/0x7a0 lib/iov_iter.c:515 RDX: dffffc0000000000 RSI: ffffffff835ece62 RDI: 0000000000000008 RBP: ffff88018df76b60 R08: ffff880198012700 R09: ffffed0031667002 __pipe_get_pages lib/iov_iter.c:1152 [inline] pipe_get_pages_alloc lib/iov_iter.c:1256 [inline] iov_iter_get_pages_alloc+0x866/0x1530 lib/iov_iter.c:1274 R10: ffffed0031667004 R11: ffff88018b338021 R12: 0000000000000000 R13: 0000000000000022 R14: 0000000000000005 R15: ffff88018df76ba8 FS: 00007f03feb97700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d226000 CR3: 00000001b1958000 CR4: 00000000001426e0 Call Trace: scatterwalk_map_and_copy+0x1f0/0x260 crypto/scatterwalk.c:72 default_file_splice_read+0x1da/0xb10 fs/splice.c:391 gcmaes_crypt_by_sg+0xcee/0x1ee0 arch/x86/crypto/aesni-intel_glue.c:908 gcmaes_encrypt.constprop.16+0x716/0xf10 arch/x86/crypto/aesni-intel_glue.c:929 do_splice_to+0x12e/0x190 fs/splice.c:881 splice_direct_to_actor+0x270/0x8f0 fs/splice.c:953 do_splice_direct+0x2d4/0x420 fs/splice.c:1062 do_sendfile+0x62a/0xe20 fs/read_write.c:1440 generic_gcmaes_encrypt+0x12d/0x186 arch/x86/crypto/aesni-intel_glue.c:1294 __do_sys_sendfile64 fs/read_write.c:1495 [inline] __se_sys_sendfile64 fs/read_write.c:1487 [inline] __x64_sys_sendfile64+0x15d/0x250 fs/read_write.c:1487 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 crypto_aead_encrypt include/crypto/aead.h:335 [inline] gcmaes_wrapper_encrypt+0x162/0x200 arch/x86/crypto/aesni-intel_glue.c:1127 crypto_aead_encrypt include/crypto/aead.h:335 [inline] tls_do_encryption net/tls/tls_sw.c:195 [inline] tls_push_record+0x96d/0x1400 net/tls/tls_sw.c:230 tls_sw_sendpage+0x5ff/0xf60 net/tls/tls_sw.c:585 inet_sendpage+0x1de/0x750 net/ipv4/af_inet.c:815 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457089 Code: fd b4 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 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 kernel_sendpage+0x93/0xf0 net/socket.c:3323 RSP: 002b:00007fbbc7565c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 sock_sendpage+0x8c/0xc0 net/socket.c:847 RAX: ffffffffffffffda RBX: 00007fbbc75666d4 RCX: 0000000000457089 RDX: 00000000200000c0 RSI: 0000000000000005 RDI: 0000000000000004 pipe_to_sendpage+0x2d0/0x400 fs/splice.c:452 RBP: 0000000000930140 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000006 R13: 00000000004d3840 R14: 00000000004c85ae R15: 0000000000000003 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x38e/0x7c0 fs/splice.c:627 splice_from_pipe+0x1ea/0x340 fs/splice.c:662 generic_splice_sendpage+0x3c/0x50 fs/splice.c:833 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x128/0x190 fs/splice.c:1019 splice_direct_to_actor+0x318/0x8f0 fs/splice.c:974 do_splice_direct+0x2d4/0x420 fs/splice.c:1062 do_sendfile+0x62a/0xe20 fs/read_write.c:1440 __do_sys_sendfile64 fs/read_write.c:1495 [inline] __se_sys_sendfile64 fs/read_write.c:1487 [inline] __x64_sys_sendfile64+0x15d/0x250 fs/read_write.c:1487 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457089 Code: fd b4 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 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f03feb96c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f03feb976d4 RCX: 0000000000457089 RDX: 00000000200000c0 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000006 R13: 00000000004d3840 R14: 00000000004c85ae R15: 0000000000000005 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) ---[ end trace 990da1b67e5ea32d ]--- RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:73 [inline] RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:98 [inline] RIP: 0010:scatterwalk_copychunks+0x3ae/0x500 crypto/scatterwalk.c:55 Code: 4c 89 f8 48 c1 e8 03 80 3c 08 00 0f 85 2b 01 00 00 49 8d 7c 24 08 4d 89 27 48 ba 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 <0f> b6 04 10 84 c0 74 08 3c 03 0f 8e 34 01 00 00 48 8b 45 c8 0f b6 RSP: 0018:ffff88018df76b10 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000022 RCX: dffffc0000000000 RDX: dffffc0000000000 RSI: ffffffff835ece62 RDI: 0000000000000008 RBP: ffff88018df76b60 R08: ffff880198012700 R09: ffffed0031667002 R10: ffffed0031667004 R11: ffff88018b338021 R12: 0000000000000000 R13: 0000000000000022 R14: 0000000000000005 R15: ffff88018df76ba8 FS: 00007f03feb97700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d226000 CR3: 00000001b1958000 CR4: 00000000001406e0