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] [day] [month] [year] [list]
Message-ID: <ZJsptSAVHroP5hDk@bu2204.myguest.virtualbox.org>
Date:   Tue, 27 Jun 2023 23:55:57 +0530
From:   Deepak R Varma <drv@...lo.com>
To:     "Fabio M. De Francesco" <fmdefrancesco@...il.com>
Cc:     Bob Peterson <rpeterso@...hat.com>,
        Andreas Gruenbacher <agruenba@...hat.com>,
        cluster-devel@...hat.com, linux-kernel@...r.kernel.org,
        Ira Weiny <ira.weiny@...el.com>,
        Sumitra Sharma <sumitraartsy@...il.com>
Subject: Re: [PATCH] gfs2: Replace deprecated kmap_atomic() by
 kmap_local_page()

On Tue, Jun 27, 2023 at 01:11:46PM +0200, Fabio M. De Francesco wrote:
> On domenica 25 giugno 2023 21:23:21 CEST Deepak R Varma wrote:
> > kmap_atomic() is deprecated in favor of kmap_local_{folio,page}().
> > 
> >  		}
> > -		p = kmap_atomic(page);
> > +		p = kmap_local_page(page);
> >  		amt = size - copied;
> >  		if (offset + size > PAGE_SIZE)
> >  			amt = PAGE_SIZE - offset;
> >  		memcpy(buf + copied, p + offset, amt);
> 
> How about using memcpy_from_page()? 

We can do that. I will include that in v3.

Deepak.

> 
> Fabio
> 
> > -		kunmap_atomic(p);
> > +		kunmap_local(p);
> >  		put_page(page);
> >  		copied += amt;
> >  		index++;
> > --
> > 2.34.1
> 
> 
> 
> 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ