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 A5D574401C; Mon, 13 May 2024 18:08:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F6654064A; Mon, 13 May 2024 18:08:46 +0200 (CEST) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by mails.dpdk.org (Postfix) with ESMTP id C233B402CD for ; Mon, 13 May 2024 18:08:45 +0200 (CEST) Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e34e85ebf4so39672081fa.2 for ; Mon, 13 May 2024 09:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715616525; x=1716221325; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=jD6NERWd+9NBTOJH5uOaAqfZm81/X3D+yIUZAlVTHQU=; b=iCmDrliUnamEcb4kbHVz8EBV8/3umulhRV90n7LOYpzXW5nYB9TaaIttvKhbBJvmpu t9J1pUJffVPTAvE5a650yFmq21VdvslIMYf+FpcSD/QpvNZl6GkgVnx4WLO2gfJoMQxA RkK3gLU8bNTZLnvye1zPjgos1A2b6Lw6NKD36IS+BSjOEsCOM4TT99x+hzG/9VrjN7ID zu34/aZtFhOS9gMJXgow1N+ioZJTQWkDdjh45bvQSr6zSt/MxeIF9+nCJiqR82YWlgee YQ9Q+dJVrY/ijkZ7Wns105VQaXRu9cKdjCrh/Mz4G8qTKyC357RKT+zO8GylZPfAo1UI hsuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715616525; x=1716221325; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jD6NERWd+9NBTOJH5uOaAqfZm81/X3D+yIUZAlVTHQU=; b=Qkug/uxKhLwLAk/WYn5kep4mwXyCNknbaUV5O9t0iLHfcDNW0d21p1B9xKo0T9XYLy NuXlrUarAIjpX4akTkLhv9BQrZw/YPt0UoeRe88DWB4WEYG0FfFgbcPUXfCGViXlEJu6 /S/IM6QmJiDCiOuR7y6xIXU1fXUdETpDOUy8FU+U5wuublFvvztbR07MD7m/sMAgNhrd h/qZqAVf1H+K119e6ukkebfwbbstVosBQoXmCxLge9a+r8uCY26esPY3O6IvyL19ixfM +0UUFIA6nnOJ4khT2goKfMDKYesjv3iI64C1reXxhb9i21fVVQ6pWEvMjgrU9BBl0s0v q+7Q== X-Gm-Message-State: AOJu0YyiguyE1N+J+ZnGUrd/DyGAUsmKKydWoWTFKJqxVuPl8CBUS0Ue h2vYQBAQi3Txxkwm2FDeAUy30UN++leGpYhmM106ckCN2fh5Asnu X-Google-Smtp-Source: AGHT+IHwcwG8pAYV7xESGJaXQtrw6HAngcZ1B/qVK4k20UxUQjmBvIAii39jyQNMgXwieAxPSQASBQ== X-Received: by 2002:a19:ca08:0:b0:51b:ecc2:dc9c with SMTP id 2adb3069b0e04-5220fc7dbcfmr6483478e87.16.1715616524662; Mon, 13 May 2024 09:08:44 -0700 (PDT) Received: from sovereign (broadband-109-173-110-33.ip.moscow.rt.ru. [109.173.110.33]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f39d32f3sm1799615e87.292.2024.05.13.09.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 09:08:44 -0700 (PDT) Date: Mon, 13 May 2024 19:08:42 +0300 From: Dmitry Kozlyuk To: Oleksandr Nahnybida Cc: dev@dpdk.org Subject: Re: rte_mempool_create/alloc_seg crash Message-ID: <20240513190842.054fa6c2@sovereign> In-Reply-To: References: X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 2024-05-13 18:37 (UTC+0300), Oleksandr Nahnybida: [snip] > I think ignore_msk |= last_msk; should be replaced by cur_msk &= > last_msk; I tried this and dpdk doesn't crash anymore and seems to > work fine, but I'd like someone else familiar with this code to take a look > at this. I confirm this bug exists and the proposed fix works. We have encountered it too and the same fix has been working in the field for some time by now. To clarify the bug condition, our conclusion is that it happens when: - the size of memseg array is not a multiple of 64 - the last array element is free (for rte_fbarray_find_next_n_free) - there aren't consequent N free elements in the array