================================================================== 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: 0 PID: 10587 Comm: syz-executor773 Not tainted 5.0.0+ #16 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+0x173/0x1d0 lib/dump_stack.c:113 kmsan_report+0x131/0x2a0 mm/kmsan/kmsan.c:636 __msan_warning+0x7a/0xf0 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+0x5db/0x22e0 drivers/media/common/videobuf2/videobuf2-core.c:2637 vb2_read+0xf7/0x110 drivers/media/common/videobuf2/videobuf2-core.c:2711 vb2_fop_read+0x475/0x640 drivers/media/common/videobuf2/videobuf2-v4l2.c:1070 v4l2_read+0x274/0x4a0 drivers/media/v4l2-core/v4l2-dev.c:317 __vfs_read+0x1e5/0xbf0 fs/read_write.c:416 vfs_read+0x359/0x6f0 fs/read_write.c:452 ksys_pread64 fs/read_write.c:626 [inline] __do_sys_pread64 fs/read_write.c:636 [inline] __se_sys_pread64+0x285/0x330 fs/read_write.c:633 __x64_sys_pread64+0x56/0x70 fs/read_write.c:633 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x444f19 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:00007ffe64905bf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000011 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000444f19 RDX: 00000000000000ca RSI: 0000000020000080 RDI: 0000000000000003 RBP: 000000000001a2d8 R08: 0000000000000004 R09: 00000000004002e0 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:159 kmsan_kmalloc+0xa6/0x130 mm/kmsan/kmsan_hooks.c:173 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:182 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc_node mm/slub.c:2773 [inline] __kmalloc_node_track_caller+0xe9e/0xff0 mm/slub.c:4398 __kmalloc_reserve net/core/skbuff.c:140 [inline] __alloc_skb+0x309/0xa20 net/core/skbuff.c:208 alloc_skb_fclone include/linux/skbuff.h:1054 [inline] sk_stream_alloc_skb+0x177/0xcb0 net/ipv4/tcp.c:874 tcp_sendmsg_locked+0x29da/0x6be0 net/ipv4/tcp.c:1286 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1443 inet_sendmsg+0x54a/0x720 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg net/socket.c:632 [inline] sock_write_iter+0x3f4/0x4d0 net/socket.c:901 call_write_iter include/linux/fs.h:1863 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x98a/0xc20 fs/read_write.c:487 vfs_write+0x481/0x920 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+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================