Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2905361iog; Mon, 27 Jun 2022 05:29:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1upS8MWZcvmdgH2V9VwfJ+itQABRvq3aKF4MG0odt4vkSUuB5EAgVOTkdF3J6QWHUoLkYtw X-Received: by 2002:a17:903:3296:b0:16a:23ec:75f8 with SMTP id jh22-20020a170903329600b0016a23ec75f8mr14481671plb.121.1656332985344; Mon, 27 Jun 2022 05:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656332985; cv=none; d=google.com; s=arc-20160816; b=exHQzzFByznZW9b1R454BjTyAlU6PFW4hbD6vOnt9JIPm/PhpMZv3wlVRNtHShjc7q gmUKOgFST4Gjq5Sn64QLRzIOUjW2OHUWIhd72xzEYHsljBd5tATJmEvNmrFA5BI4j6uU O0pmzJj7EpbFzq/W97jjluv1NuryfedclH3FAf95KRJwcqMjhxx9E2xOVjmp60fLp3lV zuvJqsARDwCXBGueIE8vHtLADDeQG5WesuA2OUEZbc8cAENSTu023XPw2D8DXQyrFOlS YxHUzqmH4NQM8Op2hKvyICEYvR0Ht4UIXaL+jSFFp05gsRw9IQaTDUSFL5tA0btP9ovC H0nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GEhKF4YoGYQaGuU+An2TLtGuP0kactP9EozkfGKXO6s=; b=XETXKry2uM600+cjDOIEtqIyjJ3VSlkcdAjnVAZB2+b9rHfdHnxlVkVpL8hzcVbiwL HKmSLmumVNAEzBS+e91ieBOD8vknxq/QrwYeRT3Ih6wagBJ1yfeMGcZYGaRPlkeUU8Kv p5vo6sWnhkP6AMdUWEp9zZf0whXJ1An+C/clpjbUxMUWVAoF8xWcSXF4u2N1fLZLyPdl dZqMnfnUTHpd+3MfAnzLPD8B9Zr9hYdEepaX/M+pO8AfpcpTFRVJOoJ/Ij6KSkDz0ifG n8UFlK0+dCxFy7rU4Ve7Nsh0RprkFNlBQu3r0LhI+XPFa3uOlE1xKrPWaghKrFgQm9QJ OQHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oNg7W+z2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a63c104000000b0040d3e6f0ee2si15129551pgf.656.2022.06.27.05.29.33; Mon, 27 Jun 2022 05:29:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oNg7W+z2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235975AbiF0Le5 (ORCPT + 99 others); Mon, 27 Jun 2022 07:34:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236198AbiF0Ld1 (ORCPT ); Mon, 27 Jun 2022 07:33:27 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CFFBCE2A; Mon, 27 Jun 2022 04:30:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8685DB8111A; Mon, 27 Jun 2022 11:30:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EABBCC341CD; Mon, 27 Jun 2022 11:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329432; bh=XtTYzG2sSKDKpLMoDkSYqdHNzo+dDX9KmREtNYeCC4Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oNg7W+z2dXbG9reXz8dl72Df6Pg9JOdo7GwQxC/+NOc6pF/xy9LxaGfRQ/QFJmvJB kl48CYO03xEtXmKv+cMP5qjFDlhjbw9WOaAF+uFbTLOnWSY7Oyy1IFuHQekF11dtTf pmfppipHe60TDtvzO7kAdBQvNVnW97TEex66xDUs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Jason A. Donenfeld" Subject: [PATCH 5.4 58/60] random: update comment from copy_to_user() -> copy_to_iter() Date: Mon, 27 Jun 2022 13:22:09 +0200 Message-Id: <20220627111929.398188532@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111927.641837068@linuxfoundation.org> References: <20220627111927.641837068@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jason A. Donenfeld commit 63b8ea5e4f1a87dea4d3114293fc8e96a8f193d7 upstream. This comment wasn't updated when we moved from read() to read_iter(), so this patch makes the trivial fix. Fixes: 1b388e7765f2 ("random: convert to using fops->read_iter()") Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- drivers/char/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -450,7 +450,7 @@ static ssize_t get_random_bytes_user(str /* * Immediately overwrite the ChaCha key at index 4 with random - * bytes, in case userspace causes copy_to_user() below to sleep + * bytes, in case userspace causes copy_to_iter() below to sleep * forever, so that we still retain forward secrecy in that case. */ crng_make_state(chacha_state, (u8 *)&chacha_state[4], CHACHA_KEY_SIZE);