Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2162641imu; Thu, 10 Jan 2019 09:16:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN6vdwxWuEBoPK3YQd0NJlDErTQ6WKPhx+lLqmOVBad9Takg0a5NGbYngYUldG6CIEq2Ibyf X-Received: by 2002:a62:4886:: with SMTP id q6mr11317378pfi.182.1547140599061; Thu, 10 Jan 2019 09:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547140599; cv=none; d=google.com; s=arc-20160816; b=kX3/mLxseE6yzTsSrsye1zcriqPa+nqySuDGwjsNUCmyAdbfEM+Sb1q0UzXKPzgMH5 bsEtU/yyfolbLUkxkk9+J+FYt5GLG99L8u6F35mzWZwODY4DWe8KwfJyOnMI2QoFWo8k PHl6cXhFLgvqFRSy1KWSc24FYDv152Rscj2IlWxkSFg9P7q4G4DmaMJkPMbhVuzZjftx non61KnXPqB5uqWBwFo7Tl+6pRTYjGoa32KZgZsRxeRIHmRmjDkNbHBXTvVgv7/yKGG3 QM8wx24iF0mjRgSvxyd40VExowcNGbRLrM9SPYlVauOXGJ7sOOZ38Zm9mkv9Yn89MGjh juUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Vi+SvwsycUKtGhpMC3QEpN/Bk6bKq1AfTBDWYF1k7VQ=; b=NyAzlOc+btd4qwwI1TMmd0+Da8fjqq2ZUFLZPj2skrGAX45C+hMVNAYA7U4yKjD3qi zcKUqfN6P3Eld/j0d7xc/HkWHR855FynDrDC/KuwYfGrS4TmprN4NKaXK6EN0kfO2epw KR7i9+t0km/wBFC3+C1qkoCGL9bVETWJ3GzO4glqYVE53GBezxunmw7MmXRqhHID3Mku 4W0kLF1lcvB/oETK9MEeWdla1HmYnPljPQhX82r/d3Qs23eiTGeQV36Z9gCsFLc1BTnB S+PDaWeqmWH753b0NG/Y1Sv5CcinzU3/0xeTwgFMhL+oMmyLTiSP61wy9nIG7SqEP1vv zIXw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si20457073pld.36.2019.01.10.09.16.23; Thu, 10 Jan 2019 09:16:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729533AbfAJRPJ (ORCPT + 99 others); Thu, 10 Jan 2019 12:15:09 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45199 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729474AbfAJRPI (ORCPT ); Thu, 10 Jan 2019 12:15:08 -0500 Received: by mail-qt1-f193.google.com with SMTP id e5so14010849qtr.12; Thu, 10 Jan 2019 09:15:06 -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=hf/Qw2NMREqLD0cU2L5PwYV6N3JVMoymHdz6WPZ4m0wF+QIVmbrGaDTsAVhbXHq03N 4zvyj8yMQlqAAkoSnTfjpTSDoKlE5/4DeDyYXqDanBk2XFUaWvhIweXT6lMTXFx35g0e UT6Q4jr945WYh8e637Kj6ObPedDpTpUpbSu1VWf/sLwt+8cdb9NgCHp83IDvOkmf35kJ eKcb0zmFQdz2u9d1PfJDI48UvC9AqA5sGgyzEGK2O3Pq7/Hinbi03TI30LWQ9v0sRygF tpFBRAWbmX7y40RN9bhyROcWqdgIZzIjE6dh7nnXGRgWA0sbqle/1qVCFu6heqQN4uaR L3zw== X-Gm-Message-State: AJcUukdDu2iSUzrpLirdpfVetnMplsuyAWY8r/S6gdyK0on1eVhuVsN5 e8yeoyAjDUQCUQcx+uFu9ACFiAKJ518JEpQ5pUI= 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 Cc: y2038 Mailman List , Linux API , Linux Kernel Mailing List , Ivan Kokshaysky , Matt Turner , Russell King - ARM Linux , Catalin Marinas , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Michal Simek , Paul Burton , Helge Deller , Michael Ellerman , Martin Schwidefsky , Heiko Carstens , Rich Felker , David Miller , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "the arch/x86 maintainers" , Max Filippov , Firoz Khan , "Eric W . Biederman" , Deepa Dinamani , Dominik Brodowski , Andrew Morton , Davidlohr Bueso , alpha , Linux ARM , linux-ia64@vger.kernel.org, linux-m68k , linux-mips@vger.kernel.org, Parisc List , linuxppc-dev , linux-s390 , Linux-sh list , sparclinux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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