Message ID | CALDO+SZFZLZa6zz32kg2HtqnAOtY+0iRNb3opSx4-2ACJ3Za4g@mail.gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3CFD0140325 for <incoming@patchwork.ozlabs.org>; Tue, 8 Mar 2016 06:12:39 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=eU0DcZA3; dkim-atps=neutral Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 55B651063B; Mon, 7 Mar 2016 11:12:38 -0800 (PST) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id AF3601063A for <dev@openvswitch.org>; Mon, 7 Mar 2016 11:12:37 -0800 (PST) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 4369F160F68 for <dev@openvswitch.org>; Mon, 7 Mar 2016 12:12:37 -0700 (MST) X-ASG-Debug-ID: 1457377956-0b32371dc56e880001-byXFYA Received: from mx3-pf3.cudamail.com ([192.168.14.3]) by bar6.cudamail.com with ESMTP id RpnLISbHzXHFP1BF (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <dev@openvswitch.org>; Mon, 07 Mar 2016 12:12:36 -0700 (MST) X-Barracuda-Envelope-From: u9012063@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.3 Received: from unknown (HELO mail-io0-f181.google.com) (209.85.223.181) by mx3-pf3.cudamail.com with ESMTPS (RC4-SHA encrypted); 7 Mar 2016 20:04:22 -0000 Received-SPF: pass (mx3-pf3.cudamail.com: SPF record at _netblocks.google.com designates 209.85.223.181 as permitted sender) X-Barracuda-RBL-Trusted-Forwarder: 209.85.223.181 Received: by mail-io0-f181.google.com with SMTP id m184so142655356iof.1 for <dev@openvswitch.org>; Mon, 07 Mar 2016 11:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MXUmvsssnHF1rHu7S5i12WKq9aL3xzMa619zVoGJXl8=; b=eU0DcZA32bGHkit87Yn1ZGvasZSfeCxPQ9bMmWjOx7+fONm84RC0hrYPEcGgN2wQz4 pLJHnPbuI81tcvv52D0biDslfxD55c7VyTNWe1GxAjS6rWqDgTb3NY/0Nx42Dg2EoXAV Osn1woTqMT2adufdveV70EQI2MmuounTVN8H6cbuktqHtwfglexAMJS6hd9UgHgp2bSp VpiJyeEAbbYdgOWqTSdoFrcbUbBDzOr84tKELr5e4jkEqFZ57jEAZ5b46yybdV8btENd 5iKwfQ759CTZYV1KnSv1iwj+IjoONQ6zqgu2CVFFJnk804zQspSyUVU82rXOAm+PdtQg Ul8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MXUmvsssnHF1rHu7S5i12WKq9aL3xzMa619zVoGJXl8=; b=JBo3YULkOj6hGlZcLTn1AzWxAEUkgtKFQpLpOgCZRtV/BEV7LtaiEMBJhr3avZlujB 2lSBUWxenatB0B6LhByYnw/97yWzOvkU/bGHJ7bCV6IEgGcidcKUwtxIQp00xxGh46jU Lq1tgVyQVid/UD49nAQZxFwDAt6qTbq2xGQ07QO9/Gw8JBMfLuNNxxt2r+v98hm/CBSV vnAszv5D+yT5gYZAEb2NysxQueHRQlKqflaFUm3JC2qvH5O8cygsCPeJx1GzKy6AIIAA 3vVCl/CuG7IS1CAsrMIW2hYQDIf3EHl+Z3xDLQzk6BSRQhXXDomNP6mI/75Gu/KRuKk6 bm4Q== X-Gm-Message-State: AD7BkJIQDG9fnEmHGGwA9ZuDdRlSU4Ifxg0qrWP1MmFKIJf1DWv4EgXS9/FqFt2gdRkGwXtgGq19LF3wd/PnRw== X-Received: by 10.107.29.212 with SMTP id d203mr17112940iod.6.1457377954649; Mon, 07 Mar 2016 11:12:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.96.135 with HTTP; Mon, 7 Mar 2016 11:11:55 -0800 (PST) In-Reply-To: <75C4DCDE-C307-4805-85D0-8E21DD80A6A8@ovn.org> References: <1457141746-13557-1-git-send-email-u9012063@gmail.com> <75C4DCDE-C307-4805-85D0-8E21DD80A6A8@ovn.org> X-CudaMail-Envelope-Sender: u9012063@gmail.com From: William Tu <u9012063@gmail.com> Date: Mon, 7 Mar 2016 11:11:55 -0800 Message-ID: <CALDO+SZFZLZa6zz32kg2HtqnAOtY+0iRNb3opSx4-2ACJ3Za4g@mail.gmail.com> X-CudaMail-MID: CM-V3-306043190 X-CudaMail-DTE: 030716 X-CudaMail-Originating-IP: 209.85.223.181 To: Jarno Rajahalme <jarno@ovn.org> X-ASG-Orig-Subj: [##CM-V3-306043190##]Re: [ovs-dev] [PATCH] nx-match: Fix use-after-free. X-GBUdb-Analysis: 0, 209.85.223.181, Ugly c=0.374854 p=-0.473684 Source Normal X-MessageSniffer-Rules: 0-0-0-19110-c X-Barracuda-Connect: UNKNOWN[192.168.14.3] X-Barracuda-Start-Time: 1457377956 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.70 X-Barracuda-Spam-Status: No, SCORE=0.70 using per-user scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests=BSF_SC0_MISMATCH_TO, DKIM_SIGNED, HTML_MESSAGE, MAILTO_TO_SPAM_ADDR, MARKETING_SUBJECT, RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.27649 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.60 MARKETING_SUBJECT Subject contains popular marketing words 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 0.00 MAILTO_TO_SPAM_ADDR URI: Includes a link to a likely spammer email 0.00 HTML_MESSAGE BODY: HTML included in message 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: "<dev@openvswitch.org>" <dev@openvswitch.org> Subject: Re: [ovs-dev] [PATCH] nx-match: Fix use-after-free. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: <dev.openvswitch.org> List-Unsubscribe: <http://openvswitch.org/mailman/options/dev>, <mailto:dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://openvswitch.org/pipermail/dev> List-Post: <mailto:dev@openvswitch.org> List-Help: <mailto:dev-request@openvswitch.org?subject=help> List-Subscribe: <http://openvswitch.org/mailman/listinfo/dev>, <mailto:dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dev-bounces@openvswitch.org Sender: "dev" <dev-bounces@openvswitch.org> |
--- a/lib/ofpbuf.c +++ b/lib/ofpbuf.c @@ -383,6 +383,7 @@ ofpbuf_put_zeros(struct ofpbuf *b, size_t size) void * ofpbuf_put(struct ofpbuf *b, const void *p, size_t size) { + ofpbuf_resize__(b, ofpbuf_headroom(b)+64, ofpbuf_tailroom(b)); void *dst = ofpbuf_put_uninit(b, size); memcpy(dst, p, size); return dst;