Received: by 10.223.164.200 with SMTP id h8csp630119wrb; Sun, 5 Nov 2017 17:10:50 -0800 (PST) X-Google-Smtp-Source: ABhQp+S40pwcghUeS8XFl8isu4UQRjbc0mQKgxZlI5LsgSVl2doq8bf8bHI5uhIC+guuppp39kEH X-Received: by 10.98.59.210 with SMTP id w79mr15139315pfj.52.1509930649918; Sun, 05 Nov 2017 17:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509930649; cv=none; d=google.com; s=arc-20160816; b=lmnwuCEhMBuXuJyqKsE7OPjDAwH5Rjvh3jBqi3MZ1EiesAq4i9PrmolOnKyZIi6YQT ndV6UceE3FmtvqPgTiRCbiy7dDzsZv8f5Pm4LQau1m8uQUp0yYGdZ5xF2E/899K796Lk 7xf+6NivjRhuuCPu/E9TpJIFXvoE6kozJv9nYM1s/1G10Gi+cWUyuwAVmShYvFtnKp9B dba6EmF3gi7htz1p0GI7i9wQ8pQ0EGdERkC0ZzJwRWiSBHwdcnCXlcsHsBlRM0mfJExI xY4r2GJCh1EY/Gpp3jb9ybhiNTvQFpjNDj2K/JM2uwi/ZhGlVVrHhyAjJsXNiEbO83Mx eytw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :user-agent:in-reply-to:references:subject:cc:to:from:message-id :date:arc-authentication-results; bh=rpKlDJcoQgpqSDYCptQLPXbIFIQ9JGp01D4XWcOm2+I=; b=oIeMt3p4q5V9SvNMl+kppXxkDijNmKqopf2u3srvuyUmJQc58JLo3fOprRR4qZiF2v SW+XidMoDJBavJerHQwBOXGdoz8//P5mkCUF0uZhM0DHH4UqyOuTZyU4hue+LDjdALx7 +jclA7mVDRILrMeF8VnQmOHjfTjSII1hdr2XH6KEDku8PlPsFunhcUfzZttyspVs6/2h ezwU8HkirZHXw2OseYJMw45nvVplreJnV6chjidrcX4lEiSd/3Jn/5EXJXlZ3C7nstld VIzv/LPUmUWWJw7d3caV5gdBcMGDSwvS/szD7Th+yJ77yvHJ9O+b5EhNCTAgHgOb6zld mPmA== 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 t10si9391782plo.779.2017.11.05.17.10.36; Sun, 05 Nov 2017 17:10:49 -0800 (PST) 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 S1751321AbdKFBKB (ORCPT + 96 others); Sun, 5 Nov 2017 20:10:01 -0500 Received: from gateway36.websitewelcome.com ([192.185.200.11]:28852 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750910AbdKFBKA (ORCPT ); Sun, 5 Nov 2017 20:10:00 -0500 X-Greylist: delayed 1452 seconds by postgrey-1.27 at vger.kernel.org; Sun, 05 Nov 2017 20:10:00 EST Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 417AD400E441D for ; Sun, 5 Nov 2017 18:45:47 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id BVXveJF3MHEImBVXveOX8q; Sun, 05 Nov 2017 18:45:47 -0600 Received: from gator4166.hostgator.com ([108.167.133.22]:44906) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1eBVXu-0024kE-LE; Sun, 05 Nov 2017 18:45:46 -0600 Received: from 189.145.38.148 ([189.145.38.148]) by gator4166.hostgator.com (Horde Framework) with HTTPS; Sun, 05 Nov 2017 18:45:46 -0600 Date: Sun, 05 Nov 2017 18:45:46 -0600 Message-ID: <20171105184546.Horde.a-gZvkBaubvOCMMOf0npg62@gator4166.hostgator.com> From: "Gustavo A. R. Silva" To: Saeed Mahameed Cc: Saeed Mahameed , Matan Barak , Leon Romanovsky , Linux Netdev List , linux-rdma@vger.kernel.org, linux-kernel , Jes Sorensen , Martin KaFai Lau Subject: Re: [PATCH] net/mlx5e/core/en_fs: fix pointer dereference after free in mlx5e_execute_l2_action References: <20171105035453.GA10908@embeddedor.com> In-Reply-To: User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 108.167.133.22 X-Source-L: Yes X-Exim-ID: 1eBVXu-0024kE-LE X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator4166.hostgator.com [108.167.133.22]:44906 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 7 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Saeed, Quoting Saeed Mahameed : > On Sat, Nov 4, 2017 at 8:54 PM, Gustavo A. R. Silva > wrote: >> hn is being kfree'd in mlx5e_del_l2_from_hash and then dereferenced >> by accessing hn->ai.addr >> >> Fix this by copying the MAC address into a local variable for its safe use >> in all possible execution paths within function mlx5e_execute_l2_action. >> >> Addresses-Coverity-ID: 1417789 >> Fixes: eeb66cdb6826 ("net/mlx5: Separate between E-Switch and MPFS") >> Signed-off-by: Gustavo A. R. Silva > > Acked-by: Saeed Mahameed > > Looks good. > Thank you Gustavo. > Glad to help. Thanks -- Gustavo A. R. Silva From 1583199915994498551@xxx Sun Nov 05 04:44:57 +0000 2017 X-GM-THRID: 1583196851542878610 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread