On Mon, Feb 4, 2019 at 7:49 PM Sam Ravnborg <sam@xxxxxxxxxxxx> wrote: > > Hi Daniel > > On Mon, Feb 04, 2019 at 11:31:13AM +0100, Daniel Vetter wrote: > > The compiler already clears this for us. > > > > More important, someone might look what this is actually used for, > > and freak out about the dragon staring back at them. > > > > Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx> > > Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > > Cc: Hans de Goede <hdegoede@xxxxxxxxxx> > > Cc: Daniel Vetter <daniel.vetter@xxxxxxxx> > > Cc: Nicholas Mc Guire <der.herr@xxxxxxx> > > Cc: Emil Velikov <emil.velikov@xxxxxxxxxxxxx> > > Cc: Fabio Rafael da Rosa <fdr@xxxxxxxxx> > > --- > > drivers/staging/vboxvideo/vbox_drv.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/staging/vboxvideo/vbox_drv.c b/drivers/staging/vboxvideo/vbox_drv.c > > index b0d73d5fba5d..43c3d0a4fa1a 100644 > > --- a/drivers/staging/vboxvideo/vbox_drv.c > > +++ b/drivers/staging/vboxvideo/vbox_drv.c > > @@ -222,7 +222,6 @@ static void vbox_master_drop(struct drm_device *dev, struct drm_file *file_priv) > > static struct drm_driver driver = { > > .driver_features = > > DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | DRIVER_ATOMIC, > > - .dev_priv_size = 0, > > > > .lastclose = drm_fb_helper_lastclose, > > .master_set = vbox_master_set, > > I have stared at the file for a long time and so far no dragon > was staring back at me. There was a few "#ifdef" that screamed > at me, and a drm_fb_helper_fbdev_setup() that looked > suspicious alas no dragon :-( dev_priv_size is used by drm_bufs.c aka "you want a root-hole? have it!" code from dri1 days. It's not running on any modern driver, at least trinity/syzcaller stopped complaining (and I reviewed all the entry points and made sure they go nowhere else than an immediate return -errno). Except nouveau, for reasons (we accidentally made it uapi there, but it's fixed, just need to wait for all those installs to die so we can nuke it for good). The dragon was right there breathing down your neck, and wouldn't have seen it coming if it decided to have a snack :-) btw if you're bored, we should probably have a CONFIG_FEWER_EXPLOITS_IN_DRM_NOUVEAU or so, default n, for the next unaware traveller wandering into this dragon den. -Daniel > As for the change above, dragon or no dragon: > Reviewed-by: Sam Ravnborg <sam@xxxxxxxxxxxx> > > Sam -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel