[dpdk-dev] [PATCH v2] bus/pci: fix TOCTOU issue

Thomas Monjalon thomas at monjalon.net
Fri Jun 14 09:35:13 CEST 2019


14/06/2019 16:16, David Marchand:
> On Tue, Apr 2, 2019 at 8:51 PM Stephen Hemminger <stephen at networkplumber.org>
> wrote:
> 
> > Using access followed by open causes a static analysis warning
> > about Time of check versus Time of use. Also, access() and
> > open() have different UID permission checks.
> >
> > This is not a serious problem; but easy to fix by using errno instead.
> >
> > Coverity issue: 300870
> > Fixes: 4a928ef9f611 ("bus/pci: enable write combining during mapping")

Cc: stable at dpdk.org

> > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> >
> Reviewed-by: David Marchand <david.marchand at redhat.com>

Applied, thanks





More information about the dev mailing list