Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp291568lqp; Fri, 12 Apr 2024 19:27:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1p5adJkWEjKZzt1fZUi13iztiDRQBiAnS3fqqMYjJVgEtXyPWPasi2T82K2CIvSK+tIYjctF2n7YvAggp3DLN5z3puL5yBi+we+4N1w== X-Google-Smtp-Source: AGHT+IGCT+d+Azx27aQcshMzCrR8hPJEDZY0sclpW9ax+oXF5hVTxvzhCPBkQkVkacq82galhAAY X-Received: by 2002:a05:6808:3af:b0:3c6:f599:23af with SMTP id n15-20020a05680803af00b003c6f59923afmr3441240oie.33.1712975258282; Fri, 12 Apr 2024 19:27:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712975258; cv=pass; d=google.com; s=arc-20160816; b=xPZU44UwI/yZkMUTFDNI9eQ+IVa1+n37Pku2FzxPgRrfOW3OMXStxxzVAAbR343XiF ZeK8TgGgycfrX+KgrnLNVdOSxgKwnDXUZhHtgv3pGDhLBoGbDn1BQMn3QrTNMnirLzZZ UuAM8RLc+fPquQqlij+PITu9hkB6o4prUIv1jFrKPiihtFEfjpkWOnYL11CJS9pzolgI OXiXt6pyHjv3x8KXAoUj8iNS2AnrNzbgJxjMZ4HksKgzKwMhCcWLffo+Y6Nryh7kcU7k 2EWWAR35XjKCmtw8m5YqNtcSY5Vq+fan2K2lgn/NnslOXVvfjlEbquqinG8Q6TbNKk36 K0cA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=JGpFiZMoct/gTKw486CudPM82VeVmjUMnBJvMxioOug=; fh=GEpmiT2ieQ7D98jBD2buw1ZewmibJ0dVbDT0UfZOnoE=; b=Roh9Jt45pLDXIP/ir+ksmEwT4XK5SwGc4M9+iUgag/SwDhw1Ml1xRkCmQGBhMRCb62 c5SSHvcmeL8Zdg5MlkXaPiYijOg0N+vWP6BoCp6Gz4bxleUzTfR5pq9E5o5Uv3opFFrT KJqSbVrVd4Fe296PsKzvPtaHMZS5ThUwI8c/YGt4S9i1hqDodtVOxoFdp3xt+Qhxi3g1 78V/xCqAJZIQYpJVe30hR0Ub4upnL8JK1ErDwm0FbxyEZO6mPhhpcZj42NvTJEuMQjVE TTGd7sd5bVXDTspxiHrZugfnRH4Zny62AnNczYw6wH6/fzdj3OkK7cIbCzaNeaydQ3wg 6Uzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-143524-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id dq2-20020a056a020f8200b005e842927967si4184665pgb.672.2024.04.12.19.27.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 19:27:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143524-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-143524-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2A9E5B225A2 for ; Sat, 13 Apr 2024 02:27:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C28661758B; Sat, 13 Apr 2024 02:27:27 +0000 (UTC) Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D640D8C1A for ; Sat, 13 Apr 2024 02:27:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712975247; cv=none; b=vBnXck79PjD50RiNF57dQjWE5KubpXzBDgYnF1c/v4OleQO6URwutYHQAkZ/Zt1BDdwtL8jtkctj/ZOW0UtcWXase4OiQiGLaS9l+dO1odlBPVZ8ederfyFoIcJBQR6P6efWdAfVFEAsJ4t/fHhJ+P91i50gKBa+YRUR0VrRj4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712975247; c=relaxed/simple; bh=VlwQ4wR3c+gOVAmJlO2LaFAC69KfefrN/1KxDxizliU=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=F1LgWzXaEWpXQdNfkd82SYeUeIqBYoyylInPhhlEK09ZW906B9pPxg/7e6Rl7hxjaWjfzcMSooCTQepHPHVUrHxx7A8EPXHA6/mtJCiVKc4UlMUJHFQmNJRvDYJ0ErctSx7l5FhG8vd+L/lEu4EcrL4aJc7JKrKyHE2NAeKvIBU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f70.google.com with SMTP id ca18e2360f4ac-7d5efba3f8fso175954739f.2 for ; Fri, 12 Apr 2024 19:27:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712975245; x=1713580045; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JGpFiZMoct/gTKw486CudPM82VeVmjUMnBJvMxioOug=; b=AL2G1RL4x/8sDp2mLuzu3gpv1q4B9jNcJP7eYZX/TAQ5giepkwUUgFpfmHFIDdw4tz JB6iGeLOeS4Cr0Kc85mCQqrCI+pMyAKuP+GyNV8v3BogmJBNQU9xcyUjXYxENJRDWXag dSRqJjcrkl+jn+tpd24/lDAhsYmPtvQ/GCm6n+ks1cxi4Vv1vIiYBHqog2v2D+bL6pJ4 slBRRYTOwipiQ9C1R0TgGt/BZmYUgJtub3OWtLldZkMzYKA/F2IqpItTMeAz/+kjcQlY QldODa/9X2JC2jm7wBEb4rJbY3EFXfOFKlFxpBE/pLv4HmLXX7+hPIpet7HHiidL0JvB XAHA== X-Forwarded-Encrypted: i=1; AJvYcCUQP7OCEhx6JXHd6lEEuR0EBsRUQyUUZkFESzzSAy8pNCdjZb6E4qANxSzfm9k/36pISyyboUlUdtOGRFLqZoYbifpjdGqV5qHekd/H X-Gm-Message-State: AOJu0Yx5qlvPOUG87MOxskoeY5decYet/DFCEktTEMdMUb87LWOZAbUX 44lqgeJaTzu+bOzQmO8dLr4NJi7ESpwKsuZlaseBPphkxyQI4u68JH6jdp1vf5T2l8UK+VML5A5 ECQaGSp8IPJEoGYilE34f8JMmNNwfYk/+p+IRmIl09v/4s8X2quMRCFU= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6638:2494:b0:47c:6d4:3e57 with SMTP id x20-20020a056638249400b0047c06d43e57mr137698jat.0.1712975245105; Fri, 12 Apr 2024 19:27:25 -0700 (PDT) Date: Fri, 12 Apr 2024 19:27:25 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000fe696d0615f120bb@google.com> Subject: [syzbot] [mm?] KMSAN: kernel-infoleak in bpf_probe_write_user From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: fec50db7033e Linux 6.9-rc3 git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=16509ba1180000 kernel config: https://syzkaller.appspot.com/x/.config?x=13e7da432565d94c dashboard link: https://syzkaller.appspot.com/bug?extid=79102ed905e5b2dc0fc3 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10a4af9d180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12980f9d180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/901017b36ccc/disk-fec50db7.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/16bfcf5618d3/vmlinux-fec50db7.xz kernel image: https://storage.googleapis.com/syzbot-assets/dc9c5a1e7d02/bzImage-fec50db7.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+79102ed905e5b2dc0fc3@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak in __copy_to_user_inatomic include/linux/uaccess.h:125 [inline] BUG: KMSAN: kernel-infoleak in copy_to_user_nofault+0x129/0x1f0 mm/maccess.c:149 instrument_copy_to_user include/linux/instrumented.h:114 [inline] __copy_to_user_inatomic include/linux/uaccess.h:125 [inline] copy_to_user_nofault+0x129/0x1f0 mm/maccess.c:149 ____bpf_probe_write_user kernel/trace/bpf_trace.c:349 [inline] bpf_probe_write_user+0x104/0x180 kernel/trace/bpf_trace.c:327 ___bpf_prog_run+0x13fe/0xe0f0 kernel/bpf/core.c:1997 __bpf_prog_run64+0xb5/0xe0 kernel/bpf/core.c:2236 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] __bpf_prog_run include/linux/filter.h:657 [inline] bpf_prog_run include/linux/filter.h:664 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline] bpf_trace_run2+0x116/0x300 kernel/trace/bpf_trace.c:2420 __bpf_trace_kfree+0x29/0x40 include/trace/events/kmem.h:94 trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0x6a5/0xa30 mm/slub.c:4377 vfs_writev+0x12bf/0x1450 fs/read_write.c:978 do_writev+0x251/0x5c0 fs/read_write.c:1018 __do_sys_writev fs/read_write.c:1091 [inline] __se_sys_writev fs/read_write.c:1088 [inline] __x64_sys_writev+0x98/0xe0 fs/read_write.c:1088 do_syscall_64+0xd5/0x1f0 entry_SYSCALL_64_after_hwframe+0x72/0x7a Local variable stack created at: __bpf_prog_run64+0x45/0xe0 kernel/bpf/core.c:2236 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] __bpf_prog_run include/linux/filter.h:657 [inline] bpf_prog_run include/linux/filter.h:664 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline] bpf_trace_run2+0x116/0x300 kernel/trace/bpf_trace.c:2420 Bytes 0-7 of 8 are uninitialized Memory access of size 8 starts at ffff888121ec7ae8 Data copied to user address 00000000ffffffff CPU: 1 PID: 4779 Comm: dhcpcd Not tainted 6.9.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ===================================================== --- 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. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup