mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 18:04:38 -04:00
Merge tag 'fbdev-v4.16-rc5' of git://github.com/bzolnier/linux
Pull fbdev fix from Bartlomiej Zolnierkiewicz: "Just a single fix to close a kernel data leak in FBIOGETCMAP_SPARC ioctl" * tag 'fbdev-v4.16-rc5' of git://github.com/bzolnier/linux: fbdev: Fixing arbitrary kernel leak in case FBIOGETCMAP_SPARC in sbusfb_ioctl_helper().
This commit is contained in:
@@ -122,7 +122,7 @@ int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
|
||||
unsigned char __user *ured;
|
||||
unsigned char __user *ugreen;
|
||||
unsigned char __user *ublue;
|
||||
int index, count, i;
|
||||
unsigned int index, count, i;
|
||||
|
||||
if (get_user(index, &c->index) ||
|
||||
__get_user(count, &c->count) ||
|
||||
@@ -161,7 +161,7 @@ int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
|
||||
unsigned char __user *ugreen;
|
||||
unsigned char __user *ublue;
|
||||
struct fb_cmap *cmap = &info->cmap;
|
||||
int index, count, i;
|
||||
unsigned int index, count, i;
|
||||
u8 red, green, blue;
|
||||
|
||||
if (get_user(index, &c->index) ||
|
||||
|
||||
Reference in New Issue
Block a user