Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp883986yba; Wed, 3 Apr 2019 23:10:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzW48f610Pwhly+fS3ftacVw0h8gge8XdyJQJ0YPhTxbwFSKejuFlN0uRWP/qMAKIl/VEER X-Received: by 2002:a17:902:b281:: with SMTP id u1mr4542582plr.30.1554358207963; Wed, 03 Apr 2019 23:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554358207; cv=none; d=google.com; s=arc-20160816; b=B0V8xjg3WoIVOUBfVLqCkPpbmfU1nk2bFqYBo2Z2vORL8D/W9QZj5XpAGoixbdkE0O kdlP3tHqy2QFrHxxjknQ7iv6DhP7VLsoclEI4SY4Es/FmFR1fqJ1VPk1nzcRr9ViEgA/ n/c9ZnqrGzChy4T+/lGIQ+kE3GoiHxV2WviilUOzRLN0J2Xd9GXriyopAdySI8EqDjHl zD6qBxcWD0VmeCG2l/4y/tWpa37b5Rk+nWhUzVvYJcd8hGf1AyHlJs0xVdyD2ol2aDQ9 +/yP6IuEcCtH3F8Ny5y7lZbhxCQ/n7yZXLgZ0NqtMKi1C27gZGSAgMyRCB6wwsTD3D/b MVwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=eKmjBnx6bIchQSWWfhyNjsOoDfRKmNMn1mn3g8MUrho=; b=FKkT0AF/6UfGFKGd/sIBnFOk1Dg6/CA93j7IHwIJwwZfJEzAw/zRpkW9pb4f57W+GK ClNy5ZtXGExobXPgwnrrY28E4EqbNX9Kx/nPO00I4LfP9Ii5DGYkWPRM4jTjgOqoKRVy 9MQxk5FPmAKrNwTpXUNsSha5boMOdCG/KejoU5CcWIrG7zj6vbl5dB5QnxR8AMkd07H7 uvHP+tU4KXbem229eD27TGb7AAo9LdcXYglFGFNdwwekQieUCx4K1/SYn4aVX7l/LYMT SezTEP6nB768wT3VESZFUjlqeqsEoFOHN7qjeUWPicmEkclYN4zq5OIs4H1VcDkGGnXA T1Jw== 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 j19si11967523pfh.147.2019.04.03.23.09.52; Wed, 03 Apr 2019 23:10:07 -0700 (PDT) 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 S1726694AbfDDGJR (ORCPT + 99 others); Thu, 4 Apr 2019 02:09:17 -0400 Received: from ozlabs.org ([203.11.71.1]:54533 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfDDGJR (ORCPT ); Thu, 4 Apr 2019 02:09:17 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 44ZXZh4x7Tz9sNj; Thu, 4 Apr 2019 17:09:00 +1100 (AEDT) From: Michael Ellerman To: Jens Axboe , Will Deacon Cc: Arnd Bergmann , Andrew Morton , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Michal Simek , Ralf Baechle , Paul Burton , James Hogan , "James E . J . Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , Rich Felker , "David S . Miller" , Max Filippov , Firoz Khan , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere In-Reply-To: <9d673dfd-0051-3676-653e-6376430d73dd@kernel.dk> References: <20190325143521.34928-1-arnd@arndb.de> <20190325144737.703921-1-arnd@arndb.de> <87tvff24a1.fsf@concordia.ellerman.id.au> <20190403111134.GA7159@fuggles.cambridge.arm.com> <9d673dfd-0051-3676-653e-6376430d73dd@kernel.dk> Date: Thu, 04 Apr 2019 17:08:59 +1100 Message-ID: <87imvu1ev8.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jens Axboe writes: > On 4/3/19 5:11 AM, Will Deacon wrote: >> On Wed, Apr 03, 2019 at 01:47:50PM +1100, Michael Ellerman wrote: >>> Arnd Bergmann writes: >>>> diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl b/arch/powerpc/kernel/syscalls/syscall.tbl >>>> index b18abb0c3dae..00f5a63c8d9a 100644 >>>> --- a/arch/powerpc/kernel/syscalls/syscall.tbl >>>> +++ b/arch/powerpc/kernel/syscalls/syscall.tbl >>>> @@ -505,3 +505,7 @@ >>>> 421 32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 >>>> 422 32 futex_time64 sys_futex sys_futex >>>> 423 32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval >>>> +424 common pidfd_send_signal sys_pidfd_send_signal >>>> +425 common io_uring_setup sys_io_uring_setup >>>> +426 common io_uring_enter sys_io_uring_enter >>>> +427 common io_uring_register sys_io_uring_register >>> >>> Acked-by: Michael Ellerman (powerpc) >>> >>> Lightly tested. >>> >>> The pidfd_test selftest passes. >> >> That reports pass for me too, although it fails to unshare the pid ns, which I >> assume is benign. If you run it as root it should work? >>> Ran the io_uring example from fio, which prints lots of: >> >> How did you invoke that? I had a play with the tests in: > > It's t/io_uring from the fio repo: > > git://git.kernel.dk/fio > > and you just run it ala: > > # make t/io_uring > # t/io_uring /dev/some_device Yeah that's all I did. >> will@autoplooker:~/liburing/test$ ./io_uring_register >> RELIMIT_MEMLOCK: 67108864 (67108864) >> [ 35.477875] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000070 >> [ 35.478969] Mem abort info: >> [ 35.479296] ESR = 0x96000004 >> [ 35.479785] Exception class = DABT (current EL), IL = 32 bits >> [ 35.480528] SET = 0, FnV = 0 >> [ 35.480980] EA = 0, S1PTW = 0 >> [ 35.481345] Data abort info: >> [ 35.481680] ISV = 0, ISS = 0x00000004 >> [ 35.482267] CM = 0, WnR = 0 >> [ 35.482618] user pgtable: 4k pages, 48-bit VAs, pgdp = (____ptrval____) >> [ 35.483486] [0000000000000070] pgd=0000000000000000 >> [ 35.484041] Internal error: Oops: 96000004 [#1] PREEMPT SMP >> [ 35.484788] Modules linked in: >> [ 35.485311] CPU: 113 PID: 3973 Comm: io_uring_regist Not tainted 5.1.0-rc3-00012-g40b114779944 #1 >> [ 35.486712] Hardware name: linux,dummy-virt (DT) >> [ 35.487450] pstate: 20400005 (nzCv daif +PAN -UAO) >> [ 35.488228] pc : link_pwq+0x10/0x60 >> [ 35.488794] lr : apply_wqattrs_commit+0xe0/0x118 >> [ 35.489550] sp : ffff000017e2bbc0 > > Huh, this looks odd, it's crashing inside the wq setup. Looks like you found a bug :) cheers