From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yury Norov Subject: Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Date: Wed, 7 Jun 2017 21:48:09 +0300 Message-ID: <20170607184809.e4hmsvewkrmigmww@yury-thinkpad> References: <20170604120009.342-1-ynorov@caviumnetworks.com> <20170604120009.342-4-ynorov@caviumnetworks.com> <20170605144406.GT6973@jhogan-linux.le.imgtec.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20170605144406.GT6973-4bYivNCBEGTR3KXKvIWQxtm+Uo4AYnCiHZ5vskTnxNA@public.gmane.org> Sender: linux-metag-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: James Hogan Cc: Catalin Marinas , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Arnd Bergmann , Andrew Pinski , Andrew Pinski , Adam Borowski , Chris Metcalf , Steve Ellcey , Maxim Kuvyrkov , Ramana Radhakrishnan , Florian Weimer , Bamvor Zhangjian , Andreas Schwab , Chris Metcalf , Heiko Carstens , schwidefsky-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org, broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Joseph Myers , christoph. List-Id: linux-arch.vger.kernel.org On Mon, Jun 05, 2017 at 03:44:06PM +0100, James Hogan wrote: > Hi Yury, > > On Sun, Jun 04, 2017 at 02:59:52PM +0300, Yury Norov wrote: > > The newer prlimit64 syscall provides all the functionality provided by > > the getrlimit and setrlimit syscalls and adds the pid of target process, > > so future architectures won't need to include getrlimit and setrlimit. > > > > Therefore drop getrlimit and setrlimit syscalls from the generic syscall > > list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's > > unistd.h prior to including asm-generic/unistd.h, and adjust all architectures > > using the generic syscall list to define it so that no in-tree architectures > > are affected. > > > > Cc: Arnd Bergmann > > Cc: James Hogan > > Cc: linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Cc: linux-snps-arc-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > > Cc: Catalin Marinas > > Cc: Will Deacon > > Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > > Cc: Mark Salter > > Cc: Aurelien Jacquiot > > Cc: linux-c6x-dev-jPsnJVOj+W6hPH1hqNUYSQ@public.gmane.org > > Cc: Richard Kuo > > Cc: linux-hexagon-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Cc: linux-metag-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Cc: Jonas Bonn > > Cc: linux-ZwoEplunGu2h2975yA52AaxOck334EZe@public.gmane.org > > Cc: Chen Liqin > > Cc: Lennox Wu > > Cc: Chris Metcalf > > Cc: Guan Xuetao > > Cc: Ley Foon Tan > > Cc: nios2-dev-g9ZBwUv/Ih/yUk5EbOjzuce+I+R0W71w@public.gmane.org > > Cc: Yoshinori Sato > > Cc: uclinux-h8-devel-5NWGOfrQmneRv+LV9MX5uooqe+aC9MnS@public.gmane.org > > Signed-off-by: Yury Norov > > Acked-by: Arnd Bergmann > > Acked-by: Mark Salter [c6x] > > Acked-by: James Hogan [metag] > > Acked-by: Ley Foon Tan [nios2] > > Acked-by: Stafford Horne [openrisc] > > Acked-by: Will Deacon [arm64] > > Acked-by: Vineet Gupta #arch/arc bits > > --- > > arch/arc/include/uapi/asm/unistd.h | 1 + > > arch/arm64/include/uapi/asm/unistd.h | 1 + > > arch/c6x/include/uapi/asm/unistd.h | 1 + > > arch/h8300/include/uapi/asm/unistd.h | 1 + > > arch/hexagon/include/uapi/asm/unistd.h | 1 + > > arch/metag/include/uapi/asm/unistd.h | 1 + > > arch/nios2/include/uapi/asm/unistd.h | 1 + > > arch/openrisc/include/uapi/asm/unistd.h | 1 + > > arch/score/include/uapi/asm/unistd.h | 1 + > > arch/tile/include/uapi/asm/unistd.h | 1 + > > arch/unicore32/include/uapi/asm/unistd.h | 1 + > > include/uapi/asm-generic/unistd.h | 5 +++++ > > Don't forget to add __IGNORE_getrlimit and __IGNORE_setrlimit to > scripts/checksyscalls.sh, or you'll get warnings about missing syscalls. > > Cheers > James Hi James, Thanks for the hint. Yury From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-by2nam01on0047.outbound.protection.outlook.com ([104.47.34.47]:64100 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751690AbdFGSsY (ORCPT ); Wed, 7 Jun 2017 14:48:24 -0400 Date: Wed, 7 Jun 2017 21:48:09 +0300 From: Yury Norov Subject: Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Message-ID: <20170607184809.e4hmsvewkrmigmww@yury-thinkpad> References: <20170604120009.342-1-ynorov@caviumnetworks.com> <20170604120009.342-4-ynorov@caviumnetworks.com> <20170605144406.GT6973@jhogan-linux.le.imgtec.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170605144406.GT6973@jhogan-linux.le.imgtec.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: James Hogan Cc: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann , Andrew Pinski , Andrew Pinski , Adam Borowski , Chris Metcalf , Steve Ellcey , Maxim Kuvyrkov , Ramana Radhakrishnan , Florian Weimer , Bamvor Zhangjian , Andreas Schwab , Chris Metcalf , Heiko Carstens , schwidefsky@de.ibm.com, broonie@kernel.org, Joseph Myers , christoph.muellner@theobroma-systems.com, szabolcs.nagy@arm.com, klimov.linux@gmail.com, Nathan_Lynch@mentor.com, agraf@suse.de, Prasun.Kapoor@caviumnetworks.com, geert@linux-m68k.org, philipp.tomsich@theobroma-systems.com, manuel.montezelo@gmail.com, linyongting@huawei.com, davem@davemloft.net, zhouchengming1@huawei.com, linux-arch@vger.kernel.org, linux-snps-arc@lists.infradead.org, Will Deacon , Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org, Richard Kuo , linux-hexagon@vger.kernel.org, linux-metag@vger.kernel.org, Jonas Bonn , linux@lists.openrisc.net, Chen Liqin , Lennox Wu , Guan Xuetao , Ley Foon Tan , nios2-dev@lists.rocketboards.org, Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp Message-ID: <20170607184809.dstnZnQuz9Gwd-PwkjAidZCZS05JIBSVqiF0qalRuRs@z> On Mon, Jun 05, 2017 at 03:44:06PM +0100, James Hogan wrote: > Hi Yury, > > On Sun, Jun 04, 2017 at 02:59:52PM +0300, Yury Norov wrote: > > The newer prlimit64 syscall provides all the functionality provided by > > the getrlimit and setrlimit syscalls and adds the pid of target process, > > so future architectures won't need to include getrlimit and setrlimit. > > > > Therefore drop getrlimit and setrlimit syscalls from the generic syscall > > list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's > > unistd.h prior to including asm-generic/unistd.h, and adjust all architectures > > using the generic syscall list to define it so that no in-tree architectures > > are affected. > > > > Cc: Arnd Bergmann > > Cc: James Hogan > > Cc: linux-arch@vger.kernel.org > > Cc: linux-snps-arc@lists.infradead.org > > Cc: Catalin Marinas > > Cc: Will Deacon > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: Mark Salter > > Cc: Aurelien Jacquiot > > Cc: linux-c6x-dev@linux-c6x.org > > Cc: Richard Kuo > > Cc: linux-hexagon@vger.kernel.org > > Cc: linux-metag@vger.kernel.org > > Cc: Jonas Bonn > > Cc: linux@lists.openrisc.net > > Cc: Chen Liqin > > Cc: Lennox Wu > > Cc: Chris Metcalf > > Cc: Guan Xuetao > > Cc: Ley Foon Tan > > Cc: nios2-dev@lists.rocketboards.org > > Cc: Yoshinori Sato > > Cc: uclinux-h8-devel@lists.sourceforge.jp > > Signed-off-by: Yury Norov > > Acked-by: Arnd Bergmann > > Acked-by: Mark Salter [c6x] > > Acked-by: James Hogan [metag] > > Acked-by: Ley Foon Tan [nios2] > > Acked-by: Stafford Horne [openrisc] > > Acked-by: Will Deacon [arm64] > > Acked-by: Vineet Gupta #arch/arc bits > > --- > > arch/arc/include/uapi/asm/unistd.h | 1 + > > arch/arm64/include/uapi/asm/unistd.h | 1 + > > arch/c6x/include/uapi/asm/unistd.h | 1 + > > arch/h8300/include/uapi/asm/unistd.h | 1 + > > arch/hexagon/include/uapi/asm/unistd.h | 1 + > > arch/metag/include/uapi/asm/unistd.h | 1 + > > arch/nios2/include/uapi/asm/unistd.h | 1 + > > arch/openrisc/include/uapi/asm/unistd.h | 1 + > > arch/score/include/uapi/asm/unistd.h | 1 + > > arch/tile/include/uapi/asm/unistd.h | 1 + > > arch/unicore32/include/uapi/asm/unistd.h | 1 + > > include/uapi/asm-generic/unistd.h | 5 +++++ > > Don't forget to add __IGNORE_getrlimit and __IGNORE_setrlimit to > scripts/checksyscalls.sh, or you'll get warnings about missing syscalls. > > Cheers > James Hi James, Thanks for the hint. Yury From mboxrd@z Thu Jan 1 00:00:00 1970 From: ynorov@caviumnetworks.com (Yury Norov) Date: Wed, 7 Jun 2017 21:48:09 +0300 Subject: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list In-Reply-To: <20170605144406.GT6973@jhogan-linux.le.imgtec.org> References: <20170604120009.342-1-ynorov@caviumnetworks.com> <20170604120009.342-4-ynorov@caviumnetworks.com> <20170605144406.GT6973@jhogan-linux.le.imgtec.org> List-ID: Message-ID: <20170607184809.e4hmsvewkrmigmww@yury-thinkpad> To: linux-snps-arc@lists.infradead.org On Mon, Jun 05, 2017@03:44:06PM +0100, James Hogan wrote: > Hi Yury, > > On Sun, Jun 04, 2017@02:59:52PM +0300, Yury Norov wrote: > > The newer prlimit64 syscall provides all the functionality provided by > > the getrlimit and setrlimit syscalls and adds the pid of target process, > > so future architectures won't need to include getrlimit and setrlimit. > > > > Therefore drop getrlimit and setrlimit syscalls from the generic syscall > > list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's > > unistd.h prior to including asm-generic/unistd.h, and adjust all architectures > > using the generic syscall list to define it so that no in-tree architectures > > are affected. > > > > Cc: Arnd Bergmann > > Cc: James Hogan > > Cc: linux-arch at vger.kernel.org > > Cc: linux-snps-arc at lists.infradead.org > > Cc: Catalin Marinas > > Cc: Will Deacon > > Cc: linux-arm-kernel at lists.infradead.org > > Cc: Mark Salter > > Cc: Aurelien Jacquiot > > Cc: linux-c6x-dev at linux-c6x.org > > Cc: Richard Kuo > > Cc: linux-hexagon at vger.kernel.org > > Cc: linux-metag at vger.kernel.org > > Cc: Jonas Bonn > > Cc: linux at lists.openrisc.net > > Cc: Chen Liqin > > Cc: Lennox Wu > > Cc: Chris Metcalf > > Cc: Guan Xuetao > > Cc: Ley Foon Tan > > Cc: nios2-dev at lists.rocketboards.org > > Cc: Yoshinori Sato > > Cc: uclinux-h8-devel at lists.sourceforge.jp > > Signed-off-by: Yury Norov > > Acked-by: Arnd Bergmann > > Acked-by: Mark Salter [c6x] > > Acked-by: James Hogan [metag] > > Acked-by: Ley Foon Tan [nios2] > > Acked-by: Stafford Horne [openrisc] > > Acked-by: Will Deacon [arm64] > > Acked-by: Vineet Gupta #arch/arc bits > > --- > > arch/arc/include/uapi/asm/unistd.h | 1 + > > arch/arm64/include/uapi/asm/unistd.h | 1 + > > arch/c6x/include/uapi/asm/unistd.h | 1 + > > arch/h8300/include/uapi/asm/unistd.h | 1 + > > arch/hexagon/include/uapi/asm/unistd.h | 1 + > > arch/metag/include/uapi/asm/unistd.h | 1 + > > arch/nios2/include/uapi/asm/unistd.h | 1 + > > arch/openrisc/include/uapi/asm/unistd.h | 1 + > > arch/score/include/uapi/asm/unistd.h | 1 + > > arch/tile/include/uapi/asm/unistd.h | 1 + > > arch/unicore32/include/uapi/asm/unistd.h | 1 + > > include/uapi/asm-generic/unistd.h | 5 +++++ > > Don't forget to add __IGNORE_getrlimit and __IGNORE_setrlimit to > scripts/checksyscalls.sh, or you'll get warnings about missing syscalls. > > Cheers > James Hi James, Thanks for the hint. Yury