Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1246810imm; Fri, 29 Jun 2018 14:17:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeuaK/SqsjPRyzQbYKjEi/DlZW9Hd4XWuV6kLv4HRjKyzPHCq9/Ssuj/z/MOU/uKITe8Q54 X-Received: by 2002:a62:2ec1:: with SMTP id u184-v6mr16142055pfu.184.1530307037100; Fri, 29 Jun 2018 14:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530307037; cv=none; d=google.com; s=arc-20160816; b=UIJVQutGbMje/t4n9DZeMF5CSygtXmJCSCNZfhyQyWb6xD6eLOpgZI6/u6H8pn85tk z39ssoZt6S9Bq+VWnDrK+cp2FmVGyByLhVLk7S7eHWYHfWT/39OsX6C8q7HMSfh0r9Zd 129Dwa9BKUYdFocjjxdEOt23vOmlJ8WNwa4+E+GrbN/8O6g0BW1bOYG7T392RVU1fV5X SToPcPLcIPBET17omyFKnP9zJnY218LCysH2axEVkWhBLa+Vft0zBgcsSFsb9tUVAW6a qh7mfBkmxhlEu0PG8UphF9i1HUxZSrfykUeSXrsWLPLMei/uG+Fk4wfabkIrgLKAl9pk CRFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=AVrH3g49qTuU5MGaodl1h6BEPENXKLRZPCj218iINGA=; b=bRom0yjJe9m9wG93m7a/EKVJDblNwZPsrV2z/cthyGvpe5TOa5QaSib/1lXBOAYP0s wcpm0FENnDMfCVvmk//5CURuvMRsPf7/cfG0VERjiI7HBtKFMYHvyXnv8jujY1st4kZk tOr4DPJWBM/nBO4GQQ1pL6Gki/3nX2GluU8rURDFR9dAX0y0YWPi6uBZcEf5jmLyfT39 iXtLQYhdYEnd9v5JfdTYB2uZZTkjML9k8zjicbUuW00Ms5pa1iJ9liJZNJqyT8ALBvcS q8jJVo4VXB1N8g/6kyxcVQ04s3ds876LGmUvnY+DnWEzW6fT6inkCp8Fi1TajaujcmVs qXYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 207-v6si8887684pga.113.2018.06.29.14.17.02; Fri, 29 Jun 2018 14:17:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932889AbeF2UE5 (ORCPT + 99 others); Fri, 29 Jun 2018 16:04:57 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:52077 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753523AbeF2UE4 (ORCPT ); Fri, 29 Jun 2018 16:04:56 -0400 Received: from 1.general.kamal.us.vpn ([10.172.68.52] helo=fourier) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fYzdU-0005Mn-6V; Fri, 29 Jun 2018 20:04:52 +0000 Received: from kamal by fourier with local (Exim 4.86_2) (envelope-from ) id 1fYzdQ-0005ZC-TZ; Fri, 29 Jun 2018 13:04:48 -0700 From: Kamal Mostafa To: linux-kernel@vger.kernel.org, Kees Cook Cc: Kamal Mostafa , James Morris , "Serge E. Hallyn" , linux-security-module@vger.kernel.org (open list:SECURITY SUBSYSTEM) Subject: [PATCH] security: CONFIG_HARDENED_USERCOPY does not need to select BUG Date: Fri, 29 Jun 2018 13:04:21 -0700 Message-Id: <1530302661-20953-1-git-send-email-kamal@canonical.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allows for CONFIG_HARDENED_USERCOPY without CONFIG_BUG. Signed-off-by: Kamal Mostafa --- security/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/security/Kconfig b/security/Kconfig index c430206..7667774 100644 --- a/security/Kconfig +++ b/security/Kconfig @@ -153,7 +153,6 @@ config HAVE_HARDENED_USERCOPY_ALLOCATOR config HARDENED_USERCOPY bool "Harden memory copies between kernel and userspace" depends on HAVE_HARDENED_USERCOPY_ALLOCATOR - select BUG imply STRICT_DEVMEM help This option checks for obviously wrong memory regions when -- 2.7.4