From nobody Sun Nov 26 08:57:31 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SdMzv4GjSz50jvm for ; Sun, 26 Nov 2023 08:57:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SdMzv2Cvgz3HTR for ; Sun, 26 Nov 2023 08:57:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700989051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hp+dfYUdNaAnypdkJe11VpZCsyfnS34PHcyCkIWIZa4=; b=Vpxi5ItG0ywWSVHpBx4fBmLKwOtrF+x+0vHXpzdjqkPwOSXYEniV6m0RuvTPjmLwWNWfp/ 8tHZfJ5cAB+lSKGEm76/YvmRYAPQABsriHj0bmsm+M+8lWCnrmhaM2tjlVxCCIPF2toHsT apJE2YRLnlgmE+VcR9eXTyh0BKNJk9PrO0q1obrcj0KIz5AyrR4Fm8E2k3ADoQIAUldiPs uvuNrjeAHGywjBiGnfGAX0HlKFTc09KcMpJZBaNerUX6bIhxozFCFft/BR++l2sWv2gEvQ Oyu7s3boX6d5yVpMiPecHNB34dW2ETmOf7HRyvfOGf/4vqW2fFociEOjIjQvJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700989051; a=rsa-sha256; cv=none; b=mcCvRHSIbfiWBfvYf04GotXKK0om9PJ2+OVf4TD/2DYEvNnQrfXkbxtSjrYS2t9MiN0e+v qaWtBT54JE3oqDrgac7JS5d7YI4i+aPwUnUpp0UlZioQLUQMZyo9yQjHyPZ90Bxo4q9nU8 3spSfafxyOtiXc9LF0jRYtQZjmowZ2u++puM91hzNoRfYyI/BYjj+sZ+etnOQkb1faun1p Dr3ZMQln+FiqeFzlYuB7C/BsTaTsk0oMPquUPhnGolK3sFs0VYuS9BptuMocknAfR3dCjS MxprXJI+oNXyxA+OarFIiiPfmww9K0fKngjVVnUHv4v1ehApm3MhodgfOGf/jQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SdMzv1KHbzpZk for ; Sun, 26 Nov 2023 08:57:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3AQ8vVwG079726 for ; Sun, 26 Nov 2023 08:57:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AQ8vVLE079725 for bugs@FreeBSD.org; Sun, 26 Nov 2023 08:57:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 275348] Lots of aio issues Date: Sun, 26 Nov 2023 08:57:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pjfloyd@wanadoo.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275348 Bug ID: 275348 Summary: Lots of aio issues Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: pjfloyd@wanadoo.fr Attachment #246576 text/plain mime type: Created attachment 246576 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D246576&action= =3Dedit macOS aio testcase FreeBSD 13.2-RELEASE-p5 amd64 I've been trying to improved the handling of aio_read(v) and aio_write(v) in Valgrind. One of the tests that I've been using is an existing aio test for Darwin. T= here seem to be lots of issues when I run it on FreeBSD. 1. aio_read with an unaddressable buffer fails on macOS but not of FreeBSD.= OK that could be an implementation detail, I don't think that POSIX requires i= t to fail. 2. aio_return doesn't seem to clear the status after such an aio_read, et s= eems to remain stuck on EFAULT. To make that clear the sequence is aio_read with NULL buf aio_return aio_read with valid buf 3. doing 2 consecutive aio_reads doesn't get a fail from the second - I wou= ld expect the second to fail unless there has been a successful aio_return 4. doing a duplicate aio_return also does not fail 5. all the above points also apply to aio_write I haven't checked the v versions yet Added the Darwin testcase as an attachment. --=20 You are receiving this mail because: You are the assignee for the bug.=