linux-next: manual merge of the mm-nonmm-unstable tree with the mm,mm-fixes tree
Subsystems (3)
Mark Brown
maintainerHi all,
Today's linux-next merge of the mm-nonmm-unstable tree got a conflict in:
mm/secretmem.c
between commits:
0d171c47f2be6 ("mm/secretmem: properly account locked pages") a31a4988ca3e8 ("set_memory: add number of pages parameter to set_direct_map APIs")
from the mm,mm-fixes tree and commit:
d2c5e077cbeaf ("mm/secretmem: properly account locked pages")
from the mm-nonmm-unstable 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.
mm/secretmem.c +0 -0
@@@ -139,7 -139,7 +139,7 @@@ retrygoto out; } - err = set_direct_map_invalid_noflush(folio_page(folio, 0)); + err = set_direct_map_invalid_noflush(folio_page(folio, 0), 1); if (err) { secretmem_unaccount_folio(state, folio); folio_put(folio); * already happened when we marked the page invalid * which guarantees that this call won't fail */ -set_direct_map_default_noflush (folio_page (folio,0 )); +set_direct_map_default_noflush (folio_page (folio,0 ),1 );folio_put (folio);if (err == -EEXIST ) goto retry;static void secretmem_free_folio (struct folio *folio) { -set_direct_map_default_noflush (folio_page (folio,0 )); +set_direct_map_default_noflush (folio_page (folio,0 ),1 );folio_zero_segment (folio,0 ,folio_size (folio)); }
Quoted 15 lines · Mark Brown
Hi all,
Today's linux-next merge of the mm-nonmm-unstable tree got a conflict in:
mm/secretmem.cbetween commits:
0d171c47f2be6("mm/secretmem: properly account locked pages")a31a4988ca3e8("set_memory: add number of pages parameter toset_direct_mapAPIs")from the mm,mm-fixes tree and commit:
d2c5e077cbeaf("mm/secretmem: properly account locked pages")
Quoted 8 lines
from the mm-nonmm-unstable 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.
LGTM, thanks!
Quoted 25 lines
mm/secretmem.c +0
-0@@@ -139,7 -139,7 +139,7 @@@ retry goto out; } - err =set_direct_map_invalid_noflush (folio_page (folio,0 )); + err =set_direct_map_invalid_noflush (folio_page (folio,0 ),1 );if (err) {secretmem_unaccount_folio (state, folio);folio_put (folio);@@@ -156,7 -156,7 +156,7 @@@* already happened when we marked the page invalid * which guarantees that this call won't fail */ -set_direct_map_default_noflush (folio_page (folio,0 )); +set_direct_map_default_noflush (folio_page (folio,0 ),1 );folio_put (folio);if (err == -EEXIST ) goto retry;
mm/secretmem.c
Quoted 7 lines
mm/secretmem.c +0
-0@@@ -228,7 -228,7 +228,7 @@@ static int secretmem_migrate_folio(strustatic void secretmem_free_folio (struct folio *folio) { -set_direct_map_default_noflush (folio_page (folio,0 )); +set_direct_map_default_noflush (folio_page (folio,0 ),1 );folio_zero_segment (folio,0 ,folio_size (folio)); }
--
Cheers, Lorenzo
Mark Brown
maintainerQuoted 6 lines · Lorenzo Stoakes (ARM)
Quoted 3 lines · Mark Brown
between commits:
0d171c47f2be6("mm/secretmem: properly account locked pages")
Quoted 7 lines
Quoted 5 lines
from the mm,mm-fixes tree and commit:
d2c5e077cbeaf("mm/secretmem: properly account locked pages")from the mm-nonmm-unstable tree.
LGTM, thanks!
BTW note the above duplicate commits.
Mike Rapoport
maintainerQuoted 9 lines · Mark Brown
Quoted 8 lines · Lorenzo Stoakes (ARM)
Quoted 6 lines · Mark Brown
between commits:
0d171c47f2be6("mm/secretmem: properly account locked pages")from the mm,mm-fixes tree and commit:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
d2c5e077cbeaf("mm/secretmem: properly account locked pages")from the mm-nonmm-unstable tree.
LGTM, thanks!
BTW note the above duplicate commits.
This is a transition artifact :)
Signature · 2 lines
Sincerely yours, Mike.
Mike Rapoport
maintainerQuoted 15 lines · Mark Brown
Hi all,
Today's linux-next merge of the mm-nonmm-unstable tree got a conflict in:
mm/secretmem.cbetween commits:
0d171c47f2be6("mm/secretmem: properly account locked pages")a31a4988ca3e8("set_memory: add number of pages parameter toset_direct_mapAPIs")from the mm,mm-fixes tree and commit:
d2c5e077cbeaf("mm/secretmem: properly account locked pages")
Quoted 8 lines
from the mm-nonmm-unstable 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.
Thanks, Mark!
Signature · 2 lines
Sincerely yours, Mike.
Mark Brown
maintainerQuoted 6 lines · Mike Rapoport
Quoted 3 lines · Mark Brown
between commits:
0d171c47f2be6("mm/secretmem: properly account locked pages")
Quoted 7 lines
Quoted 5 lines
from the mm,mm-fixes tree and commit:
d2c5e077cbeaf("mm/secretmem: properly account locked pages")from the mm-nonmm-unstable tree.
Thanks, Mark!
There's some more duplicated commits here BTW.
Andrew Morton
maintainerQuoted 9 lines · On Wed, 2 Sep 2026 13:13:47 +0100 Mark Brown <[email protected]> wrote:
Quoted 7 lines · Mike Rapoport
Quoted 5 lines · Mark Brown
between commits:
0d171c47f2be6("mm/secretmem: properly account locked pages")from the mm,mm-fixes tree and commit:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
d2c5e077cbeaf("mm/secretmem: properly account locked pages")from the mm-nonmm-unstable tree.
Thanks, Mark!
There's some more duplicated commits here BTW.
I'm not sure what's going on here.
Yesterday I rebuilt/rebased mm-hotfixes-stable because stupidhead had gone and put a merge commit in there (this triggers Linus). Rebuilt all branches based on that. Then at some point (when?) this was all moved into mm-next.
So shudder. Hopefully it'll all sort itself out tomorrow.