From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 A26FE2DC782 for ; Thu, 2 Apr 2026 14:04:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775138654; cv=none; b=WLjoSuthj8EqvbTw5zFUgTYJvwWFsPOLc+pXZMmAxOIJ8qoGVTE+mTr7rLT4ClhsgezCzOJKHUx5skzbfOcnFPsvSlpAXJqA0xu6DZCciwSkoEln7QsdcpwYgJIKq2PjfZmq3QaLQAoruRnvnMkSCSydAtJ/R5eo2JJ7EIO8PHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775138654; c=relaxed/simple; bh=tE5VmhzxQVKDhSDnwXijlI5JAra9GGtl1NXKtuSJKOA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T2lU9FMDqMmtTDiALbTGAOudq1SmVEMfjJi4rd3kyY9supx8DAK+wUmyVmira2I2dCJ8IPZNTHsp4fhoAotk+rGHa3JinBfr1vlnguh/wqnkinGRjIH5fCGD5uTKef5VRKv5c9yBMybsmql0lEtxo+eC/F2horEPcXoideFLUQ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=OTxthWC/; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OTxthWC/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775138652; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tE5VmhzxQVKDhSDnwXijlI5JAra9GGtl1NXKtuSJKOA=; b=OTxthWC/OGE2sQmXTkhjvkmei+qhNVPt48YTRrdMR/2Oq0RiM/JdTGGi6OUioJ175U3sK7 zKgppfcR6vDu3DXw4jRUgvKa7nfg0r4x6KAbvt7tnMcLSfbPpxNf4SOLKWPYXN9CrjxzLr 8y+t5rZrvxiYlXanV4nKDIqw/ZVKGKw= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-144-dBntAbcGMTG25bxC55NxMQ-1; Thu, 02 Apr 2026 10:04:07 -0400 X-MC-Unique: dBntAbcGMTG25bxC55NxMQ-1 X-Mimecast-MFC-AGG-ID: dBntAbcGMTG25bxC55NxMQ_1775138645 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1FDC318002F1; Thu, 2 Apr 2026 14:04:05 +0000 (UTC) Received: from fedora (unknown [10.44.36.60]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 81E601800351; Thu, 2 Apr 2026 14:04:01 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 2 Apr 2026 16:04:04 +0200 (CEST) Date: Thu, 2 Apr 2026 16:03:59 +0200 From: Oleg Nesterov To: Uros Bizjak Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH] x86/ptrace: Use savesegment() in get_segment_reg() instead of inline asm Message-ID: References: <20260402062248.459921-1-ubizjak@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 On 04/02, Uros Bizjak wrote: > > On Thu, Apr 2, 2026 at 3:09 PM Uros Bizjak wrote: > > > > There is a corresponding x86_32 get_segment_reg() function that has > > the same definition of retval, I can prepare a follow-up patch that > > changes both. > > Something like the attached patch that also slightly unifies x86_32 with x86_64. OK, agreed. And this cleanup looks good to me as well. Oleg.