Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp468806rdb; Thu, 18 Jan 2024 08:45:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJGqTmcK+WjFy+cxyOiOczQ7XWRWSpObFUd4lcYCv50WcXA5U6vnf3LkEXFGInOMZaXZBI X-Received: by 2002:a05:6402:959:b0:559:4572:72e1 with SMTP id h25-20020a056402095900b00559457272e1mr3136236edz.16.1705596358760; Thu, 18 Jan 2024 08:45:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705596358; cv=pass; d=google.com; s=arc-20160816; b=iAPp9552yCjFBe4RkVWgqZnuogtT5sgLJZBk3KZVwABixvO3t7HvZ2R0qZwPCSFmmj hbnUa/X35RIW+5bKGYwkb6K68gZA+2ep2l4S135B3FWU2VLqZ1TXUZucBXn1I+/cSdjJ gHtudUxG3ZC8toa8f7f/9wRJy0oZkZ6pjIVp0teXYoq2jPZuXYc3qW7T7nnV2DmQx0WM yQkYGYoXRcTLjGA34TKbo9eOZBNG2rvsVydzQa42rSJbCAkZ+47KlYoEalco7ZJ7yfbp H8/Oa03hK+/oaONYmb4TtpnSFvPyEizNstXKjUYboM7o37ZNAgQRSbirPFevoxWr70lP fljA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=K+eAYtZcVX4zI2oi/ZfnKVJN97akTYdBLvFi9dAnH/0=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=SC1RxJT9G6ph5j84TGgrTtJ/sc6fIRSoH9xAGGNLkLYpdza3x8Y57fLX8p42LXtaAb exDCSh8T1hS/NrkE2SL3Lt0dEYeDdxT28+48rApNgEPf1l0VktAavlnclVq7Z8W10wr5 KKPhP9CsCQf1HaCB2DMeYja4fBhX9FQqXj42sHpDeGHpuCLx4iZ7spQ6JWDZjIO/7QVa G26JlSs+jfwWtAdJ2aqPfhLnhfrptdq2IHhpDVcI8m6lRWbniTjI35BpgtSCW9r+vxmV USAQDQzPXKyRF86LzFSduoylU5RLYoLHJM6JLslpHgXP0pVd8JRN+yMZlbQ02TKlsLMc 3ipQ== 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-30361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u8-20020a50eac8000000b00558e4b60470si5843798edp.669.2024.01.18.08.45.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:45:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-30361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30361-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7D0EB1F2615E for ; Thu, 18 Jan 2024 16:45:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B52882C1B1; Thu, 18 Jan 2024 16:45:51 +0000 (UTC) Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (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 8773228E3A for ; Thu, 18 Jan 2024 16:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705596351; cv=none; b=m/P71AMzL3G2jYzpzzkxF3aPLHbQZgE5cIoKMdk0SXHlS8CrUjajuL2kgWZr5eIDqQr4QboMgY/USaLspGaGZ60aYG/MJOuLnj6jYuBdsIHSMT55o5nxTP6fTkwXzE+USDj+OMoUra5S3dJsHh7hcI5MQXXOBwYltaD8wIPG/4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705596351; c=relaxed/simple; bh=SG5QZH1EZKylCYftBHdttqKqgIyhXeTEaQ2BW8oBf8o=; h=Received:X-Google-DKIM-Signature:X-Gm-Message-State: X-Google-Smtp-Source:MIME-Version:X-Received:Date:In-Reply-To: X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias: Message-ID:Subject:From:To:Content-Type; b=Z5fbpwNHtJPkI7j1/19c+0xKy/bv8wdjlIjQejjWUOXKaAjxyHkOu+Wo0zt5crw3AI8Dp4DrBhcmG4qODT154y5HRgmXqiw0K8A2l33jKI7j1RMPdFnyIk5GPyjwL6MIjRd+TFOXEM3pl0qDnUo8yjD8xECbBOa7YWdwyUWYm/4= 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.69 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-f69.google.com with SMTP id ca18e2360f4ac-7bc2b7bef65so1123129639f.0 for ; Thu, 18 Jan 2024 08:45:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705596348; x=1706201148; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K+eAYtZcVX4zI2oi/ZfnKVJN97akTYdBLvFi9dAnH/0=; b=LYruesllGre8C9UzXBEnn53R2Ax3IQG/O7gIpbnSjtTmWyvMScZnGKWiDFoEahHzFL 2sjSIP8wWS0YJyBAjsOpCRqgOht24XewO1Ch1sXFqpCHyBYmZjFgbJTQFq4RJRxVyPyT 1+FALoEpjHra4nSNeeIsTmTMla+Tvc0zxLJvihgrLt+2P9DLvchrBks1qOOBH1G1nBxp bId5EuGJWujg135qsNHuHedk4scGJbvMPhWIMOHxfe73Oxndv+DZSIe+yE7786M5UGrj yYxt/g0/hhbW61aeRj/94zXtYtsQOQvMiS7+mRdZz9tg1mz6EtoPZtNfEQV9iSSHmfWS KPVQ== X-Gm-Message-State: AOJu0Yxwq+khzGREL8N73IaE3Iw4b1xUmqh3eXiuV/HLCokmRH7wLGDj S7HXyriwcj7oAxurACOX/PU37liZJf5w51iUJajs5W1Q+mdi+d1p7kBLMxd9jSKAF84UWiuYcaU rzrjY4E/AJbgqHHnjIN486B9BMmT/+FFPAR8rko92BTkwyPyicbwA1EBrJQ== 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:6602:1648:b0:7bf:338:c77a with SMTP id y8-20020a056602164800b007bf0338c77amr36524iow.3.1705596348714; Thu, 18 Jan 2024 08:45:48 -0800 (PST) Date: Thu, 18 Jan 2024 08:45:48 -0800 In-Reply-To: <000000000000e3d83a060ee5285a@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000007ed418060f3b1822@google.com> Subject: Re: [syzbot] [syzbot] [nfs?] KMSAN: kernel-infoleak in sys_name_to_handle_at (4) From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [syzbot] [nfs?] KMSAN: kernel-infoleak in sys_name_to_handle_at (4) Author: n.zhandarovich@fintech.ru Try using kzalloc() instead of kmalloc() in do_sys_name_to_handle() #syz test: https://github.com/google/kmsan.git master --- fs/fhandle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fhandle.c b/fs/fhandle.c index 18b3ba8dc8ea..57a12614addf 100644 --- a/fs/fhandle.c +++ b/fs/fhandle.c @@ -36,7 +36,7 @@ static long do_sys_name_to_handle(const struct path *path, if (f_handle.handle_bytes > MAX_HANDLE_SZ) return -EINVAL; - handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, + handle = kzalloc(sizeof(struct file_handle) + f_handle.handle_bytes, GFP_KERNEL); if (!handle) return -ENOMEM; -- 2.25.1