In order for `AT_EMPTY_PATH` to work as expected, the fact
that the user wants that behavior needs to make it to `getname_flags`
or it will return ENOENT.
Fixes: cf30da90bc3a ("io_uring: add support for IORING_OP_LINKAT")
Cc: stable(a)vger.kernel.org
Link: https://github.com/axboe/liburing/issues/995
Signed-off-by: Charles Mirabile <cmirabil(a)redhat.com>
---
io_uring/fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/io_uring/fs.c b/io_uring/fs.c
index 08e3b175469c..eccea851dd5a 100644
--- a/io_uring/fs.c
+++ b/io_uring/fs.c
@@ -254,7 +254,7 @@ int io_linkat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
newf = u64_to_user_ptr(READ_ONCE(sqe->addr2));
lnk->flags = READ_ONCE(sqe->hardlink_flags);
- lnk->oldpath = getname(oldf);
+ lnk->oldpath = getname_uflags(oldf, lnk->flags);
if (IS_ERR(lnk->oldpath))
return PTR_ERR(lnk->oldpath);
--
2.41.0
Hi Rafael,
This series fixes a regression reported in 6.6:
https://lore.kernel.org/regressions/9f36fb06-64c4-4264-aaeb-4e1289e764c4@ow…https://gitlab.freedesktop.org/drm/nouveau/-/issues/273https://bugzilla.kernel.org/show_bug.cgi?id=218124
The reporter has confirmed that this series fixes things and
Kai-Heng has confirmed that backlight control still works on
the HP ZBook Fury 16 G10 for which the original
acpi_device_fix_up_power_extended() call this replaces was added.
Assuming you agree with this series, can you get it on its way
to Linus so that it can be backported to 6.6 please ?
Regards,
Hans
Hans de Goede (2):
ACPI: PM: Add acpi_device_fix_up_power_children() function
ACPI: video: Use acpi_device_fix_up_power_children()
drivers/acpi/acpi_video.c | 2 +-
drivers/acpi/device_pm.c | 13 +++++++++++++
include/acpi/acpi_bus.h | 1 +
3 files changed, 15 insertions(+), 1 deletion(-)
--
2.41.0