Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp474008lqh; Tue, 7 May 2024 05:16:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWM0x/et4WV/dM1RpsbTSw/kwbMwohVD4YqKys7Uti2kPxbAyOOSfDalKukfl9iQ2TLemFwhiA+NUKd/18eGqIQdz5GgsZxGP1moCq44A== X-Google-Smtp-Source: AGHT+IGfB5tR6BF3mMrs0z2lhAXbYFAyfosFWvKlf32FYwQ2o4wxmtSFqFKBoB8WolNu+hF3w3ZF X-Received: by 2002:a05:6214:62c:b0:6a0:ccc4:9c9b with SMTP id a12-20020a056214062c00b006a0ccc49c9bmr12830542qvx.44.1715084177261; Tue, 07 May 2024 05:16:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715084177; cv=pass; d=google.com; s=arc-20160816; b=lmdzTeR69/NNeYnYBGDSSLNR48b5LXhrQtipX8MRaCmWAKWOoZE1bTrR41Zxf7ymAT wO18FGVKwgO6jpWSB5vL31MGB+dBsrWGykOB/6/3PVGhryG1svXF47FMDuXE8KhrHfvb jVxJ1TibWjOpZDlMVpc9aBbyWTzVflu8Sfdy2QsZtRuDSjcOjW3NVh/Y8TVhyEgAkzJC 3mceBTYIZuqu6YP6GRC31mWHEvtqY6p/1YoMht+y12/PvrIZ4rpfKCOBtaFcalcfoTy8 EtxCG6GdoQ7T1YfX3pBR247TN2rL0MWi9tpiQKHCnvMUj96DsDis9BSQ9gi7fHC4ndv2 VhkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=ZW8opu3qoaDFkriJzblpb7PWP6Mdk3qACtPXpvLAX9I=; fh=rkWL+4I+638/GUxxr6Si2AwCBwEZXkruNc2zUihgK/U=; b=FnWkccYDdBynqohscLeBsUWVXEtBlbE9BKAnAf1rC0LtfMZZo24mAqVJ3Qo2lEJ16m x4vvNpPN8MzWzf97FMFVZwR3RLviTeJonHaeX7Xc5NXyUHqXVraqttc/DxGVe3d9/scZ HvTFaC9+s0igeEzq/J7SNpT/OS5jKm85CxN0UezCByu42xflBUL9nP1lNGa7yXf6Cpax vF2lMA+f8Xk4oduVqNf6JTeYw1oNZEFTwXbuBba6Vb8RkxTAixcA375P4cjBQgcxct1i tlnrcUgAcGiQ7W6HSu3gYRJYV7DfE/NuBrTlGR3FDVE9qTN6HZOXmgkXZYtD44FbwDCI DzWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=X7UCZjWd; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-171249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171249-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pt11-20020a056214048b00b006a0a964a741si11616596qvb.345.2024.05.07.05.16.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=X7UCZjWd; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-171249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171249-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 030341C2315E for ; Tue, 7 May 2024 12:16:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F816156F5D; Tue, 7 May 2024 12:16:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="X7UCZjWd"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="nFTOIi0I" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19EDA156F37 for ; Tue, 7 May 2024 12:16:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715084171; cv=none; b=VS2LcjjnZZiUE0ZGVjVqAjHm93Jm4kJx+ybupb/T3fnhsba/71rc4LaLOU1P4sVPLGsSddrmdFEvgmB237d06DqwpkW0JbYgR/aOuY9mqM1WszadZ56xfb6uNk/wVIlS1Zb2Tij1iQXs4PpYVhVVivGgtoL++UpBJ/Opq35L8MM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715084171; c=relaxed/simple; bh=yn6EY4L9QHQF9Qi6rYdMXrRWWmhUr+graHI1uNE59kY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=s6EkfeR5pouufBuRPGBOJAGoq4mvnegwTHmmdFemMvpwqa0PBgCpkQ8zW1oo8i+GEcDPC9Bow/0ngV7Tt657evhPdMQplfMkOSUzS2/eG+T3h+kpyCKbRZGFXYZnQgvFB6+R3R1dL30bnYPJVy6SuGDWBt2kP73gqzYaRNODrFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=X7UCZjWd; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=nFTOIi0I; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1715084168; 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=ZW8opu3qoaDFkriJzblpb7PWP6Mdk3qACtPXpvLAX9I=; b=X7UCZjWd2O5+VsfJIYVuaFBwa4dhrKBo9oi399o54J4Ktkotp25DYSOdmrlBJg9B44tGpv 33W2zw6QSiOze+7ULxw0YOgkQkWvCc1t/iNBXp5c2l6N+CZ1JNfpe80SSN1+yr6YL0UCqp lw6tg0HRRxqk3iTlCsAykp9CGQTIWM1TxJN6/yphClEE7WNgU5an4vkzemwqHtmKNpfj4i RdLcyoSDD07rVb+1gpp4Q7uCVX3Z8bbACYG3BZiLSBEIgWUBM/nae4DbWLTcfdEp0JeN55 2z+gCASYSr7k4kuNkNaJ61thP0MUy9qQZWJZ7f+d3C7cNpPIsZW/M5K2rVGskQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715084168; 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=ZW8opu3qoaDFkriJzblpb7PWP6Mdk3qACtPXpvLAX9I=; b=nFTOIi0IXXXF3fCyFBc9/nVyd1rEoi7KgBk/6lbKqzJK/bqQ6j1dOtJkFcuy+wfJIRNXaF 99zwlD7Z9BRyhKDQ== To: Aruna Ramakrishna , linux-kernel@vger.kernel.org Cc: x86@kernel.org, dave.hansen@linux.intel.com, mingo@kernel.org, keith.lucas@oracle.com, aruna.ramakrishna@oracle.com Subject: Re: [PATCH v3 1/4] x86/pkeys: Signal handling function interface changes to accept PKRU as a parameter In-Reply-To: <20240425180542.1042933-2-aruna.ramakrishna@oracle.com> References: <20240425180542.1042933-1-aruna.ramakrishna@oracle.com> <20240425180542.1042933-2-aruna.ramakrishna@oracle.com> Date: Tue, 07 May 2024 14:16:08 +0200 Message-ID: <8734qtrf5j.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, Apr 25 2024 at 18:05, Aruna Ramakrishna wrote: > > -extern bool copy_fpstate_to_sigframe(void __user *buf, void __user *fp, int size); > +extern bool copy_fpstate_to_sigframe(void __user *buf, void __user *fp, int size, > + u32 pkru); No line break required. Line length is 100 characters. All over the place. > @@ -229,6 +230,7 @@ handle_signal(struct ksignal *ksig, struct pt_regs *regs) > { > bool stepping, failed; > struct fpu *fpu = ¤t->thread.fpu; > + u32 pkru = read_pkru(); Please use reverse fir tree ordering of variables: https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#variable-declarations Thanks, tglx