Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2933737iog; Mon, 20 Jun 2022 07:47:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tvj+ioWxBIab46rQSrWpeUyk3K6+7l5VSktFwAefIiuAhmExia2O6lX9k0fyV3QO47gMNS X-Received: by 2002:a63:7844:0:b0:40c:9792:5d6d with SMTP id t65-20020a637844000000b0040c97925d6dmr8929279pgc.360.1655736434991; Mon, 20 Jun 2022 07:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736434; cv=none; d=google.com; s=arc-20160816; b=vo00Uw6ajqWNdAgnXVugHIILm9fqfhOaPNY/z+7gR4/gMk0+OUJA75quAhH3UPnnci 5S+sK37jFk448ZlVWKT9ktbh9gqJ1VQZowI2NZWOSGFi6auNgxFaeb/GpyfYITO0v+JL 6cgDZcLcDnFgLVmZCkPrOqHSHBxZEwGVHDqDk1heOUbWNlEIohkFlEKi31NdEEk0N7SB QCT2+tuKQVpviiu7KJ51pQh6Ewa4ws178Hg5fT4GEp4VJgwsfI1NHvNgZfrdGA4ldxDu gS/pAdh1xzO83uYhjhbf3EHZ2srGWjP6kyxE5LNCko7jrKIilGdvZCzzXX/S1abhLWRI cwxQ== 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=LfZxBPy81vKMO/HSUZMaB8gOclhSbxRqZkj4zs7vtdU=; b=D0XswVx5DmfoeUipvvtCTr+1d2VSOZl3eQaeN9bU1Bc2FzNF2y9+1INKcCiR/DG7fm TO7SKR+64W/gPL/UOFu5sgh21PRzgiznnHAXhUykwFZQCgiBWKSvXLq5bXPi66TpDb38 cpbI5tSmEG5PFShvcPURiuxwhlsvxzM0S9XrtFV+kdUD7HtAtOdNXUMwqY76lbjS39cL 5wWQLFmaNhOGiiV1U9O1LCord9f9uqKK3OopGeet/bS17jWjvuTsv9lKiGQVc7iwMzg7 TedlHBc2gR2cMlkhZN9phiV7WYMMvzrKaHNNvvKnLhVIWsEIjPHWvdF2agxv437CisOM 6FUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bkOOSidI; 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 16-20020a630510000000b0040ccfa0a0dbsi1850631pgf.480.2022.06.20.07.46.33; Mon, 20 Jun 2022 07:47:14 -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=bkOOSidI; 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 S1346478AbiFTNey (ORCPT + 99 others); Mon, 20 Jun 2022 09:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346163AbiFTNcg (ORCPT ); Mon, 20 Jun 2022 09:32:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E53F26110; Mon, 20 Jun 2022 06:12:42 -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 dfw.source.kernel.org (Postfix) with ESMTPS id DA18F60A52; Mon, 20 Jun 2022 13:11:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E97B6C3411C; Mon, 20 Jun 2022 13:11:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655730689; bh=1+E2pDWYvJHF8rDS+xtktmcYX3zlcPQWkYN/rPnJ1g0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bkOOSidIhi2XBls6qULvaSSzBsuJ5iwREIdw+nebsE7283cO+56ffgHF8bdj8RXYh U2pVXLfWV6nwpyBmeBmWnnyGhKDEHqewL7P35MfnQoGiZB3MrWpG8VP7/mwFfnO6Vc rCcW3QoHiwKEkjLwd0H7ExZDnCrTJgnRi8HF6WsU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "Jason A. Donenfeld" Subject: [PATCH 5.4 008/240] random: dont forget compat_ioctl on urandom Date: Mon, 20 Jun 2022 14:48:29 +0200 Message-Id: <20220620124738.048034618@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124737.799371052@linuxfoundation.org> References: <20220620124737.799371052@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.7 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 4aa37c463764052c68c5c430af2a67b5d784c1e0 upstream. Recently, there's been some compat ioctl cleanup, in which large hardcoded lists were replaced with compat_ptr_ioctl. One of these changes involved removing the random.c hardcoded list entries and adding a compat ioctl function pointer to the random.c fops. In the process, urandom was forgotten about, so this commit fixes that oversight. Fixes: 507e4e2b430b ("compat_ioctl: remove /dev/random commands") Cc: Arnd Bergmann Signed-off-by: Jason A. Donenfeld Link: https://lore.kernel.org/r/20191217172455.186395-1-Jason@zx2c4.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- drivers/char/random.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -2199,6 +2199,7 @@ const struct file_operations urandom_fop .read = urandom_read, .write = random_write, .unlocked_ioctl = random_ioctl, + .compat_ioctl = compat_ptr_ioctl, .fasync = random_fasync, .llseek = noop_llseek, };