mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-22 00:04:58 +00:00
619f284195
UMA_SLAB_MALLOC flag. In some circumstances (I observed it when I was doing a lot of reallocs) UMA_SLAB_MALLOC can be set even if us_keg != NULL. If this is the case we have wonderful, silent data corruption, because less data is copied to the newly allocated region than should be. I'm not sure when this bug was introduced, it could be there undetected for years now, as we don't have a lot of realloc(9) consumers and it was hard to reproduce it... ...but what I know for sure, is that I don't want to know who introduce the bug:) It took me two/three days to track it down (of course most of the time I was looking for the bug in my own code). |
||
---|---|---|
.. | ||
bus_if.m | ||
clock_if.m | ||
cpufreq_if.m | ||
device_if.m | ||
genassym.sh | ||
imgact_aout.c | ||
imgact_elf.c | ||
imgact_elf32.c | ||
imgact_elf64.c | ||
imgact_gzip.c | ||
imgact_shell.c | ||
inflate.c | ||
init_main.c | ||
init_sysent.c | ||
kern_acct.c | ||
kern_acl.c | ||
kern_alq.c | ||
kern_clock.c | ||
kern_condvar.c | ||
kern_conf.c | ||
kern_context.c | ||
kern_cpu.c | ||
kern_descrip.c | ||
kern_environment.c | ||
kern_event.c | ||
kern_exec.c | ||
kern_exit.c | ||
kern_fork.c | ||
kern_idle.c | ||
kern_intr.c | ||
kern_jail.c | ||
kern_kse.c | ||
kern_kthread.c | ||
kern_ktr.c | ||
kern_ktrace.c | ||
kern_linker.c | ||
kern_lock.c | ||
kern_lockf.c | ||
kern_mac.c | ||
kern_malloc.c | ||
kern_mbuf.c | ||
kern_mib.c | ||
kern_module.c | ||
kern_mtxpool.c | ||
kern_mutex.c | ||
kern_ntptime.c | ||
kern_physio.c | ||
kern_pmc.c | ||
kern_poll.c | ||
kern_proc.c | ||
kern_prot.c | ||
kern_resource.c | ||
kern_sema.c | ||
kern_shutdown.c | ||
kern_sig.c | ||
kern_subr.c | ||
kern_switch.c | ||
kern_sx.c | ||
kern_synch.c | ||
kern_syscalls.c | ||
kern_sysctl.c | ||
kern_tc.c | ||
kern_thr.c | ||
kern_thread.c | ||
kern_time.c | ||
kern_timeout.c | ||
kern_umtx.c | ||
kern_uuid.c | ||
kern_xxx.c | ||
ksched.c | ||
link_elf.c | ||
link_elf_obj.c | ||
linker_if.m | ||
Make.tags.inc | ||
Makefile | ||
makesyscalls.sh | ||
md4c.c | ||
md5c.c | ||
p1003_1b.c | ||
posix4_mib.c | ||
sched_4bsd.c | ||
sched_ule.c | ||
subr_acl_posix1e.c | ||
subr_autoconf.c | ||
subr_blist.c | ||
subr_bus.c | ||
subr_clist.c | ||
subr_clock.c | ||
subr_devstat.c | ||
subr_disk.c | ||
subr_eventhandler.c | ||
subr_hints.c | ||
subr_kdb.c | ||
subr_kobj.c | ||
subr_log.c | ||
subr_mbpool.c | ||
subr_mchain.c | ||
subr_module.c | ||
subr_msgbuf.c | ||
subr_param.c | ||
subr_pcpu.c | ||
subr_power.c | ||
subr_prf.c | ||
subr_prof.c | ||
subr_rman.c | ||
subr_rtc.c | ||
subr_sbuf.c | ||
subr_scanf.c | ||
subr_sleepqueue.c | ||
subr_smp.c | ||
subr_stack.c | ||
subr_taskqueue.c | ||
subr_trap.c | ||
subr_turnstile.c | ||
subr_unit.c | ||
subr_witness.c | ||
sys_generic.c | ||
sys_pipe.c | ||
sys_process.c | ||
sys_socket.c | ||
syscalls.c | ||
syscalls.master | ||
sysv_ipc.c | ||
sysv_msg.c | ||
sysv_sem.c | ||
sysv_shm.c | ||
tty.c | ||
tty_compat.c | ||
tty_conf.c | ||
tty_cons.c | ||
tty_pty.c | ||
tty_subr.c | ||
tty_tty.c | ||
uipc_accf.c | ||
uipc_cow.c | ||
uipc_domain.c | ||
uipc_mbuf.c | ||
uipc_mbuf2.c | ||
uipc_mqueue.c | ||
uipc_proto.c | ||
uipc_sem.c | ||
uipc_sockbuf.c | ||
uipc_socket.c | ||
uipc_socket2.c | ||
uipc_syscalls.c | ||
uipc_usrreq.c | ||
vfs_acl.c | ||
vfs_aio.c | ||
vfs_bio.c | ||
vfs_cache.c | ||
vfs_cluster.c | ||
vfs_default.c | ||
vfs_export.c | ||
vfs_extattr.c | ||
vfs_hash.c | ||
vfs_init.c | ||
vfs_lookup.c | ||
vfs_mount.c | ||
vfs_subr.c | ||
vfs_syscalls.c | ||
vfs_vnops.c | ||
vnode_if.src |