Re: [PATCH v2 0/2] Fix mmap memory boundary calculation

2024-08-12 Thread Jann Horn
On Mon, Aug 12, 2024 at 11:19 AM Joonas Lahtinen wrote: > Quoting Jann Horn (2024-08-09 18:40:45) > > On Fri, Aug 9, 2024 at 4:48 PM Jann Horn wrote: > > > On Tue, Aug 6, 2024 at 2:08 PM Joonas Lahtinen > > > wrote: > > > > Quoting Andi Shyti

Re: [PATCH v2 0/2] Fix mmap memory boundary calculation

2024-08-09 Thread Jann Horn
On Fri, Aug 9, 2024 at 4:48 PM Jann Horn wrote: > On Tue, Aug 6, 2024 at 2:08 PM Joonas Lahtinen > wrote: > > Quoting Andi Shyti (2024-08-06 12:46:07) > > > Hi Greg, > > > > > > same question without the stable mailing list not to trigger the > > &

Re: [PATCH v2 0/2] Fix mmap memory boundary calculation

2024-08-09 Thread Jann Horn
On Tue, Aug 6, 2024 at 2:08 PM Joonas Lahtinen wrote: > Quoting Andi Shyti (2024-08-06 12:46:07) > > Hi Greg, > > > > same question without the stable mailing list not to trigger the > > automatic reply. > > > > > Andi Shyti (2): > > > drm/i915/gem: Adjust vma offset for framebuffer mmap offset

Re: [PATCH 2/2] drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

2024-08-02 Thread Jann Horn
) to prefault all PTE in > a single pass") > Reported-by: Jann Horn > Co-developed-by: Chris Wilson > Signed-off-by: Chris Wilson > Signed-off-by: Andi Shyti > Cc: Joonas Lahtinen > Cc: Matthew Auld > Cc: Rodrigo Vivi > Cc: # v4.9+ Reviewed-by: Jann Horn

Re: [PATCH 1/5] fs: Do not allow get_file() to resurrect 0 f_count

2024-05-02 Thread Jann Horn
On Fri, May 3, 2024 at 12:34 AM Kees Cook wrote: > If f_count reaches 0, calling get_file() should be a failure. Adjust to > use atomic_long_inc_not_zero() and return NULL on failure. In the future > get_file() can be annotated with __must_check, though that is not > currently possible. [...] > s

Re: [Intel-gfx] [PATCH] file, i915: fix file reference for mmap_singleton()

2023-10-26 Thread Jann Horn
rnel.org/intel-gfx/sj1pr11mb6129cb39eed831784c331bafb9...@sj1pr11mb6129.namprd11.prod.outlook.com > Link: [2]: > https://intel-gfx-ci.01.org/tree/linux-next/next-20231013/bat-dg2-11/igt@i915_selftest@l...@mman.html#dmesg-warnings10963 > Signed-off-by: Christian Brauner Patch makes se

Re: [Intel-gfx] [PATCH 1/3] treewide: Lift switch variables out of switches

2019-01-23 Thread Jann Horn
On Wed, Jan 23, 2019 at 1:04 PM Greg KH wrote: > On Wed, Jan 23, 2019 at 03:03:47AM -0800, Kees Cook wrote: > > Variables declared in a switch statement before any case statements > > cannot be initialized, so move all instances out of the switches. > > After this, future always-initialized stack