================================================================== BUG: KMSAN: uninit-value in vb2_mmap+0xb2c/0xc90 drivers/media/common/videobuf2/videobuf2-core.c:2147 CPU: 1 PID: 11791 Comm: syz-executor3 Not tainted 4.20.0-rc3+ #90 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x32d/0x480 lib/dump_stack.c:113 kmsan_report+0x19f/0x300 mm/kmsan/kmsan.c:911 __msan_warning+0x76/0xc0 mm/kmsan/kmsan_instr.c:415 vb2_mmap+0xb2c/0xc90 drivers/media/common/videobuf2/videobuf2-core.c:2147 vb2_fop_mmap+0xa9/0xd0 drivers/media/common/videobuf2/videobuf2-v4l2.c:999 v4l2_mmap+0x212/0x400 drivers/media/v4l2-core/v4l2-dev.c:401 call_mmap include/linux/fs.h:1862 [inline] mmap_region+0x3a21/0x4910 mm/mmap.c:1786 do_mmap+0x182d/0x1e60 mm/mmap.c:1559 do_mmap_pgoff include/linux/mm.h:2328 [inline] vm_mmap_pgoff+0x328/0x450 mm/util.c:350 ksys_mmap_pgoff+0xa3f/0xaf0 mm/mmap.c:1609 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap+0x172/0x1a0 arch/x86/kernel/sys_x86_64.c:91 __x64_sys_mmap+0x69/0x90 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0xcf/0x110 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457569 Code: fd b3 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 b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f5f6c5d0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000457569 RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 RBP: 000000000072bf00 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000000011 R11: 0000000000000246 R12: 00007f5f6c5d16d4 R13: 00000000004c2b5d R14: 00000000004d4828 R15: 00000000ffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:252 [inline] kmsan_internal_poison_shadow+0xc8/0x1c0 mm/kmsan/kmsan.c:177 kmsan_kmalloc+0x98/0xf0 mm/kmsan/kmsan_hooks.c:104 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:113 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2765 [inline] __kmalloc_node_track_caller+0xf62/0x14e0 mm/slub.c:4396 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x42b/0xeb0 net/core/skbuff.c:206 alloc_skb_fclone include/linux/skbuff.h:1040 [inline] sk_stream_alloc_skb+0x236/0xe60 net/ipv4/tcp.c:874 tcp_fragment+0x508/0x21d0 net/ipv4/tcp_output.c:1307 tso_fragment net/ipv4/tcp_output.c:1860 [inline] tcp_write_xmit+0x2c58/0xacc0 net/ipv4/tcp_output.c:2372 __tcp_push_pending_frames+0x124/0x4e0 net/ipv4/tcp_output.c:2552 tcp_push+0x989/0xa60 net/ipv4/tcp.c:735 tcp_sendmsg_locked+0x5f37/0x6c30 net/ipv4/tcp.c:1406 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1443 inet_sendmsg+0x4e9/0x800 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg net/socket.c:631 [inline] sock_write_iter+0x3f4/0x4f0 net/socket.c:900 call_write_iter include/linux/fs.h:1857 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x888/0xb80 fs/read_write.c:487 vfs_write+0x4a3/0x8f0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write+0x17a/0x370 fs/read_write.c:607 __x64_sys_write+0x4a/0x70 fs/read_write.c:607 do_syscall_64+0xcf/0x110 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================