lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <12e0e34b-ce27-4780-9972-908a51bd539f@lucifer.local>
Date: Tue, 2 Sep 2025 13:38:10 +0100
From: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>
To: Andreas Gruenbacher <agruenba@...hat.com>
Cc: Christian Brauner <christian@...uner.io>, Jan Kara <jack@...e.com>,
        gfs2@...ts.linux.dev, linux-fsdevel@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gfs2, udf: update to use mmap_prepare

On Tue, Sep 02, 2025 at 02:34:15PM +0200, Andreas Gruenbacher wrote:
> > diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
> > index bc67fa058c84..c28ff8786238 100644
> > --- a/fs/gfs2/file.c
> > +++ b/fs/gfs2/file.c
> > @@ -577,7 +577,7 @@ static const struct vm_operations_struct gfs2_vm_ops = {
> >  };
> >
> >  /**
> > - * gfs2_mmap
> > + * gfs2_mmap_prepare
> >   * @file: The file to map
> >   * @vma: The VMA which described the mapping
> >   *
> > @@ -588,8 +588,9 @@ static const struct vm_operations_struct gfs2_vm_ops = {
> >   * Returns: 0
> >   */
> >
> > -static int gfs2_mmap(struct file *file, struct vm_area_struct *vma)
> > +static int gfs2_mmap_prepare(struct vm_area_desc *desc)
> >  {
> > +       struct file *file = desc->file;
> >         struct gfs2_inode *ip = GFS2_I(file->f_mapping->host);
> >
> >         if (!(file->f_flags & O_NOATIME) &&
> > @@ -605,7 +606,7 @@ static int gfs2_mmap(struct file *file, struct vm_area_struct *vma)
> >                 gfs2_glock_dq_uninit(&i_gh);
> >                 file_accessed(file);
> >         }
> > -       vma->vm_ops = &gfs2_vm_ops;
> > +       desc->vm_ops = &gfs2_vm_ops;
> >
> >         return 0;
> >  }
> > @@ -1585,7 +1586,7 @@ const struct file_operations gfs2_file_fops = {
> >         .iopoll         = iocb_bio_iopoll,
> >         .unlocked_ioctl = gfs2_ioctl,
> >         .compat_ioctl   = gfs2_compat_ioctl,
> > -       .mmap           = gfs2_mmap,
> > +       .mmap_prepare   = gfs2_mmap,
>
> This ought to be:
>   .mmap_prepare = gfs2_mmap_prepare,

Apologies, I missed this one (didn't set CONFIG_GFS2_FS_LOCKING_DLM in testing).

Christian - since this is trivial, could you fix up?

Thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ