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]
Date:	Thu, 25 Sep 2014 12:47:44 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Peter Feiner <pfeiner@...gle.com>
Cc:	Stephen Rothwell <sfr@...b.auug.org.au>,
	Bjorn Helgaas <bhelgaas@...gle.com>,
	linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
	Liviu Dudau <Liviu.Dudau@....com>
Subject: Re: linux-next: manual merge of the akpm-current tree with the pci
 tree

On Thu, 25 Sep 2014 12:30:00 -0700 Peter Feiner <pfeiner@...gle.com> wrote:

> On Thu, Sep 25, 2014 at 05:47:30PM +1000, Stephen Rothwell wrote:
> > Hi Andrew,
> > 
> > Today's linux-next merge of the akpm-current tree got a conflict in
> > include/asm-generic/pgtable.h between commit b766eafe6828 ("PCI: Add
> > pci_remap_iospace() to map bus I/O resources") from the pci tree and
> > commit 4cc2f91f2636 ("mm: softdirty: enable write notifications on VMAs
> > after VM_SOFTDIRTY cleared") from the akpm-current tree.
> > 
> > I fixed it up (see below) and can carry the fix as necessary (no action
> > is required).
> > 
> > -- 
> > Cheers,
> > Stephen Rothwell                    sfr@...b.auug.org.au
> > 
> > diff --cc include/asm-generic/pgtable.h
> > index 977e545a64c3,f6acf1195182..000000000000
> > --- a/include/asm-generic/pgtable.h
> > +++ b/include/asm-generic/pgtable.h
> > @@@ -249,10 -249,18 +249,22 @@@ static inline int pmd_same(pmd_t pmd_a
> >   #define pgprot_writecombine pgprot_noncached
> >   #endif
> >   
> >  +#ifndef pgprot_device
> >  +#define pgprot_device pgprot_noncached
> >  +#endif
> >  +
> > + #ifndef pgprot_modify
> > + #define pgprot_modify pgprot_modify
> > + static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
> > + {
> > + 	if (pgprot_val(oldprot) == pgprot_val(pgprot_noncached(oldprot)))
> > + 		newprot = pgprot_noncached(newprot);
> > + 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
> > + 		newprot = pgprot_writecombine(newprot);
> 
> For completeness of the arch-independent pgprot-modify,
> 
> 	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
> 		newprot = pgprot_device(newprot);
> 
> should be added here.
> 

Tricky.  I've moved
mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared.paqtch
to be staged after linux-next, so I'll merge it after PCI has merged. 
And added this:

--- a/include/asm-generic/pgtable.h~mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared-fix
+++ a/include/asm-generic/pgtable.h
@@ -261,6 +261,8 @@ static inline pgprot_t pgprot_modify(pgp
 		newprot = pgprot_noncached(newprot);
 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
 		newprot = pgprot_writecombine(newprot);
+	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
+		newprot = pgprot_device(newprot);
 	return newprot;
 }
 #endif
_


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ