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: <20161130182707.GV6266@mwanda>
Date:   Wed, 30 Nov 2016 21:27:07 +0300
From:   Dan Carpenter <dan.carpenter@...cle.com>
To:     Alex Williamson <alex.williamson@...hat.com>
Cc:     Christophe JAILLET <christophe.jaillet@...adoo.fr>,
        kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
        kernel-janitors@...r.kernel.org,
        Kirti Wankhede <kwankhede@...dia.com>
Subject: Re: [PATCH] vfio: Fix handling of error returned by
 'vfio_group_get_from_dev()'

On Wed, Nov 30, 2016 at 09:36:46AM -0700, Alex Williamson wrote:
> On Wed, 30 Nov 2016 08:06:12 +0100
> Christophe JAILLET <christophe.jaillet@...adoo.fr> wrote:
> 
> > 'vfio_group_get_from_dev()' seems to return only NULL on error, not an error
> > pointer.
> > 
> > Fixes: 2169037dc322 ("vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops")
> > Fixes: c086de818dd8 ("vfio iommu: Add blocking notifier to notify DMA_UNMAP")
> > 
> > Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> > ---
> 
> Dan Carpenter proposed a nearly identical patch:
> 
> http://www.spinics.net/lists/kvm/msg141468.html
> 
> The difference is you return -ENODEV while Dan returns -EINVAL.  I tend
> to prefer -ENODEV to distinguish this error case versus validation of
> the other parameters.  This patch also identifies both commits
> introducing these, so I'm inclined to take this one rather than Dan's
> version.  Dan & Kirti, I welcome any credits you'd like to apply to
> this patch for identifying and reviewing the same issue.  Thanks,
> 

Could I get a Reported-by?

thanks,
dan carpenter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ