| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Obtained from: KAME
|
|
|
|
|
|
| |
like it was missed in syscalls.master.
Spotted by: alc
|
|
|
|
| |
Obtained from: KAME
|
|
|
|
|
|
| |
device is hidden by a devfs(8) rule.
Spotted by: Adam Nowacki <ptnowak@bsk.vectranet.pl>
|
| |
|
| |
|
|
|
|
| |
get their act together before we start probing.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Return NULL instead of returning memory outside of the stackgap
in stackgap_alloc() (FreeBSD-SA-00:42.linux)
- Check for stackgap_alloc() returning NULL in svr4_emul_find(),
and clean_pipe().
- Avoid integer overflow on large nfds argument in svr4_sys_poll()
- Reject negative nbytes argument in svr4_sys_getdents()
- Don't copy out past the end of the struct componentname
pathname buffer in svr4_sys_resolvepath()
- Reject out-of-range signal numbers in svr4_sys_sigaction(),
svr4_sys_signal(), and svr4_sys_kill().
- Don't malloc() user-specified lengths in show_ioc() and
show_strbuf(), place arbitrary limits instead.
- Range-check lengths in si_listen(), ti_getinfo(), ti_bind(),
svr4_do_putmsg(), svr4_do_getmsg(), svr4_stream_ti_ioctl().
Some fixes obtain from OpenBSD.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
pick up the DEVFS inode number from the dev_t and find our directory
entry from that, we don't need to scan the directory to find it.
This also solves an issue with on-demand devices in subdirectories.
Submitted by: cognet
|
|
|
|
| |
vm object's lock.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
by libguile that needs to know the base of the RSE backing store. We
currently do not export the fixed address to userland by means of a
sysctl so user code needs to hardcode it for now. This will be revisited
later.
The RSE backing store is now at the bottom of region 4. The memory stack
is at the top of region 4. This means that the whole region is usable
for the stacks, giving a 61-bit stack space.
Port: lang/guile (depended of x11/gnome2)
|
| |
|
|
|
|
| |
Suggested by: mux
|
| |
|
|
|
|
| |
to BPF_MTAP.
|
|
|
|
|
|
|
| |
chain passed into dc_encap, which dc_start was unaware of. This caused
the old (now invalid) mbuf to be passed to BPF_MTAP.
Spotted by: Kenjiro Cho <kjc@csl.sony.co.jp>
|
|
|
|
|
|
|
|
|
| |
is non-free. (More checks can/should be added in the future.)
Use M_ASSERTVALID in BPF_MTAP so that we catch when freed mbufs are
passed in, even if no bpf listeners are active.
Inspired by a bug in if_dc caught by Kenjiro Cho.
|
|
|
|
|
|
|
|
|
|
| |
rijndael_blockDecrypt() as both input and output.
This property is important because inside rijndael we can get away
with allocating just a 16 byte "work" buffer on the stack (which
is very cheap), whereas the calling code would need to allocate the
full sized buffer, and in all likelyhood would have to do so with
an expensive malloc(9).
|
|
|
|
|
| |
- since aes-xcbc-mac and aes-ctr require functions in new
rijndael code, aes-xcbc-mac and aes-ctr are disabled for now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
table, acquiring the necessary locks as it works. It usually returns
two references to the new descriptor: one in the descriptor table
and one via a pointer argument.
As falloc releases the FILEDESC lock before returning, there is a
potential for a process to close the reference in the file descriptor
table before falloc's caller gets to use the file. I don't think this
can happen in practice at the moment, because Giant indirectly protects
closes.
To stop the file being completly closed in this situation, this change
makes falloc set the refcount to two when both references are returned.
This makes life easier for several of falloc's callers, because the
first thing they previously did was grab an extra reference on the
file.
Reviewed by: iedowse
Idea run past: jhb
|
|
|
|
|
| |
This is to synchronize access to the vm page's valid field by
vm_page_set_validclean().
|
|
|
|
| |
error return for same.
|
| |
|
| |
|
|
|
|
|
|
| |
It looks enough to make SImics run.
Reviewed by: des
|
| |
|
| |
|
|
|
|
|
| |
to fix any problems but is similar to how Linux implements this
function.
|
|
|
|
|
|
|
|
| |
for all platforms now.
XXX alpha/sparc64/powerpc should fill in the function.
Submitted by: bde
|
|
|
|
| |
MI declared function so it should be everywhere.
|
|
|
|
|
| |
Clear FPU pcb flags for new upcall thread, these flags needn't
be inherited, the new thread should start from clean FPU status.
|
| |
|
|
|
|
|
| |
vm object's lock.
- Reduce the scope of the vm page queues lock in two places.
|
|
|
|
|
| |
hooked at runtime. Make C1 sleep (e.g., HLT) be the default. This
prepares the way for further ACPI sleep states.
|
|
|
|
| |
vnode_pager_generic_getpages() using the containing object's lock.
|
|
|
|
|
|
|
|
|
| |
to the object's type field and the call to vm_pageout_flush() are
synchronized.
- The above change allows for the eliminaton of the last parameter
to vm_pageout_flush().
- Synchronize access to the page's valid field in vm_pageout_flush()
using the containing object's lock.
|
|
|
|
|
|
|
| |
error may not have been picked up right away.
Reviewed by: mdodd
Submitted by: Stuart Walsh
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- Specifying VM_MAP_WIRE_HOLESOK should not assume that the start
address is the beginning of the map. Instead, move to the first
entry after the start address.
- The implementation of VM_MAP_WIRE_HOLESOK was incomplete. This
caused the failure of mlockall(2) in some circumstances.
|
|
|
|
| |
device drivers only.
|
| |
|
| |
|
|
|
|
|
|
| |
bio_offset is the field drivers should use.
bio_pblkno remains as a convenient place to store the number of
the device drivers.
|
| |
|
|
|
|
| |
Reported by: jhay
|
| |
|