Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp946017ybm; Fri, 29 May 2020 16:30:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8cK2A+O25WyBPTpbVieoTkAaCidWFRzuED+BvB17GRDExdn59rUeb2SD4Y0l7kTiwULw2 X-Received: by 2002:a17:907:1106:: with SMTP id qu6mr9881748ejb.454.1590795019458; Fri, 29 May 2020 16:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590795019; cv=none; d=google.com; s=arc-20160816; b=rEBNqidKyHdR9uvwiY3FQ4olbWLor/VMBRufrra6cLJVCnijN6z3NaKdvkPmroUj25 XdSEWy4l0ff41l55UcHcaSWjrigIk4DA25jccx6hlXSrGNEXmwOkbLQ6vGxMbGkFbtIx 25Vgu0JDVfrN5aIWLkCrQEbfaC1I3TnLAH51x2xezo7rg3jAj/wX58dDCqmCoDLF4kX3 F7RzoXzUt/LUP840ESE/obt7QqPDGoJDGWFIpiA0uMd5YlKkmglRq2cDtxWcDSykAlR9 2g1lrV3UlHFGMrdO+kr3RoqCBwHMH4yeCjnmCt3H60vCZA99LyN24QKFiNIJpVY+G4no 1Brw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xunQvB4HCqrkyFDdUivChtldPNAvleilTZd6QYE0J/c=; b=fFBc20nCoBZee7Y8b+LyVrZ05WfzDj/vI9bi7NGRxWYV0DRoEmDnmP0fCls0b3HO59 G0OHovhFv6tmewFSDAl3RJDmQEKhpfRsCnnM6Lfy5Fm9VhlCiXMjBWTm9UUpMrkfnoDp gj05i5qiCjvSQJO4fNPJHILDIUKLx8k2F0NS8BzfpgURm9FGwPZ9jaI7IxobNRLp0Apj Nofr9Ybb1h7vuuXs6uH3aFTh3QiQlVqXfS6Fs3xvkKIwDakKRV2x/bKnKkwcS8zt1V4a /OuYSuCMZLDGCEWfRg/uqmotb7kB2HPQ0bVdSrESXJztjvzonbdQQdC6FqVvmmJojJTa 3Eiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si6225534ejo.327.2020.05.29.16.29.57; Fri, 29 May 2020 16:30:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728649AbgE2X1r (ORCPT + 99 others); Fri, 29 May 2020 19:27:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728499AbgE2X1Z (ORCPT ); Fri, 29 May 2020 19:27:25 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C55BC08C5C9; Fri, 29 May 2020 16:27:25 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jeoPM-000Bhy-0v; Fri, 29 May 2020 23:27:24 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 6/9] TEST_ACCESS_OK _never_ had been checked anywhere Date: Sat, 30 May 2020 00:27:21 +0100 Message-Id: <20200529232723.44942-6-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200529232723.44942-1-viro@ZenIV.linux.org.uk> References: <20200528234025.GT23230@ZenIV.linux.org.uk> <20200529232723.44942-1-viro@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Once upon a time the predecessor of that thing (TEST_VERIFY_AREA) used to be. However, that had been gone for years now (and the patch that introduced TEST_ACCESS_OK has not touched any ifdefs - they got gradually removed later). Just bury it... Signed-off-by: Al Viro --- arch/x86/include/asm/pgtable_32.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/x86/include/asm/pgtable_32.h b/arch/x86/include/asm/pgtable_32.h index 0dca7f7aeff2..fb10f2f8f4f0 100644 --- a/arch/x86/include/asm/pgtable_32.h +++ b/arch/x86/include/asm/pgtable_32.h @@ -32,13 +32,6 @@ extern pmd_t initial_pg_pmd[]; void paging_init(void); void sync_initial_page_table(void); -/* - * Define this if things work differently on an i386 and an i486: - * it will (on an i486) warn about kernel memory accesses that are - * done without a 'access_ok( ..)' - */ -#undef TEST_ACCESS_OK - #ifdef CONFIG_X86_PAE # include #else -- 2.11.0