Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A943C05027 for ; Mon, 6 Feb 2023 18:25:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbjBFSZ1 (ORCPT ); Mon, 6 Feb 2023 13:25:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjBFSZY (ORCPT ); Mon, 6 Feb 2023 13:25:24 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09B5C28D2D for ; Mon, 6 Feb 2023 10:25:23 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id mc11so36722263ejb.10 for ; Mon, 06 Feb 2023 10:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5pIKYXVcSIwS8veSCH80q2Ai3VYS1M33E7BXdYcwbEw=; b=aNdDScUudD4zj5QHuuNGc76Q/NxYF5rPIqFKxGjjefRpEASyOQ9GoxDr10JcSZD1/z WkODS3TC7fMNPJ5fv0YMZTorOd9tFNAhD/cDDuI2VzFMLMLI+WUPum75HzxuG0rSrKpI uO/6XRPsv4bDxUoH22PMbHJiSswxdvg7Xuov0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5pIKYXVcSIwS8veSCH80q2Ai3VYS1M33E7BXdYcwbEw=; b=V1q4Ej/DGNigau1rfTu1wVR3pcvXXU8a3NlkvgcOIFQsKHDcfq7lTmB8kQVTbdkNoC KDASxRxfITVMRxvMd79FSzfHA/7xoLSUee5ekshcJRudTybZl2qd9VDexUl0hAlV6KYd y2BpTD/GHQRS4DBR+qhZ/vDeEDI+OhTDZyLHo+sgfZfImq710zTmzJ0ucd/2DT+zz6hv 0aAvUS9bY86PaIS0P8I0UgetvlFb2zZjYcov7m11GOmwehvqNLgJgkuRbKKrR/CvuEhV MsIjqUBNLyK+ydqh9pMy+ayizQzv8FfgiIdLoUP939uKPbmQ27cnzi7GdE81bmyVHRjv DcTw== X-Gm-Message-State: AO0yUKUYLiYD+FtJTm9ZofzeV7e+iI3DQODkzcAyPIyPsqYtCOOt05nA 50mWDDVr3LOLNuQjItzUV7oj/wnTaBrL7S5p2y310Q== X-Google-Smtp-Source: AK7set+ZpVkQJxoqrXdc3XAKrhBmZGosaShSl1vB8rgEdHxWdcBRbDOeztdXTjDfPqDCJkaRLIf4oA== X-Received: by 2002:a17:906:3013:b0:88c:f8a1:fc4a with SMTP id 19-20020a170906301300b0088cf8a1fc4amr361129ejz.9.1675707921349; Mon, 06 Feb 2023 10:25:21 -0800 (PST) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com. [209.85.218.49]) by smtp.gmail.com with ESMTPSA id lt14-20020a170906fa8e00b00880dbd4b6d7sm5856194ejb.170.2023.02.06.10.25.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Feb 2023 10:25:20 -0800 (PST) Received: by mail-ej1-f49.google.com with SMTP id mf7so36761535ejc.6 for ; Mon, 06 Feb 2023 10:25:20 -0800 (PST) X-Received: by 2002:a17:906:4e46:b0:87a:7098:ca09 with SMTP id g6-20020a1709064e4600b0087a7098ca09mr79649ejw.78.1675707920180; Mon, 06 Feb 2023 10:25:20 -0800 (PST) MIME-Version: 1.0 References: <20230129060452.7380-1-zhanghongchen@loongson.cn> <4ffbb0c8-c5d0-73b3-7a4e-2da9a7b03669@inria.fr> In-Reply-To: From: Linus Torvalds Date: Mon, 6 Feb 2023 10:25:03 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] pipe: use __pipe_{lock,unlock} instead of spinlock To: Dan Carpenter Cc: Julia Lawall , Luis Chamberlain , Hongchen Zhang , Alexander Viro , Andrew Morton , "Christian Brauner (Microsoft)" , David Howells , Mauro Carvalho Chehab , Eric Dumazet , "Fabio M. De Francesco" , Christophe JAILLET , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, maobibo , Matthew Wilcox , Sedat Dilek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 6, 2023 at 8:45 AM Dan Carpenter wrote: > > You need the cross function database to review these warnings. [...] > > hl_device_set_debug_mode() take a mutex. Then you do > `smdb.py preempt hl_ctx_fini` and it prints out the call tree which > disables preemption. > > cs_ioctl_unreserve_signals() <- disables preempt > -> hl_ctx_put() > -> hl_ctx_do_release() > -> hl_ctx_fini() > > And so on. Hmm. Do you have automation to do that at least for the non-driver (ie "core kernel code") ones? They are *hopefully* false positives, but if not they are obviously the most interesting. And they are presumably not quite as overwhelming as all the driver ones, so even if they *are* false positives, maybe they would then be the point to start looking at why the tool gives the wrong answer? Linus