Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp893075pxf; Wed, 7 Apr 2021 14:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/8CAgkbSvMSafNWa3SILZYxQ/fagxDxSaapAocwvFxePjoMe1Ygx22zcml51pl+r9sV8A X-Received: by 2002:a05:6402:2070:: with SMTP id bd16mr6847645edb.133.1617830433294; Wed, 07 Apr 2021 14:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617830433; cv=none; d=google.com; s=arc-20160816; b=ZURuHx9tmkTB3mGrbVoZ4gEC6dHcx+DxRFyXWNlEameNDr8iBEaoXIftGjG9JqHs0k utjSmGWcGteDd9FSsOJx74eLW3G3wQJfPFjrZN5F2K77F53Co4JWzPo8Nj49x8JAmsJA jWbqQt7aM3WMSv5AbV/Cj2l9GOTS9OOCAPyobvPPO08eCfeY5BlAPM25kbv1QBEz2csI MVPqXwAtOJ5XVAH0i8lLJ0b+20M5D4SK3iyGmOfCA12RUGdEArsicXjZ9pCuq2FoduuD dc5qMtVAUwNYFkMLzWKvZmVpBp50m24UMBlQSCqTm2UV8Lmab991GTDv8J7LFHUUVabU URZw== 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=4jXDVYNZhoFNYiKZYrtZsKuCVb4vwBIdNB0gpCFJ6N8=; b=sg2BNA4NFNnb60WO97a7EIS65FP+cAJVUl0cDweFyt9sJv7wpPN+M5fZBW4dAHN9T+ L72UCZj1X/7vw8PlS1mWiaqicwXuCqOmFjPtpyXxMow4iTdt3mO5iliatwUmeuJQFWZk 6fsmKbf0eBzLkL22ftrhjc9VTj/CCroCx01Qcx+lsacTXSwmn+a1KrkjwWVdyoCNqn1S WuvLhaN+4eqiDvjEryBPjXMdi/BRVnwP0thb/pa765BCqwriOw3HSwdLEXOtZl9wHaJt R/Kcg2BM9q+/7uiABIYrdPsc6bcdK3FfESz3lXiKd/5xaIDsncWLse3wk6hBDLs+ANyU YtGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="h8/oxqc2"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si6164189edo.256.2021.04.07.14.20.00; Wed, 07 Apr 2021 14:20:33 -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=@redhat.com header.s=mimecast20190719 header.b="h8/oxqc2"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241934AbhDGPbx (ORCPT + 99 others); Wed, 7 Apr 2021 11:31:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43134 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245587AbhDGPbs (ORCPT ); Wed, 7 Apr 2021 11:31:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617809499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4jXDVYNZhoFNYiKZYrtZsKuCVb4vwBIdNB0gpCFJ6N8=; b=h8/oxqc26jZT6ZynFZcuJ5CEUWJE2YPqLV1N3Kp7OV+Tfv+jL5c+Ok6iYzJ5k5JCNAmcXK PeZTCvnILOPqyZYwadCzKVi9nNMPNEnOUwebonVhe42aiPgE9ThcNTV9HaZKwdCdCCEeKt +LgaGafN2X7Dw/i+ymGI4iesrbsdbxc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-219-51rTN3sKNQOCggXX2cxiZQ-1; Wed, 07 Apr 2021 11:30:39 -0400 X-MC-Unique: 51rTN3sKNQOCggXX2cxiZQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 78CFB9F92C; Wed, 7 Apr 2021 15:30:37 +0000 (UTC) Received: from treble (ovpn-116-68.rdu2.redhat.com [10.10.116.68]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B6C505D6CF; Wed, 7 Apr 2021 15:30:33 +0000 (UTC) Date: Wed, 7 Apr 2021 10:30:31 -0500 From: Josh Poimboeuf To: Peter Zijlstra Cc: Miroslav Benes , Greg KH , Luis Chamberlain , mbenes@suse.com, Minchan Kim , keescook@chromium.org, dhowells@redhat.com, hch@infradead.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Jessica Yu Subject: Re: [PATCH 1/2] zram: fix crashes due to use of cpu hotplug multistate Message-ID: <20210407153031.m4gg3rsgwlr432ba@treble> References: <20210322204156.GM4332@42.do-not-panic.com> <20210401235925.GR4332@42.do-not-panic.com> <20210402183016.GU4332@42.do-not-panic.com> <20210406003152.GZ4332@42.do-not-panic.com> <20210406155423.t7dagp24bupudv3p@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 04:09:44PM +0200, Peter Zijlstra wrote: > On Tue, Apr 06, 2021 at 10:54:23AM -0500, Josh Poimboeuf wrote: > > > Same for Red Hat. Unloading livepatch modules seems to work fine, but > > isn't officially supported. > > > > That said, if rmmod is just considered a development aid, and we're > > going to be ignoring bugs, we should make it official with a new > > TAINT_RMMOD. > > Another option would be to have live-patch modules leak a module > reference by default, except when some debug sysctl is set or something. > Then only those LP modules loaded while the sysctl is set to 'YOLO' can > be unloaded. The issue is broader than just live patching. My suggestion was that if we aren't going to fix bugs in kernel module unloading, then unloading modules shouldn't be supported, and should taint the kernel. -- Josh