Public bug reported:

[Impact]
Our testing tools need to check the app runs on which GPU, and now it only 
shows the processes as Xorg or XWayland

    $ cat /sys/kernel/debug/dri/0/clients
                 command   pid dev master a   uid      magic
                    Xorg  2344   0   y    y     0          0
                    Xorg  2344   0   n    y     0          2
                    Xorg  2344   0   n    y     0          3
                    Xorg  2344   0   n    y     0          4

[Fix]
The commit from v6.7-rc1 fixes the issue

    $ cat /sys/kernel/debug/dri/0/clients
                 command  tgid dev master a   uid      magic
                    Xorg   830   0   y    y     0          0
           xfce4-session   880   0   n    y     0          1
                   xfwm4   943   0   n    y     0          2
               neverball  1095   0   n    y     0          3


[Test case]
1. check processes by 'cat /sys/kernel/debug/dri/0/clients'
2. runs glxgears(specify the GPU if needed)
3. check the precesses again and there should be a 'glxgears' process 

[Where problems could occur]
This commit added some protections on read/write and only changes the process' 
pid, the worst case is that the process got the wrong pid as its owner.

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux-oem-6.5 (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: linux (Ubuntu Jammy)
     Importance: Undecided
         Status: Invalid

** Affects: linux-oem-6.5 (Ubuntu Jammy)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux (Ubuntu Mantic)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux-oem-6.5 (Ubuntu Mantic)
     Importance: Undecided
         Status: Invalid

** Affects: linux (Ubuntu Noble)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux-oem-6.5 (Ubuntu Noble)
     Importance: Undecided
         Status: Invalid

** Also affects: linux (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Mantic)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-6.5 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu Jammy)
       Status: New => Invalid

** Changed in: linux (Ubuntu Mantic)
       Status: New => Incomplete

** Changed in: linux (Ubuntu Mantic)
       Status: Incomplete => In Progress

** Changed in: linux (Ubuntu Noble)
       Status: New => In Progress

** Changed in: linux-oem-6.5 (Ubuntu Jammy)
       Status: New => In Progress

** Changed in: linux-oem-6.5 (Ubuntu Mantic)
       Status: New => Invalid

** Changed in: linux-oem-6.5 (Ubuntu Noble)
       Status: New => Invalid

** Changed in: linux (Ubuntu Mantic)
     Assignee: (unassigned) => AceLan Kao (acelankao)

** Changed in: linux (Ubuntu Noble)
     Assignee: (unassigned) => AceLan Kao (acelankao)

** Changed in: linux-oem-6.5 (Ubuntu Jammy)
     Assignee: (unassigned) => AceLan Kao (acelankao)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2047461

Title:
  drm: Update file owner during use

Status in linux package in Ubuntu:
  In Progress
Status in linux-oem-6.5 package in Ubuntu:
  Invalid
Status in linux source package in Jammy:
  Invalid
Status in linux-oem-6.5 source package in Jammy:
  In Progress
Status in linux source package in Mantic:
  In Progress
Status in linux-oem-6.5 source package in Mantic:
  Invalid
Status in linux source package in Noble:
  In Progress
Status in linux-oem-6.5 source package in Noble:
  Invalid

Bug description:
  [Impact]
  Our testing tools need to check the app runs on which GPU, and now it only 
shows the processes as Xorg or XWayland

      $ cat /sys/kernel/debug/dri/0/clients
                   command   pid dev master a   uid      magic
                      Xorg  2344   0   y    y     0          0
                      Xorg  2344   0   n    y     0          2
                      Xorg  2344   0   n    y     0          3
                      Xorg  2344   0   n    y     0          4

  [Fix]
  The commit from v6.7-rc1 fixes the issue

      $ cat /sys/kernel/debug/dri/0/clients
                   command  tgid dev master a   uid      magic
                      Xorg   830   0   y    y     0          0
             xfce4-session   880   0   n    y     0          1
                     xfwm4   943   0   n    y     0          2
                 neverball  1095   0   n    y     0          3

  
  [Test case]
  1. check processes by 'cat /sys/kernel/debug/dri/0/clients'
  2. runs glxgears(specify the GPU if needed)
  3. check the precesses again and there should be a 'glxgears' process 

  [Where problems could occur]
  This commit added some protections on read/write and only changes the 
process' pid, the worst case is that the process got the wrong pid as its owner.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2047461/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to