From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id A7D581B16C for ; Wed, 16 May 2018 12:17:00 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id a67-v6so314114wmf.3 for ; Wed, 16 May 2018 03:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V3WNoqS5wQYO0VhMP2SnksYdyVmOcYB4qYtVAkG/mT8=; b=kWSUbgG7QfzqcqzMIpiki31f1ZV/F0gH4wGZVe9QtFilKuT71Nkd9JIq7e0N6oCVBR i0a8ChdxCPvx2z7sAfluTB3r5Lb5S5TLnVnb7qmvhUt9GMTJAMdjB1yHg41bjtIzUmbr o2Oa4UbPKxIUJKvBfKcEEPMwd0C1kuZLl2RpMUXqVq8O67GR0D6NCUa4lKqmo85qAmFO ByoWWomhOYZT8Xb1HD1wyB1z8y9kP+iuSFJSpfqYZW+U2F+V+CdD1jLweYUDkCiV2Qo0 8hs8jmv5lwnBnbS8Uf7Qc86CUuCgQbOcioz6o5O2ztKLb3hYyn7OXHc2v09T9Z1pTL6a scqQ== 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; bh=V3WNoqS5wQYO0VhMP2SnksYdyVmOcYB4qYtVAkG/mT8=; b=Zu9XSzxqY2UiFbmuQqlGfBXAghuOFZB/RsMEjUtP1pYWcXdSFiH5wGboZd3FOoWeFD 10vSwnmVnGDYV0LXQiFhb54F3bz6hd6sgx0zF3+1EEA/Osizjg7NLvJ4Gq0FgXx+PWUW N1ML0fvxN1vhi6DOW5mY0QaTiX5rcy9WDVDHaY6nG7GoHqMGNXFZxk8im7xV+KSBBkKq 1nsycPzDuXks5LyPyGfDP2VX/zH4CQqsaUe6z0+FQzknP2H/MgzT6SjSHphZ8uBZCWGx WRMb7Rgpy9u8kC90NOAMALvw3+JpxwAWsA15dOLRHi5Owwub74coDsp0IJIRFdcSylnh jENA== X-Gm-Message-State: ALKqPwevKte8nhw7YKCbCasajf61w3UuB5GH+TCLHxhZyyn8OWiUwqIb aLn1h5G8i9jcRv7BL79xv8E= X-Google-Smtp-Source: AB8JxZovTVSvNUiknueWhqaLARrGE7VfAZMTG86Hgfuy1ZYZH3+PNUsJB27u3lIgIyG+qhyjiaXmJg== X-Received: by 2002:a1c:ee95:: with SMTP id j21-v6mr179839wmi.16.1526465820388; Wed, 16 May 2018 03:17:00 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id 33-v6sm2760732wrs.5.2018.05.16.03.16.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 03:16:59 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: Pablo de Lara , Rasesh Mody , dpdk stable Date: Wed, 16 May 2018 11:13:23 +0100 Message-Id: <20180516101323.2234-4-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180516101323.2234-1-luca.boccassi@gmail.com> References: <20180515135335.10459-2-luca.boccassi@gmail.com> <20180516101323.2234-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bnx2x: fix memzone name overrun' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 10:17:00 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/18/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 717286d6c13889c527197d2731ab0c480096c728 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 14 May 2018 13:04:43 +0800 Subject: [PATCH] net/bnx2x: fix memzone name overrun [ upstream commit 52f766443423a7728a9dedda13fd8b23d7e50665 ] Fixes: 540a211084a7 ("bnx2x: driver core") Signed-off-by: Andy Green Acked-by: Pablo de Lara Acked-by: Rasesh Mody --- drivers/net/bnx2x/bnx2x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c index 7a3b7ff5d..80cc4f579 100644 --- a/drivers/net/bnx2x/bnx2x.c +++ b/drivers/net/bnx2x/bnx2x.c @@ -170,10 +170,10 @@ bnx2x_dma_alloc(struct bnx2x_softc *sc, size_t size, struct bnx2x_dma *dma, dma->sc = sc; if (IS_PF(sc)) - sprintf(mz_name, "bnx2x%d_%s_%" PRIx64, SC_ABS_FUNC(sc), msg, + snprintf(mz_name, sizeof(mz_name), "bnx2x%d_%s_%" PRIx64, SC_ABS_FUNC(sc), msg, rte_get_timer_cycles()); else - sprintf(mz_name, "bnx2x%d_%s_%" PRIx64, sc->pcie_device, msg, + snprintf(mz_name, sizeof(mz_name), "bnx2x%d_%s_%" PRIx64, sc->pcie_device, msg, rte_get_timer_cycles()); /* Caller must take care that strlen(mz_name) < RTE_MEMZONE_NAMESIZE */ -- 2.14.2