[PATCH] drm/i915/sseu: fix max_subslices array-index-out-of-bounds access

2023-02-22 Thread Andrea Righi
t gen11_sseu_info_init() can potentially set 8 sub-slices, in the !IS_JSL_EHL(gt->i915) case. Fix this by reserving up to 8 slots for max_subslices in the eu_mask struct. Reported-by: Emil Renner Berthing Signed-off-by: Andrea Righi --- drivers/gpu/drm/i915/gt/intel_sseu.h | 2 +- 1 file changed, 1 in

Re: [PATCH] fbdev: potential information leak in do_fb_ioctl()

2019-10-31 Thread Andrea Righi
On Wed, Oct 30, 2019 at 02:26:21PM -0500, Eric W. Biederman wrote: > Andrea Righi writes: > > > On Tue, Oct 29, 2019 at 02:02:11PM -0500, Eric W. Biederman wrote: > >> Dan Carpenter writes: > >> > >> > The "fix" struct has a 2 byte ho

Re: [PATCH] fbdev: potential information leak in do_fb_ioctl()

2019-10-30 Thread Andrea Righi
On Tue, Oct 29, 2019 at 02:02:11PM -0500, Eric W. Biederman wrote: > Dan Carpenter writes: > > > The "fix" struct has a 2 byte hole after ->ywrapstep and the > > "fix = info->fix;" assignment doesn't necessarily clear it. It depends > > on the compiler. > > > > Fixes: 1f5e31d7e55a ("fbmem: don't

[PATCH] drm/amd/powerplay: remove spurious semicolon

2019-05-06 Thread Andrea Righi
Remove unnecessary semicolons at the end of line. Signed-off-by: Andrea Righi --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 8 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd