[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221017192006.36398-5-saeed.mirzamohammadi@oracle.com>
Date: Mon, 17 Oct 2022 12:20:05 -0700
From: Saeed Mirzamohammadi <saeed.mirzamohammadi@...cle.com>
To: unlisted-recipients:; (no To-header on input)
Cc: linux-fsdevel@...r.kernel.org, viro@...iv.linux.org.uk,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
jason@...c4.com, saeed.mirzamohammadi@...cle.com,
"Jason A. Donenfeld" <Jason@...c4.com>,
Alex Williamson <alex.williamson@...hat.com>
Subject: [PATCH stable 4/5] vfio: do not set FMODE_LSEEK flag
From: "Jason A. Donenfeld" <Jason@...c4.com>
This file does not support llseek, so don't set the flag advertising it.
Acked-by: Alex Williamson <alex.williamson@...hat.com>
Signed-off-by: Jason A. Donenfeld <Jason@...c4.com>
Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
(cherry picked from commit 54ef7a47f67de9e87022a5310d1e8332af3e2696)
Cc: stable@...r.kernel.org
Signed-off-by: Saeed Mirzamohammadi <saeed.mirzamohammadi@...cle.com>
---
drivers/vfio/vfio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vfio/vfio.c b/drivers/vfio/vfio.c
index 818e47fc0896..93346a76aa7b 100644
--- a/drivers/vfio/vfio.c
+++ b/drivers/vfio/vfio.c
@@ -1490,7 +1490,7 @@ static int vfio_group_get_device_fd(struct vfio_group *group, char *buf)
* Appears to be missing by lack of need rather than
* explicitly prevented. Now there's need.
*/
- filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE);
+ filep->f_mode |= (FMODE_PREAD | FMODE_PWRITE);
atomic_inc(&group->container_users);
--
2.31.1
Powered by blists - more mailing lists