From nobody Sun Feb 5 16:17:54 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 4P8vgk4mh0z3kYK7 for ; Sun, 5 Feb 2023 16:17: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 4P8vgk2vb7z3xGK for ; Sun, 5 Feb 2023 16:17: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=1675613874; 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=tWe1v0XLyTfCDsZZ087YHDlmdSN3XOdbSSaqmIt4A1E=; b=d/bUzaSSSP6YcZZuvwob3IVk1p+F0XNKHJreaczIIPjLcYPSoIk5DXsJckclVznF59yQti Y3ZPdpcl5eZQBcY7ybWigAVOXFUYbHt9Z2BYpwcCUNcjN2ArTn3m0VktqzaI0eDnN/p/50 2DJ7CebhyKoUxDwvAf9UDXSdECtwcSnN0u57daoN/D/RgbXiFd1tQKBtToBi66qcSHHjRR aPBnoZT+FKq4IZjMm+gI4ROcmGg/7racIRTSVWidLVuMBI9gGDxvhGTFCVlXwl7rh77jpH KMCBkbz9SOqGdINMVa3dHZSed4Qb95Nxwi+CLfhVbZbBsSudUX+OaNFA/F0PSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675613874; a=rsa-sha256; cv=none; b=TxyF+Sgju96hjoXuTamlBd08KmHyjUl8+I3BF6A4WE5dWQRBWsQBpTmqLO5jcYZNPoa385 my2DxDkJlb5Uu9yTJCdW5GKiMpgmmI7JKFFxawd4OsWOC9B++ofvx6+0rgRdqctss9fMuE 2oLfYFAk4sM415PEraYhbidEGIiDww1ymouE+BWL0/n29g/yyMZ+JAhU7XHNNQCKmcZN4n o9oVpHNrE27BIaDY5M+gyNkWeUfsnjP36+9FW205yyK3eyNrtfxx8pKu6PbFQ5ChQC6Hhs HWOHL/d8Dms3Rz5LDckp7qrYIMtRwuUFkdf1JXntwa/jaZMZxHVIT9V1+uHtyQ== 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 4P8vgk20wVz11nB for ; Sun, 5 Feb 2023 16:17: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 315GHs82010551 for ; Sun, 5 Feb 2023 16:17:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 315GHsaL010550 for bugs@FreeBSD.org; Sun, 5 Feb 2023 16:17: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 269341] [msdosfs] deadlock with sendfile Date: Sun, 05 Feb 2023 16:17: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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269341 Bug ID: 269341 Summary: [msdosfs] deadlock with sendfile Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org I can reliably reproduce a deadlock on msdosfs in sendfile(2). I can't reproduce it on tmpfs, nfs, ZFS, UFS, or bfffs (a fusefs file system).=20 However, another user reported a similar hang in a different fuse file syst= em (PR #246886). Stack trace of the hung process: getblkx+0x67 breadn_flags+0x44 vfs_bio_getpages+0x354 msdosfs_getpages+0x3b vop_stdgetpages_async+0x49 vnode_pager_getpages_async+0x43 sendfile_swapin+0x570 vn_sendfile+0x9ba sendfile+0x117 amd64_syscall+0x12e fast_syscall_common+0xf8=20 Steps to Reproduce: 1) git clone git@github.com:asomers/fsx-rs.git 2) cd fsx-rs 3) git checkout 6882003d89fefb1f815c57c2f027f8ddefe83b58 4) truncate -s 1g /tmp/msdosfs.img 5) newfs_msdos /tmp/msdosfs.img 6) sudo mdconfig -a -t vnode -f /tmp/msdosfs.img 7) mkdir /tmp/msdos 8) sudo mount -t msdos /dev/md0 /tmp/msdos 9) env RUST_LOG=3Ddebug cargo run -- -f fsx.toml -N 1000 -P /tmp -S 6953641379939875300 /tmp/msdos/fsx.bin --=20 You are receiving this mail because: You are the assignee for the bug.=