Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2932469iog; Mon, 20 Jun 2022 07:45:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1urFWvE9EJ4MTRullhrqSonUdm/BmleMvbYMJQsT+PW0SOSaXXOzfIfy0jcpb2oeQdfxspL X-Received: by 2002:a63:8c49:0:b0:40c:dc51:5d01 with SMTP id q9-20020a638c49000000b0040cdc515d01mr1532273pgn.615.1655736352307; Mon, 20 Jun 2022 07:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736352; cv=none; d=google.com; s=arc-20160816; b=BmT6IbDzH8Mqa4kzRjfbhyf2vNLxUyIFwu6rY1WzSkrp+n85FFfH85ykRSj0DJaf4z 7pLsS0bmiuVZZOc5P9i0HyMdiETHiHhmrBoAjjFkfndWtSlQ787an9es0qPdXM6ilRCm 93CwPkHv1PzrxGCnXMkEo/lMrB+fD48TmVfgvxFNyN/n1adh6I12eWjIN99v8EpooZr/ INE9oWw2G8mCLrL2l1T+Dj0MqdTJqJMzxaVuX54nDQAahwvbn5tw8aApVGbe5w9FWUHo IyyILGx47j+/TJZx9nptQ32adOGKUn5fIIAtnKDLMQBPNqXMaxQ+JEaFiPfFxbgfVa0L etWg== 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=BWfVubUDFPxoAhRholhPrRD5o4Y3N5R5S+N1WKZCWPY=; b=BVecRklUmWUAx3+IkUba5wzPO2VzXTtHJvnjukvfhle8MolWY3C4tt2KEcGx3kdaEQ ei/NZDbi5KQFUXGog1GcM/7cAjwPGw9Vkrhu0MO9VPTMTGapRi6to1nlbixP9ruS6ZNB fWoDk07W4NdoH7k2LtcW/TEPonymfQykOTqhPnapMDWCJ3phQbpZF8qUwqdY/x7MsUr2 WssSYtD94gFH7R/mvxr2ADvZ+Kcb94iCKIcLg/v8lAhOAtx4hdNNHI+p+7utqXZeum57 F/E5+d8DaXgm0pJvrzxqO4fxUvU0dlN/+dAvEht4gUVHNtXB3M0krojx8BLzD3NtfYCd 6azA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MKXjYf5k; 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 f5-20020a056a00228500b005103895dae4si11188078pfe.316.2022.06.20.07.45.39; Mon, 20 Jun 2022 07:45:52 -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=MKXjYf5k; 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 S1346040AbiFTNbf (ORCPT + 99 others); Mon, 20 Jun 2022 09:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347338AbiFTN3n (ORCPT ); Mon, 20 Jun 2022 09:29:43 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54FBA24BF1; Mon, 20 Jun 2022 06:12:10 -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 sin.source.kernel.org (Postfix) with ESMTPS id DBC78CE138F; Mon, 20 Jun 2022 13:11:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7EDDC3411B; Mon, 20 Jun 2022 13:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655730686; bh=DWXhcP2qQyfBGwBLLbzt5ZQ443Pbhgi0xkV+QO/Xe50=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MKXjYf5kj60ZDaON6DtlEu4n0fp5jLYU7QEizwaEJ7URY542+qEqE//CBGdOFiH1P x+1i3NTAIFgx/dVi2oF3mmK3j1HCg0GDXMOFe/ha0MuFbdyFvsgGU0BvKa4QUnt8zp BkGxdoNfz/CRejBDYLSamUDwtrXOXY2cGIGCaR7g= 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 007/240] compat_ioctl: remove /dev/random commands Date: Mon, 20 Jun 2022 14:48:28 +0200 Message-Id: <20220620124738.019462501@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: Arnd Bergmann commit 507e4e2b430b6a27b66f4745564ecaee7967737f upstream. These are all handled by the random driver, so instead of listing each ioctl, we can use the generic compat_ptr_ioctl() helper. Acked-by: Greg Kroah-Hartman Signed-off-by: Arnd Bergmann Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- drivers/char/random.c | 1 + fs/compat_ioctl.c | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -2190,6 +2190,7 @@ const struct file_operations random_fops .write = random_write, .poll = random_poll, .unlocked_ioctl = random_ioctl, + .compat_ioctl = compat_ptr_ioctl, .fasync = random_fasync, .llseek = noop_llseek, }; --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -808,13 +808,6 @@ COMPATIBLE_IOCTL(WDIOC_SETTIMEOUT) COMPATIBLE_IOCTL(WDIOC_GETTIMEOUT) COMPATIBLE_IOCTL(WDIOC_SETPRETIMEOUT) COMPATIBLE_IOCTL(WDIOC_GETPRETIMEOUT) -/* Big R */ -COMPATIBLE_IOCTL(RNDGETENTCNT) -COMPATIBLE_IOCTL(RNDADDTOENTCNT) -COMPATIBLE_IOCTL(RNDGETPOOL) -COMPATIBLE_IOCTL(RNDADDENTROPY) -COMPATIBLE_IOCTL(RNDZAPENTCNT) -COMPATIBLE_IOCTL(RNDCLEARPOOL) /* Bluetooth */ COMPATIBLE_IOCTL(HCIDEVUP) COMPATIBLE_IOCTL(HCIDEVDOWN)