From nobody Mon Dec 12 18:01:54 2022 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 4NW8b62zPxz4ktlY for ; Mon, 12 Dec 2022 18:01:54 +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 4NW8b61WPRz3mtQ for ; Mon, 12 Dec 2022 18:01:54 +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=1670868114; 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=quVS+xeaolACtT59BBlnriYdvPqeVMMscmnliHGhI3I=; b=KIZf4stQ/iJA9zV8lkFS//1/M7ANrhcEqBBtiBfZkPZLpLZW+lw2AvYtIJec9BhUWlyat4 ye04SO98dPP/Jf7iOOwx8idBy/fHHBRKc15rpz84MlH4e6WrTwe8CsBOcTuz0rlhRjHNlw sny4O6iqT543lGqFdFxqvrsoTF44Lr61oiR6Qrs3ORvGD5bHgAv8jOvy+M+zva88X/cb1+ Ot5P8vrqVeCJoE8kWEOwyiRfnxvj3QpyUUA3TjAsC1bPDEnY4vaIHTqBLBh7qn+sejgx1Y iK5LC4pGowihgxjLYoGZKVmxEpHqN6bz4xCNxQtOSJftzWq7lT/ghIVOfUMatw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670868114; a=rsa-sha256; cv=none; b=q7gveoepbceCLcaHlduexnM1p8jCDjSdMhqXhSLAdLfi9pV5ELWK3WMH8cF1bWiU0sZPBx X1TBzRhsUJAnnxRhwVAWjS/MGaUPleL/V3K+fl/kSwmXfat1QCvRZCPQ/5dI027AlyFPOW g+mOoM+64o7XpYurUsbwvF3DbQaiY4bKBbRMedTyvCVOS/QzHlGaY5Wm98BwZ1c9UaDk4s tK5D/EzKiOtpZCmuBHZiF7jF2oiaoZUDqg6C2ejpEy54HFJYq+PgFgWRHCLUZQPoqR4cSP RsQVYIKdQiqfeWVf08kuaKBbotj8bVo3EkgKu9oPNlhL4rC2dggZcLeaYmj53g== 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 4NW8b60cf7zk2v for ; Mon, 12 Dec 2022 18:01:54 +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 2BCI1sRm008394 for ; Mon, 12 Dec 2022 18:01:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BCI1smw008393 for bugs@FreeBSD.org; Mon, 12 Dec 2022 18:01:54 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 268338] zfsdev_ioctl prints an error message if called with FIONBIO Date: Mon, 12 Dec 2022 18:01:54 +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.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dfr@rabson.org 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 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268338 Bug ID: 268338 Summary: zfsdev_ioctl prints an error message if called with FIONBIO Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dfr@rabson.org While working on podman and buildah, I have noticed many messages logged on= the console that look like this: len 4 vecnum: 126 sizeof (zfs_cmd_t) 4528 After debugging this a little today, I discovered that this happens when something tries to set non-blocking i/o on a /dev/zfs filedescriptor which translates to a FIONBIO ioctl. The zfs storage layer in for buildah and podman tries to detect whether zfs= is available by opening /dev/zfs. The golang runtime libraries unconditionally= try to set the descriptor into non-blocking mode causing the error message. I can probably work around this in userland but it seems to me that the fre= ebsd ZFS port should not print this message to console but instead return a suit= able error. Currently it returns EINVAL after the printf which seems reasonable. --=20 You are receiving this mail because: You are the assignee for the bug.=