================================================================== BUG: KMSAN: uninit-value in vb2_mmap+0xb2c/0xc90 drivers/media/common/videobuf2/videobuf2-core.c:1962 CPU: 0 PID: 20430 Comm: syz-executor0 Not tainted 4.19.0+ #83 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/0xd0 mm/kmsan/kmsan_instr.c:415 vb2_mmap+0xb2c/0xc90 drivers/media/common/videobuf2/videobuf2-core.c:1962 vb2_fop_mmap+0xa9/0xd0 drivers/media/common/videobuf2/videobuf2-v4l2.c:832 v4l2_mmap+0x212/0x400 drivers/media/v4l2-core/v4l2-dev.c:401 call_mmap include/linux/fs.h:1813 [inline] mmap_region+0x3a21/0x4910 mm/mmap.c:1762 do_mmap+0x182d/0x1e60 mm/mmap.c:1535 do_mmap_pgoff include/linux/mm.h:2298 [inline] vm_mmap_pgoff+0x328/0x450 mm/util.c:357 ksys_mmap_pgoff+0xa3f/0xaf0 mm/mmap.c:1585 __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:00007f5db307ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000457569 RDX: 0080000000000001 RSI: 0000000000003000 RDI: 0000000020ffd000 RBP: 000000000072bf00 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000010011 R11: 0000000000000246 R12: 00007f5db307b6d4 R13: 00000000004c2a9d R14: 00000000004d41a0 R15: 00000000ffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:252 [inline] kmsan_internal_poison_shadow+0xc8/0x1e0 mm/kmsan/kmsan.c:177 kmsan_kmalloc+0x98/0x110 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:2727 [inline] __kmalloc_node_track_caller+0xf62/0x14e0 mm/slub.c:4360 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x42b/0xeb0 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:996 [inline] alloc_skb_with_frags+0x1c9/0xa80 net/core/skbuff.c:5276 sock_alloc_send_pskb+0xeb3/0x14c0 net/core/sock.c:2082 unix_dgram_sendmsg+0xbcf/0x3820 net/unix/af_unix.c:1677 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg net/socket.c:631 [inline] __sys_sendto+0x97b/0xb80 net/socket.c:1788 __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto+0x107/0x130 net/socket.c:1796 __x64_sys_sendto+0x6e/0x90 net/socket.c:1796 do_syscall_64+0xcf/0x110 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================