From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DA08C43387 for ; Thu, 10 Jan 2019 17:17:01 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7944120874 for ; Thu, 10 Jan 2019 17:17:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7944120874 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 43bCNB4vV2zDqM3 for ; Fri, 11 Jan 2019 04:16:58 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.160.194; helo=mail-qt1-f194.google.com; envelope-from=arndbergmann@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=arndb.de Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 43bCL44WvZzDq5g for ; Fri, 11 Jan 2019 04:15:08 +1100 (AEDT) Received: by mail-qt1-f194.google.com with SMTP id p17so14062411qtl.5 for ; Thu, 10 Jan 2019 09:15:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vi+SvwsycUKtGhpMC3QEpN/Bk6bKq1AfTBDWYF1k7VQ=; b=ijy9UaJb9pJGJoCAkKy5VEiPxL1AqJhfHM8cIxPiPq8MQWBO4LNaPTGYuLOArDQ/Ox ALl2idsVfgnVUp30CWSctAimRcg3aajoX6lXZGV+ZKBPmSmUwFXN5dxBsTWE495JvVcw zE1jp9dVJNM2u+/exch3fuF4cjBv16NFUvV3V+yc3KggxAuXzbdDcbx9FlJLcBMAbs4i VKF1nhaJ+NveHiCh2IT9BrOf27GjVp4YGzRTeuwo3U0uxLa26VDesrvW6UVWKXY0A0gM H1smH8siqQFORKTHjqp/5P04OulN347F+SLqKFrFIJ1Q0SAS4siFWHpTP7SIeQWwR6Nw WOKQ== X-Gm-Message-State: AJcUukcEZiG0SQ+epWjcQd0pZLO8R7vvOOpUwSTfbPtkZXkV+Ml3cx94 23SeuYEbIN1LULdek/cNO83kMaq+xTFRU6ixGv8= X-Google-Smtp-Source: ALg8bN4AdylggnguSr7egu7xIPGdOjTe436nAOiytiob3A7SfzgpinZUkBcCe85tXDNMw1nvzwC1nAoiCh7sWU6vHE4= X-Received: by 2002:ac8:1d12:: with SMTP id d18mr10355152qtl.343.1547140506273; Thu, 10 Jan 2019 09:15:06 -0800 (PST) MIME-Version: 1.0 References: <20190110162435.309262-1-arnd@arndb.de> <20190110162435.309262-8-arnd@arndb.de> <20190110163908.GC31683@fuggles.cambridge.arm.com> In-Reply-To: <20190110163908.GC31683@fuggles.cambridge.arm.com> From: Arnd Bergmann Date: Thu, 10 Jan 2019 18:14:50 +0100 Message-ID: Subject: Re: [PATCH 07/15] ARM: add kexec_file_load system call number To: Will Deacon Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , linux-ia64@vger.kernel.org, Linux-sh list , Catalin Marinas , Heiko Carstens , Dominik Brodowski , linux-mips@vger.kernel.org, Max Filippov , Deepa Dinamani , "H. Peter Anvin" , sparclinux , linux-s390 , Davidlohr Bueso , y2038 Mailman List , Helge Deller , the arch/x86 maintainers , Russell King - ARM Linux , Ingo Molnar , Geert Uytterhoeven , Firoz Khan , Matt Turner , Fenghua Yu , linux-m68k , Ivan Kokshaysky , Andy Lutomirski , Thomas Gleixner , Linux ARM , Michal Simek , Tony Luck , Parisc List , Linux API , Linux Kernel Mailing List , Paul Burton , "Eric W . Biederman" , alpha , Martin Schwidefsky , Andrew Morton , linuxppc-dev , David Miller Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, Jan 10, 2019 at 5:39 PM Will Deacon wrote: > > > diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h > > index 355fe2bc035b..19f3f58b6146 100644 > > --- a/arch/arm64/include/asm/unistd32.h > > +++ b/arch/arm64/include/asm/unistd32.h > > @@ -823,6 +823,8 @@ __SYSCALL(__NR_rseq, sys_rseq) > > __SYSCALL(__NR_io_pgetevents, compat_sys_io_pgetevents) > > #define __NR_migrate_pages 400 > > __SYSCALL(__NR_migrate_pages, sys_migrate_pages) > > +#define __NR_kexec_file_load 401 > > +__SYSCALL(__NR_kexec_file_load, sys_kexec_file_load) > > Hmm, I wonder if we need a compat wrapper for this, or are we assuming > that the early entry code has already zero-extended the long and pointer > arguments? Yes, that is generally the assumption for compat syscalls. s390 needs some extra magic to do a 31-to-64 extension on pointer arguments, and I think sometimes we need a special wrapper to do sign-extension of 32-bit arguments into 64-bit, but the arguments here should not need that. Arnd