Re: [PATCH 1/2] lxc: Coverity false positive USE_AFTER_FREE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 08, 2013 at 06:51:19AM -0400, John Ferlan wrote:
> On 05/01/2013 11:53 AM, John Ferlan wrote:
> > ---
> >  src/lxc/lxc_container.c | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
> > index ac0f69c..d082a06 100644
> > --- a/src/lxc/lxc_container.c
> > +++ b/src/lxc/lxc_container.c
> > @@ -1772,6 +1772,11 @@ static int lxcContainerSetupPivotRoot(virDomainDefPtr vmDef,
> >      /* Some versions of Linux kernel don't let you overmount
> >       * the selinux filesystem, so make sure we kill it first
> >       */
> > +    /* Filed coverity bug for false positive 'USE_AFTER_FREE' due to swap
> > +     * of root->src with root->dst and the VIR_FREE(root->src) prior to the
> > +     * reset of root->src in lxcContainerPrepareRoot()
> > +     */
> > +    /* coverity[deref_arg] */
> >      if (STREQ(root->src, "/") &&
> >          lxcContainerUnmountSubtree(SELINUX_MOUNT, false) < 0)
> >          goto cleanup;
> > 
> 
> ping?
> 
> Any thoughts on this - either way?  There is a Coverity bug filed, but
> it'll take some time to work through their system.


ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]