Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5771385ybc; Wed, 27 Nov 2019 09:11:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwhyXT2JphP+a7HIvLs/JjLqsfjdgI9g36gZdIF89iCTfhtnDNNSvLLA+01uMTivZCiePXO X-Received: by 2002:a50:9b0b:: with SMTP id o11mr2866357edi.78.1574874668194; Wed, 27 Nov 2019 09:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574874668; cv=none; d=google.com; s=arc-20160816; b=FTpLmpLhMDTEJfS0YovGVo80gVegRA7yRIeTeUIEEtJ0nuLfA3yPk33naZ5SLGYf3a ky00/46vx7kgDBpm3hypUTrF48vP5l/dcF10J27t1wjNYXG+m5To2Y4G96SQi2A7EMGs NHHoFAvOoSuSMgQqGqG1YtitKD8943VoNC0CIXjGK5vRkKntlntNCI18Bg3lj+J8l7zs rIjjPPpNnoub0cxc0bhFkwasAXOaIekN5nN/2uuMTGw6hRIUw1VzyBldZjl5wB72iO8J Y0IVhXe8zDO1bGq++bUBN0A+WGXwppcJdiG/APhNKRvQW2jQ3qLbTXhTKgG9qWpMXyGV zjRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5oOmKbV9hdKrDqi7PW4BFEhBM29CRms8n2gM1AJunA0=; b=A/TqH9AsXl75BOSeM+q84UJIz2m1IaMdZlUfTqWVPMOwxybPfOLthotglYfwrNfoqu qBTb8VDY1JqNVHFlpm9gk7gddJj2/9elQo7DxZXNZINzPEsDMV9U/IzIQw8j9UN+eAT+ XQ/fbQnUk5PJsCRhW+5ttzL8D7apwefe9KMzjmmpms1MWcHJlKI4SBq6QIqcun2PNL9B yTxUBuSdrz8kajvPmdlxzkRoQqie7eEW5t1qmtU+2JO9bOzqW9YJ5J40qOz2onc7B8cd UmCVhNPKqZNAYh1Dg10o/giAHXoKEoQv95uuwx/tamHqq8f82qf4d83IW4ORwgCTm90a xCPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aItzIAsk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ca16si3926356edb.129.2019.11.27.09.10.43; Wed, 27 Nov 2019 09:11:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aItzIAsk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727175AbfK0RG5 (ORCPT + 99 others); Wed, 27 Nov 2019 12:06:57 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:50327 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726729AbfK0RG5 (ORCPT ); Wed, 27 Nov 2019 12:06:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574874416; 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=5oOmKbV9hdKrDqi7PW4BFEhBM29CRms8n2gM1AJunA0=; b=aItzIAsk/PjT7DuIdphv/HxbwiGiiQfjBTTxYVdzUF9wpBjRJZgRV373uMqixu8zLoUW6D q/RTBUchAlJ42Ge3vG67RsBzN16eKZSvCeqakA9a8Wr/ntQRJRekqQIHU93PUVOA1wHzzl SvJZ71zzoKCmf8E+V77NRjMLTIouL8Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-429-9VTPTGAtPsiPVflD9etptw-1; Wed, 27 Nov 2019 12:06:52 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E08E6800EB9; Wed, 27 Nov 2019 17:06:50 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.44]) by smtp.corp.redhat.com (Postfix) with SMTP id B09296015A; Wed, 27 Nov 2019 17:06:45 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 27 Nov 2019 18:06:50 +0100 (CET) Date: Wed, 27 Nov 2019 18:06:44 +0100 From: Oleg Nesterov To: Andy Lutomirski Cc: Linus Torvalds , Andrew Morton , Borislav Petkov , Ingo Molnar , Jan Kratochvil , Pedro Alves , Peter Anvin , Thomas Gleixner , Linux Kernel Mailing List , the arch/x86 maintainers Subject: Re: [PATCH] ptrace/x86: introduce TS_COMPAT_RESTART to fix get_nr_restart_syscall() Message-ID: <20191127170644.GB26180@redhat.com> References: <20191126110659.GA14042@redhat.com> <20191126110758.GA14051@redhat.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: 9VTPTGAtPsiPVflD9etptw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/26, Andy Lutomirski wrote: > > How about we rename restart_block::fn to __fn, Oh, please no. We can do this later, this needs to update every arch/ > add fields > restart_syscall_nr and restart_syscall_arch, Hmm, why do we nedd 2 fields ? and do: > IMO the ideal solution would be to add a new syscall nr to restart a > syscall and make it the same on all architectures. Damn yes! And I tried to suggest this 2 years ago. But > This has > unfortunate interactions with seccomp, though. Yes. Do you think we can do something with seccomp? Oleg.