===================================================== BUG: KMSAN: kernel-infoleak-after-free in instrument_copy_to_user include/linux/instrumented.h:121 [inline] BUG: KMSAN: kernel-infoleak-after-free in _copy_to_user+0xbc/0x100 lib/usercopy.c:33 instrument_copy_to_user include/linux/instrumented.h:121 [inline] _copy_to_user+0xbc/0x100 lib/usercopy.c:33 copy_to_user include/linux/uaccess.h:169 [inline] vcs_read+0x1ef7/0x23c0 drivers/tty/vt/vc_screen.c:456 vfs_read+0x3a9/0x11b0 fs/read_write.c:480 ksys_read+0x21b/0x4e0 fs/read_write.c:620 __do_sys_read fs/read_write.c:630 [inline] __se_sys_read fs/read_write.c:628 [inline] __x64_sys_read+0x8f/0xd0 fs/read_write.c:628 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Uninit was stored to memory at: vc_uniscr_copy_line+0x340/0x570 drivers/tty/vt/vt.c:565 vcs_read_buf_uni drivers/tty/vt/vc_screen.c:265 [inline] vcs_read+0x102d/0x23c0 drivers/tty/vt/vc_screen.c:436 vfs_read+0x3a9/0x11b0 fs/read_write.c:480 ksys_read+0x21b/0x4e0 fs/read_write.c:620 __do_sys_read fs/read_write.c:630 [inline] __se_sys_read fs/read_write.c:628 [inline] __x64_sys_read+0x8f/0xd0 fs/read_write.c:628 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Uninit was created at: free_pages_prepare mm/page_alloc.c:1328 [inline] free_pcp_prepare+0x40/0x680 mm/page_alloc.c:1449 free_unref_page_prepare mm/page_alloc.c:3353 [inline] free_unref_page+0x3e/0x3f0 mm/page_alloc.c:3448 free_the_page mm/page_alloc.c:694 [inline] __free_pages+0x78/0x1c0 mm/page_alloc.c:5534 __vunmap+0xfee/0x1410 mm/vmalloc.c:2681 __vfree mm/vmalloc.c:2729 [inline] vfree+0xda/0x120 mm/vmalloc.c:2760 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:868 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline] do_ipt_get_ctl+0x1612/0x2110 net/ipv4/netfilter/ip_tables.c:1663 nf_getsockopt+0x41d/0x480 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x1bfe/0x2190 net/ipv4/ip_sockglue.c:1786 tcp_getsockopt+0xc4/0x100 net/ipv4/tcp.c:4277 sock_common_getsockopt+0x99/0xd0 net/core/sock.c:3555 __sys_getsockopt+0x5ea/0xb00 net/socket.c:2298 __do_sys_getsockopt net/socket.c:2313 [inline] __se_sys_getsockopt net/socket.c:2310 [inline] __x64_sys_getsockopt+0xe1/0x160 net/socket.c:2310 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Bytes 16-27 of 28 are uninitialized Memory access of size 28 starts at ffff8880a01fd000 Data copied to user address 00000000200001c0 CPU: 0 PID: 25902 Comm: syz-executor.5 Not tainted 5.19.0-syzkaller-32655-g1b070a5d1a2c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 =====================================================