Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp795130rwb; Fri, 23 Sep 2022 04:23:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6nMM9uS7wwVmSjs3j6z9SwAFHcJgtkstmhqsKAWNxQhoqiJp0i0w3H8lGvNnIa7lL7J7Yv X-Received: by 2002:a17:907:320b:b0:780:280:7b72 with SMTP id xg11-20020a170907320b00b0078002807b72mr6889015ejb.146.1663932232864; Fri, 23 Sep 2022 04:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663932232; cv=none; d=google.com; s=arc-20160816; b=fd73a7zAY4h067qq39yKfDKO+HkVbgjXfnzSoKGc65UHj86+71glugXCz3KPWt9omi oAvXiGhZcmXJEWq2H5jRuzwtvzUa+oEd5FElZohzmgy6Z18hoG42NydkqvZQyU4ML3We BG7jP3KoERz0JOmjjqsaO0s+bkiTCasQbJXubOD7HIdIN9Q80IJmGszsidlWcDMoRrXs vURcRWF7sQXjlBFBk/xZJvXPTZpk8LvQVF4wPqCl1YeN6vDu6uu3SF1sSVuGEndsT0CB HhAIUTWwsDmnxukAxJiZ3N+u2auWwuIZEMlCEWIU8R7J3JhRX4tzZiwAQ80vp0tmSULh ChDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=pq+nqOhkpxfLUyiqEq4MNg6ulDavWi2pU/tSeIb7Oc0=; b=DEKndb04NjsBfzOpU6cbaFILoRDBafX/QMCUnSbHFAJXQ5kPMGp+XMFIe7MrvHmFYr PMdjz9wixqfRJDARX1CQTozxZyJu/t4R1szXuvH7dPLzCsN6MEkUj2h61yT4FoUEDMb1 QT3+NVOEb2mMdfBJOeQHrCIGhT4wEGT7qq2190ZBCEZYKvnXWPQkgFYHL2MKUzvwbdmU eTYjpLifE4BMxkoZHmp2IkRr1f33aA52R55JsXXDWhDmkVFXGLQ0Uq7fi3CMPaxDCJ93 rRIeFLnOHybiQA/NNA0TWkrAt911YmO3IMV6BAtH/V74SUEgtF8NJDlAmQjGZmAFpxcF bw2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Gl2cDoLB; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x16-20020a05640226d000b0044ee4ec8915si8722738edd.39.2022.09.23.04.23.27; Fri, 23 Sep 2022 04:23:52 -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=@redhat.com header.s=mimecast20190719 header.b=Gl2cDoLB; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231586AbiIWK6s (ORCPT + 99 others); Fri, 23 Sep 2022 06:58:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231849AbiIWK6d (ORCPT ); Fri, 23 Sep 2022 06:58:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE2F6DE8F for ; Fri, 23 Sep 2022 03:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663930712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pq+nqOhkpxfLUyiqEq4MNg6ulDavWi2pU/tSeIb7Oc0=; b=Gl2cDoLB6/AvIdcZ30SWvHLyp1GIr5KC5dwlIfWn7G+g9W8R1vRyGdKo5C8BW4d4hcFp+i gTGf/pnDjaAZYIhcC4xLdM+9RNrcuq1rcdT4UQmZ3h2tn+OXlOzFIPVzFjpPW2Er1g7Pir poaJbeOi3B9Hrm2smmnYnttw/Zx8KmU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-212-w6UK8VfmMiyVC1W9ExyIJg-1; Fri, 23 Sep 2022 06:58:30 -0400 X-MC-Unique: w6UK8VfmMiyVC1W9ExyIJg-1 Received: by mail-wm1-f70.google.com with SMTP id b5-20020a05600c4e0500b003b499f99aceso2561111wmq.1 for ; Fri, 23 Sep 2022 03:58:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date; bh=pq+nqOhkpxfLUyiqEq4MNg6ulDavWi2pU/tSeIb7Oc0=; b=VUh788tMLZ9xxHX9ezTAn/H5mzagZqXa4a5kJSa6eaQWIyNrM+QTa4Ggkerq4vEt36 4p1kCGg0Mv2xvsJ3wk8v1YqXYKcvXNoBkl+jbCFFMl0EOUjHdhJZwT9GTzdAcg2ZYVvt GSiYARF6WO9EZR4sKC9dwUZ6r+eiqBQ5BFRV5dwdnbuGAIdFa4r25992xxC1BavmudJD iFjOtADdcaSWKAUicmYixyA5eagYzjNhWPZ1cXcjTNHdAN3EZHDsrElSNl5n7ya7clwR FsCNDD5y0D1uo1F5SSwfMw65t51xmzLWYPpkvEFGiYSQ4r8z4oPsQ1lU2OBuMQsWAN0l fEvQ== X-Gm-Message-State: ACrzQf2eazK7wXMQ9B9i8THVHNnKbTa/LZPWRM5PQ4aIEoYPZvtjTfFO E4AZ7TqPTnOBzJ2iXIqHKZFtStTVHBuo6BX7NfoWePKWaRZHYpM7DuoRhmINiG69/fofCeLq+9R m5b3kL21ldmD4B1blmsiqOe7Y X-Received: by 2002:a05:6000:794:b0:22b:311:afe9 with SMTP id bu20-20020a056000079400b0022b0311afe9mr4596519wrb.509.1663930709602; Fri, 23 Sep 2022 03:58:29 -0700 (PDT) X-Received: by 2002:a05:6000:794:b0:22b:311:afe9 with SMTP id bu20-20020a056000079400b0022b0311afe9mr4596495wrb.509.1663930709283; Fri, 23 Sep 2022 03:58:29 -0700 (PDT) Received: from ?IPV6:2003:cb:c704:cc00:4585:a83b:64f2:ad21? (p200300cbc704cc004585a83b64f2ad21.dip0.t-ipconnect.de. [2003:cb:c704:cc00:4585:a83b:64f2:ad21]) by smtp.gmail.com with ESMTPSA id i66-20020a1c3b45000000b003b2878b9e0dsm2158664wma.20.2022.09.23.03.58.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Sep 2022 03:58:28 -0700 (PDT) Message-ID: <4f7ae306-7894-8baa-f920-441ce8c472a0@redhat.com> Date: Fri, 23 Sep 2022 12:58:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v1 3/3] checkpatch: warn on usage of VM_BUG_ON() and other BUG variants Content-Language: en-US To: John Hubbard , Joe Perches , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Linus Torvalds , Andrew Morton , Ingo Molnar , David Laight , Jonathan Corbet , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , Baoquan He , Vivek Goyal , Dave Young , Jani Nikula , Michael Ellerman , Nicholas Piggin , Christophe Leroy References: <20220920122302.99195-1-david@redhat.com> <20220920122302.99195-4-david@redhat.com> <3179f4545d3f71358da3e6c6ee18085af601b2eb.camel@perches.com> <60fa5b16-021e-1e54-7e06-39bbb871eaef@nvidia.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <60fa5b16-021e-1e54-7e06-39bbb871eaef@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org >> And I think that "Do not crash" is a stronger statement than "Avoid crashing" >> so I prefer the original suggestion but it's not a big deal either way. > > Yes, stronger wording is better. So how about this: > > "Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants\n" . $herecurr); Okay, let's use that. Thanks! -- Thanks, David / dhildenb