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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5C31C83F11 for ; Mon, 28 Aug 2023 01:46:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229471AbjH1BqF convert rfc822-to-8bit (ORCPT ); Sun, 27 Aug 2023 21:46:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbjH1Bp6 (ORCPT ); Sun, 27 Aug 2023 21:45:58 -0400 Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBE68113 for ; Sun, 27 Aug 2023 18:45:56 -0700 (PDT) References: <520.NvTX.6mXZpmfh4Ju.1awpAS@seznam.cz> <7ce98f53-d80d-fc78-1bff-419eedaf8e36@bell.net> User-agent: mu4e 1.10.6; emacs 30.0.50 From: Sam James To: Helge Deller Cc: John David Anglin , Vidra.Jonas@seznam.cz, linux-parisc@vger.kernel.org Subject: Re: Possible io_uring bug in PA-RISC kernel 6.1.46 Date: Mon, 28 Aug 2023 02:45:33 +0100 Organization: Gentoo In-reply-to: Message-ID: <875y50gcrz.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Helge Deller writes: > On 8/27/23 22:35, John David Anglin wrote: >> On 2023-08-27 7:25 a.m., Vidra.Jonas@seznam.cz wrote: >>> The issue is that a call to >>> `io_uring_enter(fd, 2, 2, IORING_ENTER_GETEVENTS)` >>> returns 0, and libuv reacts to that by aborting, probably on this line: >>> https://github.com/libuv/libuv/blob/65dc822d6c20a9130fa100c7b46d751f8cf4d233/src/unix/linux.c#L1252 >>> (I'm saying probably, because gdb seems to be buggy on my machine and I >>> don't really trust its output, so I rely on strace instead, but that >>> doesn't support backtraces on the PA-RISC.) >> I have the attached io_uring patch on 6.1.46.  It's back ported from 6.4. >> >> libuv make check was successful on my system. > > Did the libuv check failed on 6.1.46 for you? > I just tried plain 6.1.49 and my machine crashed.... > I can't test 6.1.x right now, but fwiw, 6.4.12 passes libuv's test suite. best, sam