GENERIC from Tue Oct 30 16:07:27 2012 +0200, r242305+seekdir c2155f0, vmcore.488 GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb 524288K of memory above 4GB ignored Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #0 r242305+c2155f0: Tue Oct 30 21:19:15 CET 2012 pho@x4.osted.lan:/var/tmp/deviant2/sys/i386/compile/PHO i386 WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. CPU: AMD Phenom(tm) 9150e Quad-Core Processor (1800.01-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x100f23 Family = 0x10 Model = 0x2 Stepping = 3 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x7ff TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 3531587584 (3367 MB) : Trying to mount root from ufs:/dev/ad4s1a [rw]... Setting hostuuid: 00000000-0000-0000-0000-00218515337d. Setting hostid: 0x6b64ac17. Starting ddb. Entropy harvesting: interrupts ethernet point_to_point kickstart. warning: total configured swap (4194304 pages) exceeds maximum recommended amount (3890432 pages). warning: increase kern.maxswzone or reduce amount of swap. Starting file system checks: /dev/ad4s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad4s1a: clean, 598384 free (1560 frags, 74603 blocks, 0.2% fragmentation) /dev/ad4s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad4s1f: clean, 139151 free (5279 frags, 16734 blocks, 0.5% fragmentation) /dev/label/tmp: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/label/tmp: clean, 43240601 free (3729 frags, 5404609 blocks, 0.0% fragmentation) /dev/ad4s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad4s1d: clean, 1953923 free (212075 frags, 217731 blocks, 2.1% fragmentation) /dev/ad4s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad4s1e: clean, 7890363 free (39283 frags, 981385 blocks, 0.2% fragmentation) Mounting local file systems:. Setting hostname: x4.osted.lan. re0: link state changed to DOWN re0: link state changed to UP Starting Network: lo0 re0 fwe0 fwip0. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 re0: flags=8843 metric 0 mtu 1500 options=8209b ether 00:21:85:15:33:7d inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::221:85ff:fe15:337d%re0 prefixlen 64 scopeid 0x1 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 02:dc:10:62:ad:eb nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 0.dc.10.0.1.62.ad.eb.a.2.ff.fe.0.0.0.0 nd6 options=29 Starting devd. Starting Network: fwe0. fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 02:dc:10:62:ad:eb nd6 options=29 ch 1 dma -1 Starting Network: fwip0. fwip0: flags=8802 metric 0 mtu 1500 lladdr 0.dc.10.0.1.62.ad.eb.a.2.ff.fe.0.0.0.0 nd6 options=29 add net default: gateway 192.168.1.1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 add net fe80::: gateway ::1 add net ff02::: gateway ::1 ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/kde4/lib /usr/local/lib/compat /usr/local/lib/compat/pkg /usr/local/lib/gcc46 /usr/local/lib/mysql /usr/local/lib/nss /usr/local/lib/qt4 /usr/local/lib/virtualbox a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout Creating and/or trimming log files. Starting syslogd. No core dumps found. Additional ABI support: linux. Starting rpcbind. NFS access cache time=60 lock order reversal: 1st 0xe191d660 bufwait (bufwait) @ kern/vfs_bio.c:2633 2nd 0xcab5a600 dirhash (dirhash) @ ufs/ufs/ufs_dirhash.c:284 KDB: stack backtrace: db_trace_self_wrapper(c10a5750,2e687361,38323a63,c1000a34,ca8a30b4,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0afde4b,c10a9320,c13b0ea0,11c,f2754848,...) at kdb_backtrace+0x2a _witness_debugger(c10a9320,cab5a600,c10db33e,c7d82818,c10dafd0,...) at _witness_debugger+0x25 witness_checkorder(cab5a600,9,c10dafc7,11c,0,...) at witness_checkorder+0x86f _sx_xlock(cab5a600,0,c10dafc7,11c,ca8662b8,...) at _sx_xlock+0xa5 ufsdirhash_acquire(e191d600,ca8662b8,130,e23d1ee8,f2754918,...) at ufsdirhash_acquire+0x48 ufsdirhash_add(ca8662b8,f27549c4,1ee8,f2754904,f2754908,...) at ufsdirhash_add+0x13 ufs_direnter(cab62438,cab98168,f27549c4,f2754b5c,e1921220,...) at ufs_direnter+0x799 ufs_mkdir(f2754bec,c10ffd71,c1222060,cab62438,f2754c00,...) at ufs_mkdir+0xa6f VOP_MKDIR_APV(c120db40,f2754bec,f2754b5c,f2754b84,28803020,...) at VOP_MKDIR_APV+0x100 kern_mkdirat(ca8a3000,ffffff9c,28803020,0,1c0,...) at kern_mkdirat+0x20c kern_mkdir(ca8a3000,28803020,0,1c0,f2754cfc,...) at kern_mkdir+0x2e sys_mkdir(ca8a3000,f2754ccc,e43ae7fb,0,f2754cc4,...) at sys_mkdir+0x29 syscall(f2754d08) at syscall+0x2fe Xint0x80_syscall() at Xint0x80_syscall+0x21 --- syscall (136, FreeBSD ELF32, sys_mkdir), eip = 0x2816958f, esp = 0xbfbfd8fc, ebp = 0xbfbfdda8 --- Clearing /tmp (X related). Starting mountd. Starting nfsuserd. Starting nfsd. Recovering vi editor sessions:lock order reversal: 1st 0xcaedca30 ufs (ufs) @ kern/vfs_lookup.c:519 2nd 0xe1925ee0 bufwait (bufwait) @ ufs/ffs/ffs_vnops.c:261 3rd 0xcaedc760 ufs (ufs) @ kern/vfs_subr.c:2169 KDB: stack backtrace: db_trace_self_wrapper(c10a5750,3a632e73,a313632,0,c62bb080,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0afde4b,c10a9339,c13b0ab8,879,f2758360,...) at kdb_backtrace+0x2a _witness_debugger(c10a9339,caedc760,c1090c4b,c7d827b0,c10b149a,...) at _witness_debugger+0x25 witness_checkorder(caedc760,9,c10b1491,879,0,...) at witness_checkorder+0x86f __lockmgr_args(caedc760,80100,caedc7cc,0,0,...) at __lockmgr_args+0x915 ffs_lock(f275846c,c0b1064c,5de,c0b1064c,c109f1df,...) at ffs_lock+0xa1 VOP_LOCK1_APV(c120db40,f275846c,ca8773a4,c1221de0,caedc708,...) at VOP_LOCK1_APV+0xf3 _vn_lock(caedc708,80100,c10b1491,879,ec,...) at _vn_lock+0x78 vget(caedc708,80100,ca8772f0,50,0,...) at vget+0x99 vfs_hash_get(cab708c4,15edb1,80000,ca8772f0,f27585b8,...) at vfs_hash_get+0xed ffs_vgetf(cab708c4,15edb1,80000,f27585b8,1,...) at ffs_vgetf+0x49 softdep_sync_buf(caedc9d8,e1925e80,1,107,0,...) at softdep_sync_buf+0xac9 ffs_syncvnode(caedc9d8,1,0,c13b0aa8,c11de2c8,...) at ffs_syncvnode+0x24c ffs_truncate(caedc9d8,200,0,880,ca827680,...) at ffs_truncate+0x8b5 ufs_direnter(caedc9d8,caedc708,f275892c,f2758bc0,0,...) at ufs_direnter+0x980 ufs_makeinode(f2758bc0,c120e100,f2758b18,f2758a80,c0eed720,...) at ufs_makeinode+0x65d ufs_create(f2758b18,c10fff38,c1222060,caedc9d8,f2758b2c,...) at ufs_create+0x30 VOP_CREATE_APV(c120db40,f2758b18,f2758bc0,f2758ab0,ca8773a4,...) at VOP_CREATE_APV+0x100 vn_open_cred(f2758b80,f2758c20,1b0,0,ca827680,...) at vn_open_cred+0x195 vn_open(f2758b80,f2758c20,1b0,ca7e6dc8,0,...) at vn_open+0x3b kern_openat(ca8772f0,ffffff9c,28c72f60,0,a03,...) at kern_openat+0x1e2 kern_open(ca8772f0,28c72f60,0,a02,1b0,...) at kern_open+0x35 sys_open(ca8772f0,f2758ccc,3ac21b61,0,f2758cc4,...) at sys_open+0x30 syscall(f2758d08) at syscall+0x2fe Xint0x80_syscall() at Xint0x80_syscall+0x21 --- syscall (5, FreeBSD ELF32, sys_open), eip = 0x28423d5f, esp = 0xbfbfb52c, ebp = 0xbfbfb5b8 --- . Updating motd:. Starting ntpd. Removing stale Samba tdb files: ....... done Starting nmbd. Starting smbd. Starting winbindd. Starting default moused. Configuring syscons: keymap blanktime. Starting sshd. Starting cron. Local package initialization: backuplock order reversal: 1st 0xcab62b98 ufs (ufs) @ kern/vfs_mount.c:1237 2nd 0xca86aa30 devfs (devfs) @ ufs/ffs/ffs_softdep.c:1829 KDB: stack backtrace: db_trace_self_wrapper(c10a5750,38313a63,a3932,cae60490,8,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0afde4b,c10a9320,c13b0478,725,f276498c,...) at kdb_backtrace+0x2a _witness_debugger(c10a9320,ca86aa30,c109c054,c7d82610,c10d73e2,...) at _witness_debugger+0x25 witness_checkorder(ca86aa30,9,c10d73d9,725,ca86aa9c,...) at witness_checkorder+0x86f __lockmgr_args(ca86aa30,80400,ca86aa9c,0,0,...) at __lockmgr_args+0x915 vop_stdlock(f2764a94,c13e5f20,4,c109f1df,ec,...) at vop_stdlock+0x65 VOP_LOCK1_APV(c11cd120,f2764a94,c13e5f20,c1221de0,ca86a9d8,...) at VOP_LOCK1_APV+0xf3 _vn_lock(ca86a9d8,80400,c10d73d9,725,0,...) at _vn_lock+0x78 softdep_flushworklist(cab71000,f2764b4c,ca877000,612,cab624fc,...) at softdep_flushworklist+0x47 ffs_sync(cab71000,1,f2764ba0,50f,c1baf710,...) at ffs_sync+0x3bf dounmount(cab71000,8080000,ca877000,493,c,...) at dounmount+0x400 sys_unmount(ca877000,f2764ccc,6af7af24,0,f2764cc4,...) at sys_unmount+0x3d2 syscall(f2764d08) at syscall+0x2fe Xint0x80_syscall() at Xint0x80_syscall+0x21 --- syscall (22, FreeBSD ELF32, sys_unmount), eip = 0x280c46a7, esp = 0xbfbfd67c, ebp = 0xbfbfd748 --- ** /dev/label/tmp ** Last Mounted on /tmp ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 21778 files, 75073380 used, 43240601 free (3729 frags, 5404609 blocks, 0.0% fragmentation) ***** FILE SYSTEM IS CLEAN ***** ** /dev/label/tmp ** Last Mounted on /tmp ** Phase 1 - Check Blocks and Sizes Oct 31 07:23:53 x4 su: pho to root on /dev/pts/0 ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 21778 files, 75073380 used, 43240601 free (3729 frags, 5404609 blocks, 0.0% fragmentation) ***** FILE SYSTEM IS CLEAN ***** fsck -y /tmp watchdogd. Starting inetd. Wed Oct 31 07:24:38 CET 2012 FreeBSD/i386 (x4.osted.lan) (console) login: 20121031 07:32:46 all: f_offset.sh 20121031 07:36:21 all: kinfo2.sh 20121031 08:06:26 all: suj4.sh 20121031 08:52:56 all: mac_chkexec.sh 20121031 08:53:00 all: ffs_syncvnode2.sh Oct 31 08:53:09 x4 kernel: pid 10010 (rw), uid 1004 inumber 131074 on /mnt: filesystem full Oct 31 09:03:33 x4 kernel: pid 11248 (mkdir), uid 1004 inumber 196684 on /mnt: filesystem full Oct 31 09:03:33 x4 kernel: pid 11225 (rw), uid 1004 inumber 131082 on /mnt: filesystem full Oct 31 09:07:54 x4 kernel: pid 13093 (rw), uid 1004 inumber 196926 on /mnt: filesystem full Oct 31 09:07:54 x4 kernel: pid 13091 (creat), uid 1004 inumber 196899 on /mnt: filesystem full Oct 31 09:10:11 x4 kernel: pid 14034 (rw), uid 1004 inumber 131104 on /mnt: filesystem full Oct 31 09:10:11 x4 kernel: pid 14014 (creat), uid 1004 inumber 131105 on /mnt: filesystem full Oct 31 09:12:33 x4 kernel: pid 14959 (rw), uid 1004 inumber 196679 on /mnt: filesystem full Oct 31 09:12:33 x4 kernel: pid 14969 (mkdir), uid 1004 inumber 3753 on /mnt: filesystem full Oct 31 09:22:23 x4 kernel: pid 21152 (rw), uid 1004 inumber 196711 on /mnt: filesystem full Oct 31 09:22:23 x4 kernel: pid 21160 (mkdir), uid 1004 inumber 8 on /mnt: filesystem full Oct 31 09:22:24 x4 kernel: pid 21153 (creat), uid 1004 inumber 196716 on /mnt: filesystem full 20121031 09:24:37 all: snap6.sh Oct 31 09:27:58 x4 kernel: pid 23026 (dd), uid 0 inumber 172 on /var: filesystem full lock order reversal: 1st 0xcdcd7d00 ufs (ufs) @ ufs/ffs/ffs_snapshot.c:1628 2nd 0xca7d751c snaplk (snaplk) @ ufs/ffs/ffs_snapshot.c:2630 KDB: stack backtrace: db_trace_self_wrapper(c10a5750,632e746f,3336323a,a30,ffffffff,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0afde4b,c10a9320,c13af720,a46,f28381e4,...) at kdb_backtrace+0x2a _witness_debugger(c10a9320,ca7d751c,c10d6e99,c7d83038,c10d6e22,...) at _witness_debugger+0x25 witness_checkorder(ca7d751c,9,c10d6e19,a46,0,...) at witness_checkorder+0x86f __lockmgr_args(ca7d751c,20100,ca8694fc,0,0,...) at __lockmgr_args+0x11f0 try_free_snapdata(ca7d751c,100000,0,0,0,...) at try_free_snapdata+0xc9 ffs_snapremove(cdcd7ca8,c10d6d57,f283834c,c0b0e4d7,c10a975f,...) at ffs_snapremove+0x1b1 ffs_truncate(cdcd7ca8,0,0,800,0,...) at ffs_truncate+0x647 ffs_snapshot(cab708c4,ca718c00,c10da310,1a9,0,...) at ffs_snapshot+0x2a85 ffs_mount(cab708c4,cf563000,ff,3ab,96d,...) at ffs_mount+0x1ca7 vfs_donmount(ca8715e0,211000,0,ca7d5b80,ca7d5b80,...) at vfs_donmount+0x1377 sys_nmount(ca8715e0,f2838ccc,552063b9,0,f2838cc4,...) at sys_nmount+0x7f syscall(f2838d08) at syscall+0x2fe Xint0x80_syscall() at Xint0x80_syscall+0x21 --- syscall (378, FreeBSD ELF32, sys_nmount), eip = 0x280c2ca7, esp = 0xbfbfd30c, ebp = 0xbfbfda88 --- Oct 31 09:28:13 x4 kernel: pid 23025 (mksnap_ffs), uid 0 inumber 174 on /var: filesystem full Oct 31 09:28:15 x4 kernel: pid 963 (syslogd), uid 0 inumber 6052914 on /var: filesystem full 20121031 09:28:19 all: mlockall2.sh Oct 31 09:28:16 x4 kernel: pid 963 (syslogd), uid 0 inumber 6052914 on /var: filesystem full 20121031 10:14:47 all: recursiveflushes.sh lock order reversal: 1st 0xe1b34d60 bufwait (bufwait) @ ufs/ffs/ffs_vnops.c:261 2nd 0xca7d751c snaplk (snaplk) @ ufs/ffs/ffs_snapshot.c:2299 KDB: stack backtrace: db_trace_self_wrapper(c10a5750,632e746f,3932323a,c1000a39,f2a6a2a4,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0afde4b,c10a9320,c13afae8,8fb,f2a6a328,...) at kdb_backtrace+0x2a _witness_debugger(c10a9320,ca7d751c,c10d6e99,c7d83038,c10d6e22,...) at _witness_debugger+0x25 witness_checkorder(ca7d751c,9,c10d6e19,8fb,0,...) at witness_checkorder+0x86f __lockmgr_args(ca7d751c,80900,ca8694fc,0,0,...) at __lockmgr_args+0x915 ffs_copyonwrite(ca869438,e1b34d00,0,e1b34d00,cebca438,...) at ffs_copyonwrite+0x2c2 ffs_geom_strategy(ca869530,e1b34d00,c13afafc,c7d80ce0,cebca438,...) at ffs_geom_strategy+0xeb ufs_strategy(f2a6a4d0,c10ffc35,4,c109f1df,ec,...) at ufs_strategy+0xd3 VOP_STRATEGY_APV(c120db40,f2a6a4d0,cebca530,c1221fc0,cebca438,...) at VOP_STRATEGY_APV+0x119 bufstrategy(cebca530,e1b34d00,e1b1e5e0,e1b34d60,e1b34d00,...) at bufstrategy+0x61 bufwrite(e1b34d00,e1b34d00,1,107,0,...) at bufwrite+0x159 ffs_syncvnode(cebca438,1,0,4000,c7dc3000,...) at ffs_syncvnode+0x385 ffs_snapshot(cab708c4,cc182ae0,c10da310,1a9,0,...) at ffs_snapshot+0x99c ffs_mount(cab708c4,cf0bd400,ff,3ab,96d,...) at ffs_mount+0x1ca7 vfs_donmount(c819c5e0,211000,0,ca8c9a80,ca8c9a80,...) at vfs_donmount+0x1377 sys_nmount(c819c5e0,f2a6accc,8eba106d,0,f2a6acc4,...) at sys_nmount+0x7f syscall(f2a6ad08) at syscall+0x2fe Xint0x80_syscall() at Xint0x80_syscall+0x21 --- syscall (378, FreeBSD ELF32, sys_nmount), eip = 0x280c2ca7, esp = 0xbfbfd2ec, ebp = 0xbfbfda68 --- 20121031 10:18:02 all: kevent2.sh 20121031 10:18:15 all: procfs.sh Oct 31 10:18:22 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 10:18:23 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 10:18:23 x4 mountd[1011]: can't delete exports for /mnt15: Invalid argument Oct 31 10:18:24 x4 mountd[1011]: can't delete exports for /mnt18: Invalid argument Oct 31 10:18:24 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 10:18:24 x4 mountd[1011]: can't delete exports for /mnt13: Device busy Oct 31 10:18:26 x4 mountd[1011]: can't delete exports for /mnt7: Invalid argument : : Oct 31 10:59:49 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 10:59:50 x4 mountd[1011]: can't delete exports for /mnt12: Invalid argument Oct 31 10:59:51 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 10:59:53 x4 mountd[1011]: can't delete exports for /mnt7: Invalid argument Oct 31 10:59:56 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 10:59:57 x4 mountd[1011]: can't delete exports for /mnt12: Device busy lock order reversal: 1st 0xca6c242c filedesc structure (filedesc structure) @ kern/kern_descrip.c:836 2nd 0xcad5ab98 ufs (ufs) @ kern/vfs_subr.c:4411 KDB: stack backtrace: db_trace_self_wrapper(c10a5750,20296572,656b2040,6b2f6e72,5f6e7265,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0afde4b,c10a9320,c13afc90,113b,f2770a10,...) at kdb_backtrace+0x2a _witness_debugger(c10a9320,cad5ab98,c1090c4b,c7d827b0,c10b149a,...) at _witness_debugger+0x25 witness_checkorder(cad5ab98,9,c10b1491,113b,cad5ac04,...) at witness_checkorder+0x86f __lockmgr_args(cad5ab98,80400,cad5ac04,0,0,...) at __lockmgr_args+0x915 ffs_lock(f2770b1c,1,c7d7b588,f2770b00,c0b4f6fa,...) at ffs_lock+0xa1 VOP_LOCK1_APV(c120db40,f2770b1c,c0b1064c,c1221de0,cad5ab40,...) at VOP_LOCK1_APV+0xf3 _vn_lock(cad5ab40,80400,c10b1491,113b,f2770b78,...) at _vn_lock+0x78 vfs_knllock(cad5ab40,0,c109aa8f,72f,cafa9090,...) at vfs_knllock+0x29 knlist_remove_kq(0,f2770b98,c0b5ebe9,cbe4f01c,cafa9090,...) at knlist_remove_kq+0x85 knlist_remove(cbe4f01c,cafa9090,0,f2770bc4,c0a8a055,...) at knlist_remove+0x1b filt_vfsdetach(cafa9090,0,c109aa8f,839,c11e0840,...) at filt_vfsdetach+0x39 knote_fdclose(ca8a25e0,3,c109a128,479,cbe33380,...) at knote_fdclose+0xf5 closefp(ca8a25e0,1,c109a44a,91,5,...) at closefp+0x66 do_dup(3,ca8a2834,f2770cfc,c0ec42ee,ca8a25e0,...) at do_dup+0x336 sys_dup2(ca8a25e0,f2770ccc,c1275840,f2770c98,c0aec407,...) at sys_dup2+0x28 syscall(f2770d08) at syscall+0x2fe Xint0x80_syscall() at Xint0x80_syscall+0x21 --- syscall (90, FreeBSD ELF32, sys_dup2), eip = 0x280fe4ab, esp = 0xbfbfdafc, ebp = 0xbfbfdb48 --- Oct 31 11:00:01 x4 mountd[1011]: can't delete exports for /mnt10: Device busy Oct 31 11:00:04 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 11:00:06 x4 mountd[1011]: can't delete exports for /mnt5: Invalid argument Oct 31 11:00:06 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument : : Oct 31 11:10:33 x4 mountd[1011]: can't delete exports for /mnt17: Invalid argument Oct 31 11:10:34 x4 mountd[1011]: can't delete exports for /mnt5: Invalid argument Oct 31 11:10:35 x4 mountd[1011]: can't delete exports for /mnt19: Invalid argument 20121031 11:10:36 all: umount.sh Oct 31 11:10:36 x4 mountd[1011]: can't delete exports for /mnt8: Invalid argument Oct 31 11:10:37 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 11:10:38 x4 mountd[1011]: can't delete exports for /mnt12: Invalid argument 20121031 11:10:38 all: msdos.sh 20121031 11:41:22 all: quota10.sh Oct 31 11:41:34 x4 mountd[1011]: can't delete exports for /mnt17: Invalid argument Oct 31 11:42:03 x4 mountd[1011]: can't delete exports for /mnt14: Invalid argument Oct 31 11:43:10 x4 mountd[1011]: can't delete exports for /mnt19: Invalid argument Oct 31 11:43:14 x4 mountd[1011]: can't delete exports for /mnt16: Invalid argument Oct 31 11:43:22 x4 mountd[1011]: can't delete exports for /mnt13: Invalid argument Oct 31 11:43:36 x4 mountd[1011]: can't delete exports for /mnt8: Invalid argument Oct 31 11:43:52 x4 mountd[1011]: can't delete exports for /mnt16: Invalid argument Oct 31 11:43:52 x4 mountd[1011]: can't delete exports for /mnt8: Invalid argument Oct 31 11:45:46 x4 mountd[1011]: can't delete exports for /mnt8: Invalid argument Oct 31 11:46:35 x4 mountd[1011]: can't delete exports for /mnt10: Invalid argument Oct 31 11:46:46 x4 mountd[1011]: can't delete exports for /mnt16: Invalid argument Oct 31 11:48:43 x4 mountd[1011]: can't delete exports for /mnt12: Invalid argument Oct 31 11:50:36 x4 mountd[1011]: can't delete exports for /mnt10: Invalid argument Oct 31 11:52:02 x4 mountd[1011]: can't delete exports for /mnt7: Invalid argument Oct 31 11:53:46 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 11:54:18 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 11:54:42 x4 mountd[1011]: can't delete exports for /mnt5: Invalid argument Oct 31 11:56:00 x4 mountd[1011]: can't delete exports for /mnt16: Invalid argument Oct 31 11:57:09 x4 mountd[1011]: can't delete exports for /mnt18: Invalid argument Oct 31 11:57:37 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 11:58:10 x4 mountd[1011]: can't delete exports for /mnt12: Invalid argument Oct 31 11:58:48 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 11:59:08 x4 mountd[1011]: can't delete exports for /mnt5: Invalid argument Oct 31 11:59:41 x4 mountd[1011]: can't delete exports for /mnt5: Invalid argument Oct 31 12:00:21 x4 mountd[1011]: can't delete exports for /mnt10: Invalid argument Oct 31 12:03:02 x4 mountd[1011]: can't delete exports for /mnt9: Device busy Oct 31 12:03:11 x4 mountd[1011]: can't delete exports for /mnt13: Invalid argument Oct 31 12:03:11 x4 mountd[1011]: can't delete exports for /mnt16: Invalid argument Oct 31 12:03:37 x4 mountd[1011]: can't delete exports for /mnt10: Invalid argument Oct 31 12:04:17 x4 mountd[1011]: can't delete exports for /mnt17: Invalid argument Oct 31 12:06:16 x4 mountd[1011]: can't delete exports for /mnt11: Invalid argument Oct 31 12:09:07 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 12:09:48 x4 mountd[1011]: can't delete exports for /mnt16: Invalid argument Oct 31 12:10:08 x4 mountd[1011]: can't delete exports for /mnt8: Invalid argument Oct 31 12:10:14 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 12:10:29 x4 mountd[1011]: can't delete exports for /mnt17: Invalid argument Oct 31 12:10:42 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 12:13:14 x4 mountd[1011]: can't delete exports for /mnt13: Invalid argument Oct 31 12:13:32 x4 mountd[1011]: can't delete exports for /mnt5: Invalid argument Oct 31 12:14:13 x4 mountd[1011]: can't delete exports for /mnt8: Invalid argument Oct 31 12:14:46 x4 mountd[1011]: can't delete exports for /mnt17: Invalid argument Oct 31 12:14:46 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 12:15:20 x4 mountd[1011]: can't delete exports for /mnt11: Invalid argument Oct 31 12:16:42 x4 mountd[1011]: can't delete exports for /mnt14: Invalid argument Oct 31 12:17:35 x4 mountd[1011]: can't delete exports for /mnt7: Invalid argument Oct 31 12:17:35 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 12:19:10 x4 mountd[1011]: can't delete exports for /mnt8: Invalid argument Oct 31 12:20:57 x4 mountd[1011]: can't delete exports for /mnt14: Invalid argument Oct 31 12:21:20 x4 mountd[1011]: can't delete exports for /mnt9: Invalid argument Oct 31 12:21:52 x4 mountd[1011]: can't delete exports for /mnt7: Invalid argument Oct 31 12:21:56 x4 mountd[1011]: can't delete exports for /mnt5: Invalid argument Oct 31 12:25:23 x4 mountd[1011]: can't delete exports for /mnt12: Invalid argument Oct 31 12:25:53 x4 mountd[1011]: can't delete exports for /mnt12: Invalid argument Oct 31 12:25:59 x4 mountd[1011]: can't delete exports for /mnt7: Invalid argument Oct 31 12:26:20 x4 mountd[1011]: can't delete exports for /mnt7: Invalid argument Oct 31 12:26:57 x4 mountd[1011]: can't delete exports for /mnt6: Invalid argument Oct 31 12:28:09 x4 mountd[1011]: can't delete exports for /mnt7: Invalid argument Oct 31 12:28:48 x4 mountd[1011]: can't delete exports for /mnt11: Invalid argument Oct 31 12:30:45 x4 mountd[1011]: can't delete exports for /mnt11: Invalid argument 20121031 12:30:55 all: nfs6.sh Oct 31 12:36:34 x4 kernel: interrupt total irq1: atkbd0 3 irq4: uart0 28213 irq6: fdc0 1 irq9: acpi0 1 irq12: psm0 6 irq14: ata0 15234 irq16: hdac1 ohci0 87 irq17: ohci1 ohci3 3 irq18: ohci2 ohci4 3 irq20: fwohci0 1 irq22: ahci0 2506869 cpu0:timer 19420160 irq256: hdac0 5 irq257: re0 79464 cpu1:timer 19106967 cpu2:timer 19091799 cpu3:timer 19087290 Total 79336107 KDB: stack backtrace: db_trace_self_wrapper(c10a5750,0,0,0,0,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c1098d8e,4ba92ab,0,4ba92ab,0,...) at kdb_backtrace+0x2a watchdog_fire(1d,0,c1098c5b,220,c7de3870,...) at watchdog_fire+0xa9 hardclock_cnt(1d,0,c10f9ae5,106,da25c1,...) at hardclock_cnt+0x2c1 handleevents(c7b25b8c,c12677d0,c7b25ba0,c0aae54c,c12677d0,0,5906,da25c1,c8d637b2,5fbc80) at handleevents+0x16b timercb(c1448160,0,0,ba6759aa,2565,...) at timercb+0x292 lapic_handle_timer(c7b25bd0) at lapic_handle_timer+0x7f Xtimerint() at Xtimerint+0x20 --- interrupt, eip = 0xc0eaa0d5, esp = 0xc7b25c10, ebp = 0xc7b25c10 --- acpi_cpu_c1(c109f1df,118,c1825c80,0,c1825c80,...) at acpi_cpu_c1+0x5 acpi_cpu_idle(0,c7b25c7c,c0eb6be9,0,0,...) at acpi_cpu_idle+0x11e cpu_idle_acpi(0,0,c1274400,2,c7b25cc8,...) at cpu_idle_acpi+0x2f cpu_idle(0,c7b25ca0,c10a36e7,3ed,c7de58d0,...) at cpu_idle+0x89 sched_idletd(0,c7b25d08,c109b190,3db,c7de3870,...) at sched_idletd+0x263 fork_exit(c0aeabb0,0,c7b25d08) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc7b25d40, ebp = 0 --- KDB: enter: watchdog timeout [ thread pid 11 tid 100003 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db> panic: mtx_lock() by idle thread 0xc7de58d0 on sleep mutex eventhandler @ ../../../kern/subr_eventhandler.c:251 cpuid = 0 Uptime: 6h19m51s Physical memory: 3435 MB Dumping 336 MB: 321 305 289 273 257 241 225 209 193 177 161 145 129 113 97 81 65 49 33 17 1 Dump complete Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... GDB: no debug ports present $ ps auxwwl USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND UID PPID CPU PRI NI MWCHAN root 0 0,0 0,0 0 0 - ?Ls 1jan70 0:03,69 [kernel] 0 0 0 -100 0 - root 1 0,0 -102040,1 9200 830288 - ?Ls 1jan70 0:00,08 [init] 0 0 0 155 0 wait root 2 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [fw0_probe] 0 0 0 -100 0 - root 3 0,0 0,0 0 0 - ?L 1jan70 0:00,14 [fdc0] 0 0 0 -100 0 - root 4 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [ctl_thrd] 0 0 0 -100 0 ctl_work root 5 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [sctp_iterator] 0 0 0 -100 0 waiting_ root 6 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [xpt_thrd] 0 0 0 -100 0 ccb_scan root 7 0,0 0,0 0 0 - ?L 1jan70 13:15,90 [pagedaemon] 0 0 0 -100 0 psleep root 8 0,0 0,0 0 0 - ?L 1jan70 0:06,50 [vmdaemon] 0 0 0 -100 0 psleep root 9 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [pagezero] 0 0 0 -100 0 pgzero root 10 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [audit] 0 0 0 -100 0 audit_wo root 11 0,0 0,0 0 0 - ?L 1jan70 408:35,79 [idle] 0 0 0 -100 0 - root 12 0,0 0,0 0 0 - ?L 1jan70 2:44,93 [intr] 0 0 0 -100 0 - root 13 0,0 0,0 0 0 - ?L 1jan70 13:18,44 [geom] 0 0 0 -100 0 - root 14 0,0 0,0 0 0 - ?L 1jan70 0:04,00 [yarrow] 0 0 0 -100 0 - root 15 0,0 0,0 0 0 - ?L 1jan70 0:01,73 [usb] 0 0 0 -100 0 - root 16 0,0 0,0 0 0 - ?L 1jan70 0:20,25 [bufdaemon] 0 0 0 -100 0 psleep root 17 0,0 0,0 0 0 - ?L 1jan70 0:04,81 [syncer] 0 0 0 -100 0 syncer root 18 0,0 0,0 0 0 - ?L 1jan70 0:00,21 [vnlru] 0 0 0 -100 0 vlruwt root 19 0,0 0,0 0 0 - ?L 1jan70 7:03,69 [softdepflush] 0 0 0 -100 0 sdflush root 840 0,0 -107083,1 8832 3785584 - ?s 1jan70 0:07,53 [devd] 0 1 0 -100 0 select root 963 0,0 -102006,3 9936 2020752 - ?s 1jan70 0:00,75 [syslogd] 0 1 0 -100 0 select root 978 0,0 -107082,9 9956 3793936 - ?s 1jan70 0:00,06 [rpcbind] 0 1 0 -100 0 select root 1011 0,0 -101263,5 9936 2984624 - ?s 1jan70 1:32,34 [mountd] 0 1 0 -100 0 select root 1027 0,0 0,0 10208 1934192 - ?Ws - 0:00,00 [nfsuserd] 0 1 0 -100 0 pause root 1028 0,0 -102006,2 10208 2024464 - ? 1jan70 0:00,03 [nfsuserd] 0 1027 0 -100 0 select root 1029 0,0 -102040,3 10208 825648 - ? 1jan70 0:00,03 [nfsuserd] 0 1027 0 -100 0 select root 1030 0,0 -107082,7 10208 3801968 - ? 1jan70 0:00,03 [nfsuserd] 0 1027 0 -100 0 select root 1031 0,0 -102048,7 10208 527024 - ? 1jan70 0:00,04 [nfsuserd] 0 1027 0 -100 0 select root 1033 0,0 -101263,5 9824 2983696 - ?s 1jan70 0:00,04 [nfsd] 0 1 0 -100 0 select root 1035 0,0 -107082,3 9824 3815888 - ? 1jan70 0:00,24 [nfsd] 0 1033 0 -100 0 rpcsvc root 1094 0,0 -101531,2 12204 1954288 - ?s 1jan70 0:01,30 [ntpd] 0 1 0 -100 0 select root 1118 0,0 -102040,0 21752 834928 - ?s 1jan70 0:00,42 [nmbd] 0 1 0 -100 0 select root 1120 0,0 -102006,3 25756 2021680 - ?s 1jan70 0:00,41 [smbd] 0 1 0 -100 0 select root 1122 0,0 -101531,2 29636 1956144 - ?s 1jan70 0:00,37 [winbindd] 0 1 0 -100 0 select root 1138 0,0 -101263,4 25840 2988336 - ? 1jan70 0:00,00 [smbd] 0 1120 0 -100 0 select root 1139 0,0 -107083,0 10048 3790224 - ?s 1jan70 0:00,00 [moused] 0 1 0 -100 0 select root 1148 0,0 -107082,6 21444 3803824 - ? 1jan70 0:00,37 [winbindd] 0 1122 0 -100 0 select root 1172 0,0 -101531,8 14356 1936048 - ?s 1jan70 0:00,01 [sshd] 0 1 0 -100 0 select root 1175 0,0 -101263,4 12768 2986480 - ?s 1jan70 0:00,44 [sendmail] 0 1 0 -100 0 select smmsp 1178 0,0 -101622,3 12768 2946608 - ?s 1jan70 0:00,04 [sendmail] 25 1 0 -100 0 pause root 1183 0,0 -101531,2 9964 1957072 - ?s 1jan70 0:00,34 [cron] 0 1 0 -100 0 nanslp root 1329 0,0 -99768,2 17120 1059664 - ?s 1jan70 0:00,07 [sshd] 0 1172 0 -100 0 select pho 1331 0,0 -101531,7 17120 1936976 - ? 1jan70 0:00,23 [sshd] 1001 1329 0 -100 0 select pho 1332 0,0 0,0 11768 2997616 - ?Ws - 0:00,00 [bash] 1001 1331 0 -100 0 wait root 1337 0,0 0,0 10448 1054096 - ?W - 0:00,00 [su] 0 1332 0 -100 0 wait root 1338 0,0 0,0 11692 1055024 - ?W - 0:00,00 [csh] 0 1337 0 -100 0 pause root 1341 0,0 -101531,8 11768 1935120 - ? 1jan70 0:00,13 [bash] 0 1338 0 -100 0 wait root 1349 0,0 -99768,2 10016 1056880 - ?s 1jan70 0:13,52 [watchdogd] 0 1 0 -100 0 wait root 1374 0,0 -101263,3 10020 2992048 - ?s 1jan70 0:00,00 [inetd] 0 1 0 -100 0 select root 1391 0,0 -102006,2 9920 2022608 - ?s+ 1jan70 0:00,11 [getty] 0 1 0 -100 0 ttyin root 1392 0,0 -102048,6 9920 530736 - ?s+ 1jan70 0:00,03 [getty] 0 1 0 -100 0 ttyin root 1393 0,0 -107082,6 9920 3804752 - ?s+ 1jan70 0:00,03 [getty] 0 1 0 -100 0 ttyin root 1394 0,0 -101531,0 9920 1961712 - ?s+ 1jan70 0:00,03 [getty] 0 1 0 -100 0 ttyin root 1395 0,0 -107082,5 9920 3808464 - ?s+ 1jan70 0:00,03 [getty] 0 1 0 -100 0 ttyin root 1396 0,0 -101263,2 9920 2992976 - ?s+ 1jan70 0:00,03 [getty] 0 1 0 -100 0 ttyin root 1397 0,0 -101531,3 9920 1950576 - ?s+ 1jan70 0:00,03 [getty] 0 1 0 -100 0 ttyin root 1398 0,0 -101622,6 9920 2935472 - ?s+ 1jan70 0:00,03 [getty] 0 1 0 -100 0 ttyin root 1399 0,0 -99417,2 9920 822864 - ?s+ 1jan70 0:00,03 [getty] 0 1 0 -100 0 ttyin root 2975 0,0 -99767,8 17120 1074192 - ?s 1jan70 0:00,07 [sshd] 0 1172 0 -100 0 select root 2977 0,0 -101531,5 17120 1946256 - ?s 1jan70 0:00,08 [sshd] 0 1172 0 -100 0 select root 2978 0,0 -102048,8 17120 525168 - ?s 1jan70 0:00,08 [sshd] 0 1172 0 -100 0 select pho 2981 0,0 -102006,0 17120 2029104 - ? 1jan70 0:03,17 [sshd] 1001 2975 0 -100 0 select pho 2982 0,0 -99417,5 10760 812048 - ?s+ 1jan70 1:01,14 [top] 1001 2981 0 -100 0 select pho 2983 0,0 -102006,2 17120 2023536 - ? 1jan70 0:00,01 [sshd] 1001 2977 0 -100 0 select pho 2984 0,0 -102006,4 17120 2017040 - ? 1jan70 0:00,28 [sshd] 1001 2978 0 -100 0 select pho 2985 0,0 0,0 10328 826576 - ?Ws - 0:00,00 [sh] 1001 2983 0 -100 0 wait pho 2986 0,0 -99444,8 9824 4045264 - ?s 1jan70 0:02,23 [tail] 1001 2984 0 -100 0 kqread pho 2987 0,0 -99414,6 10328 913136 - ? 1jan70 0:15,01 [sh] 1001 2985 0 -100 0 wait pho 2988 0,0 -99768,2 10064 1057808 - ? 1jan70 0:06,98 [awk] 1001 2985 0 -100 0 piperd root 5905 0,0 -100856,3 10328 531664 - ?+ 1jan70 0:00,06 [sh] 0 85248 0 -100 0 wait root 5924 0,0 0,0 0 0 - ?L 1jan70 0:00,10 [md5] 0 0 0 -100 0 mdwait root 5933 0,0 -102040,3 10328 823792 - ?+ 1jan70 0:00,03 [sh] 0 5905 0 -100 0 wait root 5940 0,0 -100837,4 9904 1196912 - ?+ 1jan70 0:00,02 [run] 0 5933 0 -100 0 wait root 5941 0,0 -100865,4 9904 209552 - ?+ 1jan70 0:00,00 [run] 0 5940 0 -100 0 wait root 5942 0,0 -101596,8 9904 3841232 - ?+ 1jan70 0:00,00 [run] 0 5941 0 -100 0 wait root 5982 0,0 0,0 0 0 - ?L 1jan70 0:00,01 [newnfs 0] 0 0 0 -100 0 so_snd_s root 5983 0,0 0,0 0 0 - ?L 1jan70 0:00,01 [newnfs 1] 0 0 0 -100 0 so_snd_s root 5984 0,0 0,0 0 0 - ?L 1jan70 0:00,01 [newnfs 2] 0 0 0 -100 0 sbwait root 5986 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 4] 0 0 0 -100 0 so_snd_s root 5987 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 5] 0 0 0 -100 0 so_snd_s root 5988 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 6] 0 0 0 -100 0 so_snd_s root 5989 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 7] 0 0 0 -100 0 so_snd_s root 5991 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 9] 0 0 0 -100 0 so_snd_s root 5992 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 10] 0 0 0 -100 0 so_snd_s root 5994 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 12] 0 0 0 -100 0 so_snd_s root 5995 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 13] 0 0 0 -100 0 so_snd_s root 5997 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 15] 0 0 0 -100 0 so_snd_s root 5998 0,0 0,0 0 0 - ?L 1jan70 0:00,00 [newnfs 16] 0 0 0 -100 0 so_snd_s root 6133 0,0 -100866,1 10328 186672 - ? 1jan70 0:00,03 [sh] 0 1349 0 -100 0 wait root 6134 0,0 -100866,1 10180 185744 - ? 1jan70 0:00,02 [ls] 0 6133 0 155 0 so_snd_s root 6169 0,0 -100865,7 9820 200272 - ?+ 1jan70 0:00,02 [umount] 0 5905 0 -100 0 newnfs root 6230 0,0 -100858,6 10328 449744 - ?+ 1jan70 0:00,02 [sh] 0 5942 0 -100 0 ufs root 7373 0,0 -99414,9 17120 904784 - ?s 1jan70 0:00,08 [sshd] 0 1172 0 -100 0 select pho 7375 0,0 -102040,3 17120 824720 - ? 1jan70 0:00,02 [sshd] 1001 7373 0 -100 0 select pho 7376 0,0 -100837,5 11768 1192592 - ?s+ 1jan70 0:00,06 [bash] 1001 7375 0 -100 0 ttyin pho 12198 0,0 -119706,8 1620 121888 - ? 1jan70 0:00,00 [sleep] 1001 2987 0 -100 0 nanslp root 85248 0,0 -100620,8 10328 426864 - ?+ 1jan70 0:00,42 [sh] 0 1341 0 -100 0 wait (kgdb) bt #0 doadump (textdump=0x1) at pcpu.h:249 #1 0xc0ac2375 in kern_reboot (howto=0x104) at ../../../kern/kern_shutdown.c:449 #2 0xc0ac1be5 in panic (fmt=Variable "fmt" is not available. ) at ../../../kern/kern_shutdown.c:637 #3 0xc0aaf061 in _mtx_lock_flags (m=0xc1281d48, opts=0x0, file=0xc10a50d9 "../../../kern/subr_eventhandler.c", line=0xfb) at ../../../kern/kern_mutex.c:203 #4 0xc0af6e69 in eventhandler_find_list (name=0xc101e728 "dcons_poll") at ../../../kern/subr_eventhandler.c:251 #5 0xc06a6f98 in dcons_os_checkc (dc=0xc1236060) at ../../../dev/dcons/dcons_os.c:177 #6 0xc06a70de in dcons_cngetc (cp=0xc1168a40) at ../../../dev/dcons/dcons_os.c:265 #7 0xc0a795fa in cncheckc () at ../../../kern/kern_cons.c:405 #8 0xc0a7963a in cngetc () at ../../../kern/kern_cons.c:386 #9 0xc052a285 in db_readline (lstart=0xc122bdc0 "", lsize=0x78) at ../../../ddb/db_input.c:326 #10 0xc052ac5a in db_read_line () at ../../../ddb/db_lex.c:56 #11 0xc0528d76 in db_command_loop () at ../../../ddb/db_command.c:500 #12 0xc052ad7d in db_trap (type=0x3, code=0x0) at ../../../ddb/db_main.c:231 #13 0xc0af98e6 in kdb_trap (type=0x3, code=0x0, tf=0xc7b25a54) at ../../../kern/subr_kdb.c:654 #14 0xc0ec4eb9 in trap (frame=0xc7b25a54) at ../../../i386/i386/trap.c:720 #15 0xc0eadfcc in calltrap () at ../../../i386/i386/exception.s:169 #16 0xc0af93ca in kdb_enter (why=0xc0f2c267 "watchdog", msg=0xc101f27c "watchdog timeout") at cpufunc.h:71 #17 0xc0a752cd in watchdog_fire () at ../../../kern/kern_clock.c:890 #18 0xc0a75621 in hardclock_cnt (cnt=0x1d, usermode=0x0) at ../../../kern/kern_clock.c:568 #19 0xc0ecc03b in handleevents (now=0xc7b25b8c, fake=0x0) at ../../../kern/kern_clocksource.c:216 #20 0xc0ecc6e2 in timercb (et=0xc1448160, arg=0x0) at ../../../kern/kern_clocksource.c:391 #21 0xc0edfc8f in lapic_handle_timer (frame=0xc7b25bd0) at ../../../x86/x86/local_apic.c:825 #22 0xc0eae570 in Xtimerint () at apic_vector.s:108 #23 0xc0eaa0d5 in acpi_cpu_c1 () at ../../../i386/acpica/acpi_machdep.c:114 #24 0xc0541a0e in acpi_cpu_idle () at ../../../dev/acpica/acpi_cpu.c:987 #25 0xc0eb3e7f in cpu_idle_acpi (busy=0x0) at ../../../i386/i386/machdep.c:1268 #26 0xc0eb6be9 in cpu_idle (busy=0x0) at ../../../i386/i386/machdep.c:1434 #27 0xc0aeae13 in sched_idletd (dummy=0x0) at ../../../kern/sched_ule.c:2614 #28 0xc0a91538 in fork_exit (callout=0xc0aeabb0 , arg=0x0, frame=0xc7b25d08) at ../../../kern/kern_fork.c:995 #29 0xc0eae074 in fork_trampoline () at ../../../i386/i386/exception.s:276 (kgdb) (kgdb) proc 6169 [Switching to thread 158 (Thread 101516)]#0 sched_switch (td=0xcc3525e0, newtd=0xc7de58d0, flags=0x104) at ../../../kern/sched_ule.c:1924 1924 cpuid = PCPU_GET(cpuid); (kgdb) bt #0 sched_switch (td=0xcc3525e0, newtd=0xc7de58d0, flags=0x104) at ../../../kern/sched_ule.c:1924 #1 0xc0acb543 in mi_switch (flags=0x104, newtd=0x0) at ../../../kern/kern_synch.c:485 #2 0xc0b04c97 in sleepq_switch (wchan=0xcbc7ee68, pri=0x60) at ../../../kern/subr_sleepqueue.c:545 #3 0xc0b059eb in sleepq_wait (wchan=0xcbc7ee68, pri=0x60) at ../../../kern/subr_sleepqueue.c:624 #4 0xc0aa6636 in __lockmgr_args (lk=0xcbc7ee68, flags=0x80100, ilk=0xcbc7eed4, wmesg=0x0, pri=0x0, timo=0x0, file=0xc10b1491 "../../../kern/vfs_subr.c", line=0x879) at ../../../kern/kern_lock.c:225 #5 0xc09dd56d in nfs_lock1 (ap=0xf2f83a64) at lockmgr.h:97 #6 0xc0eec2e3 in VOP_LOCK1_APV (vop=0xc11ce280, a=0xf2f83a64) at vnode_if.c:1988 #7 0xc0b706b8 in _vn_lock (vp=0xcbc7ee10, flags=0x80100, file=0xc10b1491 "../../../kern/vfs_subr.c", line=0x879) at vnode_if.h:859 #8 0xc0b64819 in vget (vp=0xcbc7ee10, flags=0x80100, td=0xcc3525e0) at ../../../kern/vfs_subr.c:2169 #9 0xc0b536ad in vfs_hash_get (mp=0xcc3fa000, hash=0x8f52e176, flags=Variable "flags" is not available. ) at ../../../kern/vfs_hash.c:81 #10 0xc09e4f3f in ncl_nget (mntp=0xcc3fa000, fhp=0xcbe5228c "ñ\v\221P¢Fiø\f", fhsize=0x1c, npp=0xf2f83b50, lkflags=0x80000) at ../../../fs/nfsclient/nfs_clnode.c:116 #11 0xc09e7ed2 in nfs_root (mp=0xcc3fa000, flags=0x80000, vpp=0xf2f83ba0) at ../../../fs/nfsclient/nfs_clvfsops.c:1469 #12 0xc0b59a51 in dounmount (mp=0xcc3fa000, flags=0x8080000, td=0xcc3525e0) at ../../../kern/vfs_mount.c:1303 #13 0xc0b5a152 in sys_unmount (td=0xcc3525e0, uap=0xf2f83ccc) at ../../../kern/vfs_mount.c:1212 #14 0xc0ec42ee in syscall (frame=0xf2f83d08) at subr_syscall.c:135 #15 0xc0eae061 in Xint0x80_syscall () at ../../../i386/i386/exception.s:267 #16 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) f 8 #8 0xc0b64819 in vget (vp=0xcbc7ee10, flags=0x80100, td=0xcc3525e0) at ../../../kern/vfs_subr.c:2169 2169 if ((error = vn_lock(vp, flags | LK_INTERLOCK)) != 0) { (kgdb) p *vp $1 = {v_type = VDIR, v_tag = 0xc108b22b "newnfs", v_op = 0xc11ce280, v_data = 0xcb757000, v_mount = 0xcc3fa000, v_nmntvnodes = {tqe_next = 0xcd169438, tqe_prev = 0xcc3fa034}, v_un = { vu_mount = 0x0, vu_socket = 0x0, vu_cdev = 0x0, vu_fifoinfo = 0x0}, v_hashlist = {le_next = 0x0, le_prev = 0xca4cfe20}, v_hash = 0x8f52e176, v_cache_src = {lh_first = 0x0}, v_cache_dst = {tqh_first = 0x0, tqh_last = 0xcbc7ee40}, v_cache_dd = 0x0, v_cstart = 0x0, v_lasta = 0x0, v_lastw = 0x0, v_clen = 0x0, v_lock = {lock_object = { lo_name = 0xc108b22b "newnfs", lo_flags = 0x57b0000, lo_data = 0x0, lo_witness = 0xc7d83170}, lk_lock = 0x15, lk_exslpfail = 0x0, lk_timo = 0x33, lk_pri = 0x60, lk_stack = { depth = 0x10, pcs = {0xc0aa6008, 0xc09dd56d, 0xc0eec2e3, 0xc0b706b8, 0xc0b64819, 0xc0b536ad, 0xc09e4f3f, 0xc09e7ed2, 0xc0b54c48, 0xc0b5561e, 0xc0b67fd8, 0xc0b681bc, 0xc0b681f6, 0xc0b6829f, 0xc0ec42ee, 0xc0eae061, 0x0, 0x0}}}, v_interlock = {lock_object = {lo_name = 0xc10a9502 "vnode interlock", lo_flags = 0x1030000, lo_data = 0x0, lo_witness = 0xc7d7b1e0}, mtx_lock = 0x4}, v_vnlock = 0xcbc7ee68, v_holdcnt = 0x5, v_usecount = 0x2, v_iflag = 0x200, v_vflag = 0x1, v_writecount = 0x0, v_actfreelist = { tqe_next = 0x0, tqe_prev = 0xcd169528}, v_bufobj = {bo_mtx = {lock_object = {lo_name = 0xc10b244a "bufobj interlock", lo_flags = 0x1030000, lo_data = 0x0, lo_witness = 0xc7d80ce0}, mtx_lock = 0x4}, bo_clean = {bv_hd = {tqh_first = 0xe19da620, tqh_last = 0xe19da658}, bv_root = 0xe19da620, bv_cnt = 0x1}, bo_dirty = {bv_hd = {tqh_first = 0x0, tqh_last = 0xcbc7ef2c}, bv_root = 0x0, bv_cnt = 0x0}, bo_numoutput = 0x0, bo_flag = 0x0, bo_ops = 0xc11ce4c4, bo_bsize = 0x2000, bo_object = 0xcbf79b90, bo_synclist = { le_next = 0x0, le_prev = 0x0}, bo_private = 0xcbc7ee10, __bo_vnode = 0xcbc7ee10}, v_pollinfo = 0x0, v_label = 0x0, v_lockf = 0x0, v_rl = {rl_waiters = {tqh_first = 0x0, tqh_last = 0xcbc7ef6c}, rl_currdep = 0x0}} (kgdb) git diff master diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 6da3b19..7587272 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -246,8 +246,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args) unsigned long bss_size; char *library; ssize_t aresid; - int error; - int locked; + int error, locked, writecount; LCONVPATHEXIST(td, args->library, &library); @@ -277,7 +276,10 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args) locked = 1; /* Writable? */ - if (vp->v_writecount) { + error = VOP_GET_WRITECOUNT(vp, &writecount); + if (error != 0) + goto cleanup; + if (writecount != 0) { error = ETXTBSY; goto cleanup; } diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c index 94bfea8..f221475 100644 --- a/sys/fs/nullfs/null_vnops.c +++ b/sys/fs/nullfs/null_vnops.c @@ -329,6 +329,22 @@ null_bypass(struct vop_generic_args *ap) return (error); } +static int +null_add_writecount(struct vop_add_writecount_args *ap) +{ + struct vnode *lvp, *vp; + int error; + + vp = ap->a_vp; + lvp = NULLVPTOLOWERVP(vp); + KASSERT(lvp->v_writecount >= vp->v_writecount, + ("lost bypass for writecount")); + error = VOP_ADD_WRITECOUNT(lvp, ap->a_inc); + if (error == 0) + vp->v_writecount += ap->a_inc; + return (error); +} + /* * We have to carry on the locking protocol on the null layer vnodes * as we progress through the tree. We also have to enforce read-only @@ -826,4 +842,5 @@ struct vop_vector null_vnodeops = { .vop_unlock = null_unlock, .vop_vptocnp = null_vptocnp, .vop_vptofh = null_vptofh, + .vop_add_writecount = null_add_writecount, }; diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c index d3532027..64bd4ac 100644 --- a/sys/fs/unionfs/union_subr.c +++ b/sys/fs/unionfs/union_subr.c @@ -945,7 +945,7 @@ unionfs_vn_create_on_upper(struct vnode **vpp, struct vnode *udvp, vput(vp); goto unionfs_vn_create_on_upper_free_out1; } - vp->v_writecount++; + VOP_ADD_WRITECOUNT(vp, 1); CTR3(KTR_VFS, "%s: vp %p v_writecount increased to %d", __func__, vp, vp->v_writecount); *vpp = vp; @@ -1082,7 +1082,7 @@ unionfs_copyfile(struct unionfs_node *unp, int docopy, struct ucred *cred, } } VOP_CLOSE(uvp, FWRITE, cred, td); - uvp->v_writecount--; + VOP_ADD_WRITECOUNT(uvp, -1); CTR3(KTR_VFS, "%s: vp %p v_writecount decreased to %d", __func__, uvp, uvp->v_writecount); diff --git a/sys/i386/ibcs2/imgact_coff.c b/sys/i386/ibcs2/imgact_coff.c index a28ba52..16fa5d4a 100644 --- a/sys/i386/ibcs2/imgact_coff.c +++ b/sys/i386/ibcs2/imgact_coff.c @@ -168,7 +168,7 @@ coff_load_file(struct thread *td, char *name) unsigned long text_offset = 0, text_address = 0, text_size = 0; unsigned long data_offset = 0, data_address = 0, data_size = 0; unsigned long bss_size = 0; - int i; + int i, writecount; NDINIT(&nd, LOOKUP, ISOPEN | LOCKLEAF | FOLLOW | SAVENAME, UIO_SYSSPACE, name, td); @@ -181,7 +181,10 @@ coff_load_file(struct thread *td, char *name) if (vp == NULL) return ENOEXEC; - if (vp->v_writecount) { + error = VOP_GET_WRITECOUNT(vp, &writecount); + if (error != 0) + goto fail; + if (writecount != 0) { error = ETXTBSY; goto fail; } diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 0970562..a37b9f1 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1376,7 +1376,7 @@ exec_check_permissions(imgp) struct vnode *vp = imgp->vp; struct vattr *attr = imgp->attr; struct thread *td; - int error; + int error, writecount; td = curthread; @@ -1421,7 +1421,10 @@ exec_check_permissions(imgp) * Check number of open-for-writes on the file and deny execution * if there are any. */ - if (vp->v_writecount) + error = VOP_GET_WRITECOUNT(vp, &writecount); + if (error != 0) + return (error); + if (writecount != 0) return (ETXTBSY); /* diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 0112dcb..00d064e 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -81,6 +81,8 @@ static int dirent_exists(struct vnode *vp, const char *dirname, static int vop_stdis_text(struct vop_is_text_args *ap); static int vop_stdset_text(struct vop_set_text_args *ap); static int vop_stdunset_text(struct vop_unset_text_args *ap); +static int vop_stdget_writecount(struct vop_get_writecount_args *ap); +static int vop_stdadd_writecount(struct vop_add_writecount_args *ap); /* * This vnode table stores what we want to do if the filesystem doesn't @@ -133,6 +135,8 @@ struct vop_vector default_vnodeops = { .vop_is_text = vop_stdis_text, .vop_set_text = vop_stdset_text, .vop_unset_text = vop_stdunset_text, + .vop_get_writecount = vop_stdget_writecount, + .vop_add_writecount = vop_stdadd_writecount, }; /* @@ -1100,6 +1104,22 @@ vop_stdunset_text(struct vop_unset_text_args *ap) return (0); } +static int +vop_stdget_writecount(struct vop_get_writecount_args *ap) +{ + + *ap->a_writecount = ap->a_vp->v_writecount; + return (0); +} + +static int +vop_stdadd_writecount(struct vop_add_writecount_args *ap) +{ + + ap->a_vp->v_writecount += ap->a_inc; + return (0); +} + /* * vfs default ops * used to fill the vfs function table to get reasonable default return values. diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 402a9d0..ea42f9d 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -302,7 +302,7 @@ vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred, fp->f_flag |= FHASLOCK; } if (fmode & FWRITE) { - vp->v_writecount++; + VOP_ADD_WRITECOUNT(vp, 1); CTR3(KTR_VFS, "%s: vp %p v_writecount increased to %d", __func__, vp, vp->v_writecount); } @@ -355,7 +355,7 @@ vn_close(vp, flags, file_cred, td) if (flags & FWRITE) { VNASSERT(vp->v_writecount > 0, vp, ("vn_close: negative writecount")); - vp->v_writecount--; + VOP_ADD_WRITECOUNT(vp, -1); CTR3(KTR_VFS, "%s: vp %p v_writecount decreased to %d", __func__, vp, vp->v_writecount); } diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src index 4c86ff6..3c3563c 100644 --- a/sys/kern/vnode_if.src +++ b/sys/kern/vnode_if.src @@ -678,6 +678,20 @@ vop_unset_text { IN struct vnode *vp; }; +%% get_writecount vp L L L + +vop_get_writecount { + IN struct vnode *vp; + OUT int *writecount; +}; + +%% add_writecount vp E E E + +vop_add_writecount { + IN struct vnode *vp; + IN int inc; +}; + # The VOPs below are spares at the end of the table to allow new VOPs to be # added in stable branches without breaking the KBI. New VOPs in HEAD should # be added above these spares. When merging a new VOP to a stable branch, diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c index 48b272e..d52f650 100644 --- a/sys/ufs/ufs/ufs_extattr.c +++ b/sys/ufs/ufs/ufs_extattr.c @@ -334,7 +334,7 @@ ufs_extattr_enable_with_open(struct ufsmount *ump, struct vnode *vp, return (error); } - vp->v_writecount++; + VOP_ADD_WRITECOUNT(vp, 1); CTR3(KTR_VFS, "%s: vp %p v_writecount increased to %d", __func__, vp, vp->v_writecount); diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index f6848b6..a6d78f4 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -272,7 +272,7 @@ vnode_pager_dealloc(object) ASSERT_VOP_ELOCKED(vp, "vnode_pager_dealloc"); if (object->un_pager.vnp.writemappings > 0) { object->un_pager.vnp.writemappings = 0; - vp->v_writecount--; + VOP_ADD_WRITECOUNT(vp, -1); CTR3(KTR_VFS, "%s: vp %p v_writecount decreased to %d", __func__, vp, vp->v_writecount); } @@ -1212,12 +1212,12 @@ vnode_pager_update_writecount(vm_object_t object, vm_offset_t start, vp = object->handle; if (old_wm == 0 && object->un_pager.vnp.writemappings != 0) { ASSERT_VOP_ELOCKED(vp, "v_writecount inc"); - vp->v_writecount++; + VOP_ADD_WRITECOUNT(vp, 1); CTR3(KTR_VFS, "%s: vp %p v_writecount increased to %d", __func__, vp, vp->v_writecount); } else if (old_wm != 0 && object->un_pager.vnp.writemappings == 0) { ASSERT_VOP_ELOCKED(vp, "v_writecount dec"); - vp->v_writecount--; + VOP_ADD_WRITECOUNT(vp, -1); CTR3(KTR_VFS, "%s: vp %p v_writecount decreased to %d", __func__, vp, vp->v_writecount); }