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 33161A0C47; Fri, 11 Jun 2021 11:13:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0799A40E46; Fri, 11 Jun 2021 11:13:59 +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 0F2CC40E46 for ; Fri, 11 Jun 2021 11:13:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623402836; 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=T7USdcZCSjaIs8VGhuhXsNKTxmsm2i7eLuVfKcPJlpo=; b=TMMPo9/AMM/UP9aGvX3CQfdw13MIUf0shH10L+ezdnqxEfX4upyS3iJW9s2uDfCh5w7rc5 5T2l7aBmisZVqnv3ijI307p5RcY1ZmGGPI2fXp2rXXQJwFC5MgDvrbRAhZNfW8HI1mNBwl Q+fLv94omXVPxMooYT74Fp5BGABAWZw= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-421-TSUkLeLKNpO1nuEV4CJBlw-1; Fri, 11 Jun 2021 05:13:52 -0400 X-MC-Unique: TSUkLeLKNpO1nuEV4CJBlw-1 Received: by mail-ua1-f70.google.com with SMTP id i33-20020ab042240000b029020adb6e9ffcso2229936uai.23 for ; Fri, 11 Jun 2021 02:13:52 -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=T7USdcZCSjaIs8VGhuhXsNKTxmsm2i7eLuVfKcPJlpo=; b=ctEaf2fLl7izTXBtemuAixxBSidTaUJlL6vypXpyl0UrEYfyeVj/DLpvWwnrKe5ugZ 9DkNsvMNnlyBsaEmrC5k03O++RjnJL/3aS24bSmrAHB+W+uY0lU56MG9qsvPF9EW8yhb GmpP/2uvDhOiRKbFIz/yoD1x9rDZuJxxnOokSGkXSml0gbXYrZf2ZaH+v210R9wlmBpq YIlH6M3+1HvktxUnCEmrzZ3L6xJmVVDe6V6dsPuTMtspLA5f4NTzi6ek8Hf21HVUMKFx 390GOgm7icisJ0bAMLyOQ1uJFp1hVb5XR8iEfUyGDpZJSyNRFNmTRHGq1hJOYSGjQ0/L 8kAg== X-Gm-Message-State: AOAM533yU4E9n3/NoiQDeIPOBp/dOgJwq2+7SX1fUEbwLEMG83Zc1Y+x cenDtU71TSesdrPbi0hQVKL6N/LB8yByxpQaw0h/pK0KMslcXyF9fxkJtyVso3vmXKZX8I2oqLG HX0OKXK73es1p6wi9Mjk= X-Received: by 2002:a67:cd08:: with SMTP id u8mr8547185vsl.18.1623402832415; Fri, 11 Jun 2021 02:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMekfljWXOOjtPUQJSmiJSqJB/poF3/pH0k7QS0uzpyhOj0UkaxGE04qRxjvxZhvqmn1C8aeIWRbQ8lNUzNL4= X-Received: by 2002:a67:cd08:: with SMTP id u8mr8547178vsl.18.1623402832252; Fri, 11 Jun 2021 02:13:52 -0700 (PDT) MIME-Version: 1.0 References: <20210602090629.3495940-1-andrew.rybchenko@oktetlabs.ru> <20210602094922.3507384-1-andrew.rybchenko@oktetlabs.ru> In-Reply-To: From: David Marchand Date: Fri, 11 Jun 2021 11:13:40 +0200 Message-ID: To: Andrew Rybchenko Cc: "dev@dpdk.org" , Ivan Ilchenko , "stable@dpdk.org" , Andy Moreton , "Dumitrescu, Cristian" 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-dev] [dpdk-stable] [PATCH v2] bitmap: fix buffer overrun in bitmap init function 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 Sender: "dev" On Tue, Jun 8, 2021 at 12:27 PM Dumitrescu, Cristian wrote: > > Bitmap initialization function is allowed to memset() > > caller-provided buffer with number of bytes exceeded > > this buffer size. This happens due to wrong comparison > > sign between buffer size and number of bytes required > > to initialize bitmap. > > > > Fixes: 602c9ca33a4 ("sched: bitmap is now dynamically allocated") > > Cc: stable@dpdk.org > > > > Reported-by: Andy Moreton > > Signed-off-by: Ivan Ilchenko > > Reviewed-by: Andy Moreton > > Signed-off-by: Andrew Rybchenko > Acked-by: Cristian Dumitrescu Applied, thanks. -- David Marchand