From nobody Wed Jan 17 18:22:24 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 4TFZ3h2q6wz56NK8 for ; Wed, 17 Jan 2024 18:22:24 +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 4TFZ3h1THVz4bd5 for ; Wed, 17 Jan 2024 18:22:24 +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=1705515744; 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=aS4HKgxdkvIJ8EJbYMoaxnE63KymY/zmJjhU3LYGOBw=; b=yUM7rz/TF881IOxdCgkTu4gbHQfO73pJzLfEL4iv+hGuhEmgL5GzGFw47KVgCqIMLX/T4L C0wV+2bApj40ASL+K6/nYUXbDNCxo5mwxti5Ffo7/HTlIV8c1Y5w68MqZH+CtZeYoxA9EI LOaub3OOrfGzqc1Jg3BltrBAmLA8HqRgWXjipYdEJkDaNltO9GErfuvkBk1bYDWOUT2ZoU NgY6ju3IZKUYc1AnFYQppwAyS7vXZ1RR04EwMminwtdjWTZNmRIL461H5DOw0zYpo0piZd whDCNMcv6gTbCYQ440x1czeB2c3NdCm0hh6fYY8csMgndlAYujrWygmqQdzY4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705515744; a=rsa-sha256; cv=none; b=uNTXDzeECGItgYHI7OH3wFoajr1RwASjSrFxzkHXAkqPAsvzPdynF0k1ChUZUZ91W3hBfk 08NxXoEFK3WAhGKTbVhqlF4wSDWW0gaQ/fmxIdLBM6tWTWJIeHFkKoku7pQVxTC3Ykslw4 5dWwxC8mqLte6S7cCxkH9katocOhENkVxT7qiscI560OtOSNfCwSyjC/pUvKIZNv0n36VQ dFKT7sg2sn59leUy083taxyBG7TDKNAKb9rfwucHdgvLn1ZGFeY8yAmafAQarPs6XM8uOE 2QAj5vhZIPunENPxI3cZN5g9WysJccsCvF4Q7X6Y83sX7dYV4zx1Q8urG9igVA== 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 4TFZ3h0b8mzZ0s for ; Wed, 17 Jan 2024 18:22:24 +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 40HIMOJ9068198 for ; Wed, 17 Jan 2024 18:22:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40HIMO1G068197 for bugs@FreeBSD.org; Wed, 17 Jan 2024 18:22:24 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 276408] panic: Assertion error == EJUSTRETURN failed at msdosfs_vnops.c:1195 Date: Wed, 17 Jan 2024 18:22:24 +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-STABLE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jfc@mit.edu 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 keywords 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=3D276408 Bug ID: 276408 Summary: panic: Assertion error =3D=3D EJUSTRETURN failed at msdosfs_vnops.c:1195 Product: Base System Version: 13.2-STABLE Hardware: Any OS: Any Status: New Keywords: crash Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jfc@mit.edu I used rsync to copy data to a FAT32 filesystem. My system crashed with an assertion failure in msdosfs_rename. I think the problem is bad error recovery. The first three lines of the core.txt below were in the message buffer but were not copied to /var/log/messages. They must have all happened in quick succession. So the kernel marked the filesystem read-only due to an error and the rename failed in an impossible way as a result. My kernel is 13.2-STABLE up through commit 4c4633fdffbe. The filesystem was mounted with -L zh_CN.UTF-8. This probably does not matter. The data is on ~10 year old USB drive that was mostly used with Windows. I am trying to clone the disk to reproduce the crash. /mnt: Freeing unused sector 7185542 6 fffff001 /dev/da13s1: remounting read-only due to corruption panic: Assertion error =3D=3D EJUSTRETURN failed at /usr/home/jfc/freebsd/src/sys/fs/msdosfs/msdosfs_vnops.c:1195 cpuid =3D 1 time =3D 1705507114 KDB: stack backtrace: #0 0xffffffff80c1a1d5 at kdb_backtrace+0x65 #1 0xffffffff80bcf522 at vpanic+0x152 #2 0xffffffff80bcf323 at panic+0x43 #3 0xffffffff80a78775 at msdosfs_rename+0xc45 #4 0xffffffff8115c81d at VOP_RENAME_APV+0x3d #5 0xffffffff80cc02de at kern_renameat+0x3ee #6 0xffffffff8108aec0 at amd64_syscall+0x140 #7 0xffffffff810601eb at fast_syscall_common+0xf8 [...] #4 0xffffffff80bcf323 in panic (fmt=3D) at /usr/home/jfc/freebsd/src/sys/kern/kern_shutdown.c:845 ap =3D {{gp_offset =3D 32, fp_offset =3D 48,=20 overflow_arg_area =3D 0xfffffe05a6054a90,=20 reg_save_area =3D 0xfffffe05a6054a30}} #5 0xffffffff80a78775 in msdosfs_rename (ap=3D) at /usr/home/jfc/freebsd/src/sys/fs/msdosfs/msdosfs_vnops.c:1195 toname =3D "2014VA~1JPG" oldname =3D "2014VA~1NRU" tdvp =3D 0xfffff806c7001000 fdvp =3D 0xfffff806c7001000 fvp =3D 0xfffff806791725b8 tvp =3D 0x0 tcnp =3D 0xfffffe05a6054c48 fcnp =3D 0xfffffe05a6054d20 pmp =3D 0xfffff8123e23de00 error =3D checkpath_locked =3D newparent =3D doingdirectory =3D blkoff =3D 2720 scn =3D 146065 nip =3D vp =3D fdip =3D 0xfffff8144ffc0400 fip =3D 0xfffff825f2a81d00 tdip =3D 0xfffff8144ffc0400 tip =3D to_diroffset =3D 2720 wait_scn =3D cn =3D bn =3D bp =3D dotdotp =3D pcl =3D #6 0xffffffff8115c81d in VOP_RENAME_APV ( vop=3D0xffffffff81aaf600 , a=3Da@entry=3D0xfffffe05a6= 054d78) at vnode_if.c:1672 rc =3D #7 0xffffffff80cc02de in VOP_RENAME (fdvp=3D,=20 fvp=3D, tdvp=3D, tvp=3D,=20 fcnp=3D, tcnp=3D) at ./vnode_if.h:853 a =3D {a_gen =3D {a_desc =3D 0xffffffff81b4ed70 },= =20 a_fdvp =3D 0xfffff806c7001000, a_fvp =3D 0xfffff806791725b8,=20 a_fcnp =3D 0xfffffe05a6054d20, a_tdvp =3D 0xfffff806c7001000,=20 a_tvp =3D 0xfffff806a87c9000, a_tcnp =3D 0xfffffe05a6054c48} #8 kern_renameat (td=3D0xfffffe03b0400020, oldfd=3D-100,=20 old=3D0x820c39d00 ,= =20 newfd=3D-100,=20 new=3D0x820c3a500 ,= =20 pathseg=3DUIO_USERSPACE) at /usr/home/jfc/freebsd/src/sys/kern/vfs_syscalls.c:3732 fromnd =3D { ni_dirp =3D 0x820c39d00 , ni_segflg =3D UIO_USERSPACE,=20 ni_rightsneeded =3D 0xffffffff81a016b8 ,=20 ni_startdir =3D 0xfffff806c7001000, ni_rootdir =3D 0xfffff801429a= a1e8,=20 ni_topdir =3D 0x0, ni_dirfd =3D -100, ni_lcf =3D 0, ni_filecaps = =3D { fc_rights =3D {cr_rights =3D {0, 0}}, fc_ioctls =3D 0x0,=20 fc_nioctls =3D -1, fc_fcntls =3D 0}, ni_vp =3D 0xfffff806791725= b8,=20 ni_dvp =3D 0xfffff806c7001000, ni_resflags =3D 0, ni_debugflags = =3D 3,=20 ni_loopcnt =3D 0, ni_pathlen =3D 1, ni_next =3D 0xfffff80175e1441= d "",=20 ni_cnd =3D {cn_origflags =3D 264208, cn_flags =3D 285476880,=20 cn_thread =3D 0xfffffe03b0400020, cn_cred =3D 0xfffff80d38c6cd0= 0,=20 cn_nameiop =3D DELETE, cn_lkflags =3D 2097152,=20 cn_pnbuf =3D 0xfffff80175e14400 ".2014ValentineBack.JPG.NrU9fM"= ,=20 cn_nameptr =3D 0xfffff80175e14400 ".2014ValentineBack.JPG.NrU9f= M",=20 cn_namelen =3D 29}, ni_cap_tracker =3D {tqh_first =3D 0x0,=20 tqh_last =3D 0xfffffe05a6054d60}, ni_dvp_seqc =3D 1977697309,=20 ni_vp_seqc =3D 4294965249} tond =3D { ni_dirp =3D 0x820c3a500 , ni_segflg =3D UIO_USERSPACE,=20 ni_rightsneeded =3D 0xffffffff81a016c8 ,=20 ni_startdir =3D 0xfffff806c7001000, ni_rootdir =3D 0xfffff801429a= a1e8,=20 ni_topdir =3D 0x0, ni_dirfd =3D -100, ni_lcf =3D 0, ni_filecaps = =3D { fc_rights =3D {cr_rights =3D {0, 0}}, fc_ioctls =3D 0x0,=20 fc_nioctls =3D -1, fc_fcntls =3D 0}, ni_vp =3D 0xfffff806a87c90= 00,=20 ni_dvp =3D 0xfffff806c7001000, ni_resflags =3D 0, ni_debugflags = =3D 3,=20 ni_loopcnt =3D 0, ni_pathlen =3D 1, ni_next =3D 0xfffff80142be0c1= 5 "",=20 ni_cnd =3D {cn_origflags =3D 526349, cn_flags =3D 285740045,=20 cn_thread =3D 0xfffffe03b0400020, cn_cred =3D 0xfffff80d38c6cd0= 0,=20 cn_nameiop =3D RENAME, cn_lkflags =3D 524288,=20 cn_pnbuf =3D 0xfffff80142be0c00 "2014ValentineBack.JPG",=20 cn_nameptr =3D 0xfffff80142be0c00 "2014ValentineBack.JPG",=20 cn_namelen =3D 21}, ni_cap_tracker =3D {tqh_first =3D 0x0,=20 tqh_last =3D 0xfffffe05a6054c88}, ni_dvp_seqc =3D 2160781574,=20 ni_vp_seqc =3D 4294967295} mp =3D 0xfffffe05fd4d8040 error =3D 0 fvp =3D 0xfffff806791725b8 tondflags =3D tvp =3D 0xfffff806a87c9000 tdvp =3D 0xfffff806c7001000 #9 0xffffffff8108aec0 in syscallenter (td=3D) at /usr/home/jfc/freebsd/src/sys/amd64/amd64/../../kern/subr_syscall.c:= 188 p =3D 0xfffffe04e1dcf008 sa =3D 0xfffffe03b04003f8 error =3D se =3D 0xffffffff81ac0670 sy_thr_static =3D true traced =3D _audit_entered =3D #10 amd64_syscall (td=3D0xfffffe03b0400020, traced=3D0) at /usr/home/jfc/freebsd/src/sys/amd64/amd64/trap.c:1181 ksi =3D {ksi_link =3D {tqe_next =3D 0xfffffe05a6054f30,=20 tqe_prev =3D 0xffffffff8108a018 }, ksi_info =3D { si_signo =3D -1337982944, si_errno =3D -509, si_code =3D -15096= 01472,=20 si_pid =3D -507, si_uid =3D 2785365616, si_status =3D -507,=20 si_addr =3D 0x46, si_value =3D {sival_int =3D -1509601680,=20 sival_ptr =3D 0xfffffe05a6054e70, sigval_int =3D -1509601680,= =20 sigval_ptr =3D 0xfffffe05a6054e70}, _reason =3D {_fault =3D { _trapno =3D -2135248234}, _timer =3D {_timerid =3D -2135248= 234,=20 _overrun =3D -1}, _mesgq =3D {_mqd =3D -2135248234}, _poll = =3D { _band =3D -2135248234}, __spare__ =3D {__spare1__ =3D -2135= 248234,=20 __spare2__ =3D {-2114959976, -1, 70, 0, 0, 0, 1951529631}}}= },=20 ksi_flags =3D -1509601616,=20 ksi_sigq =3D 0xffffffff80b5f282 } --=20 You are receiving this mail because: You are the assignee for the bug.=