[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.21.2104061354110.10372@pobox.suse.cz>
Date: Tue, 6 Apr 2021 14:00:19 +0200 (CEST)
From: Miroslav Benes <mbenes@...e.cz>
To: Greg KH <gregkh@...uxfoundation.org>,
Luis Chamberlain <mcgrof@...nel.org>
cc: mbenes@...e.com, Minchan Kim <minchan@...nel.org>,
keescook@...omium.org, dhowells@...hat.com, hch@...radead.org,
ngupta@...are.org, sergey.senozhatsky.work@...il.com,
axboe@...nel.dk, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, live-patching@...r.kernel.org
Subject: Re: [PATCH 1/2] zram: fix crashes due to use of cpu hotplug
multistate
Hi,
> > Driver developers will simply have to open code these protections. In
> > light of what I see on LTP / fuzzing, I suspect the use case will grow
> > and we'll have to revisit this in the future. But for now, sure, we can
> > just open code the required protections everywhere to not crash on module
> > removal.
>
> LTP and fuzzing too do not remove modules. So I do not understand the
> root problem here, that's just something that does not happen on a real
> system.
If I am not mistaken, the issue that Luis tries to solve here was indeed
found by running LTP.
> On Sat, Apr 03, 2021 at 08:13:23AM +0200, Greg KH wrote:
> > On Fri, Apr 02, 2021 at 06:30:16PM +0000, Luis Chamberlain wrote:
> > > On Fri, Apr 02, 2021 at 09:54:12AM +0200, Greg KH wrote:
> > > > No, please no. Module removal is a "best effort",
> > >
> > > Not for live patching. I am not sure if I am missing any other valid
> > > use case?
> >
> > live patching removes modules? We have so many code paths that are
> > "best effort" when it comes to module unloading, trying to resolve this
> > one is a valiant try, but not realistic.
>
> Miroslav, your input / help here would be valuable. I did the
> generalization work because you said it would be worthy for you too...
Yes, we have the option to revert and remove the existing live patch from
the system. I am not sure how (if) it is used in practice.
At least at SUSE we do not support the option. But we are only one of the
many downstream users. So yes, there is the option.
Miroslav
Powered by blists - more mailing lists