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 8DB71430FC; Fri, 25 Aug 2023 09:05:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FAC440A7A; Fri, 25 Aug 2023 09:05:19 +0200 (CEST) Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) by mails.dpdk.org (Postfix) with ESMTP id 3364640695 for ; Fri, 25 Aug 2023 09:05:17 +0200 (CEST) Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-7a25184a648so233595241.2 for ; Fri, 25 Aug 2023 00:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692947116; x=1693551916; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pT1Q5Kt4G8J5f3rJJleB4DhLwCRi2p6YWPCOaHY7x2I=; b=M+vuZ5OSX5qSF5Axm58AEddz+k8AJBKZgyGN/AsflCmj7xpWoXlolLQ3qx692fNwgw +pcHcjv9Upx6CWwkesutoxrCEMokERY/Vxf1bzW6zh1/97n0q8Z7Qg80ZQgj+3sQROOZ ACQ8RviwFTznrJx7w7a0upr4yf3oImX4oTNmjGUUI5LcSHIPZv4XpYlgfq6RTr6PbDn6 mMWWtuqb+nygIleWhuikgTIB9Ziqm+rfftZ9v9nZqbnGupAFirfPR4a+8Zmq4O+QHxEm VYyw8M1WBCW4He5GhDEPOkbJSBwQv5FEoWSgaDy7xfOSAfkdaws2RJsxaw6c36wJ5n1Y IHUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692947116; x=1693551916; 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=pT1Q5Kt4G8J5f3rJJleB4DhLwCRi2p6YWPCOaHY7x2I=; b=LSQVOzIfb/SwV+ocvG2Z5ioEVyMzcpI3SOWEIjU85FFY99DT3IU8ngTPNImPnRLlia KZe9k+Z/MDl9DDy2CAdRwINAaIYvoBf0+bARlZ2hQhZoM1l8Fh9OdyXJvwf4Vsk94RaN /YoKiyv0ohZc3bOOJ0YYL7Zz4OhR2tOySwqk1VIG7AyT3AdDAmVPyAGr6DcpP1m4p1QN kzuzA6x7WI+2TaQ1jGozMHQ24KGAcf3KrGrY0g6TRpzTC8J95qoxzLC4aDrrqQBq6DGC NCdIL7J5PEr95SsnISabJzP+pxx7Y3Hb9CXQI91XFCKyQazHxySpM/Ll944Q0gpBHn0x YTNA== X-Gm-Message-State: AOJu0YxEebk5qeX1Gf4GCUCj5D2XvvOoahXfD3SynchzK+t7ZYtW1kxq N012L5k9bORcdz5g3BYmS/7J99M/lk/8LvF6C7o= X-Google-Smtp-Source: AGHT+IH8JDvByAkEneLmrWma9zSOxnbNlf5eS6l17PcLqHT8HrY1qgw0rLtJCNPB5RHNoe9+Wq99RgsFMvWXi/M8NpQ= X-Received: by 2002:a67:ce97:0:b0:44d:40b1:926d with SMTP id c23-20020a67ce97000000b0044d40b1926dmr15745816vse.32.1692947116548; Fri, 25 Aug 2023 00:05:16 -0700 (PDT) MIME-Version: 1.0 References: <20230824082331.713236-1-ganapati.kundapura@intel.com> In-Reply-To: <20230824082331.713236-1-ganapati.kundapura@intel.com> From: Jerin Jacob Date: Fri, 25 Aug 2023 12:34:50 +0530 Message-ID: Subject: Re: [PATCH v1] eventdev/eth_rx: fix null pointer dereference To: Ganapati Kundapura Cc: jerinj@marvell.com, s.v.naga.harish.k@intel.com, dev@dpdk.org, jay.jayatheerthan@intel.com, abhinandan.gujjar@intel.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 Thu, Aug 24, 2023 at 1:53=E2=80=AFPM Ganapati Kundapura wrote: > > On passing NULL as a last parameter to xxx_create_ext_with_params(), > rxa_config_params_validate() uses default values and dereferences > NULL pointer leading to segmentation fault. > > Fixed by returning after using default values without dereferencing > NULL pointer. > > Fixes: 8be6c94d6d90 ("eventdev/eth_rx: add new adapter create API") > > Signed-off-by: Ganapati Kundapura Waiting for Review/Ack from @Naga Harish K, S V to merge