1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/sys
Alan Somers 1f9e80bcdb opensolaris/uts/common/dtrace/fasttrap.c
Fix several problems that can cause panics on kldload and kldunload.

	* kproc_create(fasttrap_pid_cleanup_cb, ...) gets called before
	  fasttrap_provs.fth_table gets allocated.  This can lead to a panic
	  on module load, because fasttrap_pid_cleanup_cb references
	  fasttrap_provs.fth_table.  Move kproc_create down after the point
	  that fasttrap_provs.fth_table gets allocated, and modify the error
	  handling accordingly.

	* dtrace_fasttrap_{fork,exec,exit} weren't getting NULLed until
	  after fasttrap_provs.fth_table got freed.  That caused panics on
	  module unload because fasttrap_exec_exit calls
	  fasttrap_provider_retire, which references
	  fasttrap_provs.fth_table.  NULL those function pointers earlier.

	* There wasn't any code to destroy the
	  fasttrap_{tpoints,provs,procs}.fth_table mutexes on module unload,
	  leading to a resource leak when WITNESS is enabled.  Destroy those
	  mutexes during fasttrap_unload().

Reviewed by:	markj
Approved by:	ken (mentor)
Sponsored by:	Spectra Logic
MFC after:	4 weeks
2013-11-18 16:51:56 +00:00
..
amd64 Fix accounting for hw.realmem on the i386 and amd64 platforms. 2013-11-15 16:05:55 +00:00
arm Implement pmap_align_superpage(). 2013-11-17 23:28:10 +00:00
boot Add a try-include word (which acts the same as "include") and use it to 2013-11-17 18:12:17 +00:00
bsm
cam Introduce seperate mutex lock to protect protect CTL I/O pools, slightly 2013-11-11 08:27:20 +00:00
cddl opensolaris/uts/common/dtrace/fasttrap.c 2013-11-18 16:51:56 +00:00
compat Fix build. 2013-11-05 19:17:19 +00:00
conf Split the function of the PCB_FPU flags into two: PCB_FPU now indicates that 2013-11-17 14:44:22 +00:00
contrib Remove 'inline' from ar9300_init_pll(), it's too big to inline. 2013-11-08 16:28:00 +00:00
crypto make it so that from/to can be missaligned as it can happen (the geli 2013-11-06 19:14:49 +00:00
ddb
dev drm: Support DRM_CAP_TIMESTAMP_MONOTONIC capability 2013-11-17 16:07:52 +00:00
fs Remove useless comparisions of assigned offset and resid with the 2013-11-13 08:55:09 +00:00
gdb
geom In addition to r258220 allow shrinking in "automatic" mode if there is 2013-11-17 05:38:54 +00:00
gnu/fs/reiserfs
i386 Fix accounting for hw.realmem on the i386 and amd64 platforms. 2013-11-15 16:05:55 +00:00
ia64 Don't enable interrupts before we call sched_throw(). Interrupts 2013-11-10 04:22:40 +00:00
isa
kern Fix siginfo_t.si_status for wait6/waitid/SIGCHLD. 2013-11-17 22:31:23 +00:00
kgssapi
libkern Fix ixp425 boot2 with ARM EABI: 2013-09-29 15:19:34 +00:00
mips As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
modules Move the ioapic device model from userspace into vmm.ko. This is needed for 2013-11-12 22:51:03 +00:00
net Clean up the macros to avoid using casts. 2013-11-15 16:03:32 +00:00
net80211 Fix AMRR to correctly select the initial rate. 2013-11-09 07:30:13 +00:00
netatalk The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
netgraph Eliminate duplicated & dead code. 2013-11-08 22:40:33 +00:00
netinet In r257692 I intentionally deleted code that handled P2P interfaces 2013-11-17 15:14:07 +00:00
netinet6 Fix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already 2013-11-11 12:49:00 +00:00
netipsec Initialize prot variable. 2013-11-11 13:19:55 +00:00
netipx The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
netnatm Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
netpfil Some fixups to pf_get_sport after r257223: 2013-11-14 14:20:35 +00:00
netsmb Catch up with sb_timeo type change in r255138. This fixes 2013-11-08 08:44:09 +00:00
nfs The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nfsclient The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nfsserver The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nlm Intermittent crashes in the NLM (rpc.lockd) code during system 2013-09-06 23:14:31 +00:00
ofed Fix creating a vlan over lagg over mlxen crash. 2013-11-17 20:58:31 +00:00
opencrypto
pc98 x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...) 2013-11-14 15:37:20 +00:00
pci Add preliminary support for RTL8168EP. 2013-10-29 05:37:05 +00:00
powerpc Add a sysctl to allow disabling resetting the OF syscons. 2013-11-17 20:29:33 +00:00
rpc Some minor tuning to rpc/svc.c: 2013-11-14 13:51:53 +00:00
security The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
sparc64 As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
sys Bump __FreeBSD_version for iconv changes 2013-11-17 22:59:06 +00:00
teken
tools
ufs UFS2: make di_extsize unsigned. 2013-10-24 00:33:29 +00:00
vm Avoid overflow for the page counts. 2013-11-12 08:47:58 +00:00
x86 x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...) 2013-11-14 15:37:20 +00:00
xdr
xen Remove redundant redeclaration of gdtset in sys/xen/xen-os.h, to silence 2013-10-18 17:06:13 +00:00
Makefile