summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r286368: Remove guards around overwriting loader.rc and menu.rcdteske2016-01-078-33/+16
| | | | | | | | | | | | | There have been .local version of each for user modifications for some time This allows users to receive future updates to these files PR: 183765 Differential Revision: https://reviews.freebsd.org/D3176 Submitted by: Bertram Scharpf, Nikolai Lifanov (patch) Reviewed by: dteske, loos, eadler Approved by: bapt (mentor) Relnotes: yes Sponsored by: ScaleEngine Inc.
* MFC SVN revisions 280922,285875,285882.dteske2016-01-071-4/+11
| | | | | | r280922: Change contents of the exec variable in loader.conf (dteske/rpaulo) r285875: Use double newlines consistently (trasz/foundation) r285882: Use consistent spacing (trasz/foundation)
* MFC r290693: Add support for "rc.conf.d" file(s).dteske2016-01-071-1/+95
| | | | | | Differential Revision: https://reviews.freebsd.org/D3551 Reviewed by: allanjude Relnotes: yes
* MFC r278492: Add "vt_"* aliases to bsdconfig console entries.dteske2016-01-071-0/+7
| | | | NB: "syscons_"* kept for backward compatibility
* MFC r289677:bdrewery2016-01-0743-58/+58
| | | | Fix a ton of speelling errors
* MFC r270228:ngie2016-01-061-6/+47
| | | | | | | | | | | | | | | | | | | | | | | r270228 (by asomers): Numerous small fixes, mostly suggested by Coverity. tests/sys/kern/unix_seqpacket_test.c * Remove a duplicate error check in mk_pair_of_sockets * Always close sockets in the success path of ATF test cases. Don't bother with the error paths, because those are mostly assertions anyway. Most of these socket leaks were reported by Coverity. All of them are harmless, because each ATF test case runs in its own process. * Fix the len argument to send in shutdown_send and shutdown_send_sigpipe. The old version was using sizeof a pointer instead of sizeof the char array. Reported by Coverity. * Change a few ATF_CHECK to ATF_REQUIRE if the test can't reasonably continue past a failure. CID: 1229995, 1229991, 1229988, 1229994, 1229989, 1229992 CID: 1229993, 1229990, 1229984, 1229967, 1230005, 1229977 CID: 1229966, 1230004, 1229976
* MFC r271397:ngie2016-01-061-1/+1
| | | | | | | | r271397 (by asomers): Abort the create_socket test if socket creation fails. CID: 1232756
* MFC r292914,r292957:ngie2016-01-064-397/+397
| | | | | | | | | | | | | | | | | | | | r292914: Integrate tools/regression/sockets/unix_passfd into the FreeBSD test suite as tests/sys/kern/unix_passfd_test - Convert testcases to ATF - Fix an alignment issues - Mark rights_creds_payload(..) as an expected failure (see PR # 181741) https://reviews.freebsd.org/D689 Submitted by: markj r292957: Rename `recvfd` and `sendfd` variables in recvfd/sendfd functions to avoid -Wshadow issues with gcc
* MFC r288961,r288962:ngie2016-01-061-3/+3
| | | | | | | | | | | r288961 (by bdrewery): Fix build with older GCC which, doesn't like 'main' being a variable name. r288962 (by jhb): Tweak: use 'mainlwp' instead of 'mainpid' since this is a thread (LWP) identifier, not a pid.
* MFC r292328:ngie2016-01-0629-135/+1061
| | | | | | | | | | | | Integrate a number of testcases from tools/regression/lib/msun into the FreeBSD test suite There's no functional change with these testcases; they're purposely being left in TAP format for the time being Other testcases which crash on amd64/i386 as-is have not been integrated yet (they need to be retested on a later version of CURRENT, as I haven't used i386 in some time)
* MFC r292650,r292651:ngie2016-01-061-10/+5
| | | | | | | | | | | | | | | | | r292650: Move mac_bsdextended check up before running the test_libugidfw_strings testcases I realize that these tests could be run before mac_bsdextended is loaded, but it would overcomplicate things to special case handle the testcases before doing the mac_bsdextended(4) feature check The testcases will be split up so they can be run separately in the near future r292651: Delete the comment about running `test_libugidfw_strings` before testing `mac_is_present` so it doesn't accidentally confuse people
* MFC r292570:ngie2016-01-0611-0/+906
| | | | | | Integrate tools/regression/mac/mac_bsdextended and tools/regression/mac/mac_portacl into the FreeBSD test suite as tests/sys/mac/bsdextended and tests/sys/mac/portacl, respectively
* MFC r292530,r292546:ngie2016-01-061-36/+55
| | | | | | | | | | | | | | | r292530: - Use 1 for an exit code instead of -1 with err, errx, and exit - Add unistd.h for getuid(3) - Sort #includes r292546: - Convert testcase to TAP format - Use nitems(x) instead of handrolled sizeof(x) / sizeof(*x) macro - Do not mark count != 0 case with bsde_get_rule_count as a failure; this generates false positives on systems with ugidfw rules set on it
* MFC r270675:bdrewery2016-01-062-5/+20
| | | | | | | Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env var if set) PR: 205965
* MFC r292877:pfg2016-01-061-1/+1
| | | | | | | | | pax: prevent possible buffer overflow Or at least quiet down some static analyzers about it. CID: 978835 Obtained from: OpenBSD
* MFC r292872:pfg2016-01-061-0/+3
| | | | | | | | | | ext2: recognize ext4 INCOMPAT_RECOVER flag This is a flag specific for journalling in ext4. Add it to the list of ext4 features we ignore for read-only purposes. PR: 205668
* MFC r292961:kib2016-01-061-3/+5
| | | | | Force nullfs vnode reclaim after unlinking, to potentially unlink lower vnode.
* MFC: r292266 & r292947smh2016-01-062-7/+24
| | | | | | Add flag to disable inital reboot(8) userland sync Sponsored by: Multiplay
* MFC 292366: Flag the first port on a Sheevaplug ftdi serial device as jtag.ian2016-01-051-1/+1
|
* MFC r287920:rstone2016-01-051-0/+3
| | | | | | | | | | | | | | | Fix /sbin/route to never look up (invalid) interface names through DNS /sbin/route has a bug where if it is passed an interface name that does not exist, it falls through and winds up interpreting it as a hostname. It fails out eventually, but on a system where DNS lookup is broken you can end up waiting for up to 60 seconds waiting for the DNS lookup to timeout. I'm not quite sure what happens if the DNS lookup somehow succeeds but I doubt that can end well. Reviewed by: markj, cem MFC after: 2 weeks Sponsored by: EMC/Isilon Storage Division
* MFC r292890:kib2016-01-052-0/+3
| | | | Add standard extended feature bit 6 from the Intel SDM rev. 57.
* Add `..` after sys/kern/pipe entry accidentally missed in r291183ngie2016-01-051-0/+1
| | | | | | | | This is a direct commit to stable/10 Pointyhat to: ngie Reported by: rodrigc Sponsored by: EMC / Isilon Storage Division
* Merge from head r287357-287358,287400:glebius2016-01-051-3/+19
| | | | | Not only build with buildworld, but also install with installworld all alternative kernels.
* bmake 20151220sjg2016-01-048-51/+69
|
* MFH: r292522brueffer2016-01-0413-19/+1
| | | | | | | Merge from contrib/openbsm to bring the kernel audit bits up to date with OpenBSM 1.2 alpha 4: - remove $P4$ - fix a comment
* MFC r280351: Stop calling x86_efi_copyin and x86_efi_getdev directlyemaste2016-01-041-13/+13
| | | | | | In HEAD this is to help port loader.efi to both 32 and 64-bit ARM where we can use this file with minimal changes. Merged to stable/10 to simplify MFCs of later EFI commits.
* MFH: 292432,r292433,r292434brueffer2016-01-04162-455/+533
| | | | | | | | - Merge OpenBSM 1.2 alpha 4. - Regenerate config.h for OpenBSM 1.2 alpha 4. - Add au_notify.2 and MLINKs (added in OpenBSM 1.2 alpha 4). Relnotes: yes
* MFC r292949:hselasky2016-01-043-42/+107
| | | | | | Add support for modifying coalescing parameters runtime. Sponsored by: Mellanox Technologies
* MFC r292948:hselasky2016-01-041-4/+15
| | | | | | | Allow I2C to read address 0x51 as well as address 0x50. Submitted by: Shahar Klein <shahark@mellanox.com> Sponsored by: Mellanox Technologies
* MFC r292946:hselasky2016-01-042-3/+3
| | | | | | | | 10G ER/LR should present itself as LR. MFC after: 1 week Submitted by: Shahar Klein <shahark@mellanox.com> Sponsored by: Mellanox Technologies
* MFC r292838:hselasky2016-01-047-3/+131
| | | | | | | | | | | | | Add support for CQE zipping. CQE zipping reduces PCI overhead by coalescing and zipping multiple CQEs into a single merged CQE. The feature is enabled by default and can be disabled by a sysctl. Implementing this feature mlx5_cqwq_pop() has been separated from mlx5e_get_cqe(). Submitted by: Mark Bloch <markb@mellanox.com> Differential Revision: https://reviews.freebsd.org/D4598 Sponsored by: Mellanox Technologies
* MFC r292837:hselasky2016-01-041-6/+30
| | | | | | | | | | Add support for sysctl tunables to 10-stable and older. Pushed through head first to simplify driver maintenance. MFC after: 1 week Submitted by: Drew Gallatin <gallatin@freebsd.org> Differential Revision: https://reviews.freebsd.org/D4552 Sponsored by: Mellanox Technologies
* MFC r292835:hselasky2016-01-041-17/+16
| | | | | | | | | Make the eeprom dump function more readable and rename variables for better clarity. Submitted by: Daria Genzel <dariaz@mellanox.com> Differential Revision: https://reviews.freebsd.org/D4551 Sponsored by: Mellanox Technologies
* MFC r289563,r291481,r292537,r292538,r292542,r292543,r292544 and r292834:hselasky2016-01-047-93/+260
| | | | | | | | | | | | | | | | | | | | Update the LinuxKPI: - Add more functions and types. - Implement ACCESS_ONCE(), WRITE_ONCE() and READ_ONCE(). - Implement sleepable RCU mechanism using shared exclusive locks. - Minor workqueue cleanup: - Make some functions global instead of inline to ease debugging. - Fix some minor style issues. - In the zero delay case in queue_delayed_work() use the return value from taskqueue_enqueue() instead of reading "ta_pending" unlocked and also ensure the callout is stopped before proceeding. - Implement drain_workqueue() function. - Reduce memory consumption when allocating kobject strings in the LinuxKPI. Compute string length before allocating memory instead of using fixed size allocations. Make kobject_set_name_vargs() global instead of inline to save some bytes when compiling. Sponsored by: Mellanox Technologies
* MFC r291199:hselasky2016-01-041-1/+1
| | | | Fix compile warning about shifting signed negative constant.
* MFC r292814:ngie2016-01-041-5/+6
| | | | | | | | | - Explicitly initialize ch to 0 - Delete some spurious whitespace - Use calloc instead of malloc in the last test to ensure that sendspace is properly zero'ed out Submitted by: markj
* MFC r292822:ngie2016-01-041-4/+3
| | | | Remove retval to fix a -Wunused-but-set-variable warning from gcc 4.9
* MFC r292820:ngie2016-01-041-19/+19
| | | | Clean trailing whitespace
* MFC r292815:ngie2016-01-042-9/+13
| | | | | | | Staticize several variables that are used exclusively in bsnmpd/main.c and bsnmpd/trap.c This fixes several -Wmissing-variable-declaration warnings noted by clang
* MFC r292816,r292818,r292819:ngie2016-01-042-72/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r292816: Place cancel and error under #ifdef DEBUG to mute -Wunused-but-set-variable warnings reported by gcc 4.9 Remove some trailing whitespace as well Tested with and without -DDEBUG r292818: Fix style(9) a bit and ensure that error from initializing kqueue(2) is sane - Push the kqueue(2) initialization down so the errno will correspond with the failure instead of potentially being stomped on by functions called by `PLAIN_REQUIRE_KERNEL_MODULE` - Delete trailing whitespace - Add spaces between braces for conditional and control blocks (for/if) - Use err/errx instead of perror+printf+exit/printf+exit. - Remove braces for single-line conditionals Tested with and without -DDEBUG r292819: - Fix an improperly sized buffer for `pathname` [1] - Fix a -Wunused-but-set-variable warning [2]
* MFC r292531,r292532,r292533,r292545:ngie2016-01-041-71/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | r292531: Make test_matches.sh into a series of TAP testcases Use temporary filesystems / memory disks instead of a hardcoded path which doesn't exist on test systems r292532: Mark `subject matching jailid` testcase as an unexpected failure with TODO to ensure that the testcase isn't marked as a failure PR: 205481 r292533: Skip the testcases if mac_bsdextended(4) isn't detected on the system r292545: Redo the TAP integration so it works with Kyua Kyua needs numbers in the TAP results :/, but prove doesn't
* MFC r292605, r292606, r292607, r292608:pfg2016-01-043-5/+6
| | | | | | | | | | cron: bring some fixes for Coverity reports and other issues. crontab: replace malloc + bzero with calloc crontab: properly free an entry cron: Check the return value of pipe(2) CID: 271773, 1009830,
* MFC r279437,r284107:ngie2016-01-031-0/+263
| | | | | | | | | | | | | | | | | r279437 (by rstone): Allow Illumos code to co-exist with nv(9) r284107 (by avg): compat nvpair.h: make sure that the names are mangled only for kernel Currently there is no good reason to mangle the userland API. The change was introduced in eac1d566b46edef765754203bef22c75c1699966, r279437. Also see https://reviews.freebsd.org/D1881. I am still convinced that nv should not have introduced intentionally conflicting API.
* MFC r293015:dim2016-01-031-1/+1
| | | | | | | | | | | | | | | Merge r293013 from clang380-import branch: Fix a clang 3.8.0 warning in pflogd.c: contrib/pf/pflogd/pflogd.c:769:8: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses] if (!if_exists(interface) == -1) { ^ ~~ The if_exists() function does not return -1, and even if it did, it would not be the correct way to check. Just ditch the == -1 instead. Obtained from: OpenBSD's pflogd.c 1.49
* MFC r293014:dim2016-01-031-1/+1
| | | | | | | | | | | | Merge r293006 from clang380-import branch: For determining the compiler version, quote the string to be echo'd, otherwise the command might fail. This is because clang -v now results in the following: FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn) The second "3.8.8svn)" string tripped up the shell command.
* MFC r292884:ngie2016-01-011-1/+1
| | | | | | | Fix getopt(3) argument after r290180; I forgot to change -r to -R by accident Pointyhat to: ngie
* MFC r292719:ume2016-01-012-57/+0
| | | | | Remove _gethostbynisname() and _gethostbynisaddr(). These functions used to be called from getipnodebyname().
* MFC r292640,r292641:ngie2015-12-311-5/+5
| | | | | | | | | | | | | | | | | | r292640: Clean up trailing whitespace; no functional change Sponsored by: EMC / Isilon Storage Division r292641: Fix r292640 vim overzealously removed some trailing `+' and I didn't check the diff Pointyhat to: ngie Sponsored by: EMC / Isilon Storage Division
* MFC r292710:ngie2015-12-311-23/+0
| | | | | | | | | | | Remove unused function `act_getkernstring` This fixes a clang -Wunused warning Differential Revision: https://reviews.freebsd.org/D4697 Reported by: Jenkins Reviewed by: araujo, bapt Sponsored by: EMC / Isilon Storage Division
* MFC r292983:bz2015-12-312-3/+3
| | | | | | Bump copyright year. Happy New Year 2016!
OpenPOWER on IntegriCloud