security-remove-get_task_comm-and-print-task-comm-directly.patch removed from -mm tree
The quilt patch titled
Subject: security: remove get_task_comm() and print task comm directly
has been removed from the -mm tree. Its filename was
security-remove-get_task_comm-and-print-task-comm-directly.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yafang Shao <[email protected]>
Subject: security: remove get_task_comm() and print task comm directly
Date: Thu, 19 Dec 2024 10:34:51 +0800
Since task->comm is guaranteed to be NUL-terminated, we can print it directly without the need to copy it into a separate buffer. This simplifies the code and avoids unnecessary operations.
---
security/yama/yama_lsm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
security/yama/yama_lsm.c renamed from security/yama/yama_lsm.c~security-remove-get_task_comm-and-print-task-comm-directly +1 -3
@@ -76,7 +76,6 @@ static void report_access(const char *ac struct task_struct *agent) {struct access_report_info *info; -char agent_comm[sizeof (agent->comm)];assert_spin_locked (&target->alloc_lock);/* for target->comm */
@@ -86,8 +85,7 @@ static void report_access(const char *ac*/ pr_notice_ratelimited ("ptrace %s of \"%s\"[%d] was attempted by \"%s\"[%d]\n" , - access, target->comm, target->pid, -get_task_comm (agent_comm, agent), agent->pid); + access, target->comm, target->pid, agent->comm, agent->pid);return ; }
_
Patches currently in -mm which might be from [email protected] are