Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3941887pxb; Tue, 2 Mar 2021 02:31:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcwoIwwv7cX1jifeSK0YPrhIkXdfz5v8IkODxbHW399rfwZm9Su3wRjliKscM4DRIsJ9iZ X-Received: by 2002:a17:906:5811:: with SMTP id m17mr3066062ejq.115.1614681098374; Tue, 02 Mar 2021 02:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614681098; cv=none; d=google.com; s=arc-20160816; b=tHGkowbcQtRS29YgagNdLyGvItSjGj19sDYTN9z3T4QUGZ+v7zCUn/nLWPI/PZ1vdx 1GRMg0vQJGuGayxBBi5h+Fiyc7KROzQQK0f+X5bnJc/tRk1edVGw90DeLrgdsGofiJfl xwWoFrJSxxMxjIAQnEnjDzzKzHOxQ1EEXPOm+1b8KlArVeEHyPPA5q6Ht8UZmGppTt0W ne1lRgvb7fFPWA4GKO2p5IWTdEZ3f0DMp9XpX5KBDMmzEp1Vgkd+nmlWntK3JXpg/zHp +AhTKDZR4O9nJEhuQmLF5y9POg3QDtRiJawbFQsCFBoTsa39dOKE+Hv8euqGCHpmnEkg hz4g== 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=UVzpgo5mNWePiCKJv3rmz9ZxMgojN4z0l0K8Y/lCh/w=; b=lqeHPy/c7yjAHc6LiL+++1/4A/LMoICTM95rnY6wFM0O/PvgvrxuNFvbM6pz43LeOX 9eyCHQmANlHdQs7gtxFuup5523NbZDg2BC/KX7mJoODucPsvC5xeGrKLYnONyzqW6wEv 7tU3Y/rOC+4Slmpx7vLpE3lZhzLUXC8lVinHmGlWCWZu76DdyROZtIoKdV0svLlcOirY tII0mIAN37pqiWuLfxqM2UCKenvEn8b2iJJDVFs3YL3BanwaQjj9Y14ZQ9+4pluOocyq KkiwDyrUkyD67C0D+1qmabKfIgVAdGd2i4JvE1HJ9GMkluUhcM9zWO/VJv0SKqmG3wDY Ymsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zRvY42uo; 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 r27si5648372edw.299.2021.03.02.02.31.15; Tue, 02 Mar 2021 02:31:38 -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=@linuxfoundation.org header.s=korg header.b=zRvY42uo; 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 S1379805AbhCBBb1 (ORCPT + 99 others); Mon, 1 Mar 2021 20:31:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:43894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236036AbhCATSy (ORCPT ); Mon, 1 Mar 2021 14:18:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6B57A652A6; Mon, 1 Mar 2021 17:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619996; bh=Qfn0aUat3ceZQ1ghd+EeB4wkAMI8sShpeAtkKyiVw5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zRvY42uopWfRl3Ru+fwglD0A5MbRlQxnUXM3UhsI/PEzMeXgJc+hU7LpKCDMsPrS8 jTY5tGUxqsEdZdE3JCMdc/jjZ10z439/h+yaxYYmUX+BltPFPNZntI07vkTovw2A30 yyR3HmDAvXGwiNrRW7Wm70sAw90pa7/3Vn/D6VCs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Borntraeger , Heiko Carstens , Vasily Gorbik Subject: [PATCH 5.10 626/663] s390/vtime: fix inline assembly clobber list Date: Mon, 1 Mar 2021 17:14:34 +0100 Message-Id: <20210301161212.823201417@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiko Carstens commit b29c5093820d333eef22f58cd04ec0d089059c39 upstream. The stck/stckf instruction used within the inline assembly within do_account_vtime() changes the condition code. This is not reflected with the clobber list, and therefore might result in incorrect code generation. It seems unlikely that the compiler could generate incorrect code considering the surrounding C code, but it must still be fixed. Cc: Reviewed-by: Christian Borntraeger Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik Signed-off-by: Greg Kroah-Hartman --- arch/s390/kernel/vtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/s390/kernel/vtime.c +++ b/arch/s390/kernel/vtime.c @@ -136,7 +136,8 @@ static int do_account_vtime(struct task_ " stck %1" /* Store current tod clock value */ #endif : "=Q" (S390_lowcore.last_update_timer), - "=Q" (S390_lowcore.last_update_clock)); + "=Q" (S390_lowcore.last_update_clock) + : : "cc"); clock = S390_lowcore.last_update_clock - clock; timer -= S390_lowcore.last_update_timer;