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 77FA7A0C40 for ; Thu, 24 Jun 2021 15:23:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 609E2410DB; Thu, 24 Jun 2021 15:23:40 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 909DE40040 for ; Thu, 24 Jun 2021 15:23:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624541017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=it6sw9kRJz2W9Kbtpa7HQpDNPkj80NHQnOqC2uTRmjg=; b=SS5bgfzrfDZL4xvzIR5EjwBFntS9jWZxSr305ndAMEtiHh28oFUaSQsWOLSINeADLQy3fx wK0FEs2lBYxs1EhI/RT6iIe4cyuCUuwBJC27mWmfi3vG4LL1VJN8J448gntA4MscCAAxAV BwD9kPw7XPXt6M/Uv+FxD46KUjgBZz4= Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-397-TgbIhZUwOSKsr9Ws_CMMLw-1; Thu, 24 Jun 2021 09:23:36 -0400 X-MC-Unique: TgbIhZUwOSKsr9Ws_CMMLw-1 Received: by mail-vs1-f72.google.com with SMTP id u12-20020a67f94c0000b0290278a507ec3aso1172913vsq.18 for ; Thu, 24 Jun 2021 06:23:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=it6sw9kRJz2W9Kbtpa7HQpDNPkj80NHQnOqC2uTRmjg=; b=fYo1dX5yDENPCQ3oI061DK8heVFINLLOlofJ07UiEz5VnrCWdKhv5AkrkRh8tg8LmF K28+dh+vaviI7KcMUQynUAk9ZXJWt37mw+CuBpPODelmSspg+UDe6KqN2ZeOb+Wpl9dv KJ4uqhNH6vgXYVdWAOo3eQc4cZ+bTOktTpmnmku6jo5vDfKtjTrzFBZAFaukqQ4rS7KH FBiohCbxTQTMjbVkq1nZVEMUF/6FFTpWZioAS6DlxGtvsBVjpqsHv9s4iaK7BuhS1LtK u6h3paoYOaOhCn1Y20eUA/Tqf8c+xgp2F5XWA5unWS4qIxT0NaQxbnL/91NJvuoPLGwC z6/g== X-Gm-Message-State: AOAM533SMBTjvX8SxhM9oeAytVv3M/PtPXzRTL03Lhyj1mXnl0J0O23V 93TPSbZhfp0XutRp2guNhFfKo9gqgCwEbcDCnmxxcvgXPt/AtneM1oJfClxccC6mYZ0dNHyEQ+/ nwQgu9mBvpIixwxMnpI8Ck3Y= X-Received: by 2002:a67:df85:: with SMTP id x5mr2738589vsk.17.1624541015663; Thu, 24 Jun 2021 06:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/8S/+o/kRvKJUj52vwYF6bFFwwUgGMvXSN6DbJSGaQaLRvxuj7sUtxRkp4uohEa+16kE9Lg7SAmf0fOlWTuo= X-Received: by 2002:a67:df85:: with SMTP id x5mr2738573vsk.17.1624541015515; Thu, 24 Jun 2021 06:23:35 -0700 (PDT) MIME-Version: 1.0 References: <20210621132834.21673-1-ohilyard@iol.unh.edu> <20210623151730.35276-1-ohilyard@iol.unh.edu> In-Reply-To: <20210623151730.35276-1-ohilyard@iol.unh.edu> From: David Marchand Date: Thu, 24 Jun 2021 15:23:24 +0200 Message-ID: To: Owen Hilyard Cc: Vladimir Medvedkin , dev , dpdk stable , Stephen Hemminger Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [PATCH v4] rib: fix max depth IPv6 lookup 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" On Wed, Jun 23, 2021 at 5:17 PM wrote: > > From: Owen Hilyard > > ASAN found a stack buffer overflow in lib/rib/rte_rib6.c:get_dir. > The fix for the stack buffer overflow was to make sure depth > was always < 128, since when depth = 128 it caused the index > into the ip address to be 16, which read off the end of the array. > > While trying to solve the buffer overflow, I noticed that a few > changes could be made to remove the for loop entirely. > > Fixes: f7e861e21c ("rib: support IPv6") Updated sha1. Cc: stable@dpdk.org > > Signed-off-by: Owen Hilyard Acked-by: Vladimir Medvedkin Applied, thanks. -- David Marchand