Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3449466pxx; Mon, 2 Nov 2020 09:09:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd/ejFFtP7piUTNwsWm5dbD/fn69O9Cn+E2cEMPgWBb3+IpxANd8iQi0pXEIylKIAawxQ8 X-Received: by 2002:a05:6402:1042:: with SMTP id e2mr17980977edu.320.1604336988281; Mon, 02 Nov 2020 09:09:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604336988; cv=none; d=google.com; s=arc-20160816; b=eSQex+dKt9mZMF3GXW7kLxKtxW6EEuDJFazlopsS0XVmj92CXs1AbMyDAxWRdBmzXU UvkJd1nf2kIA0BF64IqURA2N/UxW2EDq3hS5pAhQC4Cjli9D7AqLkdFWzHOV3ATFXvON jREfoTRyYDOQkt3YznEztKdU5+p26Q9LfBqaFYA+pImYZChE9XE6hbJyol8BUg3kV9wd JuAvC86U8IAgaEFmWJgsz4KXwuWVyv1UEjUm+h4wwTshKu6Br8Qy2E58MuqJ1rginbuI TARVKnri1T9ID4fpTOCYjLd0SzuT5+YGxOE++L91dgb/hEhQ5OpqnRk5kXPheLvnKSMG EhUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=RgzfsRmXFhqBHSdx1zZ8lf3nx1SGdRkGq7oD4cRkyMc=; b=DkP3z/mlHWWisboE9mrAoCOR+8viQeSsUznU6rIDN4eO7UyhgYvgn741zjYxv6C3WS g3cjQvXQqYr8KsUvtgP6wF/xTvVGxUp3FKarAdYen1l7Ykmg/xhXu+N5Eo4HHLZuYjRP YiWdwA3Go4+uo7H/0TJFiPhPu/2gpFDpbl/CDMrxD//QyeqYjraxcDfFimssd8owGbFw +TklLuCbD4vpOQBoG8cj8FZbYdBroqBq8IbuuGfj2a7wjA+Zvgc0hGNuDwpgcBWFUsUc V6W9c3KlrZskpvE/AuRPoyeCslMsx/e+V1nB+6h+aIP443wJSCuaco6sEe0tdJaybAoe UjUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="GtJ/HfBU"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e4si11717050eds.412.2020.11.02.09.09.24; Mon, 02 Nov 2020 09:09:48 -0800 (PST) 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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="GtJ/HfBU"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727452AbgKBRHi (ORCPT + 99 others); Mon, 2 Nov 2020 12:07:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727150AbgKBRHh (ORCPT ); Mon, 2 Nov 2020 12:07:37 -0500 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2245C061A04 for ; Mon, 2 Nov 2020 09:07:35 -0800 (PST) Received: by mail-io1-xd44.google.com with SMTP id u21so5065787iol.12 for ; Mon, 02 Nov 2020 09:07:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RgzfsRmXFhqBHSdx1zZ8lf3nx1SGdRkGq7oD4cRkyMc=; b=GtJ/HfBU+CPqw01bKDnZ2U+zd8bF/riSntMlucKhNZE3SoczRSuXICyc3XW52ZgUc8 GD/Mfa7SnGorzR/clsnZitFqhY0KsB/U9TCShYxA/IS/vSpBF4jauNLBoOokc+AiTqoa juNawangws7wBF9F8sY/Qrh+nWuMdd16GaawLZ/6eXIKwqGohYVCG3CcQp9JxNHKfTCi M1F2tEFI/IdCRTVVIremah96R2VqhF4cOCa8/Ma8dV8JQpEx7loaul2HFnt5NIJodWPO mqWpJAX0bLXXN4XNPEr5ZyveNAFOWFfFDrxGgoq+wOguhY2xCdpCab932rhn886y5Vap /jjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RgzfsRmXFhqBHSdx1zZ8lf3nx1SGdRkGq7oD4cRkyMc=; b=rbL3YiGZiKGA29MjfsfeS7CxB3ssl+euMPd2t86lOBVtsotyHUPOMBR6kj7G3GIpgG wjlPe2thyYCqjztc6Ifg46nTcJ7duOPnVMXRvwN0kTi/SUqmNketcldI4u2Pv/o5ZxNp GL9dgvoRV1inuLJugkUj7IJVMEYFMAccokkYKx6RAs0K5U0vdkbnEGJyHqGjSvAT+6b6 tqkVd+c3pTguU3HKGULUVOW/LP5r16KihB5JYyF1zFjUA3eJ01mDgCZzSTd9gn5nTYVZ eVI6p1IGAeP2D8VRiM8XKVAjhYf/frW/hRzSags84mIcqrdLUNgIs9rpiXq6wbjeiKSX hZ/g== X-Gm-Message-State: AOAM531XHkUepi63dDOgAe2hejrG9jZQr+HuwAgiKUpYJOUGZTKn+fbS vB3T3JbfO/ooSZptQT+ecNE6xA== X-Received: by 2002:a05:6602:164b:: with SMTP id y11mr4370751iow.36.1604336855108; Mon, 02 Nov 2020 09:07:35 -0800 (PST) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id z9sm10731628ilm.21.2020.11.02.09.07.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Nov 2020 09:07:34 -0800 (PST) Subject: Re: [PATCH] s390: add support for TIF_NOTIFY_SIGNAL To: Qian Cai Cc: linux-s390@vger.kernel.org, Heiko Carstens , linux-kernel@vger.kernel.org, peterz@infradead.org, oleg@redhat.com, tglx@linutronix.de, Stephen Rothwell , Linux-Next Mailing List References: <20201101173153.GC9375 () osiris> <362e3645e2c0891309c07e244a147f0c32f106da.camel@redhat.com> From: Jens Axboe Message-ID: <54c02fa6-8c8a-667f-af99-e83a1f150586@kernel.dk> Date: Mon, 2 Nov 2020 10:07:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <362e3645e2c0891309c07e244a147f0c32f106da.camel@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/2/20 9:59 AM, Qian Cai wrote: > On Sun, 2020-11-01 at 17:31 +0000, Heiko Carstens wrote: >> On Thu, Oct 29, 2020 at 10:21:11AM -0600, Jens Axboe wrote: >>> Wire up TIF_NOTIFY_SIGNAL handling for s390. >>> >>> Cc: linux-s390@vger.kernel.org >>> Signed-off-by: Jens Axboe > > Even though I did confirm that today's linux-next contains this additional patch > from Heiko below, a z10 guest is still unable to boot. Reverting the whole > series (reverting only "s390: add support for TIF_NOTIFY_SIGNAL" introduced > compiling errors) fixed the problem, i.e., git revert --no-edit > af0dd809f3d3..7b074c15374c [1] That's odd, it should build fine without that patch. How did it fail for you? Can you try and add this on top? Looks like I forgot the signal change for s390, though that shouldn't really cause any issues. diff --git a/arch/s390/kernel/signal.c b/arch/s390/kernel/signal.c index 9e900a8977bd..a68c3796a1bf 100644 --- a/arch/s390/kernel/signal.c +++ b/arch/s390/kernel/signal.c @@ -472,7 +472,7 @@ void do_signal(struct pt_regs *regs) current->thread.system_call = test_pt_regs_flag(regs, PIF_SYSCALL) ? regs->int_code : 0; - if (get_signal(&ksig)) { + if (test_thread_flag(TIF_NOTIFY_SIGNAL) && get_signal(&ksig)) { /* Whee! Actually deliver the signal. */ if (current->thread.system_call) { regs->int_code = current->thread.system_call; -- Jens Axboe