summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* pf: Deal with runt packetskp2015-04-011-4/+4
| | | | | | | | | | | | | | On Ethernet packets have a minimal length, so very short packets get padding appended to them. This padding is not stripped off in ip6_input() (due to support for IPv6 Jumbograms, RFC2675). That means PF needs to be careful when reassembling fragmented packets to not include the padding in the reassembled packet. While here also remove the 'Magic from ip_input.' bits. Splitting up and re-joining an mbuf chain here doesn't make any sense. Differential Revision: https://reviews.freebsd.org/D2189 Approved by: gnn (mentor)
* Preserve IPv6 fragment IDs accross reassembly and refragmentationkp2015-04-013-5/+13
| | | | | | | | | | | | | When forwarding fragmented IPv6 packets and filtering with PF we reassemble and refragment. That means we generate new fragment headers and a new fragment ID. We already save the fragment IDs so we can do the reassembly so it's straightforward to apply the incoming fragment ID on the refragmented packets. Differential Revision: https://reviews.freebsd.org/D2188 Approved by: gnn (mentor)
* multiboot: fix error codesroyger2015-04-011-4/+4
| | | | | | | | Return EINVAL instead of EFTYPE if we have a multiboot kernel loaded but failed to load the modules. This makes it clear that the kernel/module should be handled by the multiboot handler but something went wrong. Sponsored by: Citrix Systems R&D
* multiboot: zero mod list arrayroyger2015-04-011-0/+7
| | | | | | | | Zero the list of modules array before using it, or else we might pass uninitialized data in unused fields of the struct that will make Xen choke. Also add a check to make sure malloc succeeds. Sponsored by: Citrix Systems R&D
* Add the arm64 parts of libthread_db.andrew2015-04-011-0/+96
| | | | | | Differential Revision: https://reviews.freebsd.org/D2184 Reviewed by: imp Sponsored by: The FreeBSD Foundation
* Add the arm64 defines for cddl code.andrew2015-04-012-1/+43
| | | | | | Differential Revision: https://reviews.freebsd.org/D2186 Reviewed by: emaste Sponsored by: The FreeBSD Foundation
* Move the efi loaders to be under sys/boot/efi. This will help us addandrew2015-04-0126-96/+92
| | | | | | | | support for booting arm and arm64 from UEFI. Differential Revision: https://reviews.freebsd.org/D2164 Reviewed by: emaste, imp (previous version) Sponsored by: The FreeBSD Foundation
* Refine r280308. Do not completely disable timestamping of devfs nodeskib2015-04-011-7/+25
| | | | | | | | | | | | | | | on reads or writes, the time marks are used to display idle time by w(1) [1]. Instead, use vfs.devfs.dotimes as the selector of default precision vs. using time_second. The later gives seconds precision, which is good enough for the purpose. Note that timestamp updates are unlocked and the updates itself, as well as the check in devfs_timestamp, are non-atomic. Noted by: truckman [1] Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Migrate the TL-WR1043nd v2 to use the new map based MAC hints mechanism.adrian2015-04-011-2/+19
| | | | | This programs separate, correct mac addresses for the ethernet and wlan interfaces.
* Don't use a private copy of the ANI definitions - use the HAL definitions.adrian2015-04-011-33/+6
| | | | | | | | | | | Whilst I'm at it: * fix the NI+ to be correct, rather than NI-; * use the diag api codes, now that the HAL is public. Tested: * AR9380, STA mode
* Use the HAL API for returning ar5212AniState, rather than just dumpingadrian2015-04-012-3/+24
| | | | AniState itself.
* Expose the ANI state / statistics using the public ANI function, rather thanadrian2015-04-013-4/+29
| | | | | | | the ar9300_* definitions. .. which of course don't match, and athstats was reading garbage ANI data.
* Start the process of migrating the ANI statistics out of the HALs and intoadrian2015-04-014-4/+48
| | | | | | | | | | | | | | | | the top-level HAL. The athstats program is blindly using a copy of the ar5212 ANI stats structure to pull out ANI statistics/state and this is problematic for the AR9300 HAL. So: * Define HAL_ANI_STATS and HAL_ANI_STATE * Use HAL_ANI_STATS inside the AR5212 HAL This commit doesn't (yet) convert the ar5212AniState -> HAL_ANI_STATE when exporting it to userland; that'll come in the next commit.
* Whoops! "arc commit --revision" != "arc diff --update"dteske2015-04-014-48/+7
|
* Add "GELI Passphrase:" prompt to boot loader.dteske2015-04-014-7/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add "GELI Passphrase:" prompt to boot loader. A new loader.conf(5) option of geom_eli_passphrase_prompt="YES" will now allow you to enter your geli(8) root-mount credentials prior to invoking the kernel. See check-password.4th(8) for details. Differential Revision: https://reviews.freebsd.org/D2105 Reviewed by: (your name[s] here) MFC after: 3 days X-MFC-to: stable/10 Relnotes: yes Test Plan: Drop a head copy of check-password.4th into /boot and then apply the patch (only the patch to /boot/check-password.4th is required; no other changes are required but you do have to have a HEAD copy of check-password.4th to apply the patch). NB: The rest of your /boot files can be up to 2 years old but no older. NB: The test won't work unless your kernel has the following change https://svnweb.freebsd.org/base?view=revision&revision=273489 Now, put into /boot/loader.conf: geom_eli_passphrase_prompt="YES" and reboot. You should be prompted for a GELI passphrase before the menu (if enabled), just after loading loader.conf(5). NB: It doesn't matter if you're using GELI or not. However if you are using GELI and a sufficiently new enough release (has SVN r273489) and you entered the proper passphrase to mount your GELI encrypted root device(s), you should notice that the boot process did not stop (you went from loader all the way to login). Reviewers: cperciva, allanjude, scottl, kmoore Subscribers: jkh, imp Differential Revision: https://reviews.freebsd.org/D2105
* Solve dreaded "dictionary full" issue by segregating words into newdteske2015-04-0110-254/+329
| | | | | | | | | | | | vocabularies delay-processing, password-processing, version-processing, frame-drawing, menu-infrastructure, menu-namespace, menu-command-helpers, and menusets-infrastructure. The net effect is to remove almost 200 definitions from the main forth vocabulary reducing the dictionary size by over 50%. The chances of hitting "dictionary full" should be greatly reduced by this patch. MFC after: 3 days X-MFC-to: stable/10
* When forced to draw ASCII lines/boxen, use `=' for the horizontal linedteske2015-04-011-1/+6
| | | | | | | when double frames are requested versus single. MFC after: 3 days X-MFC-to: stable/10
* Securely overwrite (zero) user input when we finish password checks.dteske2015-04-011-5/+14
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Add remainder of supported ANSI escape sequences.dteske2015-04-011-0/+12
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Move beastie to logo-*.4th; brands to brand-*.4thdteske2015-04-019-229/+333
| | | | | | Suggested by: jkh, alfred MFC after: 3 days X-MFC-to: stable/10
* Update elftoolchain to upstream revision 3179emaste2015-04-0178-240/+255
| | | | | | | | | | | | | Some notable changes: - libdwarf: Fixed DWARF4 line section - elfcopy: Implement --localize-hidden - nm: handle object name referenced by DW_AT_specification - elfcopy: Add --strip-dwo and --extract-dwo options for split DWARF - readelf: add remaining arm64 dynamic relocation names - nm: Avoid integer overflow in value comparison Relnotes: Yes Sponsored by: The FreeBSD Foundation
* Comments. No functional change.dteske2015-04-011-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Fix overflow bugs in and remove obsolete limit from kernel RPCwollman2015-04-012-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementation. The kernel RPC code, which is responsible for the low-level scheduling of incoming NFS requests, contains a throttling mechanism that prevents too much kernel memory from being tied up by NFS requests that are being serviced. When the throttle is engaged, the RPC layer stops servicing incoming NFS sockets, resulting ultimately in backpressure on the clients (if they're using TCP). However, this is a very heavy-handed mechanism as it prevents all clients from making any requests, regardless of how heavy or light they are. (Thus, when engaged, the throttle often prevents clients from even mounting the filesystem.) The throttle mechanism applies specifically to requests that have been received by the RPC layer (from a TCP or UDP socket) and are queued waiting to be serviced by one of the nfsd threads; it does not limit the amount of backlog in the socket buffers. The original implementation limited the total bytes of queued requests to the minimum of a quarter of (nmbclusters * MCLBYTES) and 45 MiB. The former limit seems reasonable, since requests queued in the socket buffers and replies being constructed to the requests in progress will all require some amount of network memory, but the 45 MiB limit is plainly ridiculous for modern memory sizes: when running 256 service threads on a busy server, 45 MiB would result in just a single maximum-sized NFS3PROC_WRITE queued per thread before throttling. Removing this limit exposed integer-overflow bugs in the original computation, and related bugs in the routines that actually account for the amount of traffic enqueued for service threads. The old implementation also attempted to reduce accounting overhead by batching updates until each queue is fully drained, but this is prone to livelock, resulting in repeated accumulate-throttle-drain cycles on a busy server. Various data types are changed to long or unsigned long; explicit 64-bit types are not used due to the unavailability of 64-bit atomics on many 32-bit platforms, but those platforms also cannot support nmbclusters large enough to cause overflow. This code (in a 10.1 kernel) is presently running on production NFS servers at CSAIL. Summary of this revision: * Removes 45 MiB limit on requests queued for nfsd service threads * Fixes integer-overflow and signedness bugs * Avoids unnecessary throttling by not deferring accounting for completed requests Differential Revision: https://reviews.freebsd.org/D2165 Reviewed by: rmacklem, mav MFC after: 30 days Relnotes: yes Sponsored by: MIT Computer Science & Artificial Intelligence Laboratory
* Fix "MOVS" instruction memory to MMIO emulation. Currently updates totychon2015-04-016-35/+68
| | | | | | | | | %rdi, %rsi, etc are inadvertently bypassed along with the check to see if the instruction needs to be repeated per the 'rep' prefix. Add "MOVS" instruction support for the 'MMIO to MMIO' case. Reviewed by: neel
* Add code for creating an EC2 AMI.cperciva2015-04-012-0/+46
|
* Whitespace and cleanup. No functional change(s).dteske2015-03-311-24/+16
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Optimize bootmsg to use fg/bg/me from screen.4thdteske2015-03-311-7/+6
| | | | | | | NB: screen.4th is included by way of check-password.4th MFC after: 3 days X-MFC-to: stable/10
* Comments. No functional change(s).dteske2015-03-3111-18/+71
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Whitespace. No functional change(s).dteske2015-03-312-28/+11
| | | | | MFC after: 3 days MFH: stable/10
* Change contents of the exec variable in loader.conf to be friendly to bothdteske2015-03-311-1/+1
| | | | | | Ficl/Forth and Lua. No visible change for Forth while enabling Lua support. Submitted by: rpaulo
* Fix typo in a comment.dteske2015-03-311-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9
* sh: Add more tests for exotic IFS splitting.jilles2015-03-313-0/+13
|
* wordexp: Explicitly pass along IFS.jilles2015-03-311-1/+4
| | | | | | | | | | | Per Austin group issue #884, sh should not import IFS from the environment but always set it to $' \t\n'. For wordexp(), however, it is documented and useful for it to use IFS from the environment. Since sh currently imports IFS from the environment, this change has no functional effect. MFC after: 1 week
* Add limited to the default restrictions.delphij2015-03-311-2/+2
| | | | X-MFC-with: r280849
* Fix build.cy2015-03-311-2/+2
|
* Constify.delphij2015-03-311-11/+11
| | | | | Suggested by: rdivacky MFC after: 2 weeks
* Add the fe* symbols to libm for arm64.andrew2015-03-311-0/+56
| | | | Sponsored by: The FreeBSD Foundation
* Remove bogus cast.kevlo2015-03-312-10/+10
|
* The offset variable has been cleared all bits except IP6F_OFF_MASK.ae2015-03-311-1/+1
| | | | Use ip6f_mf variable instead of checking its bits.
* unwind-d2 build workaround for arm64emaste2015-03-311-0/+9
| | | | | | | | | | | The __builtin_init_dwarf_reg_size_table function is unimplemented in clang 3.6 for AArch64. Comment it out for now and replace it with a message and abort. Tracked in upstream LLVM PR 22997 https://llvm.org/bugs/show_bug.cgi?id=22997 Submitted by: andrew
* Correct copyright typoemaste2015-03-311-1/+1
|
* Add kernel config files for Hardkernel Odroid-C1 and Visson ATV-102 devices.ganbold2015-03-312-0/+266
| | | | | Submitted by: John Wehle Approved by: stas (mentor)
* Add device tree files for Hardkernel Odroid-C1 and Visson ATV-102 devices.ganbold2015-03-312-0/+909
| | | | | Submitted by: John Wehle Approved by: stas (mentor)
* Add necessary changes to support various Amlogic SoC devicesganbold2015-03-3137-1/+10779
| | | | | | | | | | | | | | | | | | | | | | | | | | | | specially aml8726-m6 and aml8726-m8b SoC based devices. aml8726-m6 SoC exist in devices such as Visson ATV-102. Hardkernel ODROID-C1 board has aml8726-m8b SoC. The following support is included: Basic machdep code SMP Interrupt controller Clock control driver (aka gate) Pinctrl Timer Real time clock UART GPIO I2C SD controller SDXC controller USB Watchdog Random number generator PLL / Clock frequency measurement Frame buffer Submitted by: John Wehle Approved by: stas (mentor)
* Use appropriate timeout_t* instead of void* in tcp_timer_activate()jch2015-03-311-1/+1
| | | | | | | Suggested by: imp Differential Revision: https://reviews.freebsd.org/D2154 Reviewed by: imp, jhb Approved by: jhb
* Add the arm64 code to the runtime linker. It's not able to be built as weandrew2015-03-314-1/+515
| | | | | | | | | still need libc_pic for a few things, but this is expected to be ready soon. Differential Revision: https://reviews.freebsd.org/D2136 Reviewed by: kib Sponsored by: The FreeBSD Foundation
* - Fix -Wsign issuengie2015-03-312-1/+5
| | | | - Bump up to WARNS=6
* Minor cleanup before converting to ATF testcasesngie2015-03-312-17/+22
| | | | | | - Remove blank (tab-only) lines. - Fix -Wunused warnings. - Bump up to WARNS= 6
* Cleanup and do minor refactoring before converting testcases to ATFngie2015-03-312-63/+69
| | | | | | | | | | | | | | | - Convert errx(-1, ..) to errx(1, ..) - Move the aio(4) checks to a single function (aio_available); use modfind(2) instead of depending on SIGSYS (doesn't work when aio(4) support is missing, not documented in the aio syscall manpages). - Use aio_available liberally in the testcase functions - Use mkstemp(3) + unlink(2) instead of mktemp(3) - Fix some -Wunused warnings - Bump WARNS to 6 MFC after: 1 week Submitted by: mjohnston [*] Sponsored by: EMC / Isilon Storage Division
* CCSRBAR_VA is mpc85xx-specific, so add guards, and include the proper headerjhibbits2015-03-311-0/+6
| | | | | | file for it. MFC after: 1 month
OpenPOWER on IntegriCloud