From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 356C8CA9EC5 for ; Wed, 30 Oct 2019 14:31:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 079C220656 for ; Wed, 30 Oct 2019 14:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572445872; bh=I/TIrrY9kPUAAxcYeoj8WaHY8dHp5XY+jk5tNNs5/70=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Hg7Y+36NStn1q2g3dSqk14ZlsCgOweNQU7cuajJTOopWnGAgJ0TCREeiCANcpwRf9 OrUcBj4ZauzgwK9dAbm/n0OOw+Fh/pDekU+WzXt/x/PuOVglu4BSg1SUW5kw4qpCwk fGY2Gi6ONYFd8s172utri2GXLmANTUGDBzL4PRJs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726934AbfJ3ObL (ORCPT ); Wed, 30 Oct 2019 10:31:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:53864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbfJ3ObF (ORCPT ); Wed, 30 Oct 2019 10:31:05 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EAD6221906; Wed, 30 Oct 2019 14:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572445864; bh=I/TIrrY9kPUAAxcYeoj8WaHY8dHp5XY+jk5tNNs5/70=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WbuqxQeeCtjgImoZHHI2FREONagJsKsmivzAtBAJHNBZ8vWhEQh5B9BuirSz7JSTb EW2A3BD7PWoTEDeVK7N3VhWMyHVNeBZk8dhUuAzx2Nd/1LyxnmqTyBssWtYL00LxRN hVW2HAt5jDh32q84dldhNyIcvngPInwQ+2L20hq0= From: Will Deacon To: linux-kernel@vger.kernel.org Cc: Will Deacon , Kees Cook , Ingo Molnar , Elena Reshetova , Peter Zijlstra , Ard Biesheuvel , Hanjun Guo , Jan Glauber Subject: [PATCH v4 10/10] drivers/lkdtm: Remove references to CONFIG_REFCOUNT_FULL Date: Wed, 30 Oct 2019 14:30:35 +0000 Message-Id: <20191030143035.19440-11-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191030143035.19440-1-will@kernel.org> References: <20191030143035.19440-1-will@kernel.org> 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 CONFIG_REFCOUNT_FULL no longer exists, so remove all references to it. Cc: Ingo Molnar Cc: Elena Reshetova Cc: Peter Zijlstra Cc: Ard Biesheuvel Cc: Kees Cook Acked-by: Kees Cook Signed-off-by: Will Deacon --- drivers/misc/lkdtm/refcount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/lkdtm/refcount.c b/drivers/misc/lkdtm/refcount.c index abf3b7c1f686..de7c5ab528d9 100644 --- a/drivers/misc/lkdtm/refcount.c +++ b/drivers/misc/lkdtm/refcount.c @@ -119,7 +119,7 @@ void lkdtm_REFCOUNT_DEC_ZERO(void) static void check_negative(refcount_t *ref, int start) { /* - * CONFIG_REFCOUNT_FULL refuses to move a refcount at all on an + * refcount_t refuses to move a refcount at all on an * over-sub, so we have to track our starting position instead of * looking only at zero-pinning. */ @@ -202,7 +202,6 @@ static void check_from_zero(refcount_t *ref) /* * A refcount_inc() from zero should pin to zero or saturate and may WARN. - * Only CONFIG_REFCOUNT_FULL provides this protection currently. */ void lkdtm_REFCOUNT_INC_ZERO(void) { -- 2.24.0.rc0.303.g954a862665-goog