summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Rewrite radius servers traversal algorithm.sem2012-12-067-42/+212
| | | | | | - Add functions for working with IPv6 attributes. Approved by: ae
* Add PCI device ID for 8-channel IDT NVMe controller, and clarify that thejimharris2012-12-062-2/+4
| | | | | | previously defined IDT PCI device ID was for a 32-channel controller. Submitted by: Joe Golio <joseph.golio@isilon.com>
* Rule memory garbage collecting in new pf scans only states that are onglebius2012-12-061-5/+7
| | | | | | | | | id hash. If a state has been disconnected from id hash, its rule pointers can no longer be dereferenced, and referenced memory can't be modified. Thus, move rule statistics from pf_free_rule() to pf_unlink_rule() and update them prior to releasing id hash slot lock. Reported by: Ian FREISLICH <ianf cloudseed.co.za>
* Close possible races between state deletion and sent being sent outglebius2012-12-061-3/+4
| | | | | | | | | from pfsync: - Call into pfsync_delete_state() holding the state lock. - Set the state timeout to PFTM_UNLINKED after state has been moved to the PFSYNC_S_DEL queue in pfsync. Reported by: Ian FREISLICH <ianf cloudseed.co.za>
* Remove extra PFSYNC_LOCK() in pfsync_bulk_update() which lead to lockglebius2012-12-061-2/+0
| | | | | | recursion. Reported by: Ian FREISLICH <ianf cloudseed.co.za>
* Revert erroneous r242693. A state may have PFTM_UNLINKED being on theglebius2012-12-061-10/+0
| | | | PFSYNC_S_DEL queue of pfsync.
* Eliminate superfluous code.davidxu2012-12-061-1/+0
|
* Add the Programmer Dvorak Keyboard Layouteadler2012-12-063-2/+121
| | | | | | PR: conf/173950 Submitted by: clutton <mbsd@isgroup.com.ua> Approved by: cperciva
* Change the default to 'cru' for speed reasons.eadler2012-12-061-1/+1
| | | | | | | Submitted by: Erik Cederstrand <erik@cederstrand.dk> Reviewed by: imp, toolchain@ Approved by: cperciva MFC after: 2 weeks
* Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS ineadler2012-12-0627-52/+55
| | | | | | | | | | | | share/mk/sys.mk instead. This is part of a medium term project to permit deterministic builds of FreeBSD. Submitted by: Erik Cederstrand <erik@cederstrand.dk> Reviewed by: imp, toolchain@ Approved by: cperciva MFC after: 2 weeks
* Prefer the use of initalizer lists to ctor assignment.eadler2012-12-062-3/+2
| | | | | Approved by: cperciva MFC after: 2 weeks
* Avoid the creation of a temporary object by using the prefix operatoreadler2012-12-061-9/+9
| | | | | | | for non-primitive types. Approved by: cperciva MFC after: 2 weeks
* Constify where possibleeadler2012-12-062-7/+7
| | | | | Approved by: cperciva MFC after: 2 weeks
* Fixup r243901:attilio2012-12-051-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | - As the comment report, CALLOUT_LOCAL_ALLOC cannot be checked directly from the callout flags but might be checked by a cached value. Hence, do so before to actually remove the callout, when needed, in softclock_call_cc(). - In softclock_call_cc() also add a comment in the waiting and deferred migration case explaining that the dereference should be safe because of the migration dereference invariants. Additively: - In softclock_call_cc(), for the deferred migration case, move all the accesses to callout structure after the comment stating the callout must not be destroyed. - For consistency with this last tweak, use cached c_flags for the KASSERT() in the deferred migration case. It is not strictly necessary but this way all the callout accesses happen after the above mentioned comment, improving consistency. Pointy hat to: me Sponsored by: Isilon Systems / EMC Corporation Reviewed by: kib MFC after: 2 weeks X-MFC: 243901
* Don't write-back the cachelines if we really just want to invalidate them.cognet2012-12-051-1/+1
| | | | Spotted out by: Ian Lepore <freebsd at damnhippie DOT dyndns dot org>
* Fix an old bug in devd, where it uses std::sort() to sort the variousdim2012-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | lists it reads from its configuration files on the priority field. Because some items in the lists have the same priority, and std::sort() is not stable, the exact order in which the items are enumerated does not have to correspond to the order they appear in the configuration files. Apparently this was never noticed with libstdc++, but with libc++ it could cause the "uhid" entry from /etc/devd/usb.conf to be used instead of the "ums" entry (which is earlier in the file). This caused the problem described in the PR: the USB mouse module was never loaded, and the other actions (such as starting moused) were not executed. To fix the problem, make devd use std:stable_sort() instead. Reported by: Jan Beich <jbeich@tormail.org> PR: bin/172958 MFC after: 2 weeks
* remove redundant yyparse declarationsbapt2012-12-053-3/+0
| | | | | PR: conf/174079 Submitted by: Garrett Cooper <yanegomi@gmail.com>
* Don't call bus_dmamap_load in CAM_DIR_NONE case, since there is nothingjimharris2012-12-051-13/+15
| | | | | | | | | | | | | | | | | | to map, and technically this isn't allowed. Functionally, it works OK (at least on x86) to call bus_dmamap_load with a NULL data pointer and zero length, so this is primarily for correctness and consistency with other drivers. While here, remove check in isci_io_request_construct for nseg==0. Previously, bus_dmamap_load would pass nseg==1, even for case where buffer is NULL and length = 0, which allowed CAM_DIR_NONE CCBs to get processed. This check is not correct though, and needed to be removed both for the changes elsewhere in this patch, as well as jeff's preliminary bus_dmamap_load_ccb patch (which uncovered all of this in the first place). MFC after: 3 days
* - Move definition of V_deembed_scopeid to scope6_var.h.hrs2012-12-056-121/+73
| | | | | | - Deembed scope id in L3 address in in6_lltable_dump(). - Simplify scope id recovery in rtsock routines. - Remove embedded scope id handling in ndp(8) and route(8) completely.
* The softclock_call_cc() is executing with the callout already removedkib2012-12-051-29/+32
| | | | | | | | | | | | | | | | | | | | | | | from the callwheel. Calculate the cc->cc_next before removing the callout, otherwise the code followed the invalid tailq links. After this, make softclock_call_cc() return void, since it always return cc->cc_next, which is immediately available to the softclock() anyway. This also allows to eliminate a label under #ifdef SMP. Remove the assignment of cc->cc_next from callout_cc_del(), since the function is called with the callout already removed from callwheel. If cancelling the migration, also clear the CALLOUT_DFRMIGRATION flag. Postpone the free of the timeout(9) allocated callouts after the migration checks are done. Add some more strict asserts about the state of the callout in callout_call_cc(). Reviewed by: attilio Reported and tested by: pho (previous version) MFC after: 2 weeks
* Check for lockmgr recursion in case of disown and downgrade and panicattilio2012-12-051-2/+19
| | | | | | | also in !debugging kernel rather than having "undefined" behaviour. Tested by: avg MFC after: 1 week
* Use Bernard Baruch's full name.eadler2012-12-051-2/+2
| | | | | | | | | | The words "old than" seem to be quoted as "older than" by some sources, so use the more likely and grammatically correct text. PR: docs/173868 Submitted by: Chris Petrik <c.petrik.sosa@gmail.com> Approved by: cperciva MFC after: 1 week
* Simplify string duplication: use strdup instead of malloc + strcpyeadler2012-12-051-6/+5
| | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks
* Avoid overflowing the file buffereadler2012-12-051-1/+1
| | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks
* Use strdup instead of malloc + strcpyeadler2012-12-051-6/+4
| | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks
* Avoid overflow of file buffereadler2012-12-051-1/+1
| | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks
* Remove useless check for NULL prior to free.eadler2012-12-052-4/+2
| | | | | Approved by: cperciva MFC after: 2 weeks
* Remove hack to emulate effective uid and just use the EUID's name in theeadler2012-12-052-8/+2
| | | | | | | | | first place. I was unaware of this option when originally committing this change. Submitted by: gcooper Approved by: cperciva MFC after: 3 days
* Remove pointless check for the existence of /usr/bin/less which existseadler2012-12-051-13/+1
| | | | | | | | in all configurations. Reviewed by: mjg Approved by: cperciva MFC after: 2 weeks
* Add ability to mergemaster to permit the user to typeeadler2012-12-051-0/+5
| | | | | | | | | the absolute path to PAGER if mergemaster can not find the one already set. Reviewed by: mjg Approved by: cperciva MFC after: 2 weeks
* Connect organization.dot to the buildeadler2012-12-051-1/+2
| | | | | Approved by: cperciva MFC after: 3 days
* if PACKAGESITE url scheme is not 'file://', always try to revolv SRV records andbapt2012-12-054-9/+222
| | | | | | | use them if any. It allows the bootstrap to use directly pkg.FreeBSD.org instead of pkgbeta.FreeBSD.org MFC after: 1 month
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-05178-593/+582
| | | | | | | | | malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
* Remove dead code that clang refuses to compile.rpaulo2012-12-051-10/+0
|
* Fix a race between kern_setitimer() and realitexpire(), where thekib2012-12-043-5/+2
| | | | | | | | | | | | | | | | | | | | | callout is started before kern_setitimer() acquires process mutex, but looses a race and kern_setitimer() gets the process mutex before the callout. Then, assuming that new specified struct itimerval has it_interval zero, but it_value non-zero, the callout, after it starts executing again, clears p->p_realtimer.it_value, but kern_setitimer() already rescheduled the callout. As the result of the race, both p_realtimer is zero, and the callout is rescheduled. Then, in the exit1(), the exit code sees that it_value is zero and does not even try to stop the callout. This allows the struct proc to be reused and eventually the armed callout is re-initialized. The consequence is the corrupted callwheel tailq. Use process mutex to interlock the callout start, which fixes the race. Reported and tested by: pho Reviewed by: jhb MFC after: 2 weeks
* Do not allocate buffer of the 255 bytes length on the stack.kib2012-12-041-3/+6
| | | | | Reported and tested by: sig6247@gmail.com MFC after: 1 week
* Fix fallout from r243019, which broke parsing of shortened networkglebius2012-12-041-0/+7
| | | | | | prefixes. Reported and tested by: delphij
* - Fix LOR in sa6_recoverscope() in rt_msg2()[1].hrs2012-12-043-41/+45
| | | | | | | - Check V_deembed_scopeid before checking if sa_family == AF_INET6. - Fix scope id handing in route(8)[2] and ifconfig(8). Reported by: rpaulo[1], Mateusz Guzik[1], peter[2]
* libc: Use the new 'e' fopen() mode option to simplify fstab.c.jilles2012-12-041-11/+1
| | | | No functional change is intended.
* Use absolute path for /usr/libexec/ld-elf.so.1 symlink.pjd2012-12-041-2/+2
| | | | | | | | | Requested by: kan, kib Use -h flags for chflags, so we won't remove 'schg' flag from system's /libexec/ld-elf.so.1. MFC after: 2 weeks
* Fix typo.kib2012-12-041-1/+1
| | | | | Submitted by: bjk MFC after: 3 days
* Do not change entire BINDIR, it might be needed later, just changepjd2012-12-041-2/+2
| | | | | | symlink target. MFC after: 2 weeks
* Change /usr/libexec/ld-elf.so.1 to point at ../../libexec/ld-elf.so.1pjd2012-12-041-1/+1
| | | | | | | | | | | instead of /libexec/ld-elf.so.1. Below in the Makefile we execute 'chflags noschg ${DESTDIR}/usr/libexec/ld-elf.so.1', which follows symlink and removes 'schg' flag from system's /libexec/ld-elf.so.1 instead of the one in DESTDIR. It is also more friendly to use replative paths in symlink in case of jail/chroot environments. Obtained from: WHEEL Systems MFC after: 2 weeks
* Flush stdout after RTM_IFANNOUNCE message.glebius2012-12-041-0/+1
| | | | | PR: bin/151600 Submitted by: Eric van Gyzen <eric vangyzen.net>
* No need to be root when running with -t or -d.glebius2012-12-041-2/+2
|
* Document that bind(2) can fail with EAFNOSUPPORT.kevlo2012-12-041-0/+2
| | | | Reviewed by: glebius
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-04133-389/+389
| | | | malloc(9) flags in sys/dev.
* Remove superfluous paragraph macro.joel2012-12-041-1/+0
|
* Remove snapshots.jp.freebsd.org. It stopped working years ago.joel2012-12-041-1/+0
| | | | Discussed with: hrs
* replace bit shifting loop with 1<<fls(n), improve comments.alfred2012-12-041-6/+4
| | | | Reviewed by: davide
OpenPOWER on IntegriCloud