Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2218437ybb; Sun, 5 Apr 2020 01:52:42 -0700 (PDT) X-Google-Smtp-Source: APiQypLIReH/ESXKDqgxya2t7XPdollk94rS8yDBP2AB89g+KuS/17yCncbGeKmEdj7x8Ecca4rq X-Received: by 2002:aca:c415:: with SMTP id u21mr8713061oif.102.1586076761943; Sun, 05 Apr 2020 01:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586076761; cv=none; d=google.com; s=arc-20160816; b=xtHEOkP8Orikduo6ab4iPlnzTJVAP+nUV4ACkATaRxETNSC1m7cYktbgP/yrfgVz8M KAD6qfR+mLWh18AnUjNEPAH7EVpymU7ZVsWKJFfbqxaZAJVxvP7a6+VYdqhBDEPmJKUK fVu6gkWwYIJvNwjW2gVd/hCHLYcs5EnYN23189tGGJlj4s8+umEBRD8mNBIIy5p/nmAc XHMpmMALqW3swTwcW+uZI5eKjIA7CyQH37z8ebFPBymnxJpvlE+qqngLXltrC/mqyqAm 5gHIwVZ1IfAIoEgpMpVomvphoKPtgYdWVlU1QsxNmKEcXF0u3yX+8M7DdX4PLOIflTA1 AvVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:date:cc:to:from :message-id; bh=zXtuTz6ufY6MaqSbwCg0oAsuvbIT0uaX3YAXwXMLGmc=; b=PAg3aCZUyCzFuqlJiEAtPgiqjGWwalf3IH2SIgJBRGx+LCdQWdLh6LLTXFzfkoVSnp XkEBE0vbRL6A7PMHRNmX3Psa2kQmwLH5xCWAnuWjkNns4AuQJKLgUs/EtQtFo+Tm5gdH EQSK4NtD9JgsKKCqSgka6eSR2UqPs5hToHpzeIsaRIqNVbPFOZFT+w1LjqvO1X4NYPbi Uq5eg0FrWs+wX3Bzr5b71UgWQlKtRszTHYIbLbUXzur/4q95m4Il22J2g1301IATjGVX ov7uGHAbrSDnK/f917zw7jLc9gr4tNJGpMXSIS6d0E8hvpt5KP4idGoM6OdIwC684IPf OSTg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g81si6039185oia.8.2020.04.05.01.52.29; Sun, 05 Apr 2020 01:52:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbgDEIwM (ORCPT + 99 others); Sun, 5 Apr 2020 04:52:12 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:45730 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726380AbgDEIwM (ORCPT ); Sun, 5 Apr 2020 04:52:12 -0400 Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193] helo=redipa) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jL10U-000A10-JV; Sun, 05 Apr 2020 11:51:55 +0300 Message-ID: From: Luca Coelho To: Kalle Valo , Chris Rorvick Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Berg , Emmanuel Grumbach , Intel Linux Wireless , "David S. Miller" Date: Sun, 05 Apr 2020 11:51:53 +0300 In-Reply-To: <87mu7qfhiy.fsf@codeaurora.org> References: <20200402050219.4842-1-chris@rorvick.com> <87mu7qfhiy.fsf@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.4 Subject: Re: [PATCH] iwlwifi: actually check allocated conf_tlv pointer Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2020-04-05 at 11:44 +0300, Kalle Valo wrote: > Chris Rorvick writes: > > > Commit 71bc0334a637 ("iwlwifi: check allocated pointer when allocating > > conf_tlvs") attempted to fix a typoe introduced by commit 17b809c9b22e > > ("iwlwifi: dbg: move debug data to a struct") but does not implement the > > check correctly. > > > > Tweeted-by: @grsecurity > > Signed-off-by: Chris Rorvick > > I'll add: > > Fixes: 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs") > > > --- > > In this wasn't picked up? > > Luca, can I take this directly? Yes, please take it directly. This can happen in OOM situations and, when it does, we will potentially try to dereference a NULL pointer. Thanks! -- Cheers, Luca.