]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: fix notifier memory corruption bug
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 19 Apr 2011 21:50:48 +0000 (23:50 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Apr 2011 22:51:31 +0000 (08:51 +1000)
commitbb8389b64f39e51118db188a14bcaa8760852bcf
tree8268eb40c5617340c34e4b6486106c8191c4e049
parent4e54ec3ca1677387812c3a017ba2d2c3eb0a9a5c
drm/nouveau: fix notifier memory corruption bug

nouveau_bo_wr32 expects offset to be in words, but we pass value in bytes,
so after commit aa511a0f17ba98c1ae22279a1442753fd54513a8 ("drm/nouveau: allocate
kernel's notifier object at end of block") we started to overwrite some memory
after notifier buffer object (previously m2mf_ntfy was always 0, so it didn't
matter it was a value in bytes).

Reported-by: Dominik Brodowski <linux@dominikbrodowski.net>
Reported-by: Nigel Cunningham <lkml@nigelcunningham.com.au>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Pekka Paalanen <pq@iki.fi>
Cc: stable@kernel.org [2.6.38]
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fbcon.c