Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4061585pxu; Wed, 9 Dec 2020 07:28:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4imhegACAbHtAkwjcCD2InEfBFgxPnc7xcrfhROFBI9F+pSMiMICPrEbRGJhZKYC4oyN7 X-Received: by 2002:a17:906:ae14:: with SMTP id le20mr2581111ejb.451.1607527683493; Wed, 09 Dec 2020 07:28:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607527683; cv=none; d=google.com; s=arc-20160816; b=q4s4Bu0GWTjYTZdSa9cjKVxrRZcDjaKT0tHLBGpV2AIw0MIarjEb0zC8wWmCxRcKQG W7+UxrS0sixuVeuOEiPYSLA7wV2wNXL4XZSoojh2ZZEjwDX6yBuR41/g8h3Dbce3cvFX GLAq9LID3rvOQyeTbfXmMd0bPE5Wa5hoCmLM9jh/IsYUgnwI2F5J9FGv3AlkQJYXUJ/F yjcG8gQzcQaN35dKvVqV7IN8+PowMneOCKaYqVITwdCNY6ndFX9nqwOlLEBmUcvIAQzF cTjrnc5VCUZ5rQ7LAHSqd2zn3tV+ARDrYQwXcL2F4WimLkf/LLeZzPG9rJBDhsuQFO/H GD0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=PV3cmlj3ue3b1RYZewaU4wQwzsdZD/Ic0j80LFiTZJs=; b=uPTcMFFlvp3f/CwP3zER9lSDi83a6vBihk0KLRbaAnS+iB7bkb48IVUr6OqqJkDgJl yjzZPwc63hBbe+3V29KeRsLfOoK8YD+5Xt8VZNcbfNeod24qfGb9py/gNYiTf52ASjZQ li0r4LbERVvq/BJB9lZyxXPfpxPPBeDSG35BB0XMYR3eFXwa7q2wj7MHk1/xRH5/XbEz JaOzuI+G2ayb4hRt3pbdzlaOtLIH/fT141gWepU5gBeqbOumguY44Wa7JJXU51aSq/sH NjeDsklNLwFZAUGs4tXfmyG9eMSH1c69II/Oy3THfwLrgepOVwRZAPf4ZSRUYqZ96HmK Lb3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FGSaiilL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si876117ejn.209.2020.12.09.07.27.26; Wed, 09 Dec 2020 07:28:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FGSaiilL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732422AbgLIOxu (ORCPT + 99 others); Wed, 9 Dec 2020 09:53:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:52450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732059AbgLIOxu (ORCPT ); Wed, 9 Dec 2020 09:53:50 -0500 Date: Wed, 9 Dec 2020 15:54:26 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607525590; bh=IIfUJorqMDpBd82MCjqYNcMz9MwC1uE5ZYVW7orcYZA=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=FGSaiilLUwmBIk0rZNRQHTyvh3Pq8cwIuv2+x4lySFPBlsw3nnB7ukYH/xx7IV+TR 0pkv/O+hcpRqgLNnRWN0H0yWRrVM7Xb35jv6dSEGIJjRMCkOylEP9OGdvaskR07AFk mQDkK6kzaS8alz1L4U4JDzZ3a5GUrsAhnIvogNCM= From: Greg Kroah-Hartman To: Jim Cromie Cc: Jason Baron , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] dyndbg: fix use before null check Message-ID: References: <20201123184334.1777186-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201123184334.1777186-1-jim.cromie@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 11:43:34AM -0700, Jim Cromie wrote: > commit a2d375eda771 ("dyndbg: refine export, rename to dynamic_debug_exec_queries()") > > Above commit copies a string before checking for null pointer, fix > this, and add a pr_err. Also trim comment, and add return val info. The way you list the above commit is very odd, and hard to read and understand. How about something like: In commit a2d375eda771 ("dyndbg: refine export, rename to dynamic_debug_exec_queries()"), a string is copied before checking.... Also, when you say "also" in a patch, that is a HUGE flag that the commit needs to be broken up into multiple patches. Put the bugfix first, and then fix up the comment later, if it is not being changed for this fix. Also: > Fixes: a2d375eda771 You need the full information here, please write: Fixes: a2d375eda771 ("dyndbg: refine export, rename to dynamic_debug_exec_queries()") Can you fix all of that up and resend? thanks, greg k-h