From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AC66F41EB9; Fri, 17 Mar 2023 09:02:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8570742F8C; Fri, 17 Mar 2023 09:02:52 +0100 (CET) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mails.dpdk.org (Postfix) with ESMTP id 8922840A79 for ; Fri, 17 Mar 2023 09:02:51 +0100 (CET) Received: by mail-wm1-f48.google.com with SMTP id m35so2747780wms.4 for ; Fri, 17 Mar 2023 01:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1679040171; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=uNvQrJK7tW8BgyWrzel7R8qcgls7Cn3mFdreWdlAxNg=; b=bdFpwP1YQITQJKfA9FR4QkqYgnXMmjzOPlrmPbQZCDhxg+YQnyPR6zkKxuuPlbga7d uLlsnsYX9mo5WQqcBhRe7nP2U5xeyszX9GOQLYlEYN0H53xweZYaALnP1Ywo1aaMRYBB fEC6lP8oKAEiGX5EjBLXmcsaMMFA4FXqRAKg61eM0y797kXuvPB0zhwPPtkMprJnluVd xKWZp6tsNVWj4Eq1UaV8ZKT39s10PSXBAA4TN2rP1l02kcKzLfgkkfdAgku44D9efxWE Gb3/c4x3xNksXdENhb0+I6fgKo6PuQekaltVGGMQIJ5LGumPP2wm+TNRtdQobw6D1hNA CqjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679040171; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uNvQrJK7tW8BgyWrzel7R8qcgls7Cn3mFdreWdlAxNg=; b=3g1nwFjZDUYyweDfB9tAKbSw0XSRDLxeM29kOu1f80/jDPItViwGrtgiuUBMoQIN4H KnySbbFT8mJmyYSgrGs4HFVQECbAlwd1sCTW/dSPUDg17H4wPsT+xfIDvIlKDrCVrIpf O6fU7fSx2KIUgasj+qrAGXkC6vTgescCBzVyAG6Z6YNDP3ANc6u79QORNXxZlTD9biJe 7davXG9Y85ejRLvuHatMpgm7DaleSpRDJZt2Ahd9r4hDcn1+Mf3w/6ofHnudKfr20NEf nEq/tZ5T/agfcP5ZluSYG6IIxyeFSPugoUvVObTVaixFmzwjz+PfbCxIHoltX+qL22FQ XYQg== X-Gm-Message-State: AO0yUKUpLKE5waDLY6NUI8MjQy2Lfx7p5yk70E2JBK6tlYbFLfiX7QVj 0w959uVXrNwWyH6zC7weZ4D83Coyx3JCUR1SVx8= X-Google-Smtp-Source: AK7set8qya2t3w/6cz67C2+VhbGdVocl9sNfBiCRIR4V3HuOCBdqIAxiE9UCKldNH9fQoFO2hh0TCg== X-Received: by 2002:a7b:c5d9:0:b0:3ed:8780:f265 with SMTP id n25-20020a7bc5d9000000b003ed8780f265mr709604wmk.21.1679040171156; Fri, 17 Mar 2023 01:02:51 -0700 (PDT) Received: from 6wind.com ([2a01:e0a:5ac:6460:c065:401d:87eb:9b25]) by smtp.gmail.com with ESMTPSA id n1-20020a7bc5c1000000b003db03725e86sm1566451wmk.8.2023.03.17.01.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 01:02:50 -0700 (PDT) Date: Fri, 17 Mar 2023 09:02:49 +0100 From: Olivier Matz To: Pavel Ivashchenko Cc: dev@dpdk.org, stable@dpdk.org Subject: Re: [PATCH v2 1/1] test/mbuf: fix mbuf autotest when mbuf debug is enabled Message-ID: References: <20230313165605.12325-1-pivashchenko@nfware.com> <20230316191456.54066-1-pivashchenko@nfware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230316191456.54066-1-pivashchenko@nfware.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, Mar 16, 2023 at 10:14:56PM +0300, Pavel Ivashchenko wrote: > How to reproduce: > > 1. Define RTE_LIBRTE_MBUF_DEBUG > 2. MALLOC_PERTURB_=178 DPDK_TEST=mbuf_autotest gdb --args obj-x86_64-linux-gnu/app/test/dpdk-test --file-prefix=mbuf_autotest > > PANIC in rte_mbuf_sanity_check(): > bad pkt_len > > ... > #6 0x00007ffff7d3d4cc in rte_mbuf_sanity_check (m=m@entry=0x17f8c3400, is_header=is_header@entry=1) at ../lib/mbuf/rte_mbuf.c:384 > #7 0x0000555555653d57 in rte_pktmbuf_free (m=0x17f8c3400) at ../lib/mbuf/rte_mbuf.h:1385 > #8 0x000055555565c7a6 in test_nb_segs_and_next_reset () at ../app/test/test_mbuf.c:2752 > #9 test_mbuf () at ../app/test/test_mbuf.c:2967 > ... > > (gdb) frame 6 > #6 0x00007ffff7d3d4cc in rte_mbuf_sanity_check (m=m@entry=0x17f8c3400, is_header=is_header@entry=1) at ../lib/mbuf/rte_mbuf.c:384 > 384 rte_panic("%s\n", reason); > (gdb) p/d m->pkt_len > $4 = 1500 > > Fixes: efc6f9104c80 ("mbuf: fix reset on mbuf free") > Cc: stable@dpdk.org > > Signed-off-by: Pavel Ivashchenko Acked-by: Olivier Matz