Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4463236ybp; Mon, 7 Oct 2019 08:48:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOQOznFTjmPOYegtCL+D5EqOKlpia6ksH/eJTB4p4sGgMJLFbfTG64qcWnYFz2qtg1QdXY X-Received: by 2002:aa7:cd5a:: with SMTP id v26mr29035435edw.256.1570463327992; Mon, 07 Oct 2019 08:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570463327; cv=none; d=google.com; s=arc-20160816; b=yOQ5tJt4ir6Kdo+dAwga5apGA6yRDj3l7goMV5yyJr+geUkBSN/L9aq3xJ1R3mY491 iIqnauZ94s8DzUZrXplkRyGHjgxwmdwHesxaVAJDkatCIkMeS01mY07zhQguxUf9OUrm DmZ97Q4b1MfbApFjXzmuo3TRdagnbC+UMY+PhPlaFEgG6Qa4xwwBKsIJy0Kb6ma29pAm x4Qx6J8jC/xG7jDam2p5HJEzkLS4IuPM3SR/hUKymYeunphpobvqp3R3blfLMfD8q8Bq CDdFYWJJ2o9Wol7czags0YTkQ5dVtYMjrkKJEcBwVek+ObCCkNiZdDz58pMyE5g2SEJ4 qQGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=yqEg3SWazx0ATkZhOEo+r39BRbZnlRqgXjGaY8d2xOk=; b=TIin0mpaos8Dj8MN2YaG4W/nsjLxC7ChjvVXPurrxREKxSyWJV+D8VmVuzAwaYSDUk DsNIrw9yZiXo7gwLE5GqXnP1G+J2lZRCfqKkSoGiv7PHhCp7GFJZqH6Wg7A7Ic1rwiqm /qFg4ufK6KoDz/vBkRrpqCfeRt3bPT2+gR77EHnw8pADxu/lYcRriZbaPfR626/+j83B OCB3wUWPgGK1CAuGeuyY0+ARB7m7Lur5Jof8veqevTuhnM9mfcw5jfFZQKhRtK+rwAeO 6wwolTJm6V3iVHJhWS7gEmV1czbaHTomy6NVRxGwKHNU2tEDkUZ/yQmhYhwxqw11FGKt yyuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nQMLRuzE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si5975631eju.434.2019.10.07.08.48.24; Mon, 07 Oct 2019 08:48:47 -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; dkim=pass header.i=@kernel.org header.s=default header.b=nQMLRuzE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729131AbfJGPrh (ORCPT + 99 others); Mon, 7 Oct 2019 11:47:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:51984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729024AbfJGPra (ORCPT ); Mon, 7 Oct 2019 11:47:30 -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 B95A520684; Mon, 7 Oct 2019 15:47:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570463250; bh=/Q2RDASp4LWo029qo5Z0BXaWm3f/sqVUqNcy83HqtT0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nQMLRuzE853fLqW7QH0vHuBklmJIYitIIucYTP/hAs/SYGblHtWU6UOIfpq8V46zE cuBEBi8a6hAQkpbnS8NKKFbS6iUP1+Hmfy7Kecdzs8b0MrNKggP7POhONyyM8QAKdl /GKYvtcXCoxk2K+5lcZ//hrfvx+d9AyXwrGquFWQ= 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 v3 10/10] drivers/lkdtm: Remove references to CONFIG_REFCOUNT_FULL Date: Mon, 7 Oct 2019 16:47:03 +0100 Message-Id: <20191007154703.5574-11-will@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191007154703.5574-1-will@kernel.org> References: <20191007154703.5574-1-will@kernel.org> 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 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.23.0.581.g78d2f28ef7-goog