Date: Thu, 09 Nov 2023 18:39:35 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274992] automount -c causes panic: invalid vfs_ops count 0 Message-ID: <bug-274992-227-6VwS8nPjJK@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-274992-227@https.bugs.freebsd.org/bugzilla/> References: <bug-274992-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274992 --- Comment #2 from Edward Tomasz Napierala <trasz@FreeBSD.org> --- Sorry, another driver messed up my crashdump; had to reboot to clear this u= p.=20 So: #4 0xffffffff80b4fb13 in panic (fmt=3D<unavailable>) at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:894 ap =3D {{gp_offset =3D 16, fp_offset =3D 48,=20 overflow_arg_area =3D 0xfffffe00f5dc0a50,=20 reg_save_area =3D 0xfffffe00f5dc09f0}} #5 0xffffffff80c3c98b in vfs_op_exit_locked (mp=3Dmp@entry=3D0xfffffe00f73= ad000) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_mount.c:1895 No locals. #6 0xffffffff80c3c9fc in vfs_op_exit (mp=3Dmp@entry=3D0xfffffe00f73ad000) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_mount.c:1908 No locals. #7 0xffffffff80c3f47f in vfs_domount_update (td=3Dtd@entry=3D0xfffff8000a0= fb000,=20 vp=3D0xfffff8002eeefa80, fsflags=3Dfsflags@entry=3D65536,=20 jail_export=3D<optimized out>, optlist=3Doptlist@entry=3D0xfffffe00f5dc= 0d50) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_mount.c:1561 export =3D {ex_flags =3D 335806548, ex_root =3D 4, ex_uid =3D 0,=20 ex_ngroups =3D -170128272,=20 ex_groups =3D 0xffffffff81760d00 <vop_islocked_desc>,=20 ex_addr =3D 0xfffff8002eeefa80, ex_addrlen =3D 112 'p',=20 ex_mask =3D 0xfffffe00f5dc0c98, ex_masklen =3D 1 '\001',=20 ex_indexfile =3D 0xfffffe00f5dc0c18 "\200w\034\002",=20 ex_numsecflavors =3D -170128184, ex_secflavors =3D {-512, -170128= 360,=20 -512, -170128184, -512}} o2export =3D {ex_flags =3D -2122951984, ex_root =3D 4294967295, ex_= anon =3D { cr_version =3D 787413632, cr_uid =3D 4294965248, cr_ngroups =3D= -512,=20 cr_groups =3D {4294965248, 0, 0, 4124838672, 4294966784,=20 2160297514, 4294967295, 4124838672, 4294966784, 2160222316,=20 4294967295, 129682944, 4294965248, 787413632, 4294965248,=20 4124838936}, {_cr_unused1 =3D 0xfffffe00f5dc0c18,=20 cr_pid =3D -170128360}}, ex_addr =3D 0x1, ex_addrlen =3D 0 '\= 000',=20 ex_mask =3D 0xfffffe00f5dc0c18, ex_masklen =3D 152 '\230',=20 ex_indexfile =3D 0xfffffe00f5dc0ba0 "",=20 ex_numsecflavors =3D -2134672048, ex_secflavors =3D {-1, 78741452= 8,=20 -2048, 4, 0}} mp =3D 0xfffffe00f73ad000 flag =3D 0 vfs_suser_failed =3D <optimized out> error =3D 2 rootvp =3D 0x0 fsid_up_len =3D <optimized out> fsid_up =3D 0xfffff800021c77a0 export_error =3D <optimized out> bufp =3D <optimized out> len =3D <optimized out> i =3D <optimized out> grps =3D <optimized out> #8 0xffffffff80c3b1f9 in vfs_domount (td=3Dtd@entry=3D0xfffff8000a0fb000,= =20 fstype=3Dfstype@entry=3D0xfffff800021c7760 "autofs",=20 fspath=3Dfspath@entry=3D0xfffff800021c7780 "/net",=20 fsflags=3Dfsflags@entry=3D65536, jail_export=3Dfalse,=20 optlist=3Doptlist@entry=3D0xfffffe00f5dc0d50) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_mount.c:1687 nd =3D {ni_dirp =3D 0xfffff800021c7780 "/net", ni_segflg =3D UIO_SY= SSPACE,=20 ni_rightsneeded =3D 0xffffffff816017d8 <cap_no_rights>,=20 ni_startdir =3D 0x0, ni_rootdir =3D 0xfffff80007bace00,=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 0xfffff8002eeefa= 80,=20 ni_dvp =3D 0xfffff800045e7380, ni_resflags =3D 1, ni_debugflags = =3D 3,=20 ni_loopcnt =3D 0, ni_pathlen =3D 1, ni_next =3D 0xfffff80007b9680= 4 "",=20 ni_cnd =3D {cn_flags =3D 335806548, cn_cred =3D 0xfffff80007a0f30= 0,=20 cn_nameiop =3D LOOKUP, cn_lkflags =3D 524288,=20 cn_pnbuf =3D 0xfffff80007b96800 "/net",=20 cn_nameptr =3D 0xfffff80007b96801 "net", cn_namelen =3D 3},=20 ni_cap_tracker =3D {tqh_first =3D 0x0, tqh_last =3D 0xfffffe00f5d= c0cc8},=20 ni_dvp_seqc =3D 2163107909, ni_vp_seqc =3D 8} error =3D <optimized out> vfsp =3D 0x0 vp =3D <unavailable> pathbuf =3D <optimized out> #9 0xffffffff80c39cb2 in vfs_donmount (td=3Dtd@entry=3D0xfffff8000a0fb000,= =20 fsflags=3D<optimized out>, fsflags@entry=3D65536,=20 fsoptions=3D0xfffff80001be3000) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_mount.c:998 fspath =3D 0xfffff800021c7780 "/net" errmsg =3D 0x0 fspathlen =3D 5 errmsg_len =3D 0 errmsg_pos =3D 3 autoro =3D false optlist =3D 0xfffff800021c77c0 error =3D 0 fstypelen =3D 7 fstype =3D 0xfffff800021c7760 "autofs" has_nonexport =3D <optimized out> jail_export =3D <optimized out> opt =3D <optimized out> tmp_opt =3D <optimized out> #10 0xffffffff80c3936c in sys_nmount (td=3D0xfffff8000a0fb000,=20 uap=3D0xfffff8000a0fb400) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_mount.c:475 flags =3D 65536 iovcnt =3D <optimized out> auio =3D <unavailable> error =3D 0 #11 0xffffffff810516b3 in syscallenter (td=3D0xfffff8000a0fb000) at /usr/home/trasz/git/freebsd-src/sys/amd64/amd64/../../kern/subr_syscall.c:1= 88 p =3D 0xfffffe00f9df7ac0 sa =3D 0xfffff8000a0fb3f0 error =3D <optimized out> se =3D 0xffffffff816c4ae0 <sysent+12096> sy_thr_static =3D true traced =3D <optimized out> _audit_entered =3D <optimized out> #12 amd64_syscall (td=3D0xfffff8000a0fb000, traced=3D0) at /usr/home/trasz/git/freebsd-src/sys/amd64/amd64/trap.c:1194 ksi =3D {ksi_link =3D {tqe_next =3D 0xfffffe00f5dc0f30,=20 tqe_prev =3D 0xffffffff81050714 <trap+1940>}, ksi_info =3D { si_signo =3D 0, si_errno =3D 0, si_code =3D 548267104, si_pid = =3D 8,=20 si_uid =3D 4124839648, si_status =3D -512,=20 si_addr =3D 0xffffffff80bc4759 <witness_warn+1001>, si_value = =3D { sival_int =3D 8, sival_ptr =3D 0x8, sigval_int =3D 8,=20 sigval_ptr =3D 0x8}, _reason =3D {_fault =3D {_trapno =3D 0},= _timer =3D { _timerid =3D 0, _overrun =3D 32768}, _mesgq =3D {_mqd =3D 0= },=20 _poll =3D {_band =3D 140737488355328}, _capsicum =3D {_syscal= l =3D 0},=20 __spare__ =3D {__spare1__ =3D 140737488355328, __spare2__ =3D= { 34377672, -2048, 3, 0, 0, 0, 65536}}}},=20 ksi_flags =3D -2128951196, ksi_sigq =3D 0xfffff8000a0fb000} The mount is: (kgdb) p *mp $1 =3D {mnt_vfs_ops =3D 0, mnt_kern_flag =3D 1073741824, mnt_flag =3D 0, mn= t_pcpu =3D 0xfffffe017332bfb0, mnt_rootvnode =3D 0x0, mnt_vnodecovered =3D 0xfffff8002= eeefe00, mnt_op =3D 0xffffffff8396fa10 <autofs_vfsops>, mnt_vfc =3D 0xffffffff8396f9c0 <autofs_vfsconf>, mnt_mtx =3D {lock_object= =3D {lo_name =3D 0xffffffff81135be2 "struct mount mtx", lo_flags =3D 16973824, = lo_data =3D 0, lo_witness =3D 0xfffff8042e575b00}, mtx_lock =3D 18446735277785329664}, mnt_gen =3D 1, mnt_list =3D {tqe_ne= xt =3D 0xfffffe00f960b100, tqe_prev =3D 0xfffffe00f73eb068}, mnt_syncer =3D 0xfffff8002ebe7540, mnt_ref =3D 3, mnt_nvnodelist =3D { tqh_first =3D 0xfffff8002eeefa80, tqh_last =3D 0xfffff8002ebe7568}, mnt_nvnodelistsize =3D 2, mnt_writeopcount =3D 0, mnt_opt =3D 0xfffff800010= f8c50, mnt_optnew =3D 0x0, mnt_stat =3D {f_version =3D 538182936, f_type =3D 207, f_flags =3D 0, f_bsize =3D 512, f_iosize =3D 0, f_blocks =3D 0, f_bfree= =3D 0, f_bavail =3D 0, f_files =3D 0, f_ffree =3D 0, f_syncwrites =3D 0, f_asyncwr= ites =3D 0, f_syncreads =3D 0, f_asyncreads =3D 0, f_nvnodelistsize =3D 2, f_spare0 =3D 0, f_spare =3D {0, 0, 0, 0, 0, 0, 0, 0, 0}, f_namemax =3D = 255, f_owner =3D 0, f_fsid =3D {val =3D {-822018296, 207}}, f_charspare =3D '\00= 0' <repeats 79 times>, f_fstypename =3D "autofs\000\000\000\000\000\000\000\000\000", f_mntfro= mname =3D "map -hosts", '\000' <repeats 1013 times>, f_mntonname =3D "/net", '\00= 0' <repeats 1019 times>}, mnt_cred =3D 0xfffff80001c1cc00, mnt_data =3D 0xfffffe00f7a97000, mnt_time =3D 0, mnt_iosize_max =3D 65536, mnt_export =3D 0x0, mnt_label =3D 0x0, mnt_hashseed =3D 1962805827, mnt_loc= kref =3D 1, mnt_secondary_writes =3D 0, mnt_secondary_accwrites =3D 0, mnt_susp_owner =3D 0x0, mnt_exjail =3D 0x0, mnt_gjprovider =3D 0x0, mnt_l= istmtx =3D {lock_object =3D {lo_name =3D 0xffffffff811d93f1 "struct mount vlist mtx", = lo_flags =3D 16973824, lo_data =3D 0, lo_witness =3D 0xfffff8042e586280}, mtx_lock =3D 0}, mnt_lazyvnodelis= t =3D {tqh_first =3D 0x0, tqh_last =3D 0xfffffe00f73ada50}, mnt_lazyvnodelistsize= =3D 0, mnt_upper_pending =3D 0, mnt_explock =3D {lock_object =3D { lo_name =3D 0xffffffff8126d967 "explock", lo_flags =3D 108199936, lo_= data =3D 0, lo_witness =3D 0xfffff8042e586080}, lk_lock =3D 1, lk_exslpfail =3D 0, l= k_pri =3D 64, lk_timo =3D 0}, mnt_uppers =3D {tqh_first =3D 0x0, tqh_last =3D 0xfffffe00f73ada90}, mnt_notify =3D {tqh_first =3D 0x0, tq= h_last =3D 0xfffffe00f73adaa0}, mnt_taskqueue_link =3D {stqe_next =3D 0x0}, mnt_taskqueue_flags =3D 0, mnt_unmount_retries =3D 0} --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274992-227-6VwS8nPjJK>