[Bug 219007] New: opening and closing /dev/dri/card0 in a QEMU KVM instance will shutdown system, 6.10.0-rc6+

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=219007

            Bug ID: 219007
           Summary: opening and closing /dev/dri/card0 in a QEMU KVM
                    instance will shutdown system, 6.10.0-rc6+
           Product: Drivers
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Video(DRI - non Intel)
          Assignee: drivers_video-dri@xxxxxxxxxxxxxxxxxxxx
          Reporter: colin.i.king@xxxxxxxxx
        Regression: No

The following code when run as root on a Debian sid amd64 server running in
virt-manager (KVM QEMU) will shut the system down with 6.10.0-rc6.  The fork()
is required to cause racing on the open/close on /dev/dri/card0

#include <fcntl.h>
#include <unistd.h>

int main(void)
{
         pid_t pid = fork();

         while (1) {
                int fd;

                fd = openat(AT_FDCWD, "/dev/dri/card0",
O_WRONLY|O_NONBLOCK|O_SYNC);
                close(fd);
         }
}

This was originally found using: while true; do sudo ./stress-ng  --dev 4
--dev-file /dev/dri/card0 -t 5; done and narrowed down to the above reproducer.
(cf: https://github.com/ColinIanKing/stress-ng/issues/407 )

This does not occur on pre 6.10 kernels, so it looks like a 6.10 regression.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux