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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 30 Jan 2014 11:41:51 -0500
From:	Dave Jones <davej@...hat.com>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc:	daniel.vetter@...ll.ch, airlied@...hat.com
Subject: Re: drm: restrict the device list for shadow attached drivers

On Thu, Jan 30, 2014 at 04:57:54AM +0000, Linux Kernel wrote:
 > Gitweb:     http://git.kernel.org/linus/;a=commit;h=b3f2333de8e81b089262b26d52272911523e605f
 > Commit:     b3f2333de8e81b089262b26d52272911523e605f
 > Parent:     e2577d455adb165e1046816e5ed092cc6d60f35a
 > Author:     Daniel Vetter <daniel.vetter@...ll.ch>
 > AuthorDate: Wed Dec 11 11:34:31 2013 +0100
 > Committer:  Dave Airlie <airlied@...hat.com>
 > CommitDate: Wed Dec 18 11:08:36 2013 +1000
 > 
 >     drm: restrict the device list for shadow attached drivers
 
 > @@ -465,8 +470,11 @@ void drm_pci_exit(struct drm_driver *driver, struct pci_driver *pdriver)
 >  	if (driver->driver_features & DRIVER_MODESET) {
 >  		pci_unregister_driver(pdriver);
 >  	} else {
 > -		list_for_each_entry_safe(dev, tmp, &driver->device_list, driver_item)
 > +		list_for_each_entry_safe(dev, tmp, &driver->legacy_dev_list,
 > +					 legacy_dev_list) {
 >  			drm_put_dev(dev);
 > +			list_del(&dev->legacy_dev_list);
 > +		}
 >  	}

Use-after-free.  drm_put_dev frees dev.

	Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ