Thread (9 messages) 9 messages, 4 authors, 2021-03-26

Re: [PATCH] livepatch: klp_send_signal should treat PF_IO_WORKER like PF_KTHREAD

From: Jens Axboe <axboe@kernel.dk>
Date: 2021-03-25 16:31:37
Also in: lkml

On 3/25/21 3:30 AM, Miroslav Benes wrote:
quoted
(PF_KTHREAD | PF_IO_WORKER) is open coded in soo many places maybe this is a
silly question, but...

If the livepatch code could use fake_signal_wake_up(), we could consolidate
the pattern in klp_send_signals() with the one in freeze_task().  Then there
would only one place for wake up / fake signal logic.

I don't fully understand the differences in the freeze_task() version, so I
only pose this as a question and not v2 request.
The plan was to remove our live patching fake signal completely and use 
the new infrastructure Jens proposed in the past.
That would be great, I've actually been waiting for that to show up!
I would greatly prefer this approach if you deem it suitable for 5.12,
if not we'll still need the temporary work-around for live patching.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help