From patchwork Fri Nov 4 17:36:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 621380 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp411678pvb; Fri, 4 Nov 2022 10:37:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5fFIGmISsXMt24GFxh9IMahIc3Av95ZgLwXG4rqtaMBDQXgScx5wuU6VZdZhMXVIiQe3qa X-Received: by 2002:a05:6214:d0e:b0:4bc:44c:422f with SMTP id 14-20020a0562140d0e00b004bc044c422fmr23661002qvh.126.1667583433553; Fri, 04 Nov 2022 10:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667583433; cv=none; d=google.com; s=arc-20160816; b=BWaPq46wBtnnpKQW0A4JZGtlCFL51BXxMM423nV82QYqOYjU0qLuviG1FLl2TtVZWw sRlaY0skL55uLelWxV9NhTwd2cXOoavVjMun4lDW5zHKf1NfyWnx+Ini+43bz7wQQb2G 4/cskIg7cQOwFB+vIZv9ubl/AirZIFP3zNlxPo2hD2ndcnGluhn9d2TbFSZMuCPbzXh0 B2sXVVdGl6LeBqqSzqDR/zIWHQ6JwFOZ6mlGAV9uQw/lQQcIQoAiLD/sQOsyt7DIbg0x eI3qtjs472v9esjQEgmOezoo+Z/0kWD+Pp4g8rzR8lPfMjtnQXj2J6UIJmcx7/BZX1d8 xIAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=P2GZxyIKjubapSnF/Xd46wVN4+0ui8At0WITPipJywc=; b=V5WDi21nQ0oVBfBI+5xTTtUe0dKvsoYKxfHXS4V4We28xVKLrAV+cCE+LWc43R6tVG 1b9Tfunnb7CMIGmqr+xJ1FRo2lhc00q0dnS/HBGtF2wmgpaedsSk7hRcvPzxonFKSn6T FkTJrjNfyCrWe7QtPH80NToKDCSeSWeJ6rRGK+rpXv92RD6DR7DfAqLNZdAtAgZS9xok oPBlMmOpSA7lbZLC35uU4kgzuyYWMEwyFJ6LAMgpq8/c3v78LfbK/tm+/9Toq+Kh9DX1 /vJ63SjgmYuZUbHJwfe6dPqID2XxmfnOztuKnY+3YfrECiW4C455VSgalq1nyd13EKH3 UzbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lglADO6B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bs20-20020ac86f14000000b003a5328067f6si3117726qtb.261.2022.11.04.10.37.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Nov 2022 10:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lglADO6B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1or0cT-0008TB-B6; Fri, 04 Nov 2022 13:36:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1or0cS-0008S7-8n for qemu-devel@nongnu.org; Fri, 04 Nov 2022 13:36:40 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1or0cP-0003tq-Gu for qemu-devel@nongnu.org; Fri, 04 Nov 2022 13:36:39 -0400 Received: by mail-wr1-x431.google.com with SMTP id z14so8031429wrn.7 for ; Fri, 04 Nov 2022 10:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=P2GZxyIKjubapSnF/Xd46wVN4+0ui8At0WITPipJywc=; b=lglADO6BRka8vXAuj+/Op3Ed2zFfGXjho/ubMdFlulAYoEEkkygYKeakR1B5AIERJ8 aQ1cBEFKt2GL9dhvUA53pJ6/qROSuiWUCzoIkrWZ44qr7ytq4RCgESx9YsES3MsAeY8Z bivdakcrlOo4bXWLvqsp9c42eMLK8ZTFUdXGtjXuQMrBXs/v3FvkehRv+CY9lheI2oNs gR1JYU8P/1fiyvZZW7rvKM9rRmOGy47BSJwFZ394fpuhRMTVOpgTgM1uZq9bFIaDdJE5 1ysXS537TUnhmBb1lFS3OApPIsTG6aLfr4cbgyDsRVWl2OVlUFVjq9Ivy/Jr+mH9+ZjT p4lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=P2GZxyIKjubapSnF/Xd46wVN4+0ui8At0WITPipJywc=; b=vIgnbgvrtBgHrm9H5yNDxxPuDjTgyyUHB0GfLGqBY+8VxleN0Ajy0geR3MS7tvxB8m GVZPTIztWoccnFEdma5zcVJ94kXRpGk+cEvmmuqRuqOX9XFhMCXO9xKJvIvjYnafHcTu VZBSFwBGx40A4gqI0e3MzJvSod+jQbpC2N0H1dl3wicnLnrJTyq6HugZC+MHN43Om/Z0 ntqnBs843ggHw7qlgEICYmcX7vPbqs/4ouYrFWoI3svBmGK1l5OAVLM6uzullI+J/CUD 55+jiJC8CNCIyrgB0N0qgpw1F+eXUrNh38vA3GzJzqpQCGq9R13QRcY54fT3yst8wc+I M4Wg== X-Gm-Message-State: ACrzQf1lXpFWrJt43uTsxQd4S4oU/lvpqBzIEzNuvM4yXUxnEL+belb5 H3vXc4TAKyuVoYFdk+DJtEGNt5g/DpDAlg== X-Received: by 2002:a05:6000:2c1:b0:236:d474:f053 with SMTP id o1-20020a05600002c100b00236d474f053mr16934687wry.517.1667583394823; Fri, 04 Nov 2022 10:36:34 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id m3-20020a05600c4f4300b003b47b80cec3sm3699971wmq.42.2022.11.04.10.36.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Nov 2022 10:36:34 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , Helge Deller , Drew DeVault , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v5 0/5] linux-user: implement execveat Date: Fri, 4 Nov 2022 18:36:27 +0100 Message-Id: <20221104173632.1052-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org As I was reviewing this patch from Drew: https://lore.kernel.org/qemu-devel/20221104081015.706009-1-sir@cmpwn.com/ and it was too big for my review standards, I split it into smaller steps. Since the result can help the other reviewers, post it. Since v4: - Constify struct flags - Split Drew's patch in 4 Drew DeVault (4): linux-user/strace: Extract print_execve_argv() from print_execve() linux-user/strace: Add output for execveat() syscall linux-user/syscall: Extract do_execve() from do_syscall1() linux-user/syscall: Implement execveat() Philippe Mathieu-Daudé (1): linux-user/strace: Constify struct flags linux-user/strace.c | 134 +++++++++++++++---------- linux-user/strace.list | 2 +- linux-user/syscall.c | 216 ++++++++++++++++++++++------------------- 3 files changed, 201 insertions(+), 151 deletions(-)