Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3075323ybv; Sun, 9 Feb 2020 14:49:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxfzGVSL/h6lph4HxWMf/oNFf9fUfRmbX0+uNCWaREtDjXGXpk6z8jIqt5C9DDfrGkrMTJt X-Received: by 2002:a9d:6b17:: with SMTP id g23mr8265037otp.139.1581288576470; Sun, 09 Feb 2020 14:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581288576; cv=none; d=google.com; s=arc-20160816; b=c+powZFV6tJkQHth68x5o3PKjlbk1ws687mxeF6asd3a3FE1GX0UxEyVfjEllinjNM vdw+RIv/H9POxuZM+9AeIPOpNKHRyx6bHAq5mU6aGGOr6xql1L/vmVOfx6qphLvUoPVQ OEN/IE6uO2KyBVrIZ34MZuokjIKa6LOXvMDbUSabNPE2X1mHaz/Dpgs57Spm5lKQ1RNX +JLL0zDkyIoUyjUOYtXnlYb07U9w/hrk7T9mJMTBnW0IyIw1025/R+B0moQqq4XgdXi3 f1lYi6yJ2zLqu1USJWijlCUyzXSoemLw6vWrqUai/tnVNV1uaYYnsmXuqS917awrEoeQ 1/0w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=U5nFVCPFUZVGZ9tjWv0oFjWi+FTaJwKQRZfFYGfUUUg=; b=psPMztqlOBpRQlX7VKnyhIb+lZYVNV4Hgn0SU5pWbOipKaniiCsEgfkzjcdeXqRxZ+ cu/xai1/+XtACxxwt3Goc4O2MyUR8DbZv67MGJbmEXgtvsazLp21rLZIQmZ9Kt7CFaD/ JzT156LfXuDX+qip/5KSiMtGJXnfmCwigl1x0Ik49C0eJ/wOfTBBH0AA+b4fm9dyeqlu taFt41Hc9dmf7BmRl142VNhY1ROqZdWWUcoBZvL89/3K1cPx2TQAYYXTW3519N9TixEc xg6z1SBZeqjt0RWI3st7iHbbk0b42tTXOp09SM2yozWQTHIrGDbJffkUGBXLy70+BvAP 3PeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dkdMkDwP; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r67si7536193oie.145.2020.02.09.14.49.24; Sun, 09 Feb 2020 14:49:36 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=dkdMkDwP; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727121AbgBIWtQ (ORCPT + 99 others); Sun, 9 Feb 2020 17:49:16 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42719 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbgBIWtQ (ORCPT ); Sun, 9 Feb 2020 17:49:16 -0500 Received: by mail-wr1-f66.google.com with SMTP id k11so5232285wrd.9 for ; Sun, 09 Feb 2020 14:49:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=U5nFVCPFUZVGZ9tjWv0oFjWi+FTaJwKQRZfFYGfUUUg=; b=dkdMkDwPHQZKdjKUazNR6GkUXsK9lmR3gMf4pkpx2kZKucImYBGi9cfyx1VVT174f0 GAE9ssVObVEdRk5VfcljHgo3DYEn9E1Plcc5EHDO5CmcTVqoRiRO8pcu/aD+rmvHdj5H egDBesNa+cdTpBYdXCdmRunwscECV5h+ycph1QwFPoFwcnVWY4MDvuGprlHGQCbBHjzT WqaznMG2Vq0soLlnJXEagGCnGy6GbBVlAI1yKsT/RGZkD8sPkv44TUFRXHj+Vh3xZ8Y4 rEa7YRysRY1WvzPX2pLXe8dsl0Il7jIO+Vry9A9+4Fcs8Auc/ztpcyGj/kle2Nt1bQ2V 1ieA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=U5nFVCPFUZVGZ9tjWv0oFjWi+FTaJwKQRZfFYGfUUUg=; b=bbfsSCqRd8L4eEa2x9lElnJwYJgxX04xaMHS1joXa9R34jSq0Qm5ub6NTggDe/WTCD gjsploC/9HR5NS3KIheigIyEB5sL8adk3AYzKh8gW4dQUkU4hF+P0xkm3UEj04lIOuo9 C0KK+78ckeJyBZyEPWEmX35I8wiwLAbro+eIbv7fPVeTK899VVVkj3YlFuIWQ6Zri0ZI 2qSbD5L9kAP4pu+dXeAAD4IsRMkfDzQMXT+Hy2HYjn0gdN53vU68vGEL/uf+vVwbIpea OFeWVKRpBYh65j+gzId5z6ObWJMDbxTPzQu07h50HeduX9Vg1+T5DVWJ3txoEd6e46qL Modg== X-Gm-Message-State: APjAAAXtScDJSGacQWmtAQe9MZOAswLmf0MeUPLVrMV35PlGJJsJQfK/ InXK2dysV8z0WnI70cb2DQ== X-Received: by 2002:a5d:448c:: with SMTP id j12mr12604749wrq.125.1581288553707; Sun, 09 Feb 2020 14:49:13 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id k10sm13694884wrd.68.2020.02.09.14.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Feb 2020 14:49:13 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kasan-dev@googlegroups.com, akpm@linux-foundation.org, dvyukov@google.com, glider@google.com, aryabinin@virtuozzo.com, Jules Irenge Subject: [PATCH 10/11] kasan: add missing annotation for end_report() Date: Sun, 9 Feb 2020 22:49:04 +0000 Message-Id: <38efa7c3a66dd686be64d149e198f2fddc3e7383.1581282103.git.jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: References: <0/11> 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 Sparse reports a warning at end_report() warning: context imbalance in end_report() - unexpected lock The root cause is a missing annotation at end_report() Add the missing annotation __releases(&report_lock) Signed-off-by: Jules Irenge --- mm/kasan/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/report.c b/mm/kasan/report.c index 5451624c4e09..8adaa4eaee31 100644 --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -87,7 +87,7 @@ static void start_report(unsigned long *flags) __acquires(&report_lock) pr_err("==================================================================\n"); } -static void end_report(unsigned long *flags) +static void end_report(unsigned long *flags) __releases(&report_lock) { pr_err("==================================================================\n"); add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE); -- 2.24.1