Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1687423ybi; Wed, 17 Jul 2019 20:08:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbAkV24ksGuUDrr4RjJrFf4xsGObG1wDbeUBgOAPuumJHyud7G8CtqCTWTSJ8QFpW9aehp X-Received: by 2002:a65:6288:: with SMTP id f8mr40408487pgv.292.1563419314911; Wed, 17 Jul 2019 20:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563419314; cv=none; d=google.com; s=arc-20160816; b=oepvT08iAQNpnrmRizq2aaPF1VQQeNfYmty/HvFWmsC71HDh2NFeesca/owHZVkn3H YfNO2Pbx9DSX7i/VC8zfhzZs5AUt0B2Tb9CkZYqMtXjXRm3WaZf/nbF3vtFlvKHJ6kB8 lr/X5O5gdIYOv3TYCC7MNOKttKnFPOWsGUmUXzIA9Mb5kUjJuHoR1ouHmSaY2Uzc0NW3 LWQRcZ6xTNs27rqz4xe5Ax7G2vlh3IaxoTFt8oha4dX5Famw84/N65NphdKLtZ5in5hB Br2lYGIn62vU9+PvWDlTQkXFDq9z47bs1OhohTkR4sUwPupl0GgD7P+nPjyN4BuBKmo0 +wTA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fq2/5g0AeNIHO8H7I4Z3oQ3L1Z9uQLOQl9vea+e99Es=; b=iHViYrA/esYoaaXlvQhRrN/EC5lQS9NBPKleShnOeVwn02nDitaLLNZLu0/to4OaPt c3S3aKWo84c34xM20f4YdIRntCwfjhPnwl61FvBZVIOsFGFbcYDd8eT22DJf70r2WRp3 YNBw5mC7ab7rSUqaHQptDZtgjjzM3Dk/T22TsE0eU0c5q6xJY1wsQBTdcBV30mNVeOJY aUFLlCz2Bs7VGMhUzCnhnO53NTg4tEdNPEumeqpp25KF2lvkjaWyhzrxVXxuKW08w6Zd 5fiVB6wR1urxIrwhRmFkF2jhBDu95Bz45Aa2SNV8X/PvpIsaqZoMrsCgNKvUOVr2OhZz ZJfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FO1ejG7l; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2si10519875pfp.113.2019.07.17.20.08.18; Wed, 17 Jul 2019 20:08:34 -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=FO1ejG7l; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389632AbfGRDHO (ORCPT + 99 others); Wed, 17 Jul 2019 23:07:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:38600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389830AbfGRDHJ (ORCPT ); Wed, 17 Jul 2019 23:07:09 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E6EAB2053B; Thu, 18 Jul 2019 03:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419229; bh=LyZ1n9E0H3QVsJ1XmRdofYE6LF/cEyXD7zYBG/sL34s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FO1ejG7lioNEwT2jOeoiK4zoI7eJ26mNygIdLqqJVlXjJVaKw5hwunL8t+mKGjZuh sFxXu9ZwOHXbX1Bt49JEX79IUiYyX2at6xvICL/g2tffMLkhLrUxh76ZDTxdnN6EVh e4xR9gs2kB+E+mBWb5+ferH8tnSkleoWXrr1RTHw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Milan Broz , Mike Snitzer , Sasha Levin Subject: [PATCH 4.19 21/47] dm verity: use message limit for data block corruption message Date: Thu, 18 Jul 2019 12:01:35 +0900 Message-Id: <20190718030050.489111670@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030045.780672747@linuxfoundation.org> References: <20190718030045.780672747@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 2eba4e640b2c4161e31ae20090a53ee02a518657 ] DM verity should also use DMERR_LIMIT to limit repeat data block corruption messages. Signed-off-by: Milan Broz Signed-off-by: Mike Snitzer Signed-off-by: Sasha Levin --- drivers/md/dm-verity-target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-verity-target.c b/drivers/md/dm-verity-target.c index fc65f0dedf7f..e3599b43f9eb 100644 --- a/drivers/md/dm-verity-target.c +++ b/drivers/md/dm-verity-target.c @@ -236,8 +236,8 @@ static int verity_handle_err(struct dm_verity *v, enum verity_block_type type, BUG(); } - DMERR("%s: %s block %llu is corrupted", v->data_dev->name, type_str, - block); + DMERR_LIMIT("%s: %s block %llu is corrupted", v->data_dev->name, + type_str, block); if (v->corrupted_errs == DM_VERITY_MAX_CORRUPTED_ERRS) DMERR("%s: reached maximum errors", v->data_dev->name); -- 2.20.1