GENERIC from Sun Jun 14 13:10:03 2009 +0300, seekdir 83ce433, vmcore.7 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 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 8.0-CURRENT #0: Sun Jun 14 13:40:34 CEST 2009 pho@x4.osted.lan:/var/tmp/deviant2/sys/amd64/compile/PHO WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Phenom(tm) 9150e Quad-Core Processor (1799.99-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x100f23 Stepping = 3 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x7ff TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 3984334848 (3799 MB) : Trying to mount root from ufs:/dev/ad4s2a Entropy harvesting: interrupts ethernet point_to_point kickstart. /dev/ad4s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad4s2a: clean, 651646 free (1318 frags, 81291 blocks, 0.1% fragmentation) /dev/ad4s2e: INCORRECT BLOCK COUNT I=6264832 (4 should be 0) (CORRECTED) /dev/ad4s2e: INCORRECT BLOCK COUNT I=6264846 (832 should be 384) (CORRECTED) /dev/ad4s2e: INCORRECT BLOCK COUNT I=6264864 (672 should be 384) (CORRECTED) /dev/ad4s2e: INCORRECT BLOCK COUNT I=6264869 (2336 should be 384) (CORRECTED) : /dev/ad4s2e: UNREF FILE I=6265923 OWNER=root MODE=120755 /dev/ad4s2e: SIZE=28 MTIME=Jun 14 15:57 2009 (CLEARED) /dev/ad4s2e: UNREF FILE I=6265924 OWNER=root MODE=100444 /dev/ad4s2e: SIZE=79072 MTIME=Jun 14 15:57 2009 (CLEARED) /dev/ad4s2e: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED) /dev/ad4s2e: SUMMARY INFORMATION BAD (SALVAGED) /dev/ad4s2e: BLK(S) MISSING IN BIT MAPS (SALVAGED) /dev/ad4s2e: 482 files, 38004 used, 50739071 free (263 frags, 6342351 blocks, 0.0% fragmentation) /dev/ad4s2f: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad4s2f: clean, 1246841 free (102817 frags, 143003 blocks, 2.1% fragmentation) /dev/ad4s2d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad4s2d: clean, 46238909 free (41861 frags, 5774631 blocks, 0.1% fragmentation) Setting hostname: x4.osted.lan. re0: link state changed to DOWN Starting Network: lo0 re0. add net default: gateway 192.168.1.1 Configuring syscons: keymap blanktime. Sun Jun 14 17:48:37 CEST 2009 FreeBSD/amd64 (x4.osted.lan) (console) login: lock order reversal: 1st 0xffffff804ff20848 bufwait (bufwait) @ kern/vfs_bio.c:2558 2nd 0xffffff0011001a00 dirhash (dirhash) @ ufs/ufs/ufs_dirhash.c:285 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _sx_xlock() at _sx_xlock+0x55 ufsdirhash_acquire() at ufsdirhash_acquire+0x44 ufsdirhash_add() at ufsdirhash_add+0x19 ufs_direnter() at ufs_direnter+0x5e4 ufs_makeinode() at ufs_makeinode+0x2d5 VOP_CREATE_APV() at VOP_CREATE_APV+0xb3 vn_open_cred() at vn_open_cred+0x452 kern_openat() at kern_openat+0x159 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (5, FreeBSD ELF64, open), rip = 0x800c712ac, rsp = 0x7fffffffe258, rbp = 0xa --- Jun 14 19:23:39 x4 su: pho to root on /dev/pts/0 lock order reversal: 1st 0xffffff0011c45098 ufs (ufs) @ kern/vfs_lookup.c:495 2nd 0xffffff80503fab68 bufwait (bufwait) @ ufs/ffs/ffs_softdep.c:6150 3rd 0xffffff0010e9a098 ufs (ufs) @ kern/vfs_subr.c:2084 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e __lockmgr_args() at __lockmgr_args+0xc91 ffs_lock() at ffs_lock+0x9c VOP_LOCK1_APV() at VOP_LOCK1_APV+0x9b _vn_lock() at _vn_lock+0x57 vget() at vget+0x7b vfs_hash_get() at vfs_hash_get+0xd5 ffs_vgetf() at ffs_vgetf+0x49 softdep_sync_metadata() at softdep_sync_metadata+0x475 ffs_syncvnode() at ffs_syncvnode+0x210 ffs_truncate() at ffs_truncate+0x19c ufs_direnter() at ufs_direnter+0x44f ufs_mkdir() at ufs_mkdir+0x792 VOP_MKDIR_APV() at VOP_MKDIR_APV+0xb9 kern_mkdirat() at kern_mkdirat+0x28c syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (136, FreeBSD ELF64, mkdir), rip = 0x80083a26c, rsp = 0x7fffffffe728, rbp = 0x7fffffffe770 --- panic: ffs_read: uio->uio_resid < 0 cpuid = 1 KDB: enter: panic [thread pid 60229 tid 100152 ] Stopped at kdb_enter+0x3d: movq $0,0x688bd0(%rip) db> set $lines 0 db> bt Tracing pid 60229 tid 100152 td 0xffffff001194f390 kdb_enter() at kdb_enter+0x3d panic() at panic+0x17b ffs_read() at ffs_read+0x4d3 VOP_READ_APV() at VOP_READ_APV+0xaf vn_read() at vn_read+0x254 dofileread() at dofileread+0xa1 kern_preadv() at kern_preadv+0x63 pread() at pread+0x4d syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (0, FreeBSD ELF64, nosys), rip = 0x8007b25bc, rsp = 0x7fffffffe728, rbp = 0x7fffffffe770 --- db> show allpcpu Current CPU: 1 cpuid = 0 curthread = 0xffffff00024d4ab0: pid 12 "swi4: clock" curpcb = 0xffffff800004bd50 fpcurthread = none idlethread = 0xffffff00024de720: pid 11 "idle: cpu0" curpmap = 0 tssp = 0xffffffff80e20880 commontssp = 0xffffffff80e20880 rsp0 = 0xffffff800004bd50 gs32p = 0xffffffff80e1f6b8 ldt = 0xffffffff80e1f6f8 tss = 0xffffffff80e1f6e8 spin locks held: cpuid = 1 curthread = 0xffffff001194f390: pid 60229 "syscall" curpcb = 0xffffff8076484d50 fpcurthread = none idlethread = 0xffffff00024d3000: pid 11 "idle: cpu1" curpmap = 0 tssp = 0xffffffff80e208e8 commontssp = 0xffffffff80e208e8 rsp0 = 0xffffff8076484d50 gs32p = 0xffffffff80e1f720 ldt = 0xffffffff80e1f760 tss = 0xffffffff80e1f750 spin locks held: cpuid = 2 curthread = 0xffffff00b6187720: pid 60301 "rdwr" curpcb = 0xffffff8076a65d50 fpcurthread = none idlethread = 0xffffff00024d3390: pid 11 "idle: cpu2" curpmap = 0 tssp = 0xffffffff80e20950 commontssp = 0xffffffff80e20950 rsp0 = 0xffffff8076a65d50 gs32p = 0xffffffff80e1f788 ldt = 0xffffffff80e1f7c8 tss = 0xffffffff80e1f7b8 spin locks held: cpuid = 3 curthread = 0xffffff0004b9b000: pid 60237 "syscall" curpcb = 0xffffff8076335d50 fpcurthread = none idlethread = 0xffffff00024d3720: pid 11 "idle: cpu3" curpmap = 0 tssp = 0xffffffff80e209b8 commontssp = 0xffffffff80e209b8 rsp0 = 0xffffff8076335d50 gs32p = 0xffffffff80e1f7f0 ldt = 0xffffffff80e1f830 tss = 0xffffffff80e1f820 spin locks held: db> show alllocks Process 60237 (syscall) thread 0xffffff0004b9b000 (100085) exclusive sleep mutex process lock (process lock) r = 0 (0xffffff0004b9f0f8) locked @ kern/subr_trap.c:95 Process 60229 (syscall) thread 0xffffff001194f390 (100152) shared lockmgr ufs (ufs) r = 0 (0xffffff00c4a10cc8) locked @ kern/vfs_vnops.c:535 Process 28347 (sshd) thread 0xffffff0004df8720 (100151) exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0xffffff00119e1b98) locked @ kern/uipc_sockbuf.c:148 Process 1247 (sshd) thread 0xffffff0004c97390 (100149) exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0xffffff00119e08f0) locked @ kern/uipc_sockbuf.c:148 Process 1246 (sshd) thread 0xffffff0004ff6000 (100136) exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0xffffff00115d9b98) locked @ kern/uipc_sockbuf.c:148 Process 1245 (sshd) thread 0xffffff0004df8ab0 (100148) exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0xffffff001111e3a0) locked @ kern/uipc_sockbuf.c:148 Process 1088 (sshd) thread 0xffffff0004df3390 (100118) exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0xffffff001100a0f8) locked @ kern/uipc_sockbuf.c:148 db> show lockedvnods Locked vnodes 0xffffff00c4a10c30: tag ufs, type VDIR usecount 2, writecount 0, refcount 3 mountedhere 0 flags () v_object 0xffffff00b1ed6c80 ref 0 pages 0 lock type ufs: SHARED (count 1) #0 0xffffffff8055e31a at __lockmgr_args+0x51a #1 0xffffffff807903dc at ffs_lock+0x9c #2 0xffffffff8088f48b at VOP_LOCK1_APV+0x9b #3 0xffffffff8060e257 at _vn_lock+0x57 #4 0xffffffff8060f9bc at vn_read+0x9c #5 0xffffffff805b8f91 at dofileread+0xa1 #6 0xffffffff805b9073 at kern_preadv+0x63 #7 0xffffffff805b918d at pread+0x4d #8 0xffffffff808469a0 at syscall+0x1d0 #9 0xffffffff8082d6b0 at Xfast_syscall+0xd0 ino 10527797, on dev ad4s2e db> ps pid ppid pgrp uid state wmesg wchan cmd 60331 1257 1256 1001 S nanslp 0xffffffff80c0c168 sleep 60301 28350 60301 1001 R+ CPU 2 rdwr 60250 60227 57708 1001 R+ syscall 60249 60227 57708 1001 R+ syscall 60248 60227 57708 1001 R+ syscall 60247 60227 57708 1001 R+ syscall 60246 60227 57708 1001 R+ syscall 60245 60227 57708 1001 R+ syscall 60244 60227 57708 1001 R+ syscall 60243 60227 57708 1001 R+ syscall 60242 60227 57708 1001 R+ syscall 60241 60227 57708 1001 R+ syscall 60240 60227 57708 1001 R+ syscall 60239 60227 57708 1001 R+ syscall 60238 60227 57708 1001 R+ syscall 60237 60227 57708 1001 R+ CPU 3 syscall 60236 60227 57708 1001 R+ syscall 60235 60227 57708 1001 R+ syscall 60234 60227 57708 1001 R+ syscall 60233 60227 57708 1001 R+ syscall 60232 60227 57708 1001 R+ syscall 60231 60227 57708 1001 R+ syscall 60230 60227 57708 1001 R+ syscall 60229 60227 57708 1001 R+ CPU 1 syscall 60228 60227 57708 1001 R+ syscall 60227 60226 57708 1001 S+ wait 0xffffff0011b1c8c0 syscall 60226 57708 57708 1001 S+ nanslp 0xffffffff80c0c168 syscall 57708 1091 57708 1001 S+ wait 0xffffff001164f000 bash 28350 28349 28350 1001 Ss+ wait 0xffffff0004dc8460 bash 28349 28347 28347 1001 S select 0xffffff0004bc2240 sshd 28347 1006 28347 0 Ss sbwait 0xffffff00119e1be4 sshd 1258 1256 1256 1001 S piperd 0xffffff0004f4c5b0 awk 1257 1256 1256 1001 S wait 0xffffff001161b000 sh 1256 1255 1256 1001 Ss wait 0xffffff0011624460 sh 1255 1247 1247 1001 S select 0xffffff0011606640 sshd 1254 1251 1254 1001 Ss+ select 0xffffff0004d55ac0 top 1253 1252 1253 1001 Ss kqread 0xffffff0004dab300 tail 1252 1246 1246 1001 S select 0xffffff0004b90c40 sshd 1251 1245 1245 1001 S select 0xffffff00116065c0 sshd 1247 1006 1247 0 Ss sbwait 0xffffff00119e093c sshd 1246 1006 1246 0 Ss sbwait 0xffffff00115d9be4 sshd 1245 1006 1245 0 Ss sbwait 0xffffff001111e3ec sshd 1091 1090 1091 1001 Ss+ wait 0xffffff0004fde8c0 bash 1090 1088 1088 1001 S select 0xffffff0004bc3ac0 sshd 1088 1006 1088 0 Ss sbwait 0xffffff001100a144 sshd 1087 1 1087 0 Ss+ ttyin 0xffffff0004a340a8 getty 1086 1 1086 0 Ss+ ttyin 0xffffff0004a344a8 getty 1085 1 1085 0 Ss+ ttyin 0xffffff0004a348a8 getty 1084 1 1084 0 Ss+ ttyin 0xffffff0004a34ca8 getty 1083 1 1083 0 Ss+ ttyin 0xffffff0004a350a8 getty 1082 1 1082 0 Ss+ ttyin 0xffffff0004a354a8 getty 1081 1 1081 0 Ss+ ttyin 0xffffff0004a358a8 getty 1080 1 1080 0 Ss+ ttyin 0xffffff0004a35ca8 getty 1079 1 1079 0 Ss+ ttyin 0xffffff0004a1fca8 getty 1053 1 1053 0 Ss select 0xffffff0011008140 inetd 1023 1 1023 0 Ss nanslp 0xffffffff80c0c168 cron 1017 1 1017 25 Ss pause 0xffffff0011000500 sendmail 1013 1 1013 0 Ss select 0xffffff0004cd59c0 sendmail 1006 1 1006 0 Ss select 0xffffff0004cd5e40 sshd 969 1 969 0 Ss select 0xffffff0004bc2140 ntpd 854 1 854 0 Ss select 0xffffff0004df9440 moused 736 1 736 0 Ss select 0xffffff0004df9cc0 syslogd 602 1 602 0 Ss select 0xffffff0004dfa040 devd 44 0 0 0 SL flowclea 0xffffffff80c0be44 [flowcleaner] 43 0 0 0 SL sdflush 0xffffffff80de6338 [softdepflush] 42 0 0 0 SL syncer 0xffffffff80dcd320 [syncer] 41 0 0 0 SL vlruwt 0xffffff0004ba08c0 [vnlru] 40 0 0 0 SL psleep 0xffffffff80dcce48 [bufdaemon] 39 0 0 0 SL pgzero 0xffffffff80de7d0c [pagezero] 38 0 0 0 SL psleep 0xffffffff80de70a8 [vmdaemon] 9 0 0 0 SL psleep 0xffffffff80de706c [pagedaemon] 37 0 0 0 SL wmsg 0xffffff80003e8dd0 [usbus5] 36 0 0 0 SL wmsg 0xffffff80003e8d78 [usbus5] 35 0 0 0 SL wmsg 0xffffff80003e8d20 [usbus5] 34 0 0 0 SL wmsg 0xffffff80003e8cc8 [usbus5] 33 0 0 0 SL wmsg 0xffffff80003e0460 [usbus4] 32 0 0 0 SL wmsg 0xffffff80003e0408 [usbus4] 31 0 0 0 SL wmsg 0xffffff80003e03b0 [usbus4] 30 0 0 0 SL wmsg 0xffffff80003e0358 [usbus4] 29 0 0 0 SL wmsg 0xffffff80003dd460 [usbus3] 28 0 0 0 SL wmsg 0xffffff80003dd408 [usbus3] 27 0 0 0 SL wmsg 0xffffff80003dd3b0 [usbus3] 26 0 0 0 SL wmsg 0xffffff80003dd358 [usbus3] 25 0 0 0 SL wmsg 0xffffff80003da460 [usbus2] 24 0 0 0 SL wmsg 0xffffff80003da408 [usbus2] 23 0 0 0 SL wmsg 0xffffff80003da3b0 [usbus2] 22 0 0 0 SL wmsg 0xffffff80003da358 [usbus2] 21 0 0 0 SL wmsg 0xffffff80003d7460 [usbus1] 20 0 0 0 SL wmsg 0xffffff80003d7408 [usbus1] 19 0 0 0 SL wmsg 0xffffff80003d73b0 [usbus1] 18 0 0 0 SL wmsg 0xffffff80003d7358 [usbus1] 17 0 0 0 SL wmsg 0xffffff80003d4460 [usbus0] 16 0 0 0 SL wmsg 0xffffff80003d4408 [usbus0] 15 0 0 0 SL wmsg 0xffffff80003d43b0 [usbus0] 14 0 0 0 SL wmsg 0xffffff80003d4358 [usbus0] 8 0 0 0 SL waiting_ 0xffffffff80dda7a0 [sctp_iterator] 7 0 0 0 SL - 0xffffff0003612848 [fdc0] 6 0 0 0 SL - 0xffffff80003eb000 [fw0_probe] 5 0 0 0 SL ccb_scan 0xffffffff80bd5860 [xpt_thrd] 13 0 0 0 SL - 0xffffffff80c0be44 [yarrow] 4 0 0 0 SL - 0xffffffff80c08628 [g_down] 3 0 0 0 SL - 0xffffffff80c08620 [g_up] 2 0 0 0 SL - 0xffffffff80c08610 [g_event] 12 0 0 0 RL (threaded) intr 100042 I [irq12: psm0] 100041 I [irq1: atkbd0] 100039 I [swi0: uart] 100036 I [irq20: fwohci0] 100035 I [irq14: ata0] 100034 I [irq19: ehci0] 100033 I [irq18: ohci2 ohci4] 100032 I [irq17: ohci1 ohci3] 100031 I [irq16: hdac1 ohci0] 100030 I [irq22: atapci0] 100029 I [irq256: hdac0] 100028 I [irq9: acpi0] 100027 I [swi6: task queue] 100026 I [swi6: Giant taskq] 100024 I [swi5: +] 100022 I [swi2: cambio] 100012 I [swi4: clock] 100011 RunQ [swi4: clock] 100010 I [swi4: clock] 100009 Run CPU 0 [swi4: clock] 100008 I [swi3: vm] 100007 I [swi1: netisr 0] 11 0 0 0 RL (threaded) idle 100006 CanRun [idle: cpu0] 100005 CanRun [idle: cpu1] 100004 CanRun [idle: cpu2] 100003 CanRun [idle: cpu3] 1 0 1 0 SLs wait 0xffffff00024d08c0 [init] 10 0 0 0 SL audit_wo 0xffffffff80de5690 [audit] 0 0 0 0 SLs (threaded) kernel 100037 D - 0xffffff0004986d80 [fw0_taskq] 100025 D - 0xffffff0002612c00 [thread taskq] 100023 D - 0xffffff0002612d80 [kqueue taskq] 100020 D - 0xffffff0002637580 [acpi_task_2] 100019 D - 0xffffff0002637580 [acpi_task_1] 100018 D - 0xffffff0002637580 [acpi_task_0] 100016 D - 0xffffff00024df280 [firmware taskq] 100000 D sched 0xffffffff80c08720 [swapper] db> allt Tracing command sleep pid 60331 tid 100384 td 0xffffff00b1ec7720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_timedwait_sig() at sleepq_timedwait_sig+0x19 _sleep() at _sleep+0x235 kern_nanosleep() at kern_nanosleep+0x118 nanosleep() at nanosleep+0x6e syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (240, FreeBSD ELF64, nanosleep), rip = 0x80071767c, rsp = 0x7fffffffebd8, rbp = 0x7fffffffec30 --- Tracing command rdwr pid 60301 tid 100453 td 0xffffff00b6187720 cpustop_handler() at cpustop_handler+0x3b ipi_nmi_handler() at ipi_nmi_handler+0x30 trap() at trap+0x2c5 nmi_calltrap() at nmi_calltrap+0x8 --- trap 0x13, rip = 0xffffffff80844b6b, rsp = 0xffffff8000018fe0, rbp = 0xffffff8076a65a00 --- copyout() at copyout+0x3b zero_read() at zero_read+0x36 devfs_read_f() at devfs_read_f+0x86 dofileread() at dofileread+0xa1 kern_readv() at kern_readv+0x60 readv() at readv+0x41 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (120, FreeBSD ELF64, readv), rip = 0x8006c3ecc, rsp = 0x7fffffffe9a8, rbp = 0x7fffffffe9f0 --- Tracing command syscall pid 60250 tid 100455 td 0xffffff004ab6a000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60249 tid 100456 td 0xffffff004ab68ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60248 tid 100410 td 0xffffff0109381390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60247 tid 100104 td 0xffffff0004c97720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60246 tid 100471 td 0xffffff0011ae5ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60245 tid 100358 td 0xffffff00b1dbe000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60244 tid 100252 td 0xffffff00b1655720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60243 tid 100223 td 0xffffff00b1477ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60242 tid 100292 td 0xffffff00b1750720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60241 tid 100500 td 0xffffff00b1dbeab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60240 tid 100369 td 0xffffff00b1dba390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60239 tid 100311 td 0xffffff00b1a7cab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60238 tid 100140 td 0xffffff0004ff5000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60237 tid 100085 td 0xffffff0004b9b000 cpustop_handler() at cpustop_handler+0x3b ipi_nmi_handler() at ipi_nmi_handler+0x30 trap() at trap+0x2c5 nmi_calltrap() at nmi_calltrap+0x8 --- trap 0x13, rip = 0x800838471, rsp = 0x7fffffffe700, rbp = 0xe1 --- Tracing command syscall pid 60236 tid 100134 td 0xffffff0004ff6720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60235 tid 100258 td 0xffffff00b1653000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60234 tid 100261 td 0xffffff00b1750390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60233 tid 100079 td 0xffffff0004c24ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60232 tid 100165 td 0xffffff001194c390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60231 tid 100168 td 0xffffff0011978ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60230 tid 100409 td 0xffffff0109381720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60229 tid 100152 td 0xffffff001194f390 kdb_enter() at kdb_enter+0x3d panic() at panic+0x17b ffs_read() at ffs_read+0x4d3 VOP_READ_APV() at VOP_READ_APV+0xaf vn_read() at vn_read+0x254 dofileread() at dofileread+0xa1 kern_preadv() at kern_preadv+0x63 pread() at pread+0x4d syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (0, FreeBSD ELF64, nosys), rip = 0x8007b25bc, rsp = 0x7fffffffe728, rbp = 0x7fffffffe770 --- Tracing command syscall pid 60228 tid 100253 td 0xffffff00b1655390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ast() at ast+0x220 doreti_ast() at doreti_ast+0x1f Tracing command syscall pid 60227 tid 100204 td 0xffffff0011a73720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe kern_wait() at kern_wait+0x3cc wait4() at wait4+0x35 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (7, FreeBSD ELF64, wait4), rip = 0x8007c5e4c, rsp = 0x7fffffffe7a8, rbp = 0x7fffffffe7d0 --- Tracing command syscall pid 60226 tid 100138 td 0xffffff0004ff5720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_timedwait_sig() at sleepq_timedwait_sig+0x19 _sleep() at _sleep+0x235 kern_nanosleep() at kern_nanosleep+0x118 nanosleep() at nanosleep+0x6e syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (240, FreeBSD ELF64, nanosleep), rip = 0x80082c67c, rsp = 0x7fffffffe7a8, rbp = 0x7fffffffe800 --- Tracing command bash pid 57708 tid 100176 td 0xffffff00115c1720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe kern_wait() at kern_wait+0x3cc wait4() at wait4+0x35 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (7, FreeBSD ELF64, wait4), rip = 0x800b8ae4c, rsp = 0x7fffffffe8e8, rbp = 0x800e4cce0 --- Tracing command bash pid 28350 tid 100112 td 0xffffff0004df4ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe kern_wait() at kern_wait+0x3cc wait4() at wait4+0x35 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (7, FreeBSD ELF64, wait4), rip = 0x800b8ae4c, rsp = 0x7fffffffe6d8, rbp = 0x800eb8840 --- Tracing command sshd pid 28349 tid 100175 td 0xffffff00115c1ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _cv_wait_sig() at _cv_wait_sig+0x17e seltdwait() at seltdwait+0xac kern_select() at kern_select+0x610 select() at select+0x56 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (93, FreeBSD ELF64, select), rip = 0x8013cd3ec, rsp = 0x7fffffffdcb8, rbp = 0x7fffffffdd40 --- Tracing command sshd pid 28347 tid 100151 td 0xffffff0004df8720 Tracing command awk pid 1258 tid 100173 td 0xffffff001197e720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe pipe_read() at pipe_read+0x4a3 dofileread() at dofileread+0xa1 kern_readv() at kern_readv+0x60 read() at read+0x49 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (3, FreeBSD ELF64, read), rip = 0x80087146c, rsp = 0x7fffffffe8a8, rbp = 0x8009873e0 --- Tracing command sh pid 1257 tid 100172 td 0xffffff001197eab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe kern_wait() at kern_wait+0x3cc wait4() at wait4+0x35 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (7, FreeBSD ELF64, wait4), rip = 0x800932e4c, rsp = 0x7fffffffe6a8, rbp = 0x4e8 --- Tracing command sh pid 1256 tid 100163 td 0xffffff001194c720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe kern_wait() at kern_wait+0x3cc wait4() at wait4+0x35 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (7, FreeBSD ELF64, wait4), rip = 0x800932e4c, rsp = 0x7fffffffea08, rbp = 0x4e8 --- Tracing command sshd pid 1255 tid 100160 td 0xffffff001194d000 Tracing command top pid 1254 tid 100164 td 0xffffff001195a720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_timedwait_sig() at sleepq_timedwait_sig+0x19 _cv_timedwait_sig() at _cv_timedwait_sig+0x18c seltdwait() at seltdwait+0x56 kern_select() at kern_select+0x610 select() at select+0x56 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (93, FreeBSD ELF64, select), rip = 0x800ab23ec, rsp = 0x7fffffffea18, rbp = 0xe --- Tracing command tail pid 1253 tid 100156 td 0xffffff001197c390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_timedwait_sig() at sleepq_timedwait_sig+0x19 _sleep() at _sleep+0x235 kern_kevent() at kern_kevent+0x32a kevent() at kevent+0x90 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (363, FreeBSD ELF64, kevent), rip = 0x80071c72c, rsp = 0x7fffffffea38, rbp = 0x800902148 --- Tracing command sshd pid 1252 tid 100090 td 0xffffff0004cdb720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _cv_wait_sig() at _cv_wait_sig+0x17e seltdwait() at seltdwait+0xac kern_select() at kern_select+0x610 select() at select+0x56 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (93, FreeBSD ELF64, select), rip = 0x8013cd3ec, rsp = 0x7fffffffdcb8, rbp = 0x7fffffffdd40 --- Tracing command sshd pid 1251 tid 100101 td 0xffffff0004cda390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _cv_wait_sig() at _cv_wait_sig+0x17e seltdwait() at seltdwait+0xac kern_select() at kern_select+0x610 select() at select+0x56 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (93, FreeBSD ELF64, select), rip = 0x8013cd3ec, rsp = 0x7fffffffdcb8, rbp = 0x7fffffffdd40 --- Tracing command sshd pid 1247 tid 100149 td 0xffffff0004c97390 Tracing command sshd pid 1246 tid 100136 td 0xffffff0004ff6000 Tracing command sshd pid 1245 tid 100148 td 0xffffff0004df8ab0 Tracing command bash pid 1091 tid 100137 td 0xffffff0004ff5ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe kern_wait() at kern_wait+0x3cc wait4() at wait4+0x35 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (7, FreeBSD ELF64, wait4), rip = 0x800b8ae4c, rsp = 0x7fffffffe6d8, rbp = 0x800ee94e0 --- Tracing command sshd pid 1090 tid 100130 td 0xffffff0004d5c720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _cv_wait_sig() at _cv_wait_sig+0x17e seltdwait() at seltdwait+0xac kern_select() at kern_select+0x610 select() at select+0x56 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (93, FreeBSD ELF64, select), rip = 0x8013cd3ec, rsp = 0x7fffffffdcb8, rbp = 0x7fffffffdd40 --- Tracing command sshd pid 1088 tid 100118 td 0xffffff0004df3390 Tracing command getty pid 1087 tid 100102 td 0xffffff0004cda000 Tracing command getty pid 1086 tid 100084 td 0xffffff0004cdc390 Tracing command getty pid 1085 tid 100105 td 0xffffff0004b9a000 Tracing command getty pid 1084 tid 100117 td 0xffffff0004df3720 Tracing command getty pid 1083 tid 100091 td 0xffffff0004cdb390 Tracing command getty pid 1082 tid 100113 td 0xffffff0004df4720 Tracing command getty pid 1081 tid 100123 td 0xffffff0004d5b000 Tracing command getty pid 1080 tid 100083 td 0xffffff0004b9b390 Tracing command getty pid 1079 tid 100088 td 0xffffff0004b9a720 Tracing command inetd pid 1053 tid 100115 td 0xffffff0004df4000 Tracing command cron pid 1023 tid 100092 td 0xffffff0004b9a390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_timedwait_sig() at sleepq_timedwait_sig+0x19 _sleep() at _sleep+0x235 kern_nanosleep() at kern_nanosleep+0x118 nanosleep() at nanosleep+0x6e syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (240, FreeBSD ELF64, nanosleep), rip = 0x80093767c, rsp = 0x7fffffffeb28, rbp = 0x3c --- Tracing command sendmail pid 1017 tid 100132 td 0xffffff0004ff7000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe kern_sigsuspend() at kern_sigsuspend+0xca sigsuspend() at sigsuspend+0x34 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (341, FreeBSD ELF64, sigsuspend), rip = 0x800d301fc, rsp = 0x7fffffffcd68, rbp = 0x1 --- Tracing command sendmail pid 1013 tid 100128 td 0xffffff0004df3000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_timedwait_sig() at sleepq_timedwait_sig+0x19 _cv_timedwait_sig() at _cv_timedwait_sig+0x18c seltdwait() at seltdwait+0x56 kern_select() at kern_select+0x610 select() at select+0x56 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (93, FreeBSD ELF64, select), rip = 0x800dc83ec, rsp = 0x7fffffffc1e8, rbp = 0x7fffffffc280 --- Tracing command sshd pid 1006 tid 100093 td 0xffffff0004cdb000 Tracing command ntpd pid 969 tid 100077 td 0xffffff0004c25390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _cv_wait_sig() at _cv_wait_sig+0x17e seltdwait() at seltdwait+0xac kern_select() at kern_select+0x610 select() at select+0x56 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (93, FreeBSD ELF64, select), rip = 0x800d473ec, rsp = 0x7fffffffec18, rbp = 0x7fffffffed48 --- Tracing command moused pid 854 tid 100103 td 0xffffff0004c97ab0 Tracing command syslogd pid 736 tid 100108 td 0xffffff0004df6ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _cv_wait_sig() at _cv_wait_sig+0x17e seltdwait() at seltdwait+0xac kern_select() at kern_select+0x610 select() at select+0x56 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (93, FreeBSD ELF64, select), rip = 0x80084c3ec, rsp = 0x7fffffffdcb8, rbp = 0x5 --- Tracing command devd pid 602 tid 100116 td 0xffffff0004df3ab0 Tracing command flowcleaner pid 44 tid 100075 td 0xffffff0004b9b720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 flowtable_cleaner() at flowtable_cleaner+0x13a fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8074000d40, rbp = 0 --- Tracing command softdepflush pid 43 tid 100074 td 0xffffff0004b9bab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 softdep_flush() at softdep_flush+0x259 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073ffbd40, rbp = 0 --- Tracing command syncer pid 42 tid 100073 td 0xffffff0004b9c000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _cv_timedwait() at _cv_timedwait+0x18c sched_sync() at sched_sync+0x4dc fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073ff6d40, rbp = 0 --- Tracing command vnlru pid 41 tid 100072 td 0xffffff0004b9c390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 vnlru_proc() at vnlru_proc+0x608 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073ff1d40, rbp = 0 --- Tracing command bufdaemon pid 40 tid 100071 td 0xffffff0004b9c720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 buf_daemon() at buf_daemon+0x14a fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073fecd40, rbp = 0 --- Tracing command pagezero pid 39 tid 100070 td 0xffffff0004b9cab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 vm_pagezero() at vm_pagezero+0x73 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073fe7d40, rbp = 0 --- Tracing command vmdaemon pid 38 tid 100069 td 0xffffff0004b9d000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b vm_daemon() at vm_daemon+0x4d fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073fe2d40, rbp = 0 --- Tracing command pagedaemon pid 9 tid 100068 td 0xffffff0004ab5000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 vm_pageout() at vm_pageout+0x855 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073fddd40, rbp = 0 --- Tracing command usbus5 pid 37 tid 100067 td 0xffffff0004ab5390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f78d40, rbp = 0 --- Tracing command usbus5 pid 36 tid 100066 td 0xffffff0004ab5720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f73d40, rbp = 0 --- Tracing command usbus5 pid 35 tid 100065 td 0xffffff0004ab5ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f6ed40, rbp = 0 --- Tracing command usbus5 pid 34 tid 100064 td 0xffffff0004ab6000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f69d40, rbp = 0 --- Tracing command usbus4 pid 33 tid 100063 td 0xffffff0004ab6390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f64d40, rbp = 0 --- Tracing command usbus4 pid 32 tid 100062 td 0xffffff0004ab6720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f5fd40, rbp = 0 --- Tracing command usbus4 pid 31 tid 100061 td 0xffffff0004ab6ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f5ad40, rbp = 0 --- Tracing command usbus4 pid 30 tid 100060 td 0xffffff0004ab8000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f55d40, rbp = 0 --- Tracing command usbus3 pid 29 tid 100059 td 0xffffff0004ab8390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f50d40, rbp = 0 --- Tracing command usbus3 pid 28 tid 100058 td 0xffffff0004ab8720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f4bd40, rbp = 0 --- Tracing command usbus3 pid 27 tid 100057 td 0xffffff0004ab8ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f46d40, rbp = 0 --- Tracing command usbus3 pid 26 tid 100056 td 0xffffff000492b390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f41d40, rbp = 0 --- Tracing command usbus2 pid 25 tid 100055 td 0xffffff000492b720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f3cd40, rbp = 0 --- Tracing command usbus2 pid 24 tid 100054 td 0xffffff000492bab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f37d40, rbp = 0 --- Tracing command usbus2 pid 23 tid 100053 td 0xffffff0004a98000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f32d40, rbp = 0 --- Tracing command usbus2 pid 22 tid 100052 td 0xffffff0004a98390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f2dd40, rbp = 0 --- Tracing command usbus1 pid 21 tid 100051 td 0xffffff0004a98720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f28d40, rbp = 0 --- Tracing command usbus1 pid 20 tid 100050 td 0xffffff0004a98ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f23d40, rbp = 0 --- Tracing command usbus1 pid 19 tid 100049 td 0xffffff0004a99000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f1ed40, rbp = 0 --- Tracing command usbus1 pid 18 tid 100048 td 0xffffff0004a99390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f19d40, rbp = 0 --- Tracing command usbus0 pid 17 tid 100047 td 0xffffff0004a99720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f14d40, rbp = 0 --- Tracing command usbus0 pid 16 tid 100046 td 0xffffff0004a99ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f0fd40, rbp = 0 --- Tracing command usbus0 pid 15 tid 100045 td 0xffffff0002653ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f0ad40, rbp = 0 --- Tracing command usbus0 pid 14 tid 100044 td 0xffffff0004928000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b usb_process() at usb_process+0x14b fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f05d40, rbp = 0 --- Tracing command sctp_iterator pid 8 tid 100043 td 0xffffff0004928390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b sctp_iterator_thread() at sctp_iterator_thread+0x54 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073f00d40, rbp = 0 --- Tracing command fdc0 pid 7 tid 100040 td 0xffffff0004929000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 fdc_thread() at fdc_thread+0x774 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073eeed40, rbp = 0 --- Tracing command fw0_probe pid 6 tid 100038 td 0xffffff0004929720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe fw_bus_probe_thread() at fw_bus_probe_thread+0xbc fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073edad40, rbp = 0 --- Tracing command xpt_thrd pid 5 tid 100021 td 0xffffff000264cab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b xpt_scanner_thread() at xpt_scanner_thread+0x3a fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000087d40, rbp = 0 --- Tracing command yarrow pid 13 tid 100017 td 0xffffff00024e3000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 random_kthread() at random_kthread+0x1ad fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000073d40, rbp = 0 --- Tracing command g_down pid 4 tid 100015 td 0xffffff00024e3720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 g_io_schedule_down() at g_io_schedule_down+0x250 g_down_procbody() at g_down_procbody+0x6f fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000069d40, rbp = 0 --- Tracing command g_up pid 3 tid 100014 td 0xffffff00024e3ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 g_io_schedule_up() at g_io_schedule_up+0x154 g_up_procbody() at g_up_procbody+0x6f fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000064d40, rbp = 0 --- Tracing command g_event pid 2 tid 100013 td 0xffffff00024e4000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 g_event_procbody() at g_event_procbody+0xa1 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800005fd40, rbp = 0 --- Tracing command intr pid 12 tid 100042 td 0xffffff0004928720 fork_trampoline() at fork_trampoline Tracing command intr pid 12 tid 100041 td 0xffffff0004928ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073ef3d40, rbp = 0 --- Tracing command intr pid 12 tid 100039 td 0xffffff0004929390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073edfd40, rbp = 0 --- Tracing command intr pid 12 tid 100036 td 0xffffff000492b000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073e02d40, rbp = 0 --- Tracing command intr pid 12 tid 100035 td 0xffffff000264e720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073dfdd40, rbp = 0 --- Tracing command intr pid 12 tid 100034 td 0xffffff000264eab0 fork_trampoline() at fork_trampoline Tracing command intr pid 12 tid 100033 td 0xffffff0002651000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073be1d40, rbp = 0 --- Tracing command intr pid 12 tid 100032 td 0xffffff0002651390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073b98d40, rbp = 0 --- Tracing command intr pid 12 tid 100031 td 0xffffff0002651720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073b4fd40, rbp = 0 --- Tracing command intr pid 12 tid 100030 td 0xffffff0002651ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8072be7d40, rbp = 0 --- Tracing command intr pid 12 tid 100029 td 0xffffff0002653000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff80000afd40, rbp = 0 --- Tracing command intr pid 12 tid 100028 td 0xffffff0002653390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff80000aad40, rbp = 0 --- Tracing command intr pid 12 tid 100027 td 0xffffff0002653720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff80000a5d40, rbp = 0 --- Tracing command intr pid 12 tid 100026 td 0xffffff00024e4720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff80000a0d40, rbp = 0 --- Tracing command intr pid 12 tid 100024 td 0xffffff000264c000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000096d40, rbp = 0 --- Tracing command intr pid 12 tid 100022 td 0xffffff000264c720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800008cd40, rbp = 0 --- Tracing command intr pid 12 tid 100012 td 0xffffff00024e4390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800005ad40, rbp = 0 --- Tracing command intr pid 12 tid 100011 td 0xffffff00024d4390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000055d40, rbp = 0 --- Tracing command intr pid 12 tid 100010 td 0xffffff00024d4720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000050d40, rbp = 0 --- Tracing command intr pid 12 tid 100009 td 0xffffff00024d4ab0 cpustop_handler() at cpustop_handler+0x3b ipi_nmi_handler() at ipi_nmi_handler+0x30 trap() at trap+0x2c5 nmi_calltrap() at nmi_calltrap+0x8 --- trap 0x13, rip = 0xffffffff801f4b16, rsp = 0xffffffff80e28640, rbp = 0xffffff800004bab0 --- acpi_timer_read() at acpi_timer_read+0x16 acpi_timer_get_timecount_safe() at acpi_timer_get_timecount_safe+0xc binuptime() at binuptime+0x3b softclock() at softclock+0x267 intr_event_execute_handlers() at intr_event_execute_handlers+0x68 ithread_loop() at ithread_loop+0xb2 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800004bd40, rbp = 0 --- Tracing command intr pid 12 tid 100008 td 0xffffff00024de000 fork_trampoline() at fork_trampoline Tracing command intr pid 12 tid 100007 td 0xffffff00024de390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d ithread_loop() at ithread_loop+0x246 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000041d40, rbp = 0 --- Tracing command idle pid 11 tid 100006 td 0xffffff00024de720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sched_idletd() at sched_idletd+0x26d fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800003cd40, rbp = 0 --- Tracing command idle pid 11 tid 100005 td 0xffffff00024d3000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sched_idletd() at sched_idletd+0x26d fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000037d40, rbp = 0 --- Tracing command idle pid 11 tid 100004 td 0xffffff00024d3390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sched_preempt() at sched_preempt+0xbc ipi_bitmap_handler() at ipi_bitmap_handler+0x70 Xipi_intr_bitmap_handler() at Xipi_intr_bitmap_handler+0x9b --- interrupt, rip = 0xffffffff80824ec6, rsp = 0xffffff8000032b60, rbp = 0xffffff8000032b70 --- acpi_cpu_c1() at acpi_cpu_c1+0x6 acpi_cpu_idle() at acpi_cpu_idle+0x1f6 sched_idletd() at sched_idletd+0x13c fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000032d40, rbp = 0 --- Tracing command idle pid 11 tid 100003 td 0xffffff00024d3720 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sched_idletd() at sched_idletd+0x26d fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800002dd40, rbp = 0 --- Tracing command init pid 1 tid 100002 td 0xffffff00024d3ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_catch_signals() at sleepq_catch_signals+0x24e sleepq_wait_sig() at sleepq_wait_sig+0x16 _sleep() at _sleep+0x2fe kern_wait() at kern_wait+0x3cc wait4() at wait4+0x35 syscall() at syscall+0x1d0 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (7, FreeBSD ELF64, wait4), rip = 0x40c62c, rsp = 0x7fffffffe808, rbp = 0x401d40 --- Tracing command audit pid 10 tid 100001 td 0xffffff00024d4000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _cv_wait() at _cv_wait+0x17a audit_worker() at audit_worker+0x77 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000023d40, rbp = 0 --- Tracing command kernel pid 0 tid 100037 td 0xffffff0004929ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d msleep_spin() at msleep_spin+0x209 taskqueue_thread_loop() at taskqueue_thread_loop+0x5c fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8073e15d40, rbp = 0 --- Tracing command kernel pid 0 tid 100025 td 0xffffff00024e4ab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b taskqueue_thread_loop() at taskqueue_thread_loop+0xaa fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800009bd40, rbp = 0 --- Tracing command kernel pid 0 tid 100023 td 0xffffff000264c390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b taskqueue_thread_loop() at taskqueue_thread_loop+0xaa fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000091d40, rbp = 0 --- Tracing command kernel pid 0 tid 100020 td 0xffffff000264e000 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d msleep_spin() at msleep_spin+0x209 taskqueue_thread_loop() at taskqueue_thread_loop+0x5c fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000082d40, rbp = 0 --- Tracing command kernel pid 0 tid 100019 td 0xffffff000264e390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d msleep_spin() at msleep_spin+0x209 taskqueue_thread_loop() at taskqueue_thread_loop+0x5c fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800007dd40, rbp = 0 --- Tracing command kernel pid 0 tid 100018 td 0xffffff00024deab0 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d msleep_spin() at msleep_spin+0x209 taskqueue_thread_loop() at taskqueue_thread_loop+0x5c fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000078d40, rbp = 0 --- Tracing command kernel pid 0 tid 100016 td 0xffffff00024e3390 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x34b taskqueue_thread_loop() at taskqueue_thread_loop+0xaa fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff800006ed40, rbp = 0 --- Tracing command kernel pid 0 tid 100000 td 0xffffffff80c08b80 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_timedwait() at sleepq_timedwait+0x4d _sleep() at _sleep+0x335 scheduler() at scheduler+0x292 mi_startup() at mi_startup+0x59 btext() at btext+0x2c db> call doadump Physical memory: 3951 MB Dumping 1513 MB: 1498 1482 1466 1450 1434 1418 1402 1386 1370 1354 1338 1322 1306 1290 1274 1258 1242 1226 1210 1194 1178 1162 1146 1130 1114 1098 1082 1066 1050 1034 1018 1002 986 970 954 938 922 906 890 874 858 842 826 810 794 778 762 746 730 714 698 682 666 650 634 618 602 586 570 554 538 522 506 490 474 458 442 426 410 394 378 362 346 330 314 298 282 266 250 234 218 202 186 170 154 138 122 106 90 74 58 42 26 10 Dump complete = 0 db> reset cpu_reset: Restarting BSP cpu_reset_proxy: Stopped CPU 1 (kgdb) bt #0 doadump () at pcpu.h:223 #1 0xffffffff801d0ffc in db_fncall (dummy1=Variable "dummy1" is not available. ) at ../../../ddb/db_command.c:548 #2 0xffffffff801d1331 in db_command (last_cmdp=0xffffffff80bd6ea0, cmd_table=Variable "cmd_table" is not available. ) at ../../../ddb/db_command.c:445 #3 0xffffffff801d1580 in db_command_loop () at ../../../ddb/db_command.c:498 #4 0xffffffff801d3529 in db_trap (type=Variable "type" is not available. ) at ../../../ddb/db_main.c:229 #5 0xffffffff805a3675 in kdb_trap (type=0x3, code=0x0, tf=0xffffff8076484740) at ../../../kern/subr_kdb.c:534 #6 0xffffffff80846ff1 in trap (frame=0xffffff8076484740) at ../../../amd64/amd64/trap.c:613 #7 0xffffffff8082d423 in calltrap () at ../../../amd64/amd64/exception.S:223 #8 0xffffffff805a384d in kdb_enter (why=0xffffffff8094de73 "panic", msg=0xa
) at cpufunc.h:63 #9 0xffffffff80573fab in panic (fmt=Variable "fmt" is not available. ) at ../../../kern/kern_shutdown.c:558 #10 0xffffffff8078feb3 in ffs_read (ap=Variable "ap" is not available. ) at ../../../ufs/ffs/ffs_vnops.c:460 #11 0xffffffff8088d99f in VOP_READ_APV (vop=0xffffffff80b9ec80, a=0xffffff8076484a00) at vnode_if.c:887 #12 0xffffffff8060fb74 in vn_read (fp=0xffffff0011b4a410, uio=0xffffff8076484b10, active_cred=0xffffff0011163600, flags=Variable "flags" is not available. ) at vnode_if.h:384 #13 0xffffffff805b8f91 in dofileread (td=0xffffff001194f390, fd=0x3, fp=0xffffff0011b4a410, auio=0xffffff8076484b10, offset=Variable "offset" is not available. ) at file.h:227 #14 0xffffffff805b9073 in kern_preadv (td=0xffffff001194f390, fd=0x3, auio=0xffffff8076484b10, offset=0x871471f1) at ../../../kern/sys_generic.c:284 #15 0xffffffff805b918d in pread (td=0xffffff8076484670, uap=0xa) at ../../../kern/sys_generic.c:185 #16 0xffffffff808469a0 in syscall (frame=0xffffff8076484c90) at ../../../amd64/amd64/trap.c:984 #17 0xffffffff8082d6b0 in Xfast_syscall () at ../../../amd64/amd64/exception.S:364 #18 0x00000008007b25bc in ?? () (kgdb) f 10 #10 0xffffffff8078feb3 in ffs_read (ap=Variable "ap" is not available. ) at ../../../ufs/ffs/ffs_vnops.c:460 460 KASSERT(orig_resid >= 0, ("ffs_read: uio->uio_resid < 0")); (kgdb) l 455 panic("ffs_read: short symlink"); 456 } else if (vp->v_type != VREG && vp->v_type != VDIR) 457 panic("ffs_read: type %d", vp->v_type); 458 #endif 459 orig_resid = uio->uio_resid; 460 KASSERT(orig_resid >= 0, ("ffs_read: uio->uio_resid < 0")); 461 if (orig_resid == 0) 462 return (0); 463 KASSERT(uio->uio_offset >= 0, ("ffs_read: uio->uio_offset < 0")); 464 fs = ip->i_fs; (kgdb) p *uio $3 = {uio_iov = 0xffffff8076484b40, uio_iovcnt = 0x1, uio_offset = 0x871471f1, uio_resid = 0x82281d17, uio_segflg = UIO_USERSPACE, uio_rw = UIO_READ, uio_td = 0xffffff001194f390} (kgdb) git diff master..HEAD diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c index 42ea070..af88fa9 100644 --- a/sys/amd64/linux32/linux32_machdep.c +++ b/sys/amd64/linux32/linux32_machdep.c @@ -264,7 +264,7 @@ linux32_copyinuio(struct l_iovec32 *iovp, l_ulong iovcnt, struct uio **uiop) uio->uio_offset = -1; uio->uio_resid = 0; for (i = 0; i < iovcnt; i++) { - if (iov->iov_len > INT_MAX - uio->uio_resid) { + if (iov->iov_len > SSIZE_MAX - uio->uio_resid) { free(uio, M_IOV); return (EINVAL); } diff --git a/sys/dev/iscsi/initiator/isc_soc.c b/sys/dev/iscsi/initiator/isc_soc.c index 0150ce7..d76531a 100644 --- a/sys/dev/iscsi/initiator/isc_soc.c +++ b/sys/dev/iscsi/initiator/isc_soc.c @@ -322,14 +322,15 @@ so_getbhs(isc_session_t *sp) error = soreceive(sp->soc, NULL, uio, 0, 0, &flags); if(error) - debug(2, "error=%d so_error=%d uio->uio_resid=%d iov.iov_len=%zd", + debug(2, "error=%d so_error=%d uio->uio_resid=%jd iov.iov_len=%zd", error, - sp->soc->so_error, uio->uio_resid, iov->iov_len); + sp->soc->so_error, (intmax_t)uio->uio_resid, iov->iov_len); if(!error && (uio->uio_resid > 0)) { error = EPIPE; // was EAGAIN - debug(2, "error=%d so_error=%d uio->uio_resid=%d iov.iov_len=%zd so_state=%x", + debug(2, "error=%d so_error=%d uio->uio_resid=%jd iov.iov_len=%zd so_state=%x", error, - sp->soc->so_error, uio->uio_resid, iov->iov_len, sp->soc->so_state); + sp->soc->so_error, (intmax_t)uio->uio_resid, iov->iov_len, + sp->soc->so_state); } return error; @@ -442,8 +443,8 @@ so_recv(isc_session_t *sp, pduq_t *pq) } mp = NULL; - sdebug(4, "uio_resid=0x%x itt=0x%x bp=%p bo=%x len=%x/%x", - uio->uio_resid, + sdebug(4, "uio_resid=0x%jx itt=0x%x bp=%p bo=%x len=%x/%x", + (intmax_t)uio->uio_resid, ntohl(pq->pdu.ipdu.bhs.itt), csio->data_ptr, ntohl(rcmd->bo), ntohl(cmd->edtlen), pq->pdu.ds_len); } diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c index 4b33808..7ba340a 100644 --- a/sys/dev/sound/midi/midi.c +++ b/sys/dev/sound/midi/midi.c @@ -852,8 +852,8 @@ midi_write(struct cdev *i_dev, struct uio *uio, int ioflag) used = MIN(MIDIQ_AVAIL(m->outq), uio->uio_resid); used = MIN(used, MIDI_WSIZE); - MIDI_DEBUG(5, printf("midiout: resid %d len %jd avail %jd\n", - uio->uio_resid, (intmax_t)MIDIQ_LEN(m->outq), + MIDI_DEBUG(5, printf("midiout: resid %jd len %jd avail %jd\n", + (intmax_t)uio->uio_resid, (intmax_t)MIDIQ_LEN(m->outq), (intmax_t)MIDIQ_AVAIL(m->outq))); diff --git a/sys/dev/sound/midi/sequencer.c b/sys/dev/sound/midi/sequencer.c index 5bb030d..276e208 100644 --- a/sys/dev/sound/midi/sequencer.c +++ b/sys/dev/sound/midi/sequencer.c @@ -878,8 +878,8 @@ seq_read(struct cdev *i_dev, struct uio *uio, int ioflag) if (scp == NULL) return ENXIO; - SEQ_DEBUG(7, printf("seq_read: unit %d, resid %d.\n", - scp->unit, uio->uio_resid)); + SEQ_DEBUG(7, printf("seq_read: unit %d, resid %jd.\n", + scp->unit, (intmax_t)uio->uio_resid)); mtx_lock(&scp->seq_lock); if ((scp->fflags & FREAD) == 0) { @@ -936,8 +936,8 @@ seq_read(struct cdev *i_dev, struct uio *uio, int ioflag) retval = 0; err1: mtx_unlock(&scp->seq_lock); - SEQ_DEBUG(6, printf("seq_read: ret %d, resid %d.\n", - retval, uio->uio_resid)); + SEQ_DEBUG(6, printf("seq_read: ret %d, resid %jd.\n", + retval, (intmax_t)uio->uio_resid)); return retval; } @@ -950,8 +950,8 @@ seq_write(struct cdev *i_dev, struct uio *uio, int ioflag) int retval; int used; - SEQ_DEBUG(7, printf("seq_write: unit %d, resid %d.\n", - scp->unit, uio->uio_resid)); + SEQ_DEBUG(7, printf("seq_write: unit %d, resid %jd.\n", + scp->unit, (intmax_t)uio->uio_resid)); if (scp == NULL) return ENXIO; @@ -995,8 +995,8 @@ seq_write(struct cdev *i_dev, struct uio *uio, int ioflag) used = MIN(uio->uio_resid, 4); - SEQ_DEBUG(8, printf("seqout: resid %d len %jd avail %jd\n", - uio->uio_resid, (intmax_t)MIDIQ_LEN(scp->out_q), + SEQ_DEBUG(8, printf("seqout: resid %jd len %jd avail %jd\n", + (intmax_t)uio->uio_resid, (intmax_t)MIDIQ_LEN(scp->out_q), (intmax_t)MIDIQ_AVAIL(scp->out_q))); if (used != 4) { @@ -1115,8 +1115,8 @@ seq_write(struct cdev *i_dev, struct uio *uio, int ioflag) err0: SEQ_DEBUG(6, - printf("seq_write done: leftover buffer length %d retval %d\n", - uio->uio_resid, retval)); + printf("seq_write done: leftover buffer length %jd retval %d\n", + (intmax_t)uio->uio_resid, retval)); mtx_unlock(&scp->seq_lock); return retval; } diff --git a/sys/fs/coda/coda_psdev.c b/sys/fs/coda/coda_psdev.c index b55a5f4..80cd3f1 100644 --- a/sys/fs/coda/coda_psdev.c +++ b/sys/fs/coda/coda_psdev.c @@ -331,8 +331,8 @@ vc_write(struct cdev *dev, struct uio *uiop, int flag) * Get the rest of the data. */ if (vmp->vm_outSize < uiop->uio_resid) { - myprintf(("vcwrite: more data than asked for (%d < %d)\n", - vmp->vm_outSize, uiop->uio_resid)); + myprintf(("vcwrite: more data than asked for (%d < %jd)\n", + vmp->vm_outSize, (intmax_t)uiop->uio_resid)); /* * Notify caller of the error. diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c index c5c6cb1..3e7941a 100644 --- a/sys/fs/coda/coda_vnops.c +++ b/sys/fs/coda/coda_vnops.c @@ -331,8 +331,8 @@ coda_rdwr(struct vnode *vp, struct uio *uiop, enum uio_rw rw, int ioflag, int error = 0; MARK_ENTRY(CODA_RDWR_STATS); - CODADEBUG(CODA_RDWR, myprintf(("coda_rdwr(%d, %p, %d, %lld, %d)\n", - rw, (void *)uiop->uio_iov->iov_base, uiop->uio_resid, + CODADEBUG(CODA_RDWR, myprintf(("coda_rdwr(%d, %p, %jd, %lld, %d)\n", + rw, (void *)uiop->uio_iov->iov_base, (intmax_t)uiop->uio_resid, (long long)uiop->uio_offset, uiop->uio_segflg));); /* @@ -1470,8 +1470,8 @@ coda_readdir(struct vop_readdir_args *ap) int opened_internally = 0; MARK_ENTRY(CODA_READDIR_STATS); - CODADEBUG(CODA_READDIR, myprintf(("coda_readdir(%p, %d, %lld, %d)\n", - (void *)uiop->uio_iov->iov_base, uiop->uio_resid, + CODADEBUG(CODA_READDIR, myprintf(("coda_readdir(%p, %jd, %lld, %d)\n", + (void *)uiop->uio_iov->iov_base, (intmax_t)uiop->uio_resid, (long long)uiop->uio_offset, uiop->uio_segflg));); /* diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index 8421d17..a09ba2e 100644 --- a/sys/fs/pseudofs/pseudofs_vnops.c +++ b/sys/fs/pseudofs/pseudofs_vnops.c @@ -591,7 +591,7 @@ pfs_read(struct vop_read_args *va) struct proc *proc; struct sbuf *sb = NULL; int error, locked; - unsigned int buflen, offset, resid; + size_t buflen, offset, resid; PFS_TRACE(("%s", pn->pn_name)); pfs_assert_not_owned(pn); diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index ce1afd2..ab65204 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -204,14 +204,14 @@ out: int uiomove_frombuf(void *buf, int buflen, struct uio *uio) { - unsigned int offset, n; + size_t offset, n; if (uio->uio_offset < 0 || uio->uio_resid < 0 || (offset = uio->uio_offset) != uio->uio_offset) return (EINVAL); if (buflen <= 0 || offset >= buflen) return (0); - if ((n = buflen - offset) > INT_MAX) + if ((n = buflen - offset) > SSIZE_MAX) return (EINVAL); return (uiomove((char *)buf + offset, n, uio)); } @@ -545,7 +545,7 @@ copyinuio(struct iovec *iovp, u_int iovcnt, struct uio **uiop) uio->uio_offset = -1; uio->uio_resid = 0; for (i = 0; i < iovcnt; i++) { - if (iov->iov_len > INT_MAX - uio->uio_resid) { + if (iov->iov_len > SSIZE_MAX - uio->uio_resid) { free(uio, M_IOV); return (EINVAL); } diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 616c5b7..8c8f2f0 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -141,7 +141,7 @@ read(td, uap) struct iovec aiov; int error; - if (uap->nbyte > INT_MAX) + if (uap->nbyte > SSIZE_MAX) return (EINVAL); aiov.iov_base = uap->buf; aiov.iov_len = uap->nbyte; @@ -174,7 +174,7 @@ pread(td, uap) struct iovec aiov; int error; - if (uap->nbyte > INT_MAX) + if (uap->nbyte > SSIZE_MAX) return (EINVAL); aiov.iov_base = uap->buf; aiov.iov_len = uap->nbyte; @@ -350,7 +350,7 @@ write(td, uap) struct iovec aiov; int error; - if (uap->nbyte > INT_MAX) + if (uap->nbyte > SSIZE_MAX) return (EINVAL); aiov.iov_base = (void *)(uintptr_t)uap->buf; aiov.iov_len = uap->nbyte; @@ -383,7 +383,7 @@ pwrite(td, uap) struct iovec aiov; int error; - if (uap->nbyte > INT_MAX) + if (uap->nbyte > SSIZE_MAX) return (EINVAL); aiov.iov_base = (void *)(uintptr_t)uap->buf; aiov.iov_len = uap->nbyte; diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 5f024a8..3aef955 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -180,7 +180,7 @@ extattr_set_vp(struct vnode *vp, int attrnamespace, const char *attrname, auio.uio_iov = &aiov; auio.uio_iovcnt = 1; auio.uio_offset = 0; - if (nbytes > INT_MAX) { + if (nbytes > SSIZE_MAX) { error = EINVAL; goto done; } @@ -354,7 +354,7 @@ extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname, auio.uio_iov = &aiov; auio.uio_iovcnt = 1; auio.uio_offset = 0; - if (nbytes > INT_MAX) { + if (nbytes > SSIZE_MAX) { error = EINVAL; goto done; } @@ -670,7 +670,7 @@ extattr_list_vp(struct vnode *vp, int attrnamespace, void *data, auio.uio_iov = &aiov; auio.uio_iovcnt = 1; auio.uio_offset = 0; - if (nbytes > INT_MAX) { + if (nbytes > SSIZE_MAX) { error = EINVAL; goto done; } diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 9fa2a4c..e3e76e8 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -2589,7 +2589,7 @@ kern_readlinkat(struct thread *td, int fd, char *path, enum uio_seg pathseg, struct nameidata nd; int vfslocked; - if (count > INT_MAX) + if (count > SSIZE_MAX) return (EINVAL); NDINIT_AT(&nd, LOOKUP, NOFOLLOW | LOCKSHARED | LOCKLEAF | MPSAFE | @@ -4057,7 +4057,7 @@ kern_getdirentries(struct thread *td, int fd, char *buf, u_int count, int error, eofflag; AUDIT_ARG(fd, fd); - if (count > INT_MAX) + if ((auio.uio_resid = count) > SSIZE_MAX) return (EINVAL); if ((error = getvnode(td->td_proc->p_fd, fd, &fp)) != 0) return (error); @@ -4080,7 +4080,6 @@ unionread: auio.uio_rw = UIO_READ; auio.uio_segflg = UIO_USERSPACE; auio.uio_td = td; - auio.uio_resid = count; vn_lock(vp, LK_SHARED | LK_RETRY); AUDIT_ARG(vnode, vp, ARG_VNODE1); loff = auio.uio_offset = fp->f_offset; diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c index 6668d94..75eb4d3 100644 --- a/sys/net/if_tap.c +++ b/sys/net/if_tap.c @@ -934,8 +934,8 @@ tapwrite(struct cdev *dev, struct uio *uio, int flag) return (0); if ((uio->uio_resid < 0) || (uio->uio_resid > TAPMRU)) { - TAPDEBUG("%s invalid packet len = %d, minor = %#x\n", - ifp->if_xname, uio->uio_resid, dev2unit(dev)); + TAPDEBUG("%s invalid packet len = %jd, minor = %#x\n", + ifp->if_xname, (intmax_t)uio->uio_resid, dev2unit(dev)); return (EIO); } diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 03dd4ab..92b7085 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -887,7 +887,7 @@ tunwrite(struct cdev *dev, struct uio *uio, int flag) return (0); if (uio->uio_resid < 0 || uio->uio_resid > TUNMRU) { - TUNDEBUG(ifp, "len=%d!\n", uio->uio_resid); + TUNDEBUG(ifp, "len=%jd!\n", (intmax_t)uio->uio_resid); return (EIO); } diff --git a/sys/sys/uio.h b/sys/sys/uio.h index 871f93a..1de8880 100644 --- a/sys/sys/uio.h +++ b/sys/sys/uio.h @@ -64,7 +64,7 @@ struct uio { struct iovec *uio_iov; /* scatter/gather list */ int uio_iovcnt; /* length of scatter/gather list */ off_t uio_offset; /* offset in target object */ - int uio_resid; /* remaining bytes to process */ + ssize_t uio_resid; /* remaining bytes to process */ enum uio_seg uio_segflg; /* address space */ enum uio_rw uio_rw; /* operation */ struct thread *uio_td; /* owner */ diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 47177e3..cc7b35d 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -1160,8 +1160,8 @@ vnode_pager_generic_putpages(vp, m, bytecount, flags, rtvals) } if (auio.uio_resid) { if (ppscheck || ppsratecheck(&lastfail, &curfail, 1)) - printf("vnode_pager_putpages: residual I/O %d at %lu\n", - auio.uio_resid, (u_long)m[0]->pindex); + printf("vnode_pager_putpages: residual I/O %jd at %lu\n", + (intmax_t)auio.uio_resid, (u_long)m[0]->pindex); } for (i = 0; i < ncount; i++) { rtvals[i] = VM_PAGER_OK; -- Test scenario: ./syscall -t 2m -i 100 -k -v 475