================================================================== BUG: KMSAN: uninit-value in copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] BUG: KMSAN: uninit-value in raw_copy_to_user arch/x86/include/asm/uaccess_64.h:128 [inline] BUG: KMSAN: uninit-value in _copy_to_user+0x1d6/0x1f0 lib/usercopy.c:31 CPU: 1 PID: 11488 Comm: syz-executor595 Not tainted 5.1.0+ #1 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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x130/0x2a0 mm/kmsan/kmsan.c:622 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:310 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:128 [inline] _copy_to_user+0x1d6/0x1f0 lib/usercopy.c:31 copy_to_user include/linux/uaccess.h:174 [inline] __vb2_perform_fileio+0x67b/0x22b0 drivers/media/common/videobuf2/videobuf2-core.c:2650 vb2_read+0xf7/0x110 drivers/media/common/videobuf2/videobuf2-core.c:2724 vb2_fop_read+0x475/0x640 drivers/media/common/videobuf2/videobuf2-v4l2.c:1090 v4l2_read+0x274/0x4a0 drivers/media/v4l2-core/v4l2-dev.c:317 __vfs_read+0x1a5/0xbe0 fs/read_write.c:416 vfs_read+0x359/0x6f0 fs/read_write.c:452 ksys_pread64 fs/read_write.c:627 [inline] __do_sys_pread64 fs/read_write.c:637 [inline] __se_sys_pread64+0x285/0x330 fs/read_write.c:634 __x64_sys_pread64+0x56/0x70 fs/read_write.c:634 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x444f09 Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff3fe19978 EFLAGS: 00000246 ORIG_RAX: 0000000000000011 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f09 RDX: 000000000000008a RSI: 0000000020000140 RDI: 0000000000000003 RBP: 00000000000136ce R08: 0000000000000004 R09: 00000000004002e0 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:208 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:162 kmsan_kmalloc+0xa4/0x130 mm/kmsan/kmsan_hooks.c:175 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:184 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2771 [inline] __kmalloc_node_track_caller+0xcba/0xf30 mm/slub.c:4399 __kmalloc_reserve net/core/skbuff.c:140 [inline] __alloc_skb+0x306/0xa10 net/core/skbuff.c:208 alloc_skb_fclone include/linux/skbuff.h:1108 [inline] sk_stream_alloc_skb+0x175/0xca0 net/ipv4/tcp.c:874 tcp_sendmsg_locked+0x2a48/0x6c30 net/ipv4/tcp.c:1287 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1445 inet_sendmsg+0x546/0x720 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:661 [inline] sock_write_iter+0x3f3/0x4e0 net/socket.c:988 call_write_iter include/linux/fs.h:1866 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x95a/0xc10 fs/read_write.c:487 vfs_write+0x481/0x920 fs/read_write.c:549 ksys_write+0x1c5/0x440 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write+0x92/0xb0 fs/read_write.c:608 __x64_sys_write+0x4a/0x70 fs/read_write.c:608 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================