From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7B1D2A0353 for ; Tue, 19 Nov 2019 21:47:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6950F9E4; Tue, 19 Nov 2019 21:47:30 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 3FF359E4 for ; Tue, 19 Nov 2019 21:47:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574196448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H98On3B4zCYABlyFeLMN08CE9zCm1KcYm++KqVe27xU=; b=g+GBaw3D3u2vCkZPdW0HXVOt82QTTU6snFkCWsCzMBC1trL6Fhzd0OcNAUTEgmZkEXcqI+ jfA45n5ESnaY/soP5xCcaCW3DgAu3UfU3FvMF8V9Bhb2QwELzP8hNpdCdcRAinVeabSfxd 2mc59mwkx8NbqHqsFcMJ9qoYBVIlIKI= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-7-10QrvXk0NhS4szSWFhpryQ-1; Tue, 19 Nov 2019 15:47:27 -0500 Received: by mail-ua1-f71.google.com with SMTP id x34so4950223uad.15 for ; Tue, 19 Nov 2019 12:47:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l/ywcpMyYcZfa6Lrqp5NliVLJYwIBLRCPnwXsomAmAQ=; b=s5jaax22qbt4ZsBh3zrCGryrwpk7G2Vtd3g54wokakLXiPZH2v6nLYYNshRSzsvv4N Fr3Grh062iEVRZHovqUtnTO0hR3c/9vcUsU23O0hrg7d+BCHqEmwSOg50WkvYp5UcZIp hVJD1bQpq+MeqZYSaZWoe0KK5m2r6moeG5hsPuJ1JZOoUoVpc4RFoxYhsc3CpW1jnxKw piiArVUnhVtRZdweqqI5b6mxEaSpv88rjTxYum8i54Vr2X37lXeFItf8oNoWJjYg6Nr0 TJza+h9xuBWnOWkLBzFy4Y5o6Qf1i6EoRntjhrvswtwNsUvGxPpyNMUcdr54X0a59YKW pKPQ== X-Gm-Message-State: APjAAAXzxn0+uR7wmreQi5To+Le1AeKVL1zjMoI2U3q+6j4mLlikaW5a G7SCHa3eqXBirJRPMskCZquem/3En2lmWRaCqO4AJKT7n9bLSY+oJu3f0TyqzcSOZlcV8YPIefb 6NiK2DXi0ADbougceZzVCt6s= X-Received: by 2002:a1f:e243:: with SMTP id z64mr3247417vkg.56.1574196446593; Tue, 19 Nov 2019 12:47:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzvwTvCA9YzPxmh2y+DLzEUV9oO4XC46vg0D8NXVG4oWiT7E6gZu4CQASh0NwTX+ZIuusLbfX87F6+f3C6JhE0= X-Received: by 2002:a1f:e243:: with SMTP id z64mr3247388vkg.56.1574196446145; Tue, 19 Nov 2019 12:47:26 -0800 (PST) MIME-Version: 1.0 References: <1573570228-15676-1-git-send-email-xuemingl@mellanox.com> <1573570228-15676-2-git-send-email-xuemingl@mellanox.com> In-Reply-To: <1573570228-15676-2-git-send-email-xuemingl@mellanox.com> From: David Marchand Date: Tue, 19 Nov 2019 21:47:15 +0100 Message-ID: To: Xueming Li , Anatoly Burakov Cc: Asaf Penso , dev , dpdk stable X-MC-Unique: 10QrvXk0NhS4szSWFhpryQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [PATCH 2/2] malloc: fix realloc padded element size X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Tue, Nov 12, 2019 at 3:50 PM Xueming Li wrote: > > When resize a memory with next element, the original element size grows. > If the orginal element has padding, the real inner element size didn't > grow as well and this causes trailer verification failure when malloc > debug enabled. I did not see this when running the malloc_autotest with debug enabled. What is missing for me to catch it? Just a bit chilly to apply this series. The first patch seems an optimisation. The second one seems more interesting if we fix the debug mode, but I suppose we can live without them in 19.11. --=20 David Marchand