Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1554204pxb; Sun, 10 Jan 2021 02:22:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdhTGeGXw3Xi1YtupKZhIb2ZnBM3z4mrBSfaYH7g0pMlHLijTbwoKR5UKgJuXLnYFQ82j9 X-Received: by 2002:a17:906:4950:: with SMTP id f16mr8060753ejt.453.1610274152856; Sun, 10 Jan 2021 02:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610274152; cv=none; d=google.com; s=arc-20160816; b=mKkjDInr7QuyQPjHxmzrgQXkHBdW7RbPztKa/XuDhpU7j3pYrapQJVzvDVjGSSsVQ8 EysIWeJluGal0h6LlsABAGSJaGOo4q07DdDPpSuscxwYO9LAXyqOACnfbQuq0tqhINlr 6SQmCMT9ccnIqTGPXL+hdiiXlNaxqpAO+jQFbd14hZa/OjO68d2WwUhnvrRNaNCeqouZ Z5Z0Ua9T87GqHftrKyQ1PSftYMocW8I/S8V/W7OEx8v+Cc7874LDnyE7T/XGDPoLqRyO sRjF0Ov3ZtPm/cuN6l/TyCb2m+eZH3HmeEyYBsFsNbK+D+twvcVGa9Bn2PnWBByTJ/Nt w3yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=Kt/0k0XvXpnX0NPbrn+9HwSwh7MXuiusmT0Wp7xQF0E=; b=hj6x39NmeksGaEqghUIQqGCvlFoC3YabekXdz2yPptEeVP6o5bqV/4jhkim4MkcrC9 LH93rqrayEf3rmZ6TRHvc49r9iVfvH0HjAgZPhDBcFWtlfUAY7+cfGn1XpJDYy6khUQz OJ/0VG4GpLuqxqpRS7ub/pWBll+XYuKLqhZbhP0taE6/hD0dcFq4EI9cblrW6LjyZwJI /ZMMbofYI5DGfZZWa12bG3haI+rgUsK9MMtNGsuJthdfHa1neYX6T/rMIfE1MqBU6A7H AIAxwf/tzI5zNgJpqxmxWTZoplBeW3XEMIbwsRNZvF6WGfvvx8WiH5KOVt+wWN/7O7My hPIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si5758949edc.252.2021.01.10.02.22.04; Sun, 10 Jan 2021 02:22:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbhAJKT6 (ORCPT + 99 others); Sun, 10 Jan 2021 05:19:58 -0500 Received: from mail-io1-f71.google.com ([209.85.166.71]:42039 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbhAJKT5 (ORCPT ); Sun, 10 Jan 2021 05:19:57 -0500 Received: by mail-io1-f71.google.com with SMTP id m9so10710925ioa.9 for ; Sun, 10 Jan 2021 02:19:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=Kt/0k0XvXpnX0NPbrn+9HwSwh7MXuiusmT0Wp7xQF0E=; b=sXXBO3HCvjvlaNbH93C6JsDWZjvDy61EjWo50NiQaPXqj9gFtoDon7CICH1TjVUOkL 12RlJRqFSy9j7dK4o1mozEZQhBVUH+mjsPjuou8LbA2mk5T2Jq3Uh7eg2GZqjT28q9Lz NZ6QDwf8T9mlu0Qe3WpjConYit9Lu9jg4TqpZkh7uK75zp8zGFWMAvxg37qZYHacAMWo tmZ5pF7gR1Tgq0mRL7JzjFUWqS7AaZJIFV8fPZ/3h8m+XCCRje4fXLEoaT8om5Hk8r7B AweDVqqKvv1XWM7J2oKtZxFvd7fwef4ICPWQzfM7F+ckZRHYuWhLT/JGf+12gRt5gJ7z D1ZQ== X-Gm-Message-State: AOAM532I8Ie8buldPvzMcAUiUrEOP69o+23R67wLadWwKXqE31n7fFGC RNPPgUBDyONAo6FEmkKTirJk00so/GJ4iHOxNIGQc+BpdFze MIME-Version: 1.0 X-Received: by 2002:a92:d350:: with SMTP id a16mr11456432ilh.262.1610273955351; Sun, 10 Jan 2021 02:19:15 -0800 (PST) Date: Sun, 10 Jan 2021 02:19:15 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000019908405b8891f9d@google.com> Subject: KMSAN: kernel-infoleak in move_addr_to_user (4) From: syzbot To: davem@davemloft.net, glider@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 73d62e81 kmsan: random: prevent boot-time reports in _mix_.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=15c8b8c7500000 kernel config: https://syzkaller.appspot.com/x/.config?x=2cdf4151c9653e32 dashboard link: https://syzkaller.appspot.com/bug?extid=057884e2f453e8afebc8 compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=101520c7500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=100b8f4f500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+057884e2f453e8afebc8@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: kernel-infoleak in kmsan_copy_to_user+0x9c/0xb0 mm/kmsan/kmsan_hooks.c:249 CPU: 0 PID: 8245 Comm: syz-executor868 Not tainted 5.10.0-rc4-syzkaller #0 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+0x21c/0x280 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:118 kmsan_internal_check_memory+0x202/0x520 mm/kmsan/kmsan.c:402 kmsan_copy_to_user+0x9c/0xb0 mm/kmsan/kmsan_hooks.c:249 instrument_copy_to_user include/linux/instrumented.h:121 [inline] _copy_to_user+0x1af/0x270 lib/usercopy.c:33 copy_to_user include/linux/uaccess.h:209 [inline] move_addr_to_user+0x3a2/0x640 net/socket.c:237 __sys_getsockname+0x407/0x5d0 net/socket.c:1906 __do_sys_getsockname net/socket.c:1917 [inline] __se_sys_getsockname+0x91/0xb0 net/socket.c:1914 __x64_sys_getsockname+0x4a/0x70 net/socket.c:1914 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x441219 Code: e8 fc ab 02 00 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 1b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe3c24eaf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000033 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441219 RDX: 0000000020000000 RSI: 0000000020000100 RDI: 0000000000000003 RBP: 00000000006cb018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000401fc0 R13: 0000000000402050 R14: 0000000000000000 R15: 0000000000000000 Local variable ----address@__sys_getsockname created at: __sys_getsockname+0x91/0x5d0 net/socket.c:1891 __sys_getsockname+0x91/0x5d0 net/socket.c:1891 Bytes 2-3 of 20 are uninitialized Memory access of size 20 starts at ffff888124bbbdf0 Data copied to user address 0000000020000100 ===================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches