22e406c80b
- Store the symbol table contents in an anonymous swap-backed object. Have mmap(/dev/ksyms) map that object, and stop mapping the symbol table into the calling process in ksyms_open(). Previously we would cache a pointer to the pmap of the opening process, and mmap(/dev/ksyms) would create a mapping using the physical address found by a pmap lookup at the initial mapping address. However, this assumes that the cached pmap is valid, which may not be the case. [1] - Remove the ksyms ioctl interface. It appears to have been added to work around a limitation in libelf that no longer exists; see r321842. Moreover, the interface is difficult to support and isn't present in illumos. Since ksyms was added specifically to support lockstat(1), it is expected that this removal won't have any real impact. - Simplify ksyms_read() to avoid unnecessary copying. - Don't call the device handle destructor if we fail to capture a snapshot of the kernel's symbol table. devfs will do that for us. Reported by: Ilja van Sprundel <ivansprundel@ioactive.com> [1] Reviewed by: kib (previous revision) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D11789 |
||
---|---|---|
.. | ||
disk | ||
_bitset.h | ||
_bus_dma.h | ||
_callout.h | ||
_cpuset.h | ||
_ffcounter.h | ||
_iovec.h | ||
_kstack_cache.h | ||
_lock.h | ||
_lockmgr.h | ||
_mutex.h | ||
_null.h | ||
_pctrie.h | ||
_pthreadtypes.h | ||
_rmlock.h | ||
_rwlock.h | ||
_semaphore.h | ||
_sigset.h | ||
_sockaddr_storage.h | ||
_stack.h | ||
_stdint.h | ||
_sx.h | ||
_task.h | ||
_termios.h | ||
_timespec.h | ||
_timeval.h | ||
_types.h | ||
_ucontext.h | ||
_umtx.h | ||
_unrhdr.h | ||
_vm_domain.h | ||
aac_ioctl.h | ||
acct.h | ||
acl.h | ||
agpio.h | ||
aio.h | ||
alq.h | ||
apm.h | ||
assym.h | ||
ata.h | ||
bio.h | ||
bitset.h | ||
bitstring.h | ||
blist.h | ||
boot.h | ||
buf_ring.h | ||
buf.h | ||
bufobj.h | ||
bus_dma_internal.h | ||
bus_dma.h | ||
bus.h | ||
busdma_bufalloc.h | ||
callout.h | ||
capability.h | ||
caprights.h | ||
capsicum.h | ||
cdefs.h | ||
cdio.h | ||
cdrio.h | ||
cfictl.h | ||
chio.h | ||
clock.h | ||
cnv.h | ||
condvar.h | ||
conf.h | ||
cons.h | ||
consio.h | ||
copyright.h | ||
counter.h | ||
cpu.h | ||
cpuctl.h | ||
cpuset.h | ||
ctype.h | ||
dataacq.h | ||
devicestat.h | ||
devmap.h | ||
digiio.h | ||
dir.h | ||
dirent.h | ||
disk_zone.h | ||
disk.h | ||
disklabel.h | ||
diskmbr.h | ||
dkstat.h | ||
dnv.h | ||
domain.h | ||
dtrace_bsd.h | ||
dvdio.h | ||
efi.h | ||
efiio.h | ||
elf32.h | ||
elf64.h | ||
elf_common.h | ||
elf_generic.h | ||
elf.h | ||
endian.h | ||
errno.h | ||
eui64.h | ||
event.h | ||
eventhandler.h | ||
eventvar.h | ||
exec.h | ||
extattr.h | ||
fail.h | ||
fbio.h | ||
fcntl.h | ||
fdcio.h | ||
file.h | ||
filedesc.h | ||
filio.h | ||
firmware.h | ||
fnv_hash.h | ||
gmon.h | ||
gpio.h | ||
gpt.h | ||
gtaskqueue.h | ||
gzio.h | ||
hash.h | ||
hhook.h | ||
iconv.h | ||
imgact_aout.h | ||
imgact_binmisc.h | ||
imgact_elf.h | ||
imgact.h | ||
inflate.h | ||
interrupt.h | ||
intr.h | ||
ioccom.h | ||
ioctl_compat.h | ||
ioctl.h | ||
iov_schema.h | ||
iov.h | ||
ipc.h | ||
ipmi.h | ||
jail.h | ||
joystick.h | ||
kbio.h | ||
kdb.h | ||
kenv.h | ||
kernel.h | ||
kerneldump.h | ||
khelp.h | ||
kobj.h | ||
ksem.h | ||
kthread.h | ||
ktr_class.h | ||
ktr.h | ||
ktrace.h | ||
libkern.h | ||
limits.h | ||
link_aout.h | ||
link_elf.h | ||
linker_set.h | ||
linker.h | ||
lock_profile.h | ||
lock.h | ||
lockf.h | ||
lockmgr.h | ||
lockstat.h | ||
loginclass.h | ||
mac.h | ||
malloc.h | ||
mbpool.h | ||
mbuf.h | ||
mchain.h | ||
md4.h | ||
md5.h | ||
mdioctl.h | ||
memdesc.h | ||
memrange.h | ||
mman.h | ||
module_khelp.h | ||
module.h | ||
mount.h | ||
mouse.h | ||
mpt_ioctl.h | ||
mqueue.h | ||
msg.h | ||
msgbuf.h | ||
mtio.h | ||
mutex.h | ||
namei.h | ||
nlist_aout.h | ||
numa.h | ||
nv.h | ||
osd.h | ||
param.h | ||
pciio.h | ||
pcpu.h | ||
pctrie.h | ||
pioctl.h | ||
pipe.h | ||
pmc.h | ||
pmckern.h | ||
pmclog.h | ||
poll.h | ||
posix4.h | ||
power.h | ||
priority.h | ||
priv.h | ||
proc.h | ||
procctl.h | ||
procdesc.h | ||
procfs.h | ||
protosw.h | ||
ptio.h | ||
ptrace.h | ||
queue.h | ||
racct.h | ||
random.h | ||
rangelock.h | ||
rctl.h | ||
reboot.h | ||
refcount.h | ||
regression.h | ||
resource.h | ||
resourcevar.h | ||
rman.h | ||
rmlock.h | ||
rtprio.h | ||
runq.h | ||
rwlock.h | ||
sbuf.h | ||
sched.h | ||
sdt.h | ||
select.h | ||
selinfo.h | ||
sem.h | ||
sema.h | ||
seq.h | ||
serial.h | ||
sf_buf.h | ||
sglist.h | ||
shm.h | ||
sigio.h | ||
signal.h | ||
signalvar.h | ||
sleepqueue.h | ||
slicer.h | ||
smp.h | ||
snoop.h | ||
sockbuf.h | ||
socket.h | ||
socketvar.h | ||
sockio.h | ||
sockopt.h | ||
sockstate.h | ||
soundcard.h | ||
spigenio.h | ||
stack.h | ||
stat.h | ||
statvfs.h | ||
stdatomic.h | ||
stddef.h | ||
stdint.h | ||
sun_disklabel.h | ||
sx.h | ||
syscall.h | ||
syscall.mk | ||
syscallsubr.h | ||
sysctl.h | ||
sysent.h | ||
syslimits.h | ||
syslog.h | ||
sysproto.h | ||
systm.h | ||
taskqueue.h | ||
terminal.h | ||
termios.h | ||
thr.h | ||
tiio.h | ||
time.h | ||
timeb.h | ||
timeet.h | ||
timeffc.h | ||
timepps.h | ||
timers.h | ||
times.h | ||
timespec.h | ||
timetc.h | ||
timex.h | ||
tree.h | ||
tty.h | ||
ttycom.h | ||
ttydefaults.h | ||
ttydevsw.h | ||
ttydisc.h | ||
ttyhook.h | ||
ttyqueue.h | ||
turnstile.h | ||
types.h | ||
ucontext.h | ||
ucred.h | ||
uio.h | ||
umtx.h | ||
un.h | ||
unistd.h | ||
unpcb.h | ||
user.h | ||
utsname.h | ||
uuid.h | ||
vdso.h | ||
vmem.h | ||
vmmeter.h | ||
vnode.h | ||
vtoc.h | ||
wait.h | ||
watchdog.h | ||
zlib.h | ||
zutil.h |