Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2907836iog; Mon, 27 Jun 2022 05:32:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t60jrpw9ny8Sxo4n199EvMvcS4k+GRmOsyLIGxa+uXgnB9cp4NmGRZm8C6qggTjmW6UGLd X-Received: by 2002:a17:907:9620:b0:722:fc5e:3259 with SMTP id gb32-20020a170907962000b00722fc5e3259mr11965854ejc.579.1656333156033; Mon, 27 Jun 2022 05:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333156; cv=none; d=google.com; s=arc-20160816; b=cGb/Xt2HHuwrmtiOwpZdqDPxFYoygG2b6MNYVGL9DUmbiB7iHHYUZkoJYuWIDgEaa/ rl4ojyAnPx7geZRdpBYt5PDjDNQgSQbwS4Jv0wn/rSvZbJBGyvQBNkY3IQPiCrynO0Iv lfZlZFi7oHEGr7tygTiosbSz9hmTNoejx/67C9Nsnbq2N258w+Bw6PbF6B1PqMOtqVK/ 01HMFTg9myatq75ou5WqnNcWNLG5rr4972g1wXkt6e106tcXeHDE5fRnEQfbwHI0vcz9 ijFDrTtKFpwX4F2uIV2A6T2YYazJTGQuRXHZKn2Zw2s1PZlytwm5DDw6+Q8EtvueBbL5 sEYg== 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=RqOkhe2wqHjuCScdSC2Ikwr511l0HNU8XETMpArsHPg=; b=UlZ6CMzwSW4oXgTJ10B+V8+ZMaiyqyfFNbOIcb9UMZ9s2JKh/cWUhsFAD4B9fuZfel vX412wtPe79ELxt4QEYMbIaZj72nD6aY3vL/Qf336KZ0rPVR7URfsEgMuITcKLnznCW4 hoFLe97fTb/HAuFiV/fEn+YgcijK8R5Zm81leopMkd1yTeLMZ70B4/sC/7Fv0qoBwvdS PKtjygPMDpVYX2ygwufUhwkjLPrDadf04CrTEzwuUQxhH6TPwlul7aex/jsUYnyl9BAb 3dJbhjnFAnGIOhq5RuKMhNpmzMfEYaf3RqpRREI36tF62zjCjNSrSkPrd4u8vI1p1GA0 L6wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=l7BcECrB; 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 cw12-20020a170906c78c00b00722dceb3f8csi10439548ejb.632.2022.06.27.05.32.09; Mon, 27 Jun 2022 05:32:36 -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=l7BcECrB; 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 S235284AbiF0L3Z (ORCPT + 99 others); Mon, 27 Jun 2022 07:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235372AbiF0L2t (ORCPT ); Mon, 27 Jun 2022 07:28:49 -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 DE03965A5; Mon, 27 Jun 2022 04:27:30 -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 9FC7EB81120; Mon, 27 Jun 2022 11:27:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 829A5C3411D; Mon, 27 Jun 2022 11:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329248; bh=txsi3SPGgKkJ/yjLz7OMyx86d9QtjZZbPTZ6H+FrQ6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l7BcECrBZAfNh1wznjeAlTd5EeIyAFRIpkh0LNzRUin5Yvl/4Ejao5XMJSsOcxWTr VVZBxw/tw1VxpP6Lk5CBVyI+/eqll06C8YV2Href/53r5c83khb70wbJCwKfZkQEn/ VwayofPkVqezdyo214Qd/8wa2gaSczeNF3mfe4EQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Jason A. Donenfeld" Subject: [PATCH 5.10 100/102] random: update comment from copy_to_user() -> copy_to_iter() Date: Mon, 27 Jun 2022 13:21:51 +0200 Message-Id: <20220627111936.432511320@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@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 @@ -452,7 +452,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);