Date: Sun, 18 Feb 2018 20:14:48 -0500 From: Allan Jude <allanjude@freebsd.org> To: freebsd-fs <freebsd-fs@freebsd.org>, Kirk McKusick <mckusick@mckusick.com> Subject: UFS panic when attempting to mount wrong device Message-ID: <8be41fc8-ea0a-da87-da89-68f531f1cb88@freebsd.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MEUFdTuAaAJ3esYQ3eBJeNiwxGWZoW9qo Content-Type: multipart/mixed; boundary="NXLZSNJkPBcU5vQ1YpYd484oxPWd4zf7U"; protected-headers="v1" From: Allan Jude <allanjude@freebsd.org> To: freebsd-fs <freebsd-fs@freebsd.org>, Kirk McKusick <mckusick@mckusick.com> Message-ID: <8be41fc8-ea0a-da87-da89-68f531f1cb88@freebsd.org> Subject: UFS panic when attempting to mount wrong device --NXLZSNJkPBcU5vQ1YpYd484oxPWd4zf7U Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable I accidentally forgot to specify -t cd9660 when mounting a CD image, and UFS panicked the machine: Unread portion of the kernel message buffer: panic: vtopde on a uva/gpa 0x0 cpuid =3D 1 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0034409550 vpanic() at vpanic+0x18d/frame 0xfffffe00344095b0 vpanic() at vpanic/frame 0xfffffe0034409630 pmap_kextract() at pmap_kextract+0x121/frame 0xfffffe0034409660 free() at free+0x5e/frame 0xfffffe00344096a0 ffs_mount() at ffs_mount+0xe2f/frame 0xfffffe0034409840 vfs_donmount() at vfs_donmount+0xf56/frame 0xfffffe0034409a80 sys_nmount() at sys_nmount+0x72/frame 0xfffffe0034409ac0 amd64_syscall() at amd64_syscall+0x79b/frame 0xfffffe0034409bf0 fast_syscall_common() at fast_syscall_common+0x101/frame 0x7fffffffd990 (kgdb) bt #0 __curthread () at ./machine/pcpu.h:230 #1 doadump (textdump=3D1) at /zroot/zfs_zstd/head/sys/kern/kern_shutdown.c:347 #2 0xffffffff80ac9242 in kern_reboot (howto=3D260) at /zroot/zfs_zstd/head/sys/kern/kern_shutdown.c:416 #3 0xffffffff80ac980d in vpanic (fmt=3D<optimized out>, ap=3D0xfffffe00344095f0) at /zroot/zfs_zstd/head/sys/kern/kern_shutdown.c= :812 #4 0xffffffff80ac9620 in kassert_panic (fmt=3D0xffffffff81157632 "vtopde= on a uva/gpa 0x%0lx") at /zroot/zfs_zstd/head/sys/kern/kern_shutdown.c:69= 8 #5 0xffffffff80f683a1 in vtopde (va=3D0) at /zroot/zfs_zstd/head/sys/amd64/amd64/pmap.c:835 #6 pmap_kextract (va=3D0) at /zroot/zfs_zstd/head/sys/amd64/amd64/pmap.c= :2237 #7 0xffffffff80aa3f2e in vtoslab (va=3D0) at /zroot/zfs_zstd/head/sys/vm/uma_int.h:455 #8 free (addr=3D0x8, mtp=3D0xffffffff8189bb20 <M_UFSMNT>) at /zroot/zfs_zstd/head/sys/kern/kern_malloc.c:701 #9 0xffffffff80dc278f in ffs_mountfs (devvp=3D<optimized out>, mp=3D<optimized out>, td=3D<optimized out>) at /zroot/zfs_zstd/head/sys/ufs/ffs/ffs_vfsops.c:1047 #10 ffs_mount (mp=3D0xfffff80085dda000) at /zroot/zfs_zstd/head/sys/ufs/ffs/ffs_vfsops.c:531 #11 0xffffffff80b8ebc6 in vfs_domount_first (td=3D<optimized out>, fspath=3D0xfffff80003723800 "/mnt", vp=3D0xfffff80085baf938, vfsp=3D<opti= mized out>, fsflags=3D<optimized out>, optlist=3D<optimized out>) at /zroot/zfs_zstd/head/sys/kern/vfs_mount.c:827 #12 vfs_domount (td=3D<optimized out>, fstype=3D<optimized out>, fspath=3D<optimized out>, fsflags=3D<optimized out>, optlist=3D<optimized= out>) at /zroot/zfs_zstd/head/sys/kern/vfs_mount.c:1117 #13 vfs_donmount (td=3D0xfffff800139c6560, fsflags=3D<optimized out>, fsoptions=3D0xfffff800054d6e00) at /zroot/zfs_zstd/head/sys/kern/vfs_mount.c:684 #14 0xffffffff80b8dc42 in sys_nmount (td=3D0xfffff800139c6560, uap=3D0xfffff800139c6918) at /zroot/zfs_zstd/head/sys/kern/vfs_mount.c:42= 7 #15 0xffffffff80f7ed0b in syscallenter (td=3D0xfffff800139c6560) at /zroot/zfs_zstd/head/sys/amd64/amd64/../../kern/subr_syscall.c:134 #16 amd64_syscall (td=3D0xfffff800139c6560, traced=3D0) at /zroot/zfs_zstd/head/sys/amd64/amd64/trap.c:935 #17 0xffffffff80f5a66d in fast_syscall_common () at /zroot/zfs_zstd/head/sys/amd64/amd64/exception.S:480 #18 0x0000000800c78000 in ?? () That that maybe a double free? --=20 Allan Jude --NXLZSNJkPBcU5vQ1YpYd484oxPWd4zf7U-- --MEUFdTuAaAJ3esYQ3eBJeNiwxGWZoW9qo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJaiiULAAoJEBmVNT4SmAt+Cb4P/1sa5EoKMWpU5+WQ3AI5Dw34 bhyWtB/f0zKi/pfRv8/ZUi70rixFFEeSI/DZ0mQ5v5h86SV9LiqouonHH2aeGQBs +UkOjQ5Pfs87zwlGxjC4ifJQbqNe32epU8qwjvjRq0RJeo/YNwrn1EXpmXpJNC4n 2s7vXBVtPXTDAiHPSeHc5ZsXyiOAM4RiUntROqhJ6ynx3t8ZVodpSAdruz9Qbqup 229dqTUSeaGY/s6srd1ncviO6BfxdQMtXb/HE7lNyMwuvHApgN7GYoS/VEFHFKPg WUSJiG5TxqosZm9ajnxbZlk98MYU5yzZ42CITm3icKrmDkQU5mHyaLBK+iGvp5Mo eyUUeuVRudedzWa2D7hdzVmuR41xSvAcGfBsYgtPOf9njIeC88PE55FecRN7TYem wMlaLAPrm6SqNtJPcQjNyQhPbc0FbLPMhXDlTyHuZAO8InwW/bXTt/vjsEIxAA+j gTeindtRetuOEAPQNMDZ0+OcAPi5pvSeXoAe/cbcjnVVHLYJEDZsrv2ZYm+iixPr yS4N5DAduVyBmxX1sRJbCSFa/AeTxf0naD06phin9KLEf4/2eQmB2lBcLVXL91cI R4seJxrIVhPsXtYGsknJLK0Q0+UvH6HJIJ5bqvZJdKVs25pVOWlKuTpEoxV1f1rH 61hfArUOImX+K9phkqRE =y09a -----END PGP SIGNATURE----- --MEUFdTuAaAJ3esYQ3eBJeNiwxGWZoW9qo--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8be41fc8-ea0a-da87-da89-68f531f1cb88>