All of lore.kernel.org
 help / color / mirror / Atom feed
From: "yao.zhang1@amlogic.com" <yao.zhang1@amlogic.com>
To: sashal <sashal@kernel.org>,  gregkh <gregkh@linuxfoundation.org>
Cc: stable <stable@vger.kernel.org>,
	 tuan.zhang <tuan.zhang@amlogic.com>,
	 jianxin.pan <jianxin.pan@amlogic.com>
Subject: Re: mm: call the security_mmap_file() LSM hook in remap_file_pages()
Date: Wed, 28 Oct 2026 16:31:40 +0800	[thread overview]
Message-ID: <2026102816313856114725@amlogic.com> (raw)
In-Reply-To: 2026-10-27-1-daily-reply-0001-remap-file-pages-5-15@kernel.org

Hi sashal , gregkh

1,  Based on 5.15.y, I tested these two patches; 
the kernel BUILD successfully and kernel bootup without any issues.

2,  Submitted two patches via `git send-email`.
ea7e2d5e49c0:
Message-ID: <20261028080719.1821-1-yao.zhang1@amlogic.com>

58a039e679fe:
Message-ID: <20261028080835.1852-1-yao.zhang1@amlogic.com>

Submit to
https://lore.kernel.org/stable/


Thanks, 


--------------


>[ EXTERNAL EMAIL ]



>



>> If use the original commit, there will be conflicts



>>  that need to be resolved manually.



>



>The original can't go to 5.15 on its own. ea7e2d5e49c0 ("mm: call the



>security_mmap_file() LSM hook in remap_file_pages()") calls



>security_mmap_file() under the mmap write lock, which creates a lock inversion



>with IMA. That is fixed by 58a039e679fe ("mm: split critical region in



>remap_file_pages() and invoke LSMs in between"). Greg dropped the earlier 5.15



>and 5.10 backports in February 2025 for leaving it out, and 6.1.y has carried



>the original without it since 6.1.120.



>



>I've queued 58a039e679fe for 6.1. For 5.15 the backport has to be the two



>commits as a pair: the original, then 58a039e679fe.



>



>> 1, What is a "tested backport"?



>> Is this for verifying code BUILD and kernel bootup?



>> or



>> Reproduce the issue and verify that the patch is effective?



>



>At minimum, build and boot 5.15.y with both patches applied. If you can



>reproduce the original problem, please also confirm it is gone.



>



>> 2, How should I provide the "tested backport" to you?



>> As a patch file?



>> or



>> as a link?



>



>Send them inline with git send-email to stable@vger.kernel.org, one mail per



>patch, with [PATCH 5.15.y] in the subject. Each commit message needs the



>upstream commit ID and a note on anything you changed from it. See Option 3 in



>Documentation/process/stable-kernel-rules.rst.



>



>--



>Thanks,



>Sasha



  reply	other threads:[~2026-10-28  8:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2026102711371963416812@amlogic.com>
2026-10-27  5:50 ` mm: call the security_mmap_file() LSM hook in remap_file_pages() gregkh
2026-10-27  6:44   ` yao.zhang1
2026-10-27  6:50     ` gregkh
2026-10-27  8:56       ` yao.zhang1
2026-10-27 19:10         ` Sasha Levin
2026-10-28  8:31           ` yao.zhang1 [this message]
2026-10-27  6:00 ` yao.zhang1

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026102816313856114725@amlogic.com \
    --to=yao.zhang1@amlogic.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jianxin.pan@amlogic.com \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=tuan.zhang@amlogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.