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 E718441EB9; Fri, 17 Mar 2023 09:09:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 347AE42FAE; Fri, 17 Mar 2023 09:09:43 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 9699142F98 for ; Fri, 17 Mar 2023 09:09:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679040581; 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=/7IY93/zMSQ6DaSfKrdkK89FKpzB9qdnB0JEgXzGUik=; b=TEireD4QMhzphiEPh8l0PAa0FRWCSVXUMgJtSJN5rGOODhfMEXP2vbRy8PqXPlYvMy1CaV tqidpz3MbZv4Mhtqx0kv+uehydNZcCjeDW96zTWTs+q9oLvJT8H1h7nmAjwo1ADauZr2xM oV3rREqyhcKvW9VVRjv43igiQHKhLCY= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-447-0zeeUMqKOnyNKA3DFj9wTw-1; Fri, 17 Mar 2023 04:09:39 -0400 X-MC-Unique: 0zeeUMqKOnyNKA3DFj9wTw-1 Received: by mail-pj1-f70.google.com with SMTP id d5-20020a17090ac24500b0023cb04ec86fso1988675pjx.7 for ; Fri, 17 Mar 2023 01:09:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679040578; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/7IY93/zMSQ6DaSfKrdkK89FKpzB9qdnB0JEgXzGUik=; b=Swi4JGk9acg7qOV9coeSoagGZykExclQ97npoYRbvWzlqtM7AZ3rDKoTE+g7mgv6A7 PsWNXcfR4XxCViojZRzOPFQhXFS+hWtuC+JpXRlJYZTQ5sCh8S8LvV4UIehZfCCO6SVU U2JS6PO3ZeXMJdV8zS31i6XaU8hEZIwYfiW76p7Fp+7cFW4dlWDvO8yLEajvCx5Mtpy+ lYWvl0Ptq0iHyr6YYg5WJ+Zn14YZAGqBmMTkVl6vkObfO531cUe8GsS0+3fuJiTeKUIv oJEK+ZOfqg0QUgfpshFTv3JOMjoFgmHuh2W9nUraSYcYx0Sqt+Epn8q/oVzXOaJPsVdB xdog== X-Gm-Message-State: AO0yUKUziiDnTNRovl161cauyy+AdfSJ5I2fWDiBw1a2KC9+8E2ib567 tHzJG6viJe6+39EX1Jt9VorbZLRk7ELV5UlQ9/Agzqeho/l4dO1iisHclUwKresx9opfnVGmWC8 8DvpqLXiXp5TcKBkqdfc= X-Received: by 2002:a17:902:dac9:b0:19f:87b5:186d with SMTP id q9-20020a170902dac900b0019f87b5186dmr2721953plx.9.1679040578634; Fri, 17 Mar 2023 01:09:38 -0700 (PDT) X-Google-Smtp-Source: AK7set/qSzqM3A1OBrztLGDVFy1j5XqApFFTOIQjOnM1KuMcVgKRTAZIDvJRtJ+xxqbPbv8/8AwlBDBe3T6sDSAlXMo= X-Received: by 2002:a17:902:dac9:b0:19f:87b5:186d with SMTP id q9-20020a170902dac900b0019f87b5186dmr2721947plx.9.1679040578249; Fri, 17 Mar 2023 01:09:38 -0700 (PDT) MIME-Version: 1.0 References: <20230313165605.12325-1-pivashchenko@nfware.com> <20230316191456.54066-1-pivashchenko@nfware.com> In-Reply-To: From: David Marchand Date: Fri, 17 Mar 2023 09:09:27 +0100 Message-ID: Subject: Re: [PATCH v2 1/1] test/mbuf: fix mbuf autotest when mbuf debug is enabled To: Pavel Ivashchenko Cc: dev@dpdk.org, stable@dpdk.org, Olivier Matz X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Fri, Mar 17, 2023 at 9:03=E2=80=AFAM Olivier Matz wrote: > 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_=3D178 DPDK_TEST=3Dmbuf_autotest gdb --args obj-x86_6= 4-linux-gnu/app/test/dpdk-test --file-prefix=3Dmbuf_autotest > > > > PANIC in rte_mbuf_sanity_check(): > > bad pkt_len > > > > ... > > #6 0x00007ffff7d3d4cc in rte_mbuf_sanity_check (m=3Dm@entry=3D0x17f= 8c3400, is_header=3Dis_header@entry=3D1) at ../lib/mbuf/rte_mbuf.c:384 > > #7 0x0000555555653d57 in rte_pktmbuf_free (m=3D0x17f8c3400) at ../l= ib/mbuf/rte_mbuf.h:1385 > > #8 0x000055555565c7a6 in test_nb_segs_and_next_reset () at ../app/t= est/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=3Dm@entry=3D0x17f= 8c3400, is_header=3Dis_header@entry=3D1) at ../lib/mbuf/rte_mbuf.c:384 > > 384 rte_panic("%s\n", reason); > > (gdb) p/d m->pkt_len > > $4 =3D 1500 > > > > Fixes: efc6f9104c80 ("mbuf: fix reset on mbuf free") > > Cc: stable@dpdk.org > > > > Signed-off-by: Pavel Ivashchenko > Acked-by: Olivier Matz Applied, thanks. --=20 David Marchand