Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp155675imm; Wed, 12 Sep 2018 20:18:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ70jLK2lQXi5ir+ySznXr3QRP7KIPZ9zl541nzF2dhNZ8MzEhPuGqV0nUhBpA7h7AyVoUx X-Received: by 2002:a63:9712:: with SMTP id n18-v6mr5014279pge.69.1536808726730; Wed, 12 Sep 2018 20:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536808726; cv=none; d=google.com; s=arc-20160816; b=VQq/aFvjjv1na8RPAsuWfDIfyuwTD9CvbIqiDLKxgymjpaTmhayAcC4xbBBn4FbtMl LD5xXwB4rUKePmdmQVwyaDMaIX8wOJE8CtfF5DxJL2Uh6YSCCi90NfAyg34y+aozxPju 4V8c10tbqfIbg4uwMjhC10uFdnLhOGKujxft1Ff0UYnih+CMEbBxGm3e5/e+fKEpgTtz nZP/ZA/l2F5OZDQ/QA66iGJGGDnWsPpTqgwMggC5qXGfH+N/P2kumOrqEt9Z9n5oCN5O bixtSPLpEq5mAC2n6jxQgmNlPpJM2RB2SiI2HLTxWtXq8PT+Uzua+W4jjY+rjPuagEvc kaGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=6VH3VX7As53cWimUbvfA2Yqc+XKpLTqCykE0/VNLwmI=; b=upLusFXfpjM+Rfs3DS+K+FLVg34sntEgSCPix0iPg9Qvd3Ei1Jo5QhBhKkKlWab1BM wI7iPbSNzlKM7jfSQTY4TflPsdaW4EMUg7UXY229Yd2hWkF12Ggh3lj8y+jsGvuB4abf 8G+ISfrrkr34F8e9c4X7H5RbQWZrdiAX2TNwu0p3LyNiEzqGIm2UsKuoRDINDi5t8gqK A/RzyzPVX1kqGOZbovZ3KIQdy38kwQsmV0SbyXmbnwaXzXwptIgQgoiLQhBCCp6PxSf0 mKnNxuFqr2y6VedBRv9eO3ox4oiBfywmkek4CLdiGGAEr71LbZlWXvnHm/HotXumnSpN oHzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bd29LdJO; 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 n5-v6si3107547pgg.572.2018.09.12.20.18.31; Wed, 12 Sep 2018 20:18:46 -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=@gmail.com header.s=20161025 header.b=bd29LdJO; 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 S1727623AbeIMIZ5 (ORCPT + 99 others); Thu, 13 Sep 2018 04:25:57 -0400 Received: from mail-pl1-f170.google.com ([209.85.214.170]:41352 "EHLO mail-pl1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbeIMIZ5 (ORCPT ); Thu, 13 Sep 2018 04:25:57 -0400 Received: by mail-pl1-f170.google.com with SMTP id b12-v6so1932268plr.8 for ; Wed, 12 Sep 2018 20:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=6VH3VX7As53cWimUbvfA2Yqc+XKpLTqCykE0/VNLwmI=; b=bd29LdJOAoLiv/Cf56hJLYGhcbjiTfNQifVv7K1Fl07S8/bFe+Pc/cnlzpzvIYtWQd mhJsisStR8kpH9knWjY25LWxXRxSsrJC12K0NUDgujDWZW04upAkKQc0bTHcg0vz+U1o vnbfEnhbeYrXaQJcm9D2hkmEODtJM7j5eLaUP87GMUss2/A0+uMD4ztgmOMCC3uxCKIA +7Y5T7QaOsoA969Z1hu9GYgP3aUDaKn1fKS9siYSGhXmNIHBiI0Czajlx8dcNR3510rz ffyS/xZThH2Gd2syHNW3VhmpCez26nb9HO4r6tME463WwYrRqeFSN0S8dVRxEq4Al6eQ aQHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=6VH3VX7As53cWimUbvfA2Yqc+XKpLTqCykE0/VNLwmI=; b=GVOrMhyeSWEMBwPejIPQ9kk+jLffP+DIOQqvC8sW0/iEtuVr+7qyRdE137YF1XvlpP byQLuCmReiCAJp7MEfRlomVZ31ZT1uHe3uVsU5wU/0/T6yw+NmrGQIS2u4oZb/I58HTC hCP0DwtpVR794hQz/vVVLfQNFPGnC7I0BOKe+3ADktXUzXDM/Dhxnbp+xI1Bs9eFCo2x XRdUK2B1Ut63nIiz9x2UHmadKuqLSshrn7WEJETgYB4/u1AYfwLvzJa1O/lTTbRjtMRW V4cfFvquoJCSIzkVonVwLRdchRsWHliiNEfR4bi7OmvZVgcGM5Cpt/u7zAQ+XDHXGimc QV3A== X-Gm-Message-State: APzg51CblBkyud2bCuS3+hN3nsg4CHAO8mtQaFrUjeMMGMwvtJVgwm+J EIs4DjbqRC1lL14zToXHA5rZ8m7a X-Received: by 2002:a17:902:bd95:: with SMTP id q21-v6mr5170417pls.284.1536808706811; Wed, 12 Sep 2018 20:18:26 -0700 (PDT) Received: from ?IPv6:2402:f000:1:1501:200:5efe:166.111.71.58? ([2402:f000:1:1501:200:5efe:a66f:473a]) by smtp.gmail.com with ESMTPSA id 74-v6sm5438642pfv.33.2018.09.12.20.18.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 20:18:26 -0700 (PDT) Subject: Re: [BUG] [Resend] Possible sleep-in-atomic-context bugs involving regmap_lock_mutex() To: Mark Brown Cc: gregkh@linuxfoundation.org, rafael@kernel.org, David Howells , Dan Carpenter , Linus Torvalds , linus.walleij@linaro.org, Linux Kernel Mailing List References: <9bcef57b-1a5c-cd16-8e44-932ef3be08cb@gmail.com> <20180910174104.GD10889@sirena.org.uk> From: Jia-Ju Bai Message-ID: <6a754893-535a-c53e-fb65-2221408e06e3@gmail.com> Date: Thu, 13 Sep 2018 11:18:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20180910174104.GD10889@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the reply :) On 2018/9/11 1:41, Mark Brown wrote: > On Thu, Aug 30, 2018 at 10:34:20AM +0800, Jia-Ju Bai wrote: > >> My static tool DSAC reports many sleep-in-atomic-context bugs involving >> regmap_lock_mutex(), so I wonder whether this function is possible to be >> executed in atomic context. > Have you actually analyzed the code paths that are really taken here? > Static tools really don't cope very well with the pluggable locking in > regmap. If there are problems I'd suggest reporting them to the authors > of the drivers using them, it's not really anything to do with regmap if > they've messed up their locking. Okay, I will send the reports to the developers for these drivers. Best wishes, Jia-Ju Bai