summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add in a configuration file and hints for the Engenius ENH-200.adrian2013-07-042-0/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an AR7240 based device with an AR9285 on-board. I've tested the initial boot and wifi support; however at the moment the ethernet switch driver doesn't seem to be picking up carrier on the active ethernet port. Basic flood pinging works however, so I think we're on the right track. Thank you to Adrian Woodley <adrian@diskworld.com.au> for purchasing me one of these devices to bootstrap FreeBSD-HEAD on.
| * | Add the missing link back to the EEPROM firmware name.adrian2013-07-041-0/+3
| | |
| * | Fall back to sha512 if passwd_format is not set.des2013-07-041-1/+1
| | | | | | | | | | | | MFC after: 3 days
| * | wpa_supplicant should be able to reassociate when resuming, so remove arpaulo2013-07-041-4/+0
| | | | | | | | | | | | comment saying it can't.
| * | Make it little bit more C++ friendly. This explicit casting fixes somejkim2013-07-041-1/+1
| | | | | | | | | | | | ports, emulators/virtualbox-ose and sysutils/smartmontools for example.
| * | The change in r236456 (atomic_store_rel not locked) exposed a bugalfred2013-07-041-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the ithread code where we could lose ithread interrupts if intr_event_schedule_thread() is called while the ithread is already running. Effectively memory writes could be ordered incorrectly such that the unatomic write of 0 to ithd->it_need (in ithread_loop) could be delayed until after it was set to be triggered again by intr_event_schedule_thread(). This was particularly a big problem for CAM because CAM optimizes scheduling of ithreads such that it only signals camisr() when it queues to an empty queue. This means that additional completion events would not unstick CAM and quickly lead to a complete lockup of the CAM stack. To fix this use atomics in all places where ithd->it_need is accessed. Submitted by: delphij, mav Obtained from: TrueOS, iXsystems MFC After: 1 week
| * | Support an optional "mac=" parameter to virtio-net config, to allowgrehan2013-07-044-29/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | users to set the MAC address for a device. Clean up some obsolete code in pci_virtio_net.c Allow an error return from a PCI device emulation's init routine to be propagated all the way back to the top-level and result in the process exiting. Submitted by: Dinakar Medavaram dinnu sun at gmail (original version)
| * | Remove unnecessary cast to pid_t.kevlo2013-07-042-3/+3
| | |
| * | - add myself to the committers list and add adrian as my mentorloos2013-07-041-0/+2
| | | | | | | | | | | | Approved by: adrian (mentor)
| * | A problem with the old NFS client where large writes to large filesrmacklem2013-07-041-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | would sometimes result in a corrupted file was reported via email. This problem appears to have been caused by r251719 (reverting r251719 fixed the problem). Although I have not been able to reproduce this problem, I suspect it is caused by another thread increasing np->n_size after the mtx_unlock(&np->n_mtx) but before the vnode_pager_setsize() call. Since the np->n_mtx mutex serializes updates to np->n_size, doing the vnode_pager_setsize() with the mutex locked appears to avoid the problem. Unfortunately, vnode_pager_setsize() where the new size is smaller, cannot be called with a mutex held. This patch returns the semantics to be close to pre-r251719 such that the call to the vnode_pager_setsize() is only delayed until after the mutex is unlocked when np->n_size is shrinking. Since the file is growing when being written, I believe this will fix the corruption. Reported by: David G. Lawrence (dg@dglawrence.com) Tested by: David G. Lawrence (pending, to happen soon) Reviewed by: kib MFC after: 1 week
| * | Fix printf argument mismatch reported by gcc on i386.jimharris2013-07-041-2/+2
| | | | | | | | | | | | Reported by: kargl
| * | After fixing ranges restore POSIX requirement: rand() call withoutache2013-07-041-1/+6
| | | | | | | | | | | | | | | srand() must be the same as srand(1); rand(); (yet one increment)
| * | - Include the T5 firmware with the driver.np2013-07-0317-8297/+17883
| | | | | | | | | | | | | | | | | | | | | | | | - Update the T4 firmware to the latest. - Minor reorganization and updates to the version macros, etc. Obtained from: Chelsio MFC after: 1 day
| * | Bump disk(9) ABI version to signify the addition of d_delmaxsize by r249940.smh2013-07-033-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that d_delmaxsize is always set, removing init to 0 which could cause future issues if use cases change. Allow kern.cam.da.X.delete_max (which maps to d_delmaxsize) to be increased up to the calculated max after being reduced. MFC after: 1 day X-MFC-With: r249940
| * | vm_phys_fictitious_reg_range() was losing the 'memattr' because it would beneel2013-07-032-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reset by pmap_page_init() right after being initialized in vm_page_initfake(). The statement above is with reference to the amd64 implementation of pmap_page_init(). Fix this by calling 'pmap_page_init()' in 'vm_page_initfake()' before changing the 'memattr'. Reviewed by: kib MFC after: 2 weeks
| * | Fix one of INVARIANTS-related UMA panics on ARMgonzo2013-07-031-3/+15
| | | | | | | | | | | | | | | | | | Force UMA zone to allocate service structures like slabs using own allocator. uma_debug code performs atomic ops on uma_slab_t fields and safety of this operation is not guaranteed for write-back caches
| * | In addition to prev. commit, for repeated rand_r(3) calls don't forgetache2013-07-031-1/+5
| | | | | | | | | | | | | | | | | | | | | to compensate back at the end incremented at the start internal state. MFC after: 2 weeks
| * | If a superpage mapping is being removed then we need to ignore the PG_PDE_PATneel2013-07-031-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bit when looking up the vm_page associated with the superpage's physical address. If the caching attribute for the mapping is write combining or write protected then the PG_PDE_PAT bit will be set and thus cause an 'off-by-one' error when looking up the vm_page. Fix this by using the PG_PS_FRAME mask to compute the physical address for a superpage mapping instead of PG_FRAME. This is a theoretical issue at this point since non-writeback attributes are currently used only for fictitious mappings and fictitious mappings are not subject to promotion. Discussed with: alc, kib MFC after: 2 weeks
| * | Verify that all bytes in the instruction buffer are consumed during decoding.neel2013-07-031-0/+16
| | | | | | | | | | | | Suggested by: grehan
| * | Merge r252513 from src/gnu/usr.bin/patch into src/usr.bin/patch:obrien2013-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Properly handle input lines containing NUL characters such that pgets() accurately fills the read buffer. Callers of pgets() still mis-process the buffer contents if the read line contains NUL characters, but this at least makes pgets() accurate.
| * | Merge r252512 from src/gnu/usr.bin/patch into src/usr.bin/patch:obrien2013-07-031-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same. The former makes a copy of stdin, but was not accurately putting the content of stdin into a temp file. This lead to the undercounting the number of lines in hunks containing NUL characters when reading from stdin. Thus resulting in "unexpected end of file in patch" errors.
| * | MFp4 @229488:pjd2013-07-031-0/+3
| | | | | | | | | | | | | | | | | | | | | Sandbox unprivileged process using capability mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229487:pjd2013-07-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Revoke all capability rights from STDIN and allow only for write to STDOUT and STDERR. All those descriptors are redirected to /dev/null. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229486:pjd2013-07-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Once PID is written to the pidfile, revoke all capability rights. We just want to keep the pidfile open. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229485:pjd2013-07-031-0/+5
| | | | | | | | | | | | | | | | | | | | | Only allow to overwrite lease file. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229484:pjd2013-07-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Limit routing socket so only poll(2) and read(2) are allowed (CAP_POLL_EVENT and CAP_READ). This prevents unprivileged process from adding, removing or modifying system routes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229483:pjd2013-07-031-0/+6
| | | | | | | | | | | | | | | | | | | | | Limit communication pipe with privileged process to CAP_READ and CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229482:pjd2013-07-031-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Limit bpf descriptor in unprivileged process to CAP_POLL_EVENT, CAP_READ and allow for SIOCGIFFLAGS, SIOCGIFMEDIA ioctls. - While here limit bpf descriptor in privileged process to only CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229481:pjd2013-07-034-18/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently it was allowed to send any UDP packets from unprivileged process and possibly any packets because /dev/bpf was open for writing. Move sending packets to privileged process. Unprivileged process has no longer access to not connected UDP socket and has only access to /dev/bpf in read-only mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229480:pjd2013-07-031-0/+2
| | | | | | | | | | | | | | | | | | | | | Shutdown write direction of the routing socket. We only need to read from it. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229479:pjd2013-07-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | - Add new request (IMSG_SEND_PACKET) that will be handled by privileged process. - Add $FreeBSD$. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229477:pjd2013-07-031-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | The gethostname(3) function won't work in capability mode, because reading kern.hostname sysctl is not permitted there. Cache hostname early and use cached value later. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | Remove redundant white-spaces.pjd2013-07-031-9/+9
| | |
| * | MFp4 @229476,229478:pjd2013-07-032-60/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make use of two fields: rfdesc and wfdesc to keep bpf descriptor open for reading only in rfdesc and bpf descriptor open for writing only in wfdesc. In the end they will be used by two different processes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229474:pjd2013-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | iov_base field is 'void *' in FreeBSD, no need to cast. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229473:pjd2013-07-033-6/+5
| | | | | | | | | | | | | | | | | | | | | No caller checks send_packet() return value, so make it void. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229472:pjd2013-07-033-34/+28
| | | | | | | | | | | | | | | | | | | | | Use the same type for 'from' and 'to' argument in send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229471:pjd2013-07-033-8/+4
| | | | | | | | | | | | | | | | | | | | | Remove unused argument from assemble_hw_header(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4 @229470:pjd2013-07-033-7/+6
| | | | | | | | | | | | | | | | | | | | | Remove unused argument from send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | MFp4: @229469:pjd2013-07-032-11/+0
| | | | | | | | | | | | | | | | | | | | | Garbage-collect dead prototypes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
| * | 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range,ache2013-07-032-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but ACM formula we use have internal state (and return value) in the [1, 0x7ffffffe] range, so our RAND_MAX (0x7fffffff) is never reached because it is off by one, zero is not reached too. Correct both RAND_MAX and rand(3) return value, shifting last one to the 0 by 1 subtracted, resulting POSIXed [0, 0x7ffffffd(=new RAND_MAX)] range. 2) Add a checks for not overflowing on too big seeds. It may happens on the machines, where sizeof(unsigned int) > 32 bits. Reviewed by: bde [1] MFC after: 2 weeks
| * | Sandbox rwhod(8) receiver process using capability mode and Capsicumpjd2013-07-031-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | capabilities. rwhod(8) receiver can now only receive packages, write to /var/rwho/ directory and log to syslog. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month
| * | The whole sending functionality was implemented within signal handler,pjd2013-07-031-133/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which is very bad idea. Split sending and receiving in two processes, which fixes this problem and will help to sandbox rwhod. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month
| * | Style cleanups.pjd2013-07-031-187/+199
| | | | | | | | | | | | | | | | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month
| * | Few more style nits.pjd2013-07-031-13/+10
| | | | | | | | | | | | MFC after: 1 month
| * | Sandbox rwho(1) using capability mode and Capsicum capabilities.pjd2013-07-031-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | rwho(1) gets only read-only access to /var/rwho/ directory. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month
| * | Increase the microcode max size to 16K to accomodate more recent Intelrpaulo2013-07-031-1/+1
| | | | | | | | | | | | firmware.
| * | Style cleanups.pjd2013-07-031-45/+53
| | | | | | | | | | | | | | | | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month
| * | Add an entry for filemon.peter2013-07-032-0/+2
| | |
| * | Move static ZFS compile option to the other static file system options.peter2013-07-031-2/+1
| | |
OpenPOWER on IntegriCloud