From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 878902BF3 for ; Thu, 1 Feb 2018 22:45:04 +0100 (CET) Received: by mail-wm0-f44.google.com with SMTP id f3so8560453wmc.1 for ; Thu, 01 Feb 2018 13:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=jwQL08M9bxrYMwoeAvX8W0F3kvha4dpQ1C0U6JwFZDw=; b=nPF6kWxKWHYG0TKixLGDGECIorTBFbxh3CLsLjZR6sACO4bpWv/bkrPLq/HDPjR49R lUAm8L12ahco2rfGRVr3OARyUuVauBO9a11/ooWzEoMrGpNaGGuy4A5YYZ1nEor8bu1F Fb3EDKJRWtOtJ6jdicOQpSrAYCkWoz5+aZOlrfkFDIiG31LNogMo58hfL7HwUAyOtn9I xXhq6/NB/aI1qGU4yxYMEARalGAe7lqMjQQ1Hdu5pjQkf2OeY6UX1C7RIFFsq0dKktsF 2yAUuiBRWn0UygCSunc664erCuPbXDa3sXtYV7y5svAFfcgaTImUDzehBrXsiih73xW2 nQFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=jwQL08M9bxrYMwoeAvX8W0F3kvha4dpQ1C0U6JwFZDw=; b=enq8IdUM/2nPoIpPYsIz3N5H1GbGuKoO/b7IAAb7uCDASgnw9TlCCaUu7tHjIpxz0V Bgvq4uvYLLchjglTx3rMDV/M52DcMHGgLM/mh4iMeLSIV9UKyW3dsamcVysC58GQbIUD +1TeNYdaxAnPuQfRLkebJk3oBhFU1tDW4O8iLz95TJ2MRbcrD6disQbHYvsNlhgyo3ki ZilQq9T3kv1ecQcc233oEmTHDiZpjODbN8VsQm6wk+fQUOlWBkC3oaC/ENPWBaIxx9BQ FOxf3ZDUcZUQWywXCRZ3W/TKGM8pq8kDSvcQUN5GBM5P7MBLsNXuKO0SYZz/5hdtjKId MUog== X-Gm-Message-State: AKwxyteWqBHP40hq4DQtjKeWzqbPRoAI2JR8PJmL+x33aGgLA3fmqKIW fYBgG2rWqsfnTDCPMvRrS/1rCeu7Oxevvh5SxYSdtQ== X-Google-Smtp-Source: AH8x2250QQj4qMnUZI5zby9QI/fzmSS2sQA/rPcUc8GQYI7fcCXij7L0f+ivYeia62cUVbTn6X86KGthYWx9wUnijMo= X-Received: by 10.28.168.3 with SMTP id r3mr29656107wme.92.1517521503815; Thu, 01 Feb 2018 13:45:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.185.119 with HTTP; Thu, 1 Feb 2018 13:45:03 -0800 (PST) From: Stefan Baranoff Date: Thu, 1 Feb 2018 16:45:03 -0500 Message-ID: To: dev@dpdk.org Cc: John Searles , Ben Magistro Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] I40E VF nullptr Dreference: rx_mbuf_alloc_failed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 21:45:04 -0000 All, I was unclear if this should be usage or dev but it seemed like a dev issue to me. I'm on DPDK 16.11.2 (CentOS packages) using the I40EVF driver and in the case of rx_mbuf_alloc_failed there is a null pointer dereference in drivers/net/i40e/i40e_rxtx.c line 830. The variable 'dev' is null. Looking at it right after initializing the port/queues it appears the source of that variable ((struct i40e_rx_queue*)rte_eth_devices[0].data->rx_queues[0])->vsi->adapter->eth_dev is null as well. I couldn't find anywhere in the code base that initialized that variable. What am I missing/not doing right? Where is eth_dev supposed to be initialized and is that just missing or is vsi->adapter->eth_dev the wrong structure to be using in the rx_mbuf_alloc_failed case? Thanks, Stefan