Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3641549imm; Mon, 1 Oct 2018 01:56:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV60GZD4c3PxzIbabvQPvNk+plwe06zofQlPnyrxx89YjPZWDVZDXo8STiEyHvFn64JOnGhL/ X-Received: by 2002:a17:902:780f:: with SMTP id p15-v6mr10726484pll.170.1538384195562; Mon, 01 Oct 2018 01:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538384195; cv=none; d=google.com; s=arc-20160816; b=MmvDBI9+i8xXGz2QSPBpNFswKabFrT7CGLqnkE6wzZKMgthOz+NdRVKdLKbz4I/hjV 2bLvNncEzwkkP1aBHKf0Kr+n8PLDmrNQbOodoOfxRWYilMpPFqyj3znJsLbyMi/0mmdr p4m/3cMOLtoNt9BgKJ4HtNUCWL3+WztZmgMcF4IpBetuFVp2xLWOJ82zadL7A6LWoxkr QLmY5eu3cWJJ44oG3dg/zZFpuHD27DMB1Enx8sN3FWazR+74IXFIsTHjAF/lOdX1LmTJ ASZ9iDQWlmKyTlHjcIssVDP8dO6ztFlGBmIkjcilPNzTXsM+o+RqPJxr0NPu+z8OXpAp zclA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature; bh=B8Wox00i0Sk5edRkDeLf769LH2deC03DBzqZKVh5780=; b=QcQNBNaegrrk/ng0goMPVKfKYai689Z8ypeLNkJtMZ/7pDpMuepbTp1ClXXUwL1qDJ LCwkBSBYYRGFtuTtNruG1OyEnEqjjwPVi5MEbs5+OaJLh85PQjhJdeJa6IQthjqXj5hP 7UpIx+u1d1x0t8omEPrwvmfUZFG/0pFHCfsR2euSZjtMhN9VhfxUtdwFbcwV6JMcBL3x s4te6lo/vvdyAB0Zg5BZu4abZpR/Tgsq8YvrMOiVtsxwlkXbQB+ojBO/Av2XKeqQQOY7 M+WlkHtei8VIoINHVfHtHJfj9OC0uFY6N8qt4EOWz5FEWVGr6oBHGgEO+jk64rSIPc7I rWkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=MH8Clibc; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8-v6si9952746pgj.352.2018.10.01.01.56.20; Mon, 01 Oct 2018 01:56:35 -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; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=MH8Clibc; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729035AbeJAPcV (ORCPT + 99 others); Mon, 1 Oct 2018 11:32:21 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52553 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728804AbeJAPcV (ORCPT ); Mon, 1 Oct 2018 11:32:21 -0400 Received: by mail-wm1-f66.google.com with SMTP id 189-v6so7583132wmw.2; Mon, 01 Oct 2018 01:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=B8Wox00i0Sk5edRkDeLf769LH2deC03DBzqZKVh5780=; b=MH8ClibcEIv2XbB45JMwFiLN/i6YsdXUqrjTdVee9uwlXISRhwrXw1PChB4jYCpXE+ vgUW4nVBn996bGJWW8CKrTygTnhhqutYzp98bCfA7jC92B9KPsoMQmi2EnmjgraBmk6G OgpBUOr60Be0JCEgFeSbYwLhofX3wsxZmzJ2B2GO/XSkxNC9R6qIl6ecIBwtiXbUQQ+n s/PBIF+VSqkRcMdGVBAlL6N3KqqQqU1xKUqB0HbDw6td0waewOABP6iSi2VlP32VEno0 i0Lj7m934GeB+2fd/o7tKoWEpA2XNjrc8xo3VpSOleeYZbB+Bjz1yqS3xHIY7fBKRy99 xfCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=B8Wox00i0Sk5edRkDeLf769LH2deC03DBzqZKVh5780=; b=FP3deyNMut0XwVlZRxCyjpLI/kid22YiPhpFdY7dlxFZF3JLPpOPHvUz0svlJSKatN 4WhmGe6Pe0xRjuSi99/GociDfXt4BcSIbT45S+Z6arBBHvVkoJz1v8uOyBd9ic8BEznJ aGl2sP6p7VnvISCnJVr3lI9tTFIVukFw7n6xQ8BPB3pdBhQ1VR4Usrwgb8pYhHtuhnuR fzwAblUgvZwZQbm8fucYCRvPJXUMccKvI7hppe7lww1XTlo6vRoprIjoOcJ10awPLHXl FNEdEFriP62RzylVhnn+0uMXj3p6k/+IrMJnwIq9v5lWt5hrsuRM/xWVKL8FZ7meRPdH 2mmw== X-Gm-Message-State: ABuFfohi/WLE6zCy7EiOB1YhTIL8gZOJry3m1BSiSsE+bMt000p60W2b a5AAGRT7SBSxURiXGuOwxlMVBzCP X-Received: by 2002:a1c:8bcc:: with SMTP id n195-v6mr8873080wmd.118.1538384137935; Mon, 01 Oct 2018 01:55:37 -0700 (PDT) Received: from [192.168.201.5] (p57B63A04.dip0.t-ipconnect.de. [87.182.58.4]) by smtp.googlemail.com with ESMTPSA id 198-v6sm12097859wmm.0.2018.10.01.01.55.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 01:55:37 -0700 (PDT) Subject: Re: [PATCH] cfg80211: fix wext-compat memory leak To: Johannes Berg , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Cc: Stefan Seyfried References: <20180930105300.30797-1-stefan.seyfried@googlemail.com> <1538377946.3126.0.camel@sipsolutions.net> From: Stefan Seyfried Openpgp: preference=signencrypt Message-ID: Date: Mon, 1 Oct 2018 10:55:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <1538377946.3126.0.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johannes, Am 01.10.18 um 09:12 schrieb Johannes Berg: > Hi Stefan, > > Thanks for the investigation & fix. I've changed the fix to use > cfg80211_sinfo_release_content(), Being totally unfamiliar with the code, I was not sure about that :-) > take care of the error path in > cfg80211_wext_giwrate() and added a Fixes tag :-) That's certainly much better. Thanks! (kudos to Vlastimil Babka who pointed out trace-cmd to me on the opensuse-kernel malinglist, which made the investigation quite easy) -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman