Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp219025pxf; Thu, 8 Apr 2021 01:11:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz+il99AcE3RFuo+vxjXrvT1Uf5oOOrGnvnrHrWcLOWgOO9mEVRYxgHfIe+DX7MQyGieMm X-Received: by 2002:a17:902:b40e:b029:e9:51e:477f with SMTP id x14-20020a170902b40eb02900e9051e477fmr6498067plr.55.1617869489906; Thu, 08 Apr 2021 01:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617869489; cv=none; d=google.com; s=arc-20160816; b=ZozxXpYKTJ+h0q23AIak9eXKTvZDVDLJujw2l3sOR88YgIjVyb1Z/zcLBImB26hmte 5UvcmQwEeXlRTmHAKH76jmeZDg8a7omf0ELBVsrUh9gyWqCRuq+a5eHMA9OioAbXgy4x 7kjiflR2vXI0vjYv87AUsaaHzfF3rWDPvdu2m/crlGqWJbdBp3RXOrpTCtONtsBc6ZTN c+pxefL0c8M/Qvch9t7UMLqJ1Tf+eAE81BhLXBi5lOah5pw41ksPWd1b6zp5LQz0O108 L6W9GpIGynSN/nW8PHdy4Qkk/IFE6BRYoulw8aYXqiC5y80b7iiGOECxy2lPdJXljm5f dL5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WHWPS86eFvGrjzARUXFkwgRhGDroXrqpueG7VP/sT7Q=; b=LmyCQg9uGo1Q5MYP7nr2fCbanaHI7nEg3R2xBUcl4I/lHgukCtK0LyaaMOk6h2FX3u ML5Kvrumg7LK/fE12fGB4y0XSMyoETV0YYrxUZD+qqnfivvS7nxezpoGDsbvvFaJJhdG WfI7+p7NQbDe2mHQJHkO+ikv3iYeUn5A/OLJvbkaLfXV+WJTm1b5+UVeivzg4xk8OVuk h+mrszof3D2P05Hb71C5LDtrYfMW+wyjCxosgIoLfLdCghybELR22cCkkigHfl7hVgkF DMDKCf8iWLctUbkeW+OAJLa+iyKpIVSWI24sVmz5Vw1+fiyoJLHqnYPA9hvvPJVxHWNM 5kqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dhubm0mZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si24249224pfc.57.2021.04.08.01.11.17; Thu, 08 Apr 2021 01:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dhubm0mZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbhDHIJp (ORCPT + 99 others); Thu, 8 Apr 2021 04:09:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:34548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbhDHIJn (ORCPT ); Thu, 8 Apr 2021 04:09:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 319BC6113D; Thu, 8 Apr 2021 08:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617869371; bh=EDBOgrUz8VxB1uH7uiMgZNQY00iTLS1DGawWaDEVVV4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dhubm0mZjAVfKGnoEMUKJH9bsuP7aQ1qJc1cVA4oG9EPb+nc3utqhekOZTTNkscGZ deKb7EXi6GalWYbQeka1ZPREp27OX8u5JLe8HWDLqHCANUxQH7oVAMhbbXEyCbXcks y2ZuW94O+Nr44DIedN5arz7Ns/UJkjqQyMvNZSK8= Date: Thu, 8 Apr 2021 10:09:29 +0200 From: Greg KH To: Jiri Kosina Cc: Thomas Gleixner , Luis Chamberlain , Minchan Kim , keescook@chromium.org, dhowells@redhat.com, hch@infradead.org, mbenes@suse.com, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Kosina Subject: Re: [PATCH 1/2] zram: fix crashes due to use of cpu hotplug multistate Message-ID: References: <20210319190924.GK4332@42.do-not-panic.com> <20210322204156.GM4332@42.do-not-panic.com> <20210401235925.GR4332@42.do-not-panic.com> <87blap4kum.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 10:01:23AM +0200, Jiri Kosina wrote: > On Thu, 8 Apr 2021, Greg KH wrote: > > > Removing a module from a system has always been "let's try it and see!" > > type of operation for a very long time. > > Which part of it? > > If there is a driver/subsystem code that can't handle the reverse > operation to modprobe, it clearly can't handle error handling during > modprobe (which, one would hope, is supported), and should be fixed. Huh? No, that's not the issue here, it's the issue of different userspace code paths into the module at the same time that it is trying to be unloaded. That has nothing to do with loading the module the first time as userspace is not touching those apis yet. > If there is a particular issue in kernel dynamic linker that causes crash > on module removal, we'd better off fixing it. Is there one such that makes > you claim module removal unsupported? The linker has nothing to do with this, it's userspace tasks touching code paths. thanks, greg k-h