On Thu, 10 Nov 2011 10:51:26 -0200 Eugeni Dodonov <eugeni.dodo...@intel.com> wrote:
> This prevents an in-kernel division by zero which happens when we are > asking for i915_chipset_val too quickly, or within a race condition > between the power monitoring thread and userspace accesses via debugfs. > > The issue can be reproduced easily via the following command: > while ``; do cat /sys/kernel/debug/dri/0/i915_emon_status; done > > This is particularly dangerous because it can be triggered by > a non-privileged user by just reading the debugfs entry. > > This issue was also found independently by Konstantin Belousov > <kostik...@gmail.com>, who proposed a similar patch. > > Reported-by: Konstantin Belousov <kostik...@gmail.com> > Acked-by: Jesse Barnes <jbar...@virtuousgeek.org> > Acked-by: Keith Packard <kei...@keithp.com> > Cc: <sta...@vger.kernel.org> > Signed-off-by: Eugeni Dodonov <eugeni.dodo...@intel.com> > --- Yep, looks fine, thanks for pushing this Eugeni. -- Jesse Barnes, Intel Open Source Technology Center
signature.asc
Description: PGP signature
_______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx