Skip to contentSkip to conversation

microblaze: add support for TIF_NOTIFY_SIGNAL

PATCH In review Jens Axboe 2 participants 8 messages Oct 29, 2020 – Nov 9, 2020 Microblaze architecture

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

PATCH 1/1 microblaze: add support for TIF_NOTIFY_SIGNAL

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

---

5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details:

https://lore.kernel.org/io-uring/[email protected]/

As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.

 arch/microblaze/include/asm/thread_info.h | 2 ++
 arch/microblaze/kernel/signal.c           | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/microblaze/include/asm/thread_info.h +2 -0
index ad8e8fcb90d3..44f5ca331862 100644
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED	3 /* rescheduling necessary */
 /* restore singlestep on return to user mode */
 #define TIF_SINGLESTEP		4
+#define TIF_NOTIFY_SIGNAL	5	/* signal notifications exist */
 #define TIF_MEMDIE		6	/* is terminating due to OOM killer */
 #define TIF_SYSCALL_AUDIT	9       /* syscall auditing active */
 #define TIF_SECCOMP		10      /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SIGPENDING		(1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED	(1 << TIF_NEED_RESCHED)
 #define _TIF_SINGLESTEP		(1 << TIF_SINGLESTEP)
+#define _TIF_NOTIFY_SIGNAL	(1 << TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG	(1 << TIF_POLLING_NRFLAG)
 #define _TIF_SYSCALL_AUDIT	(1 << TIF_SYSCALL_AUDIT)
 #define _TIF_SECCOMP		(1 << TIF_SECCOMP)
arch/microblaze/kernel/signal.c +2 -1
index f11a0ccccabc..5a8d173d7b75 100644
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
 
 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
 {
-	if (test_thread_flag(TIF_SIGPENDING))
+	if (test_thread_flag(TIF_SIGPENDING) ||
+	    test_thread_flag(TIF_NOTIFY_SIGNAL))
 		do_signal(regs, in_syscall);
 
 	if (test_thread_flag(TIF_NOTIFY_RESUME))
Signature · 4 lines
2.29.0

-- 
Jens Axboe
author
#1 lore raw

Gentle nudge on this one.

Quoted 55 lines · Jens Axboe

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

---

5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details:

https://lore.kernel.org/io-uring/[email protected]/

As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.

 arch/microblaze/include/asm/thread_info.h | 2 ++
 arch/microblaze/kernel/signal.c           | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/microblaze/include/asm/thread_info.h +2 -0
index ad8e8fcb90d3..44f5ca331862 100644
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED	3 /* rescheduling necessary */
 /* restore singlestep on return to user mode */
 #define TIF_SINGLESTEP		4
+#define TIF_NOTIFY_SIGNAL	5	/* signal notifications exist */
 #define TIF_MEMDIE		6	/* is terminating due to OOM killer */
 #define TIF_SYSCALL_AUDIT	9       /* syscall auditing active */
 #define TIF_SECCOMP		10      /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SIGPENDING		(1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED	(1 << TIF_NEED_RESCHED)
 #define _TIF_SINGLESTEP		(1 << TIF_SINGLESTEP)
+#define _TIF_NOTIFY_SIGNAL	(1 << TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG	(1 << TIF_POLLING_NRFLAG)
 #define _TIF_SYSCALL_AUDIT	(1 << TIF_SYSCALL_AUDIT)
 #define _TIF_SECCOMP		(1 << TIF_SECCOMP)
arch/microblaze/kernel/signal.c +2 -1
index f11a0ccccabc..5a8d173d7b75 100644
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
 
 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
 {
-	if (test_thread_flag(TIF_SIGPENDING))
+	if (test_thread_flag(TIF_SIGPENDING) ||
+	    test_thread_flag(TIF_NOTIFY_SIGNAL))
 		do_signal(regs, in_syscall);
 
 	if (test_thread_flag(TIF_NOTIFY_RESUME))
Signature · 1 line
Jens Axboe
maintainer
#2 lore raw

Hi,

čt 5. 11. 2020 v 17:18 odesílatel Jens Axboe <[email protected]> napsal:

Quoted 57 lines

Gentle nudge on this one.

Quoted 53 lines · Jens Axboe

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

---

5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details:

https://lore.kernel.org/io-uring/[email protected]/

As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.

 arch/microblaze/include/asm/thread_info.h | 2 ++
 arch/microblaze/kernel/signal.c           | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/microblaze/include/asm/thread_info.h +2 -0
index ad8e8fcb90d3..44f5ca331862 100644
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED     3 /* rescheduling necessary */
 /* restore singlestep on return to user mode */
 #define TIF_SINGLESTEP               4
+#define TIF_NOTIFY_SIGNAL    5       /* signal notifications exist */
 #define TIF_MEMDIE           6       /* is terminating due to OOM killer */
 #define TIF_SYSCALL_AUDIT    9       /* syscall auditing active */
 #define TIF_SECCOMP          10      /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SIGPENDING              (1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED    (1 << TIF_NEED_RESCHED)
 #define _TIF_SINGLESTEP              (1 << TIF_SINGLESTEP)
+#define _TIF_NOTIFY_SIGNAL   (1 << TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG  (1 << TIF_POLLING_NRFLAG)
 #define _TIF_SYSCALL_AUDIT   (1 << TIF_SYSCALL_AUDIT)
 #define _TIF_SECCOMP         (1 << TIF_SECCOMP)
arch/microblaze/kernel/signal.c +2 -1
index f11a0ccccabc..5a8d173d7b75 100644
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
 
 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
 {
-     if (test_thread_flag(TIF_SIGPENDING))
+     if (test_thread_flag(TIF_SIGPENDING) ||
+         test_thread_flag(TIF_NOTIFY_SIGNAL))
              do_signal(regs, in_syscall);
 
Quoted 7 lines

arch/microblaze/kernel/signal.c static void do_signal(struct pt_regs *regs, int in_syscall) · line 320

Quoted 2 lines
arch/microblaze/kernel/signal.c +0 -0
      if (test_thread_flag(TIF_NOTIFY_RESUME))

--
Jens Axboe

Give me some time. I have it on my todo list.

M

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
author
#3 lore raw
Quoted 68 lines · Michal Simek

Hi,

čt 5. 11. 2020 v 17:18 odesílatel Jens Axboe <[email protected]> napsal:

Quoted 57 lines

Gentle nudge on this one.

Quoted 53 lines · Jens Axboe

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

---

5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details:

https://lore.kernel.org/io-uring/[email protected]/

As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.

 arch/microblaze/include/asm/thread_info.h | 2 ++
 arch/microblaze/kernel/signal.c           | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/microblaze/include/asm/thread_info.h +2 -0
index ad8e8fcb90d3..44f5ca331862 100644
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED     3 /* rescheduling necessary */
 /* restore singlestep on return to user mode */
 #define TIF_SINGLESTEP               4
+#define TIF_NOTIFY_SIGNAL    5       /* signal notifications exist */
 #define TIF_MEMDIE           6       /* is terminating due to OOM killer */
 #define TIF_SYSCALL_AUDIT    9       /* syscall auditing active */
 #define TIF_SECCOMP          10      /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SIGPENDING              (1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED    (1 << TIF_NEED_RESCHED)
 #define _TIF_SINGLESTEP              (1 << TIF_SINGLESTEP)
+#define _TIF_NOTIFY_SIGNAL   (1 << TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG  (1 << TIF_POLLING_NRFLAG)
 #define _TIF_SYSCALL_AUDIT   (1 << TIF_SYSCALL_AUDIT)
 #define _TIF_SECCOMP         (1 << TIF_SECCOMP)
arch/microblaze/kernel/signal.c +2 -1
index f11a0ccccabc..5a8d173d7b75 100644
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
 
 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
 {
-     if (test_thread_flag(TIF_SIGPENDING))
+     if (test_thread_flag(TIF_SIGPENDING) ||
+         test_thread_flag(TIF_NOTIFY_SIGNAL))
              do_signal(regs, in_syscall);
 
Quoted 7 lines

arch/microblaze/kernel/signal.c static void do_signal(struct pt_regs *regs, int in_syscall) · line 320

Quoted 2 lines
arch/microblaze/kernel/signal.c +0 -0
      if (test_thread_flag(TIF_NOTIFY_RESUME))

--
Jens Axboe

Quoted 1 line

Give me some time. I have it on my todo list.

Great, thanks!

Signature · 1 line
Jens Axboe
maintainer
#4 lore raw
In reply to Jens Axboe
Quoted 46 lines · Jens Axboe

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

---

5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details:

https://lore.kernel.org/io-uring/[email protected]/

As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.

 arch/microblaze/include/asm/thread_info.h | 2 ++
 arch/microblaze/kernel/signal.c           | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/microblaze/include/asm/thread_info.h +2 -0
index ad8e8fcb90d3..44f5ca331862 100644
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED	3 /* rescheduling necessary */
 /* restore singlestep on return to user mode */
 #define TIF_SINGLESTEP		4
+#define TIF_NOTIFY_SIGNAL	5	/* signal notifications exist */
 #define TIF_MEMDIE		6	/* is terminating due to OOM killer */
 #define TIF_SYSCALL_AUDIT	9       /* syscall auditing active */
 #define TIF_SECCOMP		10      /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SIGPENDING		(1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED	(1 << TIF_NEED_RESCHED)
 #define _TIF_SINGLESTEP		(1 << TIF_SINGLESTEP)
+#define _TIF_NOTIFY_SIGNAL	(1 << TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG	(1 << TIF_POLLING_NRFLAG)
 #define _TIF_SYSCALL_AUDIT	(1 << TIF_SYSCALL_AUDIT)
 #define _TIF_SECCOMP		(1 << TIF_SECCOMP)
arch/microblaze/kernel/signal.c +0 -0
index f11a0ccccabc..5a8d173d7b75 100644

arch/microblaze/kernel/signal.c static void do_signal(struct pt_regs *regs, int in_syscall) · line 320

Quoted 9 lines
arch/microblaze/kernel/signal.c +2 -1
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
 
 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
 {
-	if (test_thread_flag(TIF_SIGPENDING))
+	if (test_thread_flag(TIF_SIGPENDING) ||
+	    test_thread_flag(TIF_NOTIFY_SIGNAL))
 		do_signal(regs, in_syscall);
 
 	if (test_thread_flag(TIF_NOTIFY_RESUME))

Applied for 5.11.

Thanks,
Michal

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
author
#5 lore raw
Quoted 56 lines · Michal Simek
Quoted 53 lines · Jens Axboe

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

---

5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details:

https://lore.kernel.org/io-uring/[email protected]/

As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.

 arch/microblaze/include/asm/thread_info.h | 2 ++
 arch/microblaze/kernel/signal.c           | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/microblaze/include/asm/thread_info.h +2 -0
index ad8e8fcb90d3..44f5ca331862 100644
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED	3 /* rescheduling necessary */
 /* restore singlestep on return to user mode */
 #define TIF_SINGLESTEP		4
+#define TIF_NOTIFY_SIGNAL	5	/* signal notifications exist */
 #define TIF_MEMDIE		6	/* is terminating due to OOM killer */
 #define TIF_SYSCALL_AUDIT	9       /* syscall auditing active */
 #define TIF_SECCOMP		10      /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SIGPENDING		(1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED	(1 << TIF_NEED_RESCHED)
 #define _TIF_SINGLESTEP		(1 << TIF_SINGLESTEP)
+#define _TIF_NOTIFY_SIGNAL	(1 << TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG	(1 << TIF_POLLING_NRFLAG)
 #define _TIF_SYSCALL_AUDIT	(1 << TIF_SYSCALL_AUDIT)
 #define _TIF_SECCOMP		(1 << TIF_SECCOMP)
arch/microblaze/kernel/signal.c +2 -1
index f11a0ccccabc..5a8d173d7b75 100644
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
 
 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
 {
-	if (test_thread_flag(TIF_SIGPENDING))
+	if (test_thread_flag(TIF_SIGPENDING) ||
+	    test_thread_flag(TIF_NOTIFY_SIGNAL))
 		do_signal(regs, in_syscall);
 
Quoted 4 lines

arch/microblaze/kernel/signal.c static void do_signal(struct pt_regs *regs, int in_syscall) · line 320

Quoted 2 lines
arch/microblaze/kernel/signal.c +0 -0
 	if (test_thread_flag(TIF_NOTIFY_RESUME))

Applied for 5.11.

Would you mind if I carry this patch with an ack? I've got further fixes and cleanups that are enabled once all archs have added support.

Signature · 1 line
Jens Axboe
maintainer Acked-by
#6 lore raw
Quoted 57 lines · Jens Axboe
Quoted 56 lines · Michal Simek
Quoted 53 lines · Jens Axboe

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

---

5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details:

https://lore.kernel.org/io-uring/[email protected]/

As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.

 arch/microblaze/include/asm/thread_info.h | 2 ++
 arch/microblaze/kernel/signal.c           | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/microblaze/include/asm/thread_info.h +2 -0
index ad8e8fcb90d3..44f5ca331862 100644
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED	3 /* rescheduling necessary */
 /* restore singlestep on return to user mode */
 #define TIF_SINGLESTEP		4
+#define TIF_NOTIFY_SIGNAL	5	/* signal notifications exist */
 #define TIF_MEMDIE		6	/* is terminating due to OOM killer */
 #define TIF_SYSCALL_AUDIT	9       /* syscall auditing active */
 #define TIF_SECCOMP		10      /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SIGPENDING		(1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED	(1 << TIF_NEED_RESCHED)
 #define _TIF_SINGLESTEP		(1 << TIF_SINGLESTEP)
+#define _TIF_NOTIFY_SIGNAL	(1 << TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG	(1 << TIF_POLLING_NRFLAG)
 #define _TIF_SYSCALL_AUDIT	(1 << TIF_SYSCALL_AUDIT)
 #define _TIF_SECCOMP		(1 << TIF_SECCOMP)
arch/microblaze/kernel/signal.c +2 -1
index f11a0ccccabc..5a8d173d7b75 100644
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
 
 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
 {
-	if (test_thread_flag(TIF_SIGPENDING))
+	if (test_thread_flag(TIF_SIGPENDING) ||
+	    test_thread_flag(TIF_NOTIFY_SIGNAL))
 		do_signal(regs, in_syscall);
 
Quoted 8 lines
Quoted 4 lines

arch/microblaze/kernel/signal.c static void do_signal(struct pt_regs *regs, int in_syscall) · line 320

Quoted 2 lines
arch/microblaze/kernel/signal.c +0 -0
 	if (test_thread_flag(TIF_NOTIFY_RESUME))

Applied for 5.11.

Would you mind if I carry this patch with an ack? I've got further fixes and cleanups that are enabled once all archs have added support.

ok. Not a problem. Will drop it from my queue and feel free to add my

Thanks,
Michal

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
author
#7 lore raw
Quoted 65 lines · Michal Simek
Quoted 62 lines · Jens Axboe
Quoted 60 lines · Michal Simek
Quoted 46 lines · Jens Axboe

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

---

5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details:

https://lore.kernel.org/io-uring/[email protected]/

As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.

 arch/microblaze/include/asm/thread_info.h | 2 ++
 arch/microblaze/kernel/signal.c           | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/microblaze/include/asm/thread_info.h +2 -0
index ad8e8fcb90d3..44f5ca331862 100644
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED	3 /* rescheduling necessary */
 /* restore singlestep on return to user mode */
 #define TIF_SINGLESTEP		4
+#define TIF_NOTIFY_SIGNAL	5	/* signal notifications exist */
 #define TIF_MEMDIE		6	/* is terminating due to OOM killer */
 #define TIF_SYSCALL_AUDIT	9       /* syscall auditing active */
 #define TIF_SECCOMP		10      /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SIGPENDING		(1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED	(1 << TIF_NEED_RESCHED)
 #define _TIF_SINGLESTEP		(1 << TIF_SINGLESTEP)
+#define _TIF_NOTIFY_SIGNAL	(1 << TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG	(1 << TIF_POLLING_NRFLAG)
 #define _TIF_SYSCALL_AUDIT	(1 << TIF_SYSCALL_AUDIT)
 #define _TIF_SECCOMP		(1 << TIF_SECCOMP)
arch/microblaze/kernel/signal.c +0 -0
index f11a0ccccabc..5a8d173d7b75 100644

arch/microblaze/kernel/signal.c static void do_signal(struct pt_regs *regs, int in_syscall) · line 320

Quoted 9 lines
arch/microblaze/kernel/signal.c +2 -1
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
 
 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
 {
-	if (test_thread_flag(TIF_SIGPENDING))
+	if (test_thread_flag(TIF_SIGPENDING) ||
+	    test_thread_flag(TIF_NOTIFY_SIGNAL))
 		do_signal(regs, in_syscall);
 
 	if (test_thread_flag(TIF_NOTIFY_RESUME))

Applied for 5.11.

Quoted 7 lines
Quoted 3 lines

Would you mind if I carry this patch with an ack? I've got further fixes and cleanups that are enabled once all archs have added support.

ok. Not a problem. Will drop it from my queue and feel free to add my

Great, thank you!

Signature · 1 line
Jens Axboe