From nobody Thu Jan 25 01:06:26 2024 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 4TL2hg0cCwz57LBl for ; Thu, 25 Jan 2024 01:06:27 +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 4TL2hf40Chz43C6 for ; Thu, 25 Jan 2024 01:06:26 +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=1706144786; 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=htIsuMvHgv4f+u09+2/hK2mcKaxIO465CWTWh3EZ6G8=; b=AUiwFOgwc2bvLwVVo0ImVRtaQZELLgl8SXgLivMh9HsU82vxFmKRETIDzAnvcJQuty3rNx Uv/0Yv1zc6x51XxL8kBYeE8EBLuUhYPoL8spiKkG7S/4RhWSym66H6KdILG3zSQY7iNDQJ W5/BqNJYrLUF++/HZ7wpPrJ/9OcWYwU1+0l0U4KhckctD2iqE9HYQXfnf8EZ6x1k5NNOsr OEkbf64F1IteJeryQnmbMssT7k5KNEkFmi9X55Zykz4zGA34EsyqLXyCXVADeSSTTnYJ5k eq4A9IvEBNo8WT2Fx6KALl6qlhEfH7ESrlVqVy3NLI62SXeXwPQYGgUeTTZ66Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706144786; a=rsa-sha256; cv=none; b=wpJsUJ251q5QYxG8ezqHDvPpNuDCnICn0dVGSXy8l7oTuS3KAGV9ns3AkGPe/MA1TpK42U RFEg7Ay9MwC1nvgGBewM23t32WXR84lJFTfNrrWciEfnh85D7xIL+oRQgk0m+E+atJqv+u qeW07exqyplXlxMWWVpXeOmv+75OxQKgKP+of3oEj5DeF2FlE4G5HY5qS1855UCWgcdjGx S/aBORYmYbzXiDp1hqsc8Mz8/5uPwON/+AA32MSe2B+L5S2NskOzMluesVRxipoZdiVqeh EgTzdmwg+1ZZx5CrI0vSAYT3m8wjWiO26lzi+IqjVA5VXKAZMJchIaFMaxbyTA== 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 4TL2hf2xZSzcl5 for ; Thu, 25 Jan 2024 01:06:26 +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 40P16QHG038842 for ; Thu, 25 Jan 2024 01:06:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40P16Q6E038833 for bugs@FreeBSD.org; Thu, 25 Jan 2024 01:06:26 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 276602] [fusefs]: invalid value for st_birthtime.tv_nsec Date: Thu, 25 Jan 2024 01:06:26 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: asomers@FreeBSD.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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276602 Bug ID: 276602 Summary: [fusefs]: invalid value for st_birthtime.tv_nsec Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org If a file system's on-disk format does not support st_birthtime, it isn't c= lear what value it should return in stat(2). Neither our man page nor the OpenG= roup specifies. But our convention is to return { .tv_sec =3D -1, .tv_nsec =3D = 0 }.=20 fusefs is different. It returns { .tv_sec =3D -1, .tv_nsec =3D -1 }. It's= done that ever since the initial import in SVN r241519. Most software apparently handles this just fine. It must, because we've ha= d no complaints. But the Rust standard library will panic when reading such a timestamp during std::fs::metadata, even if the caller doesn't care about t= hat particular value. That's a bug, and should be fixed. But we can help out = by never returning such values. https://github.com/rust-lang/rust/issues/108277 --=20 You are receiving this mail because: You are the assignee for the bug.=