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>] [day] [month] [year] [list]
Date:   Tue, 26 Jul 2022 19:46:43 +1000
From:   Stephen Rothwell <sfr@...b.auug.org.au>
To:     Andrew Morton <akpm@...ux-foundation.org>,
        Ard Biesheuvel <ardb@...nel.org>
Cc:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Linux Next Mailing List <linux-next@...r.kernel.org>,
        Ma Wupeng <mawupeng1@...wei.com>, Peter Xu <peterx@...hat.com>
Subject: linux-next: manual merge of the mm tree with the efi tree

Hi all,

Today's linux-next merge of the mm tree got a conflict in:

  mm/internal.h

between commit:

  902c2d91582c ("memblock: Disable mirror feature if kernelcore is not specified")

from the efi tree and commit:

  9a4722162210 ("mm/mprotect: fix soft-dirty check in can_change_pte_writable()")

from the mm tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc mm/internal.h
index b73385df867d,e2d442e3c0b2..000000000000
--- a/mm/internal.h
+++ b/mm/internal.h
@@@ -862,6 -860,22 +860,24 @@@ struct folio *try_grab_folio(struct pag
  
  DECLARE_PER_CPU(struct per_cpu_nodestat, boot_nodestats);
  
 +extern bool mirrored_kernelcore;
 +
+ static inline bool vma_soft_dirty_enabled(struct vm_area_struct *vma)
+ {
+ 	/*
+ 	 * NOTE: we must check this before VM_SOFTDIRTY on soft-dirty
+ 	 * enablements, because when without soft-dirty being compiled in,
+ 	 * VM_SOFTDIRTY is defined as 0x0, then !(vm_flags & VM_SOFTDIRTY)
+ 	 * will be constantly true.
+ 	 */
+ 	if (!IS_ENABLED(CONFIG_MEM_SOFT_DIRTY))
+ 		return false;
+ 
+ 	/*
+ 	 * Soft-dirty is kind of special: its tracking is enabled when the
+ 	 * vma flags not set.
+ 	 */
+ 	return !(vma->vm_flags & VM_SOFTDIRTY);
+ }
+ 
  #endif	/* __MM_INTERNAL_H */

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ