Re: [PATCH 5/7] security: Replace get_task_comm() with %pTN

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2024-12-17 01:08:35
Also in
dri-devel, intel-gfx, intel-xe, linux-wireless, lkml, nouveau, ocfs2-devel
Reply to
Yafang Shao, 2024-12-13
On Thu, 12 Dec 2024 at 21:47, Yafang Shao [off-list ref] wrote:
Since task->comm is guaranteed to be NUL-terminated, we can print it
directly without the need to copy it into a separate buffer.
So i think we should do the "without copying into a separate buffer"
part of this series, but I do think we should just accept "%s" and
"task->comm".

IOW - getting rid of get_task_comm() is good.

But the "%pTN" pointer format ends up being unnecessary.

          Linus
Thread (14 messages) 14 messages, 7 authors, last reply 2024-12-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help