lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211115154858.GG27562@kadam>
Date:   Mon, 15 Nov 2021 18:48:58 +0300
From:   Dan Carpenter <dan.carpenter@...cle.com>
To:     Dmitry Osipenko <digetx@...il.com>
Cc:     Thierry Reding <thierry.reding@...il.com>,
        Jonathan Hunter <jonathanh@...dia.com>,
        Mauro Carvalho Chehab <mchehab@...nel.org>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Anton Bambura <jenneron@...tonmail.com>,
        Hans Verkuil <hverkuil@...all.nl>, linux-media@...r.kernel.org,
        linux-staging@...ts.linux.dev, linux-clk@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 1/3] media: staging: tegra-vde: Support reference
 picture marking

On Mon, Nov 15, 2021 at 05:34:47PM +0300, Dmitry Osipenko wrote:
> 15.11.2021 15:44, Dan Carpenter пишет:
> > On Mon, Nov 15, 2021 at 01:34:18AM +0300, Dmitry Osipenko wrote:
> >> 15.11.2021 01:23, Dmitry Osipenko пишет:
> >>> +	vde->secure_bo = tegra_vde_alloc_bo(vde, DMA_FROM_DEVICE, 4096);
> >>> +	if (!vde->secure_bo) {
> >>> +		dev_err(dev, "Failed to allocate secure BO\n");
> >>> +		goto err_pm_runtime;
> >>> +	}
> >>
> >> My eye just caught that by accident err variable isn't assigned to
> >> -ENOMEM here. I'll make v2 shortly.
> > 
> > Smatch has a check for this so we would have caught it.  :)
> 
> Whish smatch was built-in into kernel and I could simply run "make
> smatch". On the other hand, I know that you're periodically checking
> upstream with smatch and patching the found bugs, so maybe it's fine
> as-is.

I run it every day, and it's integrated into the zero day bot and Mauro
runs it.  So someone would have caught it.

regards,
dan carpenter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ