From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [PATCH] irq_pipeline: Prevent returning to user space with pending inband IRQs
Date: Mon, 07 Jun 2021 15:29:49 +0200 [thread overview]
Message-ID: <87y2blajle.fsf@xenomai.org> (raw)
In-Reply-To: <871r9dby8b.fsf@xenomai.org>
Philippe Gerum <rpm@xenomai.org> writes:
> Philippe Gerum <rpm@xenomai.org> writes:
>>
>> 2. This one should be replaced by a fix in local_irq_disable_full(),
>> pending some tests ongoing here:
>>
>> irq_pipeline: Prevent returning to user space with pending inband IRQs
>>
>
> Tests went ok. So [1] should be replaced by a patch inverting the order
> in local_irq_disable_full() as we discussed.
>
> [1] irq_pipeline: Prevent returning to user space with pending inband IRQs
Likewise for local_irq_save_full() which may cause the same problem,
i.e.:
diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h
index 8663f19cc7b7b68..051c72751db42d1 100644
--- a/include/linux/irqflags.h
+++ b/include/linux/irqflags.h
@@ -242,14 +242,14 @@ do { \
#define local_irq_disable_full() \
do { \
- local_irq_disable(); \
hard_local_irq_disable(); \
+ local_irq_disable(); \
} while (0)
#define local_irq_save_full(__flags) \
do { \
- local_irq_save(__flags); \
hard_local_irq_disable(); \
+ local_irq_save(__flags); \
} while (0)
#define local_irq_restore_full(__flags) \
--
Philippe.
next prev parent reply other threads:[~2021-06-07 13:29 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-06 12:35 [PATCH] irq_pipeline: Prevent returning to user space with pending inband IRQs Jan Kiszka
2021-06-06 14:43 ` Philippe Gerum
2021-06-07 5:53 ` Jan Kiszka
2021-06-07 7:17 ` Philippe Gerum
2021-06-07 10:22 ` Jan Kiszka
2021-06-07 13:03 ` Philippe Gerum
2021-06-07 13:28 ` Philippe Gerum
2021-06-07 13:29 ` Philippe Gerum [this message]
2021-06-07 13:40 ` Jan Kiszka
2021-06-07 15:11 ` Philippe Gerum
2021-06-07 13:44 ` Jan Kiszka
2021-06-07 13:48 ` Jan Kiszka
2021-06-07 13:58 ` Jan Kiszka
2021-06-07 14:44 ` Philippe Gerum
2021-06-07 14:52 ` Jan Kiszka
2021-06-07 15:04 ` Philippe Gerum
2021-06-07 15:38 ` Jan Kiszka
2021-06-07 16:19 ` Philippe Gerum
2021-06-07 16:35 ` Jan Kiszka
2021-06-08 16:50 ` Philippe Gerum
2021-06-08 17:39 ` Philippe Gerum
2021-06-09 5:34 ` Jan Kiszka
2021-06-09 6:12 ` Philippe Gerum
2021-06-11 7:15 ` Jan Kiszka
2021-06-11 15:39 ` Philippe Gerum
2021-06-07 14:37 ` Philippe Gerum
2021-06-07 14:36 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2blajle.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=jan.kiszka@siemens.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.