Message ID | 20230521082813.17025-2-andrea.righi@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp772289vqo; Sun, 21 May 2023 01:49:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6z9lPyqyMaOBTMjluJWpOK6QEEU7Ujfl591B+zu6014avN+1TwaVx9gP7AkJcz8zeOcEA5 X-Received: by 2002:a05:6a20:8f28:b0:102:f744:a70c with SMTP id b40-20020a056a208f2800b00102f744a70cmr8557272pzk.3.1684658994242; Sun, 21 May 2023 01:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684658994; cv=none; d=google.com; s=arc-20160816; b=lU8NN1O4YPBfjX0Pyj/npnHF5IrgLlTBsoOekHqgOI67NGpxabvCtl7/y+8XgCNJyr R7BSnGdblAPjGUphz+94NIA0LkhK/AO7x8eLeCdAGxm5lIPqPBPgdZKNEZQ10/llh2Ko 9DBo3IV/0LhyKavkzvYNQ75O6np2A1PSbgxTQ1++Z7HiwPMj5qV46npNvkBYl6/O2GSB pWFy65YSVOnGIi5pD78/WDxK21ZuFIfy9r5oQ/O9Ep+uT5GRvtZKr2sgMEtAiuAQomDI NoIpMQl3q1pgNDMGk5ZJlU3rQEiqgsPZ1iN86uvjf+3k49gk/cL/mz2JAeIwjRMb3grM y7+w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Tv9SP0tP+8DRjLTNt8sd7O2hc074o3ygEuc+rvxGi5M=; b=aR0rNuJGyyu9oKApXuxVMPMqa12gYuEnzurIsYs1I5AyALl7SvwBjz/UV+kNqEDLsJ Acww2UCjoQgR8AhHhHBFv6dWS3SHCjeLdZWbVcT0u3O0OgGvVE9sI0Awlbh4IThmTsoV r/FQdnrksKCknYzhL6Vdq3lJcM0vT9IgXLkatHTSfa2Ia/vDyEcT9KSHzz6dHGeaAPH2 wmPxdMGloPwrvhdh4WWf0bECJHbyJcZibZNzl3WxheJFi37eumFLHQ3f02hG5+6jELfU 5i4S2fIBkdrKtHeLEnK/M1e4DCfhGXrCmPs7mt1u6bgUKmprQjkQ7mgX+W7D5tbUsUGV 7Y5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="B2np6/42"; 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=canonical.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a63ae0b000000b00534792ee482si2802760pgf.758.2023.05.21.01.49.42; Sun, 21 May 2023 01:49:54 -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=@canonical.com header.s=20210705 header.b="B2np6/42"; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229947AbjEUIgA (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Sun, 21 May 2023 04:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbjEUI2T (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 21 May 2023 04:28:19 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8B11198 for <linux-kernel@vger.kernel.org>; Sun, 21 May 2023 01:28:18 -0700 (PDT) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 78E5C3F4B8 for <linux-kernel@vger.kernel.org>; Sun, 21 May 2023 08:28:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684657697; bh=Tv9SP0tP+8DRjLTNt8sd7O2hc074o3ygEuc+rvxGi5M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=B2np6/42mdslIvsIz/AUbtKnejLsEHxvj1UOw6KmBS/Ta48DhDz2j4JvvklOznnLT mPkeOIyWbL4B/QRQfBBsYPkGzkaaG+XgbruvhbESXtjYopzkV56ZxCPPxsAM5f+wiV hxWbuit6wu+iTb0v/Pzmeux2by3trT85gWPFAWVf2OMZrIRmdBWJHrnJeP79aczMBF WI+BtN1iKDvpC7UNpQUik5CH4hMCxKk4Tr7Njr4Ow+WVkCqiKld0aR1tQx2+lalUmv +zNbTSZTYJd3+kMXtG+kEQl9nyGXcRoLZYIzBQ7MNQMgl96ftZjJcvRLqq9S2CQS2z svf3lys3oLPFA== Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-51392d645d5so539515a12.1 for <linux-kernel@vger.kernel.org>; Sun, 21 May 2023 01:28:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684657697; x=1687249697; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tv9SP0tP+8DRjLTNt8sd7O2hc074o3ygEuc+rvxGi5M=; b=Bz/OrGpO0o4MVfUKs6oJHS+0bSzAqZtBpqeRjnKPmS4DQmE2YnK5wM2ZeHibI4izoG 1aCdD833hs9NZNYcYXTdgs591dMEupbo0r8TM5prtXJ1HtXIFbeKy3KcASmHa1Nyb3E3 xBM0oCVlL897MbQScIDz15Xfqd+p00VHPMMfDIxnHljj08a9ctXyinjpvXkNyH33GgNU VYfs2pEtfyJ1r9vf2Vq575ukCqdxqiTckJxYBZJx7aUtEg7tHToHR6PerM+9EIV9qT+7 /IUkoS0TiFzrEaslBjX4ggjss4soWCrldpJAFJ/iE/Ey7eV/kBlgeprXZ9tStq432Woo A5ew== X-Gm-Message-State: AC+VfDzbV7tH0m6I9O60H0xAHtp8u5DYQ1mbyOJkVNFfsw/zFMYCnp4X U5X2LR+wUx3o0GzjNHFkkeEUrwJmw+mry7GM6OCYnkH/t/iDWHznquuN6/ee5d2hC9TGfWOvw18 xUv7hpa5OsuRydQ7HSY3sY9eSBAfHbJuzuyieQApgyg== X-Received: by 2002:a17:907:ea8:b0:96f:d63a:9508 with SMTP id ho40-20020a1709070ea800b0096fd63a9508mr408830ejc.33.1684657697001; Sun, 21 May 2023 01:28:17 -0700 (PDT) X-Received: by 2002:a17:907:ea8:b0:96f:d63a:9508 with SMTP id ho40-20020a1709070ea800b0096fd63a9508mr408823ejc.33.1684657696828; Sun, 21 May 2023 01:28:16 -0700 (PDT) Received: from righiandr-XPS-13-7390.homenet.telecomitalia.it (host-87-10-127-160.retail.telecomitalia.it. [87.10.127.160]) by smtp.gmail.com with ESMTPSA id z17-20020aa7cf91000000b004c2158e87e6sm1656646edx.97.2023.05.21.01.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 01:28:16 -0700 (PDT) From: Andrea Righi <andrea.righi@canonical.com> To: Miklos Szeredi <miklos@szeredi.hu> Cc: Amir Goldstein <amir73il@gmail.com>, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] ovl: Kconfig: introduce CONFIG_OVERLAY_FS_DEBUG Date: Sun, 21 May 2023 10:28:11 +0200 Message-Id: <20230521082813.17025-2-andrea.righi@canonical.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230521082813.17025-1-andrea.righi@canonical.com> References: <20230521082813.17025-1-andrea.righi@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766492989509899834?= X-GMAIL-MSGID: =?utf-8?q?1766492989509899834?= |
Series |
overlayfs: debugging check for valid superblock
|
|
Commit Message
Andrea Righi
May 21, 2023, 8:28 a.m. UTC
Provide a Kconfig option to enable extra debugging checks for overlayfs. Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Andrea Righi <andrea.righi@canonical.com> --- fs/overlayfs/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/fs/overlayfs/Kconfig b/fs/overlayfs/Kconfig index 6708e54b0e30..fec5020c3495 100644 --- a/fs/overlayfs/Kconfig +++ b/fs/overlayfs/Kconfig @@ -124,3 +124,12 @@ config OVERLAY_FS_METACOPY that doesn't support this feature will have unexpected results. If unsure, say N. + +config OVERLAY_FS_DEBUG + bool "Overlayfs: turn on extra debugging checks" + default n + depends on OVERLAY_FS + help + Say Y here to enable extra debugging checks in overlayfs. + + If unsure, say N.