Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp771136pxb; Tue, 5 Apr 2022 22:37:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG8E+SWXHw9jJsylOSw+q8p++StwVhkxCtcmMgfFQoe6KGERVwWB80kHLJdYNreNh0FX2H X-Received: by 2002:a17:903:2cd:b0:156:780d:5b69 with SMTP id s13-20020a17090302cd00b00156780d5b69mr7002665plk.156.1649223443477; Tue, 05 Apr 2022 22:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649223443; cv=none; d=google.com; s=arc-20160816; b=QvUhgCWNRqs0qY4umUTWuaCacH6Hq0HzDHvYgHvYFI9sgTjhCbzKE/0fwEZ0JF1ip4 W8Hk/1Cv27vDzL+YiwPHwSO/+pF+bl/17RGAGIpxaTWEkSXaL89Kk1ZRGxONLTlxhtvF h3yGNBPI6+65jp/PpN8K9TgRj43LLs9uSWA421yt7pmIUopZicI9vfQeBtj6YYi1DnDY gZDuDfD+VKvVnXORk+4YjWwMb3Tdbz+V8jJDTzdbLOdlFPmoGjf+m4HEqSLpN9GcAuyB LzTKYpQeCfeOCzyuLSMfYDdodAgNodLFLimSPu6s+IVNyRlwmEkEjDh1RnPK2Z/Jahib gncA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aeFNuKV6Ij04tP783XW2OB3peXEW/GaCAxdbIJEMvS4=; b=StYCxU2tG5OWYS+MB9zpRHPK1tyRflxgmQMhYOEqjweurKQwbhANmzF/NdDsI7vY2k +Xs1YdR2BWrXT61zNF9s6Qk0/aIPuYQUMaZPSVd4Fw87Yzq0OG2gHUkFvu5RfE1I1k6P ufKbMpGWbD8iQ4gMndKSjd0uCX1mN6Wq+1HsF6JUUsFNsPjvOPCA6y37Qz3MEcKnxj7d a+VZAoxhN6NKA1tbDaUpH01JuHllBv1cYLwxSHaoKaeN9xm4EC5HPF2nBuyN7gjHsiBI Y6SNXk5bzEy2ZdSi7+YSs4GrZOL1+dGoed8CrdTsOKZ6/4KXbQaXazNDhCx3iXiw4sIm iMQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cItoeJDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q2-20020a635042000000b0039919e96afdsi8573826pgl.455.2022.04.05.22.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:37:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cItoeJDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B625A400FE0; Tue, 5 Apr 2022 21:33:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1575961AbiDEXJp (ORCPT + 99 others); Tue, 5 Apr 2022 19:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354371AbiDEKN7 (ORCPT ); Tue, 5 Apr 2022 06:13:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BE69694B2; Tue, 5 Apr 2022 02:59:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B49A2B81C83; Tue, 5 Apr 2022 09:59:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08AC9C385A1; Tue, 5 Apr 2022 09:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152775; bh=nlm8p+tTQwhGjPD/lcR+yMaGdpDQ15VBJt2fFe08qzk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cItoeJDBIIRuosIIyfg3x3GCZcf3eNS3rD7Kw+TPlQjGrCdUZMUts16yoA2PYy+Vs BxVwViygzkGJ6hnLZcS8pvDBiUsa7YoMvFPPUi22TX7+hZch/B1Lg0SP07M/OZGXEz WOmvcVh+sEulbeN+RVSlEX326AsWG63AlOQ9OfL8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anton Ivanov , Richard Weinberger Subject: [PATCH 5.15 897/913] um: Fix uml_mconsole stop/go Date: Tue, 5 Apr 2022 09:32:39 +0200 Message-Id: <20220405070406.708239163@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anton Ivanov commit 1a3a6a2a035bb6c3a7ef4c788d8fd69a7b2d6284 upstream. Moving to an EPOLL based IRQ controller broke uml_mconsole stop/go commands. This fixes it and restores stop/go functionality. Fixes: ff6a17989c08 ("Epoll based IRQ controller") Signed-off-by: Anton Ivanov Signed-off-by: Richard Weinberger Signed-off-by: Greg Kroah-Hartman --- arch/um/drivers/mconsole_kern.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c @@ -224,7 +224,7 @@ void mconsole_go(struct mc_request *req) void mconsole_stop(struct mc_request *req) { - deactivate_fd(req->originating_fd, MCONSOLE_IRQ); + block_signals(); os_set_fd_block(req->originating_fd, 1); mconsole_reply(req, "stopped", 0, 0); for (;;) { @@ -247,6 +247,7 @@ void mconsole_stop(struct mc_request *re } os_set_fd_block(req->originating_fd, 0); mconsole_reply(req, "", 0, 0); + unblock_signals(); } static DEFINE_SPINLOCK(mc_devices_lock);