The branch stable/15 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f9a216c4fcc1766798e93e376bc4e23ea99e9ddf

commit f9a216c4fcc1766798e93e376bc4e23ea99e9ddf
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-06-04 17:53:26 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-06-13 00:58:34 +0000

    renameat(2): when retrying, check for pending signals
    
    PR:     295826
    
    (cherry picked from commit 5d0ebfe1d97801518755c7025f57ba7d5bf1c8db)
---
 sys/kern/vfs_syscalls.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index dc02e3351fee..2516155cc1a3 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -3855,6 +3855,9 @@ again1:
                        vfs_rel(tmp);
                        tmp = NULL;
                }
+               error = sig_intr();
+               if (error != 0)
+                       return (error);
                error = vn_start_write(NULL, &mp, V_XSLEEP | V_PCATCH);
                if (error != 0)
                        return (error);
@@ -3937,8 +3940,11 @@ out:
 out1:
        if (error == ERESTART)
                return (0);
-       if (error == ERELOOKUP)
-               goto again;
+       if (error == ERELOOKUP) {
+               error = sig_intr();
+               if (error == 0)
+                       goto again;
+       }
        return (error);
 }
 

Reply via email to