The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* linux-next: manual merge of the char-misc tree with the security tree
@ 2026-07-20 14:48 Mark Brown
  2026-07-20 22:45 ` Paul Moore
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2026-07-20 14:48 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Alice Ryhl, Greg Kroah-Hartman, Jahnavi MN, Jann Horn,
	Linux Kernel Mailing List, Linux Next Mailing List, Paul Moore

[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]

Hi all,

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

  rust/kernel/task.rs

between commits:

  ef2d3e4635761 ("rust: task: clarify comments on task UID accessors")
  15c1f17979712 ("cred: delete task_euid()")

from the security tree and commit:

  2847d9ab088bb ("rust_binder: Add dynamic debug logging mask")

from the char-misc 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.

diff --cc rust/kernel/task.rs
index c2b3457b700c1,1b290c61714db..0000000000000
--- a/rust/kernel/task.rs
+++ b/rust/kernel/task.rs
@@@ -210,7 -210,14 +210,14 @@@ impl Task 
          unsafe { *ptr::addr_of!((*self.as_ptr()).pid) }
      }
  
+     /// Returns the TGID (Thread Group ID / Process ID) of the given task.
+     pub fn tgid(&self) -> Pid {
+         // SAFETY: The tgid of a task never changes after initialization, so reading this field is
+         // not a data race.
+         unsafe { *ptr::addr_of!((*self.as_ptr()).tgid) }
+     }
+ 
 -    /// Returns the UID of the given task.
 +    /// Returns the objective real UID of the given task.
      #[inline]
      pub fn uid(&self) -> Kuid {
          // SAFETY: It's always safe to call `task_uid` on a valid task.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-21  8:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20 14:48 linux-next: manual merge of the char-misc tree with the security tree Mark Brown
2026-07-20 22:45 ` Paul Moore
2026-07-21  8:18   ` Alice Ryhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox