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 58887A0C41 for ; Tue, 11 May 2021 08:46:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3CDD14115C; Tue, 11 May 2021 08:46:34 +0200 (CEST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mails.dpdk.org (Postfix) with ESMTP id EE51E41143 for ; Tue, 11 May 2021 08:46:27 +0200 (CEST) Received: by mail-lf1-f52.google.com with SMTP id x20so27056189lfu.6 for ; Mon, 10 May 2021 23:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8qPrxRFwFGeW1O5g5Fpv0S1w/mScFeGzPp0onxAutk4=; b=j4NZG5jMXm/877oZkswOeiQpG37acvotTzv5NMiOmF3DPlIaGCmL9WFTEcD8+l3Ivb iXCoaLdfUtCFlZ4h33rB1zbFDvydxirCx7o8zLXI7CCU6QpFUgifGzfssIBJmTgoqWYi 0elIfbkjilfVjNiyKmovUoKyDCDtCjcAAq5JyMHTQaF9swsvHwC3DWnhepNbgbd9q3Ci Vc1Vl4VqX2S4q4GAJoW200Wj7wTJyqw981vj6hE4vM3SGJCjj/qI/XFI8i/dHuZoseNg bvi/8iLUv+3p6GGqjmjMUU2Kpa1xVbFKePe0sjyvd4BGiHkEtQDf/sXpSagdkR9ItM/R U9Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8qPrxRFwFGeW1O5g5Fpv0S1w/mScFeGzPp0onxAutk4=; b=UEY5PhXc4rsH88BapDXs3qUBomJSluVvkw+61+qSb7bVk3gVZvIOa0vIOgXD0a9bhV 0KFfEZo5F9U7D+FIwsVKZhyFjW0axhoKAtOaOWCHpKuEUNpib1d6fftlGJsVYP+rvuFq 1SywQTFdMXgaq9EYovJj7YmAOo3SVJTKh11SBE/VkPIa/Zj9A/aHrl3LRN3HsNqMIX1v fk43qDsWdHGLaqt67x/XUBC5uAWEo0TQYBSCIc9x+dDOAvBixtFq3uSSkCZl6beRiuBi F9V+48KJpIR30DrkLe7AMBOv6aSyzoCeqvvihDb3Bk+Eoy+ShURQRmJgEOaIsjsmjkuY HCLw== X-Gm-Message-State: AOAM532NcDjq9E93kVM/PX3vS27fefhs5pn8Q7XmHkn1wdUGx2QPu3zT UfUCIql+i0M1L3LkeLp1CdfjSg== X-Google-Smtp-Source: ABdhPJwwIT0kfhsOUVs9i0haUu+0nGdp3upwFt20V9irP/xh++jh8suHnmp0wHB2gDmgZMW45steSA== X-Received: by 2002:a05:6512:3455:: with SMTP id j21mr11455222lfr.235.1620715587621; Mon, 10 May 2021 23:46:27 -0700 (PDT) Received: from DESKTOP-U5LNN3J.localdomain (89-79-189-199.dynamic.chello.pl. [89.79.189.199]) by smtp.gmail.com with ESMTPSA id v20sm2496776lfd.92.2021.05.10.23.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 23:46:26 -0700 (PDT) From: Michal Krawczyk To: ferruh.yigit@intel.com Cc: dev@dpdk.org, ndagan@amazon.com, gtzalik@amazon.com, igorch@amazon.com, upstream@semihalf.com, Michal Krawczyk , stable@dpdk.org, Shay Agroskin Date: Tue, 11 May 2021 08:45:47 +0200 Message-Id: <20210511064554.10656-13-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210511064554.10656-1-mk@semihalf.com> References: <87e65a42-4ae5-1a81-8f8e-74759fc14999@intel.com> <20210511064554.10656-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v4 12/19] net/ena: terminate devargs allowed keys with null X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" As the documentation of rte_kvargs_parse() states, the valid_keys argument must be NULL terminated. Lack of this feature may cause segmentation fault if the passed devarg will be different then the supported value. Fixes: 8a7a73f26cc9 ("net/ena: support large LLQ headers") Cc: stable@dpdk.org Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Shay Agroskin Acked-by: Ferruh Yigit --- v4: * Fix commit heading style. drivers/net/ena/ena_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index cb8ad5c3d0..6092288239 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -2876,6 +2876,7 @@ static int ena_parse_devargs(struct ena_adapter *adapter, { static const char * const allowed_args[] = { ENA_DEVARG_LARGE_LLQ_HDR, + NULL, }; struct rte_kvargs *kvlist; int rc; -- 2.25.1