aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cxgbe(4): netmap-only interrupts for a VI do not have an associated rxqNavdeep Parhar2017-05-141-0/+5
| | | | | | | | | | or ofld_rxq and should be ignored by vi_intr_iq. MFC after: 3 days. Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=318263
* Change the default uid/gid values for nobody/nogroup to 65534/65533.Rick Macklem2017-05-141-4/+4
| | | | | | | | | | | | | | | | | The default values found in /etc/passwd and /etc/group are 65534, 65533. In mountd.c, the defaults were -2, which was 65534 back when uid_t was 16bits. Without this patch, a file created by root on an NFS exported volume without the "-root=" export option will end up owned by uid 4**32 - 2. When discussed on freebsd-current@, it seemed that users preferred the values being changed to 65534/65533. I have not added code to acquire these values from the databases, since the mountd daemon might get "stuck" during startup waiting for a non-responsive password database server. Discussed on: freebsd-current Notes: svn path=/head/; revision=318262
* Silence a -Wunused warning about the junk variable being used to raiseDimitry Andric2017-05-133-3/+3
| | | | | | | | | | | | an inexact floating point exception. The variable cannot be eliminated, unfortunately, otherwise the desired addition triggering the exception will be emitted neither by clang, nor by gcc. Reviewed by: Steve Kargl, bde MFC after: 3 days Notes: svn path=/head/; revision=318259
* sh: Add test for arithmetic expansion in [x-y] pattern range.Jilles Tjoelker2017-05-132-0/+11
| | | | | | | | | | | It does not make much sense to generate the '-' in a pattern bracket expression using arithmetic expansion, but it does not make sense to forbid it either. This test already passes. Notes: svn path=/head/; revision=318258
* style(9): sort headersEnji Cooper2017-05-131-2/+2
| | | | | | | | MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318257
* In _rtld(), reorder local declarations to compact the block andKonstantin Belousov2017-05-131-23/+10
| | | | | | | | | | | partially sort them by style(9). Move locals declarations from nested blocks into the block at function start. Discussed with: emaste MFC after: 1 week Notes: svn path=/head/; revision=318256
* Add missing braces around MCAST_EXCLUDE check when KTR support isEnji Cooper2017-05-132-2/+4
| | | | | | | | | | | | | | | | | | compiled into the kernel This ensures that .iss_asm (the number of ASM listeners) isn't incorrectly decremented for MLD-layer source datagrams when inspecting im*s_st[1] (the second state in the structure). MFC after: 2 months PR: 217509 [1] Reported by: Coverity (Isilon) Reviewed by: ae ("This patch looks correct to me." [1]) Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com> Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318255
* Fix __pthread_mutex_trylock() to call THR_CRITICAL_LEAVE() on failure ratherJason Evans2017-05-131-1/+1
| | | | | | | | | | than on success. This regression was introduced by r300043 (Add implementation of robust mutexes...). MFC after: 1 day Notes: svn path=/head/; revision=318254
* Allocate a cacheline when reading or writing to write through memory. TheAndrew Turner2017-05-131-1/+1
| | | | | | | | | | | hardware will still write to memory, however following reads will be from the cache. MFC after: 1 week Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=318253
* Add the VM_MEMATTR_WRITE_THROUGH memory type to arm64 and use it to supportAndrew Turner2017-05-131-3/+9
| | | | | | | | | | | | VM_MEMATTR_WRITE_COMBINING in the kernel. This fixes a bug where Xorg would use write back cached memory for its graphics buffers. This would produce artifacts on the screen as cachelines were written to memory. MFC after: 1 week Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=318252
* Clarify usage rules for pmap_remap_vm_attr().Michal Meloun2017-05-131-1/+18
| | | | | | | | | | Not a functional change. MFC with: r318021 MFC after: 2 weeks Notes: svn path=/head/; revision=318251
* Handle the logfiles in newsyslog and syslogd conditionally, based onEnji Cooper2017-05-1315-11/+73
| | | | | | | | | | | | | | | | | | | | | | | src.conf(5) knobs This will allow consumers of FreeBSD to use the unmodified configuration files out of the box more than previously. Both newsyslog.conf and syslog.conf: - /var/log/lpd-errs (MK_LPR != no) - /var/log/ppp.log (MK_PPP != no) - /var/log/xferlog (MK_FTP != no) newsyslog.conf: - /var/log/amd.log (MK_AMD != no) - /var/log/pflog (MK_PF != no) - /var/log/sendmail.st (MK_SENDMAIL != no) MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318250
* Add a regression test for r318191.Mark Johnston2017-05-121-0/+95
| | | | | | | | | | Reviewed by: badger MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D10684 Notes: svn path=/head/; revision=318246
* Do not wake up sleeping thread in reschedule_signals() if the signalKonstantin Belousov2017-05-121-1/+3
| | | | | | | | | | | | | | | | | | | | is blocked. The spurious wakeup might result in spurious EINTR. The reschedule_signals() function is called when the calling thread has the signal mask changed. For each newly blocked signal, we try to find a thread which might have the signal not blocked. If no such thread exists, sigtd() returns random thread, which must not be waken up. I decided that re-checking, as suggested by PR submitter, is more reasonable change than to change sigtd() interface, due to other uses of sigtd(). signotify() already performs this check. Submitted by: Duane <parakleta@darkreality.org> PR: 219228 Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=318243
* Refine and update blacklist support in sshdKurt Lidl2017-05-128-16/+23
| | | | | | | | | | | | | | | | Adjust notification points slightly to catch all auth failures, rather than just the ones caused by bad usernames. Modify notification point for bad usernames to send new type of BLACKLIST_BAD_USER. (Support in libblacklist will be forthcoming soon.) Add guards to allow library headers to expose the enum of action values. Reviewed by: des Approved by: des Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=318242
* [iwm] Recognize IWM_FW_PAGING_BLOCK_CMD wide cmd response correctly.Adrian Chadd2017-05-121-1/+2
| | | | | | | Obtained from: dragonflybsd.git ef688cebb9b29b67f7a011846589971987949e0d Notes: svn path=/head/; revision=318232
* [iwm] Revert "if_iwm - SCAN_ABORT_UMAC response doesn't use a wide id"Adrian Chadd2017-05-121-1/+1
| | | | | | | | | This reverts commit cef47a9cbb0a3ce5f18369fed9403d2764884bc2. Obtained from: dragonflybsd.git f62d325820ee7f7c2bcf721ada9cef8b70f74471 Notes: svn path=/head/; revision=318231
* [iwm] Fix iwm_mvm_send_cmd_pdu(_status) declarations. Make id a uint32_t.Adrian Chadd2017-05-122-4/+4
| | | | | | | | | | * This fixes cases where the group id of wide commands got lost, e.g. this happened to the IWM_SCAN_ABORT_UMAC command. Obtained from: dragonflybsd.git 71310fab0caca79bb5da43d9d642e77a4c27eea2 Notes: svn path=/head/; revision=318230
* [iwm] Adjust if_iwm_sta.h prototypes, don't pass iwm_node to rm_sta().Adrian Chadd2017-05-123-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | * Since a RUN -> INIT/SCAN transition seems to immediately destroy the ieee80211_node for the AP, we can't read the in_assoc value from there. Instead just directly pass that information via a boolean_t argument. * Adds iwm_mvm_rm_sta_id() function, which just unconditionally removes the station from the firmware. * The iwm_mvm_rm_sta() function shouldn't actually remove the station from firmware when we are still associated (i.e. during a RUN -> INIT/SCAN transition). * So when disassociating we will first call iwm_mvm_rm_sta() to drain the queues/fifos. Later during disassociation we will then use iwm_mvm_rm_sta_id() to actually remove the station. Inspired-By: Linux iwlwifi Obtained from: dragonflybsd.git 81b3c1fe9122fa22f33d97103039cc375f656231 Notes: svn path=/head/; revision=318229
* [iwm] Make powersaving more similar to Linux iwlwifi behaviour.Adrian Chadd2017-05-123-5/+36
| | | | | | | | | | | | | | | | * Add a per-vap ps_disabled flag, and use it for a workaround which fixes an association issue when powersaving is enabled. * Compute flag that should correpsond to the mvmif->bss_conf.ps flag in Linux's iwlwifi (e.g. this disallows powersaving when not associated yet). Inspired-By: Linux iwlwifi Obtained from: dragonflybsd.git dc2e69bdfe8c9d7049c8a28da0adffbfbc6de5c0 Notes: svn path=/head/; revision=318228
* [iwm] Clean up if_iwm_power.c a bit. Fix iwm_power_scheme debug print.Adrian Chadd2017-05-121-4/+3
| | | | | | | Obtained from: dragonflybsd.git 52c3adbee676d8558065618e5ad694ea5c6697e0 Notes: svn path=/head/; revision=318227
* [iwm] Switch arguments from iwm_node* to iwm_vap* in if_iwm_power.c.Adrian Chadd2017-05-123-17/+16
| | | | | | | | | | * Power management handling is per-vap, not per-node, so we should pass the iwm_vap in these arguments. Obtained from: dragonflybsd.git 62a4e7957a736b4de38938b02fa7eb9b45bc5d0d Notes: svn path=/head/; revision=318226
* [iwm] Already call iwm_mvm_power_update_mac() during SCAN<->AUTH paths.Adrian Chadd2017-05-121-6/+12
| | | | | | | | | | | | * Otherwise we would never update powersaving settings until we complete an association, after the first authentication attempt. * This corresponds to what Linux iwlwifi seems to do. Obtained from: dragonflybsd.git aa128dc02a17c2e616232ef0fa997121e969c995 Notes: svn path=/head/; revision=318225
* [iwm] Refuse connection to APs with beacon interval < 16.Adrian Chadd2017-05-121-0/+15
| | | | | | | Obtained from: dragonflybsd.git aba448de727e9b122adadeb36fd00a8ad6018d4f Notes: svn path=/head/; revision=318224
* [iwm] Handle AUTH->SCAN/INIT and ASSOC->SCAN/INIT betterAdrian Chadd2017-05-121-0/+33
| | | | | | | | | | | | | * Tear down the relevant firmware state (i.e. the station, the vif binding) in these transition cases. * Before this case would leave the firmware state lying around, resulting in errors and firmware panics in the subsequent association attempts. Obtained from: dragonflybsd.git 94b501399fde6368ae388a669c95b099a6e66e93 Notes: svn path=/head/; revision=318223
* [iwm] Factor out firmware station handling into if_iwm_sta.c.Adrian Chadd2017-05-126-148/+608
| | | | | | | | | | | | | * This adds iwm_mvm_rm_sta(), which will be used to tear down firmware state for better/cleaner iwm_newstate() handling. * Makes iwm_enable_txq() and iwm_mvm_flush_tx_path() non-static, add the declarations to if_iwm_util.h for now. Obtained from: dragonflybsd.git 85d1c6190c4c3564b1a347f253e823aa95c202b2 Notes: svn path=/head/; revision=318222
* [iwm] Deduplicate code in iwm_auth() from an if condition.Adrian Chadd2017-05-121-36/+18
| | | | | | | Obtained from: dragonflybsd.git 03c6e6970115727c9d39f9358e0500ab4f4634cd Notes: svn path=/head/; revision=318221
* [iwm] No need for iwm_assoc() in AUTH->ASSOC transition.Adrian Chadd2017-05-121-39/+15
| | | | | | | | | | * Hence no need to keep stuff in separate iwm_assoc() function, just inline the stuff into iwm_newstate(). Obtained from: dragonflybsd.git e8f7d88e0d030f138f95ecdb7c1a729d9fb0d6ab Notes: svn path=/head/; revision=318220
* [iwm] Properly implement iwm_wme_update callback function.Adrian Chadd2017-05-124-20/+75
| | | | | | | | | | | | | | | | | | | | | * Inspired by iwn(4) and Linux iwlwifi. * Read wme parameters into a buffer within struct iwm_vap in iwm_wme_update(). * If we aren't associated yet, the new settings will soon be sent by iwm_mvm_mac_ctxt_changed() during association. * If we are already associated, explicitly call iwm_mvm_mac_ctxt_changed() from iwm_wme_update() to send the new settings to the firmware. * Change iwm_mvm_ac_to_tx_fifo mapping, to fit the freebsd net80211 WME stream class numbering, instead of Linux's enum ieee80211_ac_numbers. Obtained from: dragonflybsd.git b8bd6cd746d1f45e616ccfcbeed06dfe452a1108 Notes: svn path=/head/; revision=318219
* [iwm] Process multiple frames per RX buffer.Adrian Chadd2017-05-123-75/+138
| | | | | | | | | | | | | | | | | | | | | | | * Factor out iwm_handle_rxb() function from iwm_notif_intr(). * Removing the IWM_FH_RCSR_CHNL0_RX_CONFIG_SINGLE_FRAME_MSK flag allows the device to put multiple frames (both command responses and 80211 frames) into a single RX buffer. * Uses m_copym() to split up the receive buffers when multiple 80211 frames are received in one RX buffer. The effect is basically the same as when using m_split(), but we want to keep the original mbuf around when calling iwm_mvm_rx_rx_mpdu() to make error handling a bit easier for now. * Contains a small optimization to avoid the m_copym() when only a single 80211 frame is received in one RX buffer (i.e. matching the existing behaviour). Obtained from: dragonflybsd.git b5eb43f0280bbcfd26af51cf5a4b8e8ff3590b67 Notes: svn path=/head/; revision=318218
* [iwm] Change UCODE_TLV_API #define-s from bitmasks to indexes.Adrian Chadd2017-05-121-6/+6
| | | | | | | | | | * Fixes oversight from commit 757eecf0e6c92745aa2eee95811e573c8300850e. fw_has_api now uses the isset macro instead of a simple logical-and. Obtained from: dragonflybsd.git c00575de8491dc402abf52c8c7e1cca1ef79e257 Notes: svn path=/head/; revision=318217
* [iwm] Sync iwm_read_firmware()'s loop to iwlwifi's code.Adrian Chadd2017-05-121-23/+28
| | | | | | | Obtained from: dragonflybsd.git d1c10ccfcf2d6d2a664f17197add0b4f93333181 Notes: svn path=/head/; revision=318216
* [iwm] change the check for ADD_STA status, use IWM_ADD_STA_STATUS_MASK.Adrian Chadd2017-05-121-2/+2
| | | | | | | Obtained from: dragonflybsd.git 74d41163ddac72b0d7ea7b7873d53fe134723a12 Notes: svn path=/head/; revision=318215
* [iwm] Sanity check channel for IEEE80211_CHAN_ANYC in if_iwm_mac_ctxt.c.Adrian Chadd2017-05-121-1/+1
| | | | | | | | | * This avoids panicing in some broken vap state handling cases. Obtained from: dragonflybsd.git 10d5b77b5421e7cbcc426160edbe858d1d610a29 Notes: svn path=/head/; revision=318214
* [if_iwm] Get rid of another usage of the IWM_DEFAULT_MACID/_COLOR constant.Adrian Chadd2017-05-121-2/+2
| | | | | | | Obtained from: dragonflybsd.git c009badecf7b1389cd86adde9fd35f6113c75b5b Notes: svn path=/head/; revision=318213
* [if_iwm] Partly sync if_iwm_binding.c to Linux iwlwifi code.Adrian Chadd2017-05-128-53/+100
| | | | | | | | | | | | | | | | | * Store macid and color values in struct iwm_vap, to avoid hardcoded constants a bit. * Add iwm_mvm_binding_remove_vif() function (will be used in disconnecting from an access point without resetting the whole device). * Not adding code from Linux iwlwifi yet, to handle one PHY context to be bound to several VAPs/virtual-interfaces, it's definitely not needed in the near future. Obtained from: dragonflybsd.git f16ef74977e51e1bfc7a625dd18b98b02158e0e5 Notes: svn path=/head/; revision=318212
* Fix up previous commitEnji Cooper2017-05-121-4/+5
| | | | | | | | | | | | | | | | | - Apply the logic to the FreeBSD block - Fix a typo with the getconf(1) call that I would have caught, were it not for the fact that I got the blocks wrong. - Consolidate the hardcoded buffer sizes to the NetBSD block. This would have been discovered had I run the test on a system where PATH_MAX != 1024 (I don't have that at my disposal right at this moment). MFC after: 3 weeks MFC with: r318210 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318211
* ssp_test:read:: query the value of MAXPATHLEN via getconf(1)Enji Cooper2017-05-121-1/+2
| | | | | | | | | | | | | | | In the event the value of PATH_MAX was changed, the assumption that MAXPATHLEN is 1024 (and hence the buffer length required to trigger SSP to fail for read(2)) would be invalidated. Query getconf(1) for the actual value of MAXPATHLEN via _XOPEN_PATH_MAX instead, and increment the value by 1 to ensure that the SSP support tests the stack smashing support properly. MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318210
* Use UMA_ALIGN_PTR to specify pointer alignmentJustin Hibbits2017-05-121-1/+1
| | | | | | | Suggested by: jhb Notes: svn path=/head/; revision=318209
* Add missing linefeed in debug output.Cy Schubert2017-05-121-1/+1
| | | | Notes: svn path=/head/; revision=318202
* Tell bmake (meta mode) to ignore changes to /usr/local/etc/libmap.d/*Simon J. Gerraty2017-05-111-0/+3
| | | | | | | | Differential Revision: D10685 Reviewed by: bdrewery Notes: svn path=/head/; revision=318194
* Set the right variable when overriding the default console speed.Mark Johnston2017-05-111-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=318193
* Let ptracestop() suspend threads sleeping in an SBDRY section.Mark Johnston2017-05-111-2/+2
| | | | | | | | | | | | | | | | | When a thread enters ptracestop(), for example because it had received SIGSTOP from ptrace(PT_ATTACH), it attempts to suspend other threads in the same process. In the case of a thread sleeping interruptibly in an SBDRY section, sig_suspend_threads() must wake the thread and allow it to reach the user-mode boundary. However, sig_suspend_threads() would erroneously avoid waking up such threads, resulting in an apparent hang. Reviewed by: kib Tested by: pho MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318191
* Update release/scripts/atlas-upload.sh to account for API changesGlen Barber2017-05-111-5/+5
| | | | | | | | | | | | | | made recently by Atlas Hashicorp. The data returned from GET and POST requests has changed, which caused a number of regex patterns to fail to be properly identified as 'success' or 'failure', which ended up in upload/publish failures. Tested with: 12-CURRENT MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=318190
* vdev_geom may associate multiple vdevs per g_consumerAlan Somers2017-05-111-49/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vdev_geom.c currently uses the g_consumer's private field to point to a vdev_t. That way, a GEOM event can cause a change to a ZFS vdev. For example, when you remove a disk, the vdev's status will change to REMOVED. However, vdev_geom will sometimes attach multiple vdevs to the same GEOM consumer. If this happens, then geom events will only be propagated to one of the vdevs. Fix this by storing a linked list of vdevs in g_consumer's private field. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c * g_consumer.private now stores a linked list of vdev pointers associated with the consumer instead of just a single vdev pointer. * Change vdev_geom_set_physpath's signature to more closely match vdev_geom_set_rotation_rate * Don't bother calling g_access in vdev_geom_set_physpath. It's guaranteed that we've already accessed the consumer by the time we get here. * Don't call vdev_geom_set_physpath in vdev_geom_attach. Instead, call it in vdev_geom_open, after we know that the open has succeeded. PR: 218634 Reviewed by: gibbs MFC after: 1 week Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D10391 Notes: svn path=/head/; revision=318189
* Improve error messages during command timeout for the mpr and mpsScott Long2017-05-112-9/+11
| | | | | | | | | drivers. Sponsored by: Netflix Notes: svn path=/head/; revision=318188
* Add LTO-8 density codes.Kenneth D. Merry2017-05-112-1/+3
| | | | | | | | | | | | | | | lib/libmt/mtlib.c: Add the LTO-8 density code to the density table in libmt. usr.bin/mt/mt.1: Add the LTO-8 density code, tracks, bpmm, and bpi to the density table in the mt(1) man page. MFC after: 3 days Sponsored by: Spectra Logic Notes: svn path=/head/; revision=318185
* Improve build(7): add missing "buildkernel" and "installkernel"Edward Tomasz Napierala2017-05-111-5/+9
| | | | | | | | | | | | to the example, change the architectures to something more common, and improve description of defaults for TARGET. Reviewed by: bdrewery, ngie, imp (older revisions) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10654 Notes: svn path=/head/; revision=318182
* cpio/tests/test_option_lz4: fix a use after free in the failure caseEnji Cooper2017-05-111-1/+1
| | | | | | | | | | | | This change will be upstreamed to the libarchive project. MFC after: 6 days MFC with: r317782 Reported by: Coverity Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318181
* Mark all md tests as requiring unsafe AIO in order to functionEnji Cooper2017-05-111-0/+1
| | | | | | | | | | | | | | | | | | | These tests have been flapping (failing<->passing) on Jenkins for months. It passes reliably for me if unsafe AIO is permitted, but it doesn't pass on Jenkins reliably if unsafe AIO is disabled (the current default). Mark the tests as requiring unsafe AIO to mitigate the intermittent failures when unsafe AIO isn't permitted. If the kernel code is changed to reliably function with md(4) devices using unsafe AIO, this commit can be reverted. MFC after: 2 months PR: 217261 Reported by: Jenkins Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318180