Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3536897imw; Thu, 7 Jul 2022 03:33:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tBiFZgUsnMApm+BC3aao5Nk+3mLf5KfGSoxyTwfcP4El12gp3ZiQUaoq4nobqKNcaWfDqm X-Received: by 2002:a05:6402:452:b0:434:a373:f9f8 with SMTP id p18-20020a056402045200b00434a373f9f8mr61252479edw.290.1657189981997; Thu, 07 Jul 2022 03:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657189981; cv=none; d=google.com; s=arc-20160816; b=0J3jVfijYYpCggC49WLcnoQAjcVeDcyvQoR2R+gN4Qfq5ScJ0g9/r+vWBnZbyZnvZd xYEO79dCx73s81kKApWepyviy21xlpbnbh0NmuYN7pAgc8wXuny6jz2GkQ9AYbYxResO i7A2biTtEpX7DaZtyfbo2RRaqPmZpPBJlg+tUbQQdlyMOEWPGVFEgGquwjdecfLAoCnj q2xBRnDtepQ82F7vVdqrXxG07Hjhz5WYEgsuxxWULkPociI1u2zpbrq7E0VR0Jplf6M5 OIIBQqxJNfHjYbEjmzgwUV3rCuPpqYCmyL4qKXnmSv6rNrSNUbLElwd4WD1NgN5EBMSv ukrQ== 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:date:dkim-signature; bh=xkSpYLA2hqfsxahuAfQtyWp9WK9S+AEkS7nnUigkbP4=; b=LsVFwe+0N904BhghqMmtpXj1USigmP/grhgYfxKB4SQKTJblFzGvkUWh3SwWfb7HXZ g5N2IKfp4cFuvBt8fRgAg1IT31EGkgA1jQt95fqWmWtJWJNGC7KA/bj0jnK0rj2QgW6P g/BrsYria4y/PYZcH39151ds331buLbAJsa0XWfWrTKnr0Y5fFeMkZasaCrxiocwdvWH K6a6ZGng3f+lR2qslohG3hbZxVaxqpvnjFZrCM/qJfnaIlSTQdH9rcyCDhs3870BvFBU 8yz9Bz7d00VyvFSnLleV1SCXXzRm5yNAWd3vXmdPYEgHnUJER1bojnbD3BFVjfqghBuw 2mbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Uy5v44vF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg12-20020a170907970c00b006fefef9abd2si35123705ejc.366.2022.07.07.03.32.35; Thu, 07 Jul 2022 03:33:01 -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=@gmail.com header.s=20210112 header.b=Uy5v44vF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234700AbiGGK32 (ORCPT + 99 others); Thu, 7 Jul 2022 06:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232161AbiGGK3Z (ORCPT ); Thu, 7 Jul 2022 06:29:25 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60FF153D37; Thu, 7 Jul 2022 03:29:24 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id x184so5099848pfx.2; Thu, 07 Jul 2022 03:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xkSpYLA2hqfsxahuAfQtyWp9WK9S+AEkS7nnUigkbP4=; b=Uy5v44vF9ZsC6U9vhuFog2+tIzl/k7lGP1idZ1pJFp3qODEFlxzooW77oadSFlrjw0 6aDNqySOr//5AIurRFLZi2V2Zbycp/HmFjwOs/xYcnRdgdhlPy6QLGEHIcjEY1KCyBwP G3PsuIlZOt4D3WKq9Z7EwGDinu6OdVS1oxzbyhKfhy22wC2ZtbInbu171AfNg9u00Ngw vagMIiliIX0AKs8Zd9dTbpkOOIVmRKa0qu5LLsqTPW9Mmj7f5qOhFV0KL6HXoLsWOwB4 R7R7RNiNU+J99Xs/BOLbJuV2MhWluVjq8byyqJ05Zk5of2D1PRWSlJYojCAQwZ1VMKAc 7VpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xkSpYLA2hqfsxahuAfQtyWp9WK9S+AEkS7nnUigkbP4=; b=7apW+kwLML1bis1UYH6wY8+TAv15wTBV0sP4n1iPdUovWu6hwZumOs6rJ/Q/lXXhjE FZASq60h7tu5RQZZmGWrH7dBGuck7DoKAupSKyZutAFs4HBItTSPaQYXicTasHN32Qa7 WTMs8hPjjgEJ5ENV1YhGzuFXQrM3QacuoDK+fhO56h/Lm+HvUSziFerHuH4bN7WS0cgH t+7MClAHbBwqVdnDNoWdPfsIsjfIztp/7lMRT5SjYC5tjUIzON1pe/J9fgTGklr4+AxO uJ5bjLqmik1uVkoQ+7ZwnEabm/QRKHuwD+BG8oh1JR7tLFR9dZlU3MXN/clbPewJQGXL wykQ== X-Gm-Message-State: AJIora9SolYOdAfFs2N+gIbntToMTYmyL25hs9QM4hj/qqjl0LrzOYf/ bljsW1bTCkoAr4gXufcOIsc= X-Received: by 2002:a63:1724:0:b0:412:7bee:fdba with SMTP id x36-20020a631724000000b004127beefdbamr10476410pgl.340.1657189763823; Thu, 07 Jul 2022 03:29:23 -0700 (PDT) Received: from sol (110-174-58-111.static.tpgi.com.au. [110.174.58.111]) by smtp.gmail.com with ESMTPSA id l15-20020a170902f68f00b0016c1948ef7esm452394plg.296.2022.07.07.03.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 03:29:23 -0700 (PDT) Date: Thu, 7 Jul 2022 18:29:18 +0800 From: Kent Gibson To: Bartosz Golaszewski Cc: Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Linus Walleij Subject: Re: [PATCH] gpiolib: cdev: fix null pointer dereference in linereq_free() Message-ID: <20220707102918.GA60169@sol> References: <20220706084507.2259415-1-warthog618@gmail.com> <20220706085025.GA2259579@sol> <20220707090006.GB57165@sol> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Thu, Jul 07, 2022 at 12:19:15PM +0200, Bartosz Golaszewski wrote: > On Thu, Jul 7, 2022 at 11:00 AM Kent Gibson wrote: > > > > On Wed, Jul 06, 2022 at 04:50:25PM +0800, Kent Gibson wrote: > > > On Wed, Jul 06, 2022 at 04:45:07PM +0800, Kent Gibson wrote: > > > > This patch fixes a kernel NULL pointer dereference that is reported by > > > > gpio kselftests. > > > > > > > > > > Should be: > > > > > > Fix a kernel NULL pointer dereference reported by gpio kselftests. > > > > > > Sorry - I rushed this one a bit. > > > > > > > And I might not've been totally clear, but this bug is present in > > v5.19-rc1 onwards (when HTE was added), up to and including rc5. > > > > Would be good to get it fixed before v5.19 goes out the door. > > > > Cheers, > > Kent. > > Yep, figured that out. Applied and fixed the commit message, thanks! > Good to hear. I never got around to reviewing that final HTE patch and, while it did end up pretty close to what I expected, there are a few things that I would've done slightly differently that I'd like to tidy up. And also have the HTE specific code compiled out unless CONFIG_HTE is selected, as that is very likely to be the case for most builds. But that can wait for v5.20. Cheers, Kent.