summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Regen for r276955 (__getcwd path bug).dchagin2015-01-1111-14/+14
|
* MFC r276564, r276654:dchagin2015-01-115-15/+7
| | | | | | | | | | | | | | | | Cast *path to silence clang -Wpointer-sign warning. Indeed, instead of hiding the kern___getcwd() bug by bogus cast in r276564, change path type to char * (pathnames are always char *). And remove bogus casts of malloc(). kern___getcwd() internally doesn't actually use or support u_char * paths, except to copy them to a normal char * path. These changes are not visible to libc as libc/gen/getcwd.c misdeclares __getcwd() as taking a plain char * path. While here remove _SYS_SYSPROTO_H_ for __getcwd() syscall as we always have sysproto.h.
* MFC r276765, r276766, r276820, r276822, r276827, r276828:gjb2015-01-111-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r276765: Update pkg-stage.sh to be compatible with pkg-1.4.x. In 1.3.x and earlier, ABI format is, for example, freebsd:11:x86:64. In 1.4.x, ABI format is FreeBSD:11:amd64, and a new configuration entry, ALTABI, is: freebsd:11:x86:64. Export PKG_ABI and PKG_ALTABI accordingly, and if PKG_ALTABI is set, create a symlink within the dvd PKG_CACHEDIR so both new and old ABI directories exist. r276766: Properly change directories before creating the PKG_ALTABI -> PKG_ABI symlink. r276820: Print informational output when NOPORTS is set, which would otherwise cause pkg-stage.sh to silently exit. r276822: Ensure /var/run/ld-elf.so.hints exists before building pkg(8). r276827: Ensure the ports directories exist for the list of packages intended to be included on the DVD, and remove any nonexistent ports from the final list. Print the list of missing paths, and ensure that DVD_PACKAGES is non-zero length (which should never happen). r276828: Switch to x11/gnome3 now that x11/gnome2 no longer exists in the ports tree. Sponsored by: The FreeBSD Foundation
* MFC r276627:kib2015-01-106-0/+33
| | | | | Add rtld private interface for dso to detect dynamic loading vs. static linking.
* MFC r265218 (smh):delphij2015-01-101-1/+0
| | | | Removed pointless / duplicated call to trim_map_first.
* MFC r264392 (davide):delphij2015-01-101-11/+13
| | | | | | | | | | | | | Fix a panic in zfs_rename(). this is due to a wrong dereference of a vnode when it's not locked and can be (potentially) recycled. 'sdvp' cannot be locked on zfs_rename() entry point because the VFS can't be sure that this scenario is LOR-free (it might violate the parent->child lock acquisition rule). Dereference 'tdvp' instead, which is already locked on entry, and access 'sdvp' fields only when it's safe, i.e. under ZFS_ENTER scope. While at it, remove the usage of VOP_REALVP, as long as this is a NOP on FreeBSD.
* MFC r276550:dchagin2015-01-091-3/+0
| | | | Remove Giant from linux_getcwd() due to VFS is MPSAFE now.
* MFC r276589:loos2015-01-091-0/+6
| | | | puc(4): Add an entry for the Feasso PCI FPP-02 2S1P card.
* MFC r276249:loos2015-01-091-9/+18
| | | | | | | | | | | | | | | | Fix the musb initialization sequence on AM335x. According to http://e2e.ti.com/support/arm/sitara_arm/f/791/t/210729 the USB reset pulse has an undocumented duration of 200ns and during this period the module must not be acessed. We wait for 100us to take into account for some imprecision of the early DELAY() loop. This fixes the eventual 'External Non-Linefetch Abort (S)' that happens at boot while resetting the musb subsystem. While here, enable the USB subsystem clock before the first access.
* MFC r274416:loos2015-01-091-2/+8
| | | | Fix a few cases of use of uninitialized variables. Found with -Wall.
* MFC r273606:loos2015-01-091-5/+14
| | | | | | | | | | | | | | | | | Fix cpsw_detach() to not panic when called from cpsw_attach(). For an unkown reason (at moment), sometimes if_cpsw cannot read from PHY and fails to attach calling cpsw_detach() which end up in a panic. Fix it by doing the proper check before detach the miibus and also fix the leak of few variables. And to actually make it work, ether_ifattach() has to be moved to the end of cpsw_attach() to avoid a race where calling ether_ifdetach() before domain_init() (which will only run later on) would make it crash at INP_INFO_RLOCK() on in_pcbpurgeif0(). Tested on: BBB (am335x)
* MFC r273599:loos2015-01-091-0/+2
| | | | | | | | | | Fix a bug where DMA maps created with bus_dmamap_create() won't increment the map count and without being able to keep track of the current map allocation, bus_dma_tag_destroy() will fail to proceed and will return EBUSY even after all the maps have been correctly destroyed with bus_dmamap_destroy(). Found while testing the detach method of a NIC.
* MFC: r273546loos2015-01-091-38/+37
| | | | | | | | | | | | | Fix a bug where some DTS layouts could cause the premature ending of the search (i.e. without returning any result) and you would end up with a random MAC address. Change the search algorithm to a recursive one to ensure that all the nodes on DTS will be verified. The previous algorithm could not keep up if the DTS has too many sub-nodes. While here, fix the punctuation on comments.
* MFC r276314:loos2015-01-092-41/+16
| | | | | | Convert the BSC (i2c) driver to use the new iicbus_get_frequency(). Tested on: Raspberry pi
* MFC r276523:kib2015-01-091-7/+7
| | | | Restore access to the page at zero through /dev/mem after r263475.
* MFC r276522:kib2015-01-091-4/+1
| | | | | Actually remove GIANT_REQUIRED, declared but not done in r263475. Style.
* MFC r273610:loos2015-01-092-4/+40
| | | | | | | | | | | | | Add an iicbus_reset() method to bcm2835_bsc. While it is generally not used for kernel devices it is used by i2c(8). This fix the 'error: Device not configured' when i2c(8) tries to reset the controller: # i2c -r Resetting I2C controller on /dev/iic0: error: Device not configured For now use conservative settings for default i2c speeds.
* MFC r273329, r273337 and r274415loos2015-01-091-6/+8
| | | | | | | | | | | | | | | | | | | Add another wakeup() after actually set the bus as free. This fix a race where the threads waiting for the bus would wake up early and still see bus as busy. While here, give a better description to wmesg for the two use cases we have (bus and io waiting). Fix the mtx_sleep() error checking, catch all errors and not only EWOULDBLOCK. Do not print any message at errors. The errors are properly sent to upper layers which should be able to deal with it, including printing the errors when they need to. The error message was quite annoying while scanning the i2c bus.
* MFC: r276861, r276863jkim2015-01-09443-7955/+9107
| | | | Merge OpenSSL 1.0.1k.
* MFC r276512:dchagin2015-01-081-2/+3
| | | | Fix Clang -Wpointer-sign warnings.
* MFC r276511:dchagin2015-01-081-4/+5
| | | | | Fix Clang warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign.
* Regen for r276810.dchagin2015-01-0810-14/+14
|
* MFC r276508, r276509:dchagin2015-01-082-2/+2
| | | | Correct an argument status of wait4 syscall for Linuxulator.
* MFC r276218:pfg2015-01-084-18/+35
| | | | | | | | | | | | | patch: Bring in xstrdup and use it when appropriate. The function savestr allows NULL return values during Plan A patching so in case of out of memory conditions, Plan B can step in. In many cases, NULL value is not properly handled, so use xstrdup here (it's outside Plan A/B patching, which means that even Plan B relies on successful operations). Clean up some whitespaces while here Obtained from: OpenBSD
* MFC r275709emax2015-01-071-2/+2
| | | | | | | handle "Kana" and "Eisu" keys on Apple Wireless Keyboard (JIS) PR: 187470 Submitted by: naito.yuichiro
* MFC r274722:trasz2015-01-071-43/+0
| | | | | | | | Remove acl_size.c; apparently it was never used. PR: 194398 Submitted by: ngie@ Sponsored by: The FreeBSD Foundation
* Merge r275599:rodrigc2015-01-062-0/+4
| | | | | | | | | | | | | Use CURVNET macros inside inet_get_local_port_range() function. Without this fix, a kernel with VIMAGE + Infiniband will panic on bootup. Certain necessary #include statements require LIST_HEAD. Add these includes to ofed/include/linux/list.h, because LIST_HEAD is specifically overridden in this file. PR: 191468 Differential Revision: D1279 Reviewed by: hselasky
* MFC r276250:markj2015-01-061-1/+4
| | | | | | | DOF tables are aligned according to the DOF section's alignment constraint, so take this into account when iterating over DOF tables. PR: 195555
* Document r275945, capabilities support added to elfdump(1).gjb2015-01-051-0/+4
| | | | Sponsored by: The FreeBSD Foundation
* Document r275891, CAM port/LUN limits increased.gjb2015-01-051-0/+6
| | | | Sponsored by: The FreeBSD Foundation
* Document r275490, vfs.zfs.spa_slop_shift tunable addition.gjb2015-01-051-1/+3
| | | | Sponsored by: The FreeBSD Foundation
* Document r275040, dpv(1), dpv(3), figpar(3).gjb2015-01-051-1/+7
| | | | Sponsored by: The FreeBSD Foundation
* Document r274939, iSNS support in ctld(8).gjb2015-01-051-1/+7
| | | | Sponsored by: The FreeBSD Foundation
* MFC r273876hiren2015-01-051-3/+3
| | | | | Use search method instead of fixed offsets for finding rootfs. This unbreaks recent images for picostation by allowing to find rootfs at correct location.
* MFC r276472:pfg2015-01-052-2/+2
| | | | | | | | | | | | Minor fixes to exit status. Exit with EXIT_FAILURE for invalid arguments. Fixes NetBSD-PR 43517. Print version string to stdout instead of stderr; it is user-requested and not an error. Obtained from: NetBSD
* Merge reaper facility.kib2015-01-0511-225/+883
| | | | | | | | | | | | | | | | | | | | | MFC r270443 (by mjg): Properly reparent traced processes when the tracer dies. MFC r273452 (by mjg): Plug unnecessary PRS_NEW check in kern_procctl. MFC 275800: Add a facility for non-init process to declare itself the reaper of the orphaned descendants. MFC r275821: Add missed break. MFC r275846 (by mckusick): Add some additional clarification and fix a few gammer nits. MFC r275847 (by bdrewery): Bump Dd for r275846.
* MFC r276320:ngie2015-01-051-0/+7
| | | | | | Parallelize building lib/ncurses Differential Revision: https://reviews.freebsd.org/D1353
* MFC r276319:ngie2015-01-051-2/+2
| | | | | | | Fix the function signatures when MK_CRYPT == no for snmp_get_local_keys and snmp_passwd_to_keys Reported by: Beeblebrox <zaphod@berentweb.com>
* Bump .Dd per r276674ngie2015-01-051-1/+1
|
* MFC r276483:ngie2015-01-051-2/+2
| | | | | | | The variable used with install(1) for stripping should be STRIPBIN, not STRIP_CMD Reported by: lev
* MFC r274618,r276521:ngie2015-01-056-0/+87
| | | | | | | | | | | | | | | | | | | | | | MFC Note: text corrected for r274618 r274618: Add reachover Makefiles for contrib/netbsd-tests/lib/msun A variant of this code has been tested on amd64/i386 for some time by EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the code will remain off until it's proven it works on virtual hardware or real hardware on other architectures Sponsored by: EMC / Isilon Storage Division r276521: Reset errno in :scalbnf_val and :scalbnl_val before running the tests so the tested errno isn't stale This was needed in order for the test to pass on amd64 with stable/10
* MFC r274254: sh(1): Mention portability issue with shifting zero positionaljilles2015-01-041-2/+3
| | | | | | | | parameters. Per Austin Group issue #459, shifting zero positional parameters may or may not be considered an operand error (which causes the shell to exit in most cases).
* MFC r271936: sh(1): Clarify that assignments before commands do not affectjilles2015-01-041-2/+3
| | | | | | expansions. PR: 193759
* MFC r276008:kib2015-01-043-1/+5
| | | | | Add VN_OPEN_NAMECACHE flag for vn_open_cred(9), which requests that the created file name was cached. Use the flag for core dumps.
* MFC r276007:kib2015-01-046-6/+23
| | | | Handle MAKEENTRY cnp flag in the VOP_CREATE().
* Bump version after r276312 brought in new ARM arch constants that someian2015-01-031-1/+1
| | | | ports need to compile correctly.
* MFC r272765: Remove one second wait for threads exit from icl_conn_close().mav2015-01-031-5/+3
| | | | Switch it from polling with pause() to using cv_wait()/cv_signal().
* MFC r274033 (by trasz):mav2015-01-031-3/+3
| | | | s/icl_pdu_new/icl_pdu_new_empty/g; no functional changes.
* MFC r272963: pstat(8): Correct description of the SESS column in pstat -t.jilles2015-01-031-2/+2
|
* MFC r274036 (by trasz):mav2015-01-034-14/+14
| | | | | s/icl_pdu_new_bhs/icl_pdu_new/; no functional changes, just a little nicer code.
OpenPOWER on IntegriCloud