Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1650475
| From | Miroslav Benes <mbenes@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/3] livepatch: force transition process to finish |
| Date | 2017-05-25 15:10 +0200 |
| Message-ID | <tL0GC-c1-15@gated-at.bofh.it> (permalink) |
| References | <tIspI-2kb-17@gated-at.bofh.it> <tIspL-2kb-81@gated-at.bofh.it> <tKEd4-2Lr-27@gated-at.bofh.it> <tKFiN-3ph-1@gated-at.bofh.it> <tKGeS-40h-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> > > In fact, I would suggest to take klp_mutex in force_store() > > > and do all actions synchronously, including the check > > > of klp_transition_patch. > > > > I still think it is better not do it. klp_unmark_tasks() does nothing else > > than tasks already do. They call klp_update_patch_state() by themselves > > and they do not grab klp_mutex lock for doing that. klp_unmark_tasks() > > only forces this action. > > You have a point. But I am not convinced ;-) klp_update_patch_state() > was called very carefully only when it was safe. The forcing > intentionally breaks the consistency model. User should really know > what they are doing when they use this feature. > > I think that we should actually taint the kernel. Developers should > know when users were pulling their legs. We could do that. I can change pr_warn() to WARN_ON_ONCE(), which would of course taint the kernel. > > On the other hand, I do not see a problem in doing that. We already have a > > relationship between klp_mutex and tasklist_lock defined elsewhere, so it > > is safe. > > Yup. > > > It would only serialize things needlessly. > > I do not agree. The speed is not important here. Also look > into klp_reverse_transition(). We explicitly clear all > TIF_PATCH_PENDING flags and call synchronize_rcu() just > to make the situation easier and reduce space for potential > mistakes. Yes, because we had to do that. We ran into problems otherwise. We do not have to do it here. It does not help anything in my opinion. Miroslav
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] livepatch: Introduce force sysfs attribute Miroslav Benes <mbenes@suse.cz> - 2017-05-18 14:10 +0200
[PATCH 3/3] livepatch: force transition process to finish Miroslav Benes <mbenes@suse.cz> - 2017-05-18 14:10 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Libor Pechacek <lpechacek@suse.com> - 2017-05-18 15:20 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Miroslav Benes <mbenes@suse.cz> - 2017-05-18 15:30 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Josh Poimboeuf <jpoimboe@redhat.com> - 2017-05-23 19:30 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Miroslav Benes <mbenes@suse.cz> - 2017-05-24 10:40 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Petr Mladek <pmladek@suse.com> - 2017-05-24 15:10 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Miroslav Benes <mbenes@suse.cz> - 2017-05-24 16:20 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Petr Mladek <pmladek@suse.com> - 2017-05-24 17:20 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Miroslav Benes <mbenes@suse.cz> - 2017-05-25 15:10 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Petr Mladek <pmladek@suse.com> - 2017-05-25 18:10 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Josh Poimboeuf <jpoimboe@redhat.com> - 2017-05-26 19:40 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Petr Mladek <pmladek@suse.com> - 2017-05-29 14:30 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Josh Poimboeuf <jpoimboe@redhat.com> - 2017-05-30 14:50 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Josh Poimboeuf <jpoimboe@redhat.com> - 2017-05-26 19:50 +0200
Re: [PATCH 3/3] livepatch: force transition process to finish Miroslav Benes <mbenes@suse.cz> - 2017-05-29 11:30 +0200
[PATCH 1/3] livepatch: Add force sysfs attribute Miroslav Benes <mbenes@suse.cz> - 2017-05-18 14:10 +0200
Re: [PATCH 1/3] livepatch: Add force sysfs attribute Libor Pechacek <lpechacek@suse.com> - 2017-05-18 15:10 +0200
Re: [PATCH 1/3] livepatch: Add force sysfs attribute Miroslav Benes <mbenes@suse.cz> - 2017-05-18 15:30 +0200
csiph-web