Permalink
Commits on Dec 9, 2016
  1. hyperv/stor: Fix the failing of attach disk on LUN 8 on win2k12

    On win2k8r2, win2k12, and win2k12r2, when you want to attach
    scsi disk from LUN 8 without attaching any disk on LUN 0, the
    attach will fail because the host's response to INQUIRY is not
    complete.
    
    Submitted by: Hongjiang Zhang <honzhan microsoft com>
    ccic committed Dec 9, 2016
Commits on Oct 13, 2016
  1. hyperv/stor: Fix the regression of TRIM

    Fix the regression by 'Fix the issue of hot plugin more than 7 disks'
    
    Submitted by: Hongjiang Zhang <honzhan microsoft com>
    ccic committed Oct 13, 2016
Commits on Sep 19, 2016
  1. hyperv/storvsc: disable intr_shuffle_irqs on Hyper-V

    If we allow intr_shuffle_irqs, there is interrupt missing, as a
    result, ATA driver may fail to detact CD/DVD device. It caused
    FreeBSD image to fail to provisioning on Azure.
    
    https://reviews.freebsd.org/D7949
    ccic committed Sep 19, 2016
Commits on Sep 8, 2016
  1. hyperv/vmbus: Implement bus_child_pnpinfo_str method

    Submitted by:	Jun Su <junsu microsoft com>
    Sponsored by:	Microsoft OSTC
    Differential Revision:	https://reviews.freebsd.org/D5669
    sephe committed with ccic Mar 21, 2016
  2. hyperv: Factor out snprinf_hv_guid()

    Submitted by:	Ju Sun <junsu microsoft com>
    Reviewed by:	Dexuan Cui <decui microsoft com>, sephe
    MFC after:	1 week
    Sponsored by:	Microsoft OSTC
    Differential Revision:	https://reviews.freebsd.org/D5651
    sephe committed with ccic Mar 21, 2016
  3. hyperv/storvsc: remove ATA driver with a decent way

    If we changes the IDE lun for CD/DVD and OS disk, sometimes the boot
    will fail because of failing to attach the disk device.
    There are two reasons:
    
    1. stordisengage driver does not work as we expected (disable the
    loading of ATA driver). It failed to stop the loading of ATA drivers.
    
    2. if the storvsc find an invalid IDE lun, reporting CAM_SEL_TIMEOUT to
    CAM layer will cause CAM to destroy all existing IDE devices.
    
    This fix disabled ATA driver if FreeBSD is started on Hyper-V VM.
    
    Submitted by: Hongjiang Zhang <honzhan microsoft com>
    ccic committed Sep 8, 2016
Commits on Aug 16, 2016
  1. hyperv/stor: Fix the issue of hot plugin more than 7 disks

    This fixes the issue of failing to hot plugin more than 7 disks.
    
    SRB flag is set to 0x20 if the specified LUN is invalid by Hyper-v host, and
    the INQUIRY response will not be set by Hyper-v host. That is why INQUIRY
    on invalid lun get all zero values. In addition, TUR (Test Unit Ready) command
    on invalid LUN also makes SRB flag be 0x20.
    
    VM shall response to CAM layer with CAM_SEL_TIMEOUT to filter those
    invalid LUNs. Never use CAM_DEV_NOT_THERE which will block LUN scan
    for LUN number higher than 7.
    
    Bug fixes:
    1. Fail to dynamically add SCSI hard disk at some locations (>0)
    (https://microsoft.visualstudio.com/web/wi.aspx?pcguid=cb55739e-4afe-46a3-970f-1b49d8ee7564&id=6268002)
    2. [FreeBSD][head][2008R2, 2012] In FreeBSD VM, cannot recognize the first SCSI disk if LUN is set as non zero
    (https://microsoft.visualstudio.com/web/wi.aspx?pcguid=cb55739e-4afe-46a3-970f-1b49d8ee7564&id=821407)
    
    Submitted by: Hongjiang Zhang <honzhan microsoft com>
    ccic committed Aug 16, 2016
Commits on Aug 3, 2016
  1. hyperv/stor: Support UNMAP/TRIM for FreeBSD on Win2012R2

    UNMAP/TRIM is not supported if SCSI version is below SPC-3.
    FreeBSD on Win2012R2 gets SCSI version SPC-2, as a result, UNMAP
    is not supported. So, here we check it and set SPC-3 instead because
    the host supported SPC-3 for Msft disk.
    
    This issue does not occur on windows 2016.
    
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211549
    
    Submitted by:	Hongjinag Zhang <honzhan microsoft com>
    ccic committed Aug 3, 2016
Commits on Jul 19, 2016
  1. hyperv/stor: Save the response status and xfer length properly.

    The current command response handling discards status and xfer
    length unconditionally, so that all of the commands would be
    considered successful, even if errors happened.  When errors
    really happens, this causes all kinds of wiredness, since the
    buffer will not be filled on the host side and sense data will
    be ignored.
    
    Most of the time, errors do not happen, however, error does
    happen for the request sent immediately after the disk resizing.
    Discarding the SCSI status (SCSI_STATUS_CHECK_COND) and sense
    data (capacity changes) prevents the disk resizing from working
    properly.
    
    This commit saves the response status and xfer length properly
    for later use.
    
    Submitted by:	Dexuan Cui <decui microsoft com>
    Noticed by:	sephe
    MFC after:	3 days
    Sponsored by:	Microsoft OSTC
    Differential Revision:	https://reviews.freebsd.org/D7181
    sephe committed with dcui Jul 12, 2016
Commits on Jun 27, 2016
  1. hyperv/stor: Fix the issue of uncorrect disk filtering

    This fixes the smartctl issue and hot plugin disk issue.
    
    The INQUIRY response sometimes are quite short (less than 36),
    then it cannot be used to verify. So, only the response is greater
    or equal to 36, the validation can be applied.
    
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209443
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210425
    
    Submitted by: Hongjiang Zhang <honzhan microsoft com>
    ccic committed Jun 27, 2016
Commits on May 12, 2016
  1. hyperv/stor: Fix the issue of failing to hot plugin disk on win2k12r2

    patch for "FreeBSD 10.3 on Windows 2012 server may fail to
    add/remove a disk by hot plugin"
    
    (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209443)
    
    Submitted by: Hongjiang Zhang <honzhan microsoft com>
    ccic committed May 12, 2016
Commits on Apr 22, 2016
  1. hyperv/stor: Temporary disable the wrongly done command timeout.

    It will be reenabled once the request processing is corrected.
    
    MFC after:	1 week
    Sponsored by:	Microsoft OSTC
    sephe committed with Sepherosa Ziehau Apr 15, 2016
Commits on Apr 8, 2016
  1. dhclient: Log a warning instead of bailing upon "illegal" options (TMP)

    In Azure, the DHCP servers add private option (id 0xf5), which contains
    binary form of an IPv4 address.  Once this option is converted to string
    form, it could contain '$', e.g.
    
    IPv4 address: 100.72.36.54
    binary form: 0x64 0x48 0x24 0x36
    string form: "dH$6"
    
    dhclient bails upon "illegal" options like the above example, thus the
    VM bring-up will fail.
    Sepherosa Ziehau committed Apr 8, 2016
  2. hyperv/vmbus: Use default mtx for channel message queue

    First of all sema_post() can't be called w/ spinlock, and the channel
    message queue processing is not on hot code path, i.e. spinlock is not
    necessary.
    
    Submitted by:	Jun Su <junsu microsoft com>
    Reviewed by:	sephe, Dexuan Cui <decui microsoft com>
    MFC after:	1 week
    Sponsored by:	Microsoft OSTC
    Differential Revision:	https://reviews.freebsd.org/D5812
    sephe committed with Sepherosa Ziehau Apr 7, 2016
Commits on Apr 7, 2016
  1. hyperv: Register Hyper-V timer early enough for TSC freq calibration

    The i8254 simulation in Hyper-V is kinda broken and is not available
    in Generation 2 Hyper-V VMs, so Hyper-V timer must be registered early
    enough so that it can be used to do the TSC freq calibration.
    
    This fixes the notorious warning like this:
    calcru: runtime went backwards from 50 usec to 25 usec for pid 0 (kernel)
    
    Submitted by:	Dexuan Cui <decui microsoft com>
    Reviewed by:	kib, sephe
    Tested by:	kib, sephe
    MFC after:	1 week
    Sponsored by:	Microsoft OSTC
    Differential Revision:	https://reviews.freebsd.org/D5778
    sephe committed with dcui Apr 1, 2016
  2. hyperv/vmbus: use a better retry method in hv_vmbus_post_message()

    Most often, hv_vmbus_post_message() doesn't fail.  However, it fails
    intermittently when GPADLs of large shared memory is to be established
    with the host, e.g. on the hn(4) attach path: a GPADL of 15MB sendbuf
    is created, for which lots of messages will be flooded to the host.
    The host side tries to throttle the message rate by returning
    HV_STATUS_INSUFFICIENT_BUFFERS.
    
    Before this commit, we do several retries for failed messages, but the
    delay between each retry is pretty/too low, which will cause sporadic
    message posting failure.  We now use large delay (>=1ms) between each
    retry to fix the message posting failure.
    
    Submitted by:	Dexuan Cui <decui microsoft com>
    Reviewed by:	sephe
    MFC after:	1 week
    Sponsored by:	Microsoft OSTC
    Differential Revision:	https://reviews.freebsd.org/D5715
    sephe committed with dcui Mar 24, 2016
Commits on Mar 25, 2016
  1. Update releng/10.3 to -RELEASE status in preparation for the final

    10.3-RELEASE builds.
    
    Approved by:	re (implicit)
    marius committed Mar 25, 2016
  2. Anticipate the expected 10.3-RELEASE date.

    Approved by:	re (implicit)
    marius committed Mar 25, 2016
  3. Set the static abitag to the current value of __FreeBSD_version.

    Approved by:	re (implicit)
    marius committed Mar 25, 2016
  4. Prune empty sections.

    Approved by:	re (implicit)
    Sponsored by:	The FreeBSD Foundation
    gjb committed Mar 25, 2016
Commits on Mar 24, 2016
  1. - Update relnotes items:

    	grdc(6) 12-hour mode fixed,
    	inetd(8) crash with IPv6 address fixed,
    	netstat(1) statistics counter divided by 1024 fixed,
    	rc.d/netif now updates only static routes,
    	vt(4) kern.vt.bell_enable,
    	puc(4) MSI support,
    	epair(4) and lagg(4) cloner vnet jail support,
    	epair(4) panic fixed,
    	lagg(4) per-interface sysctl nodes replaced with ifconfig flags,
    	lagg(4) panic fixed,
    	SIOCGDRLST_IN6 and SIOCGPRLST_IN6 ioctls removed.
    
    Approved by:	re (implicit)
    hrs-allbsd committed Mar 24, 2016
  2. - Update relnotes items:

    	reword description about ar -D/-U option,
    	camcontrol(8) fwdonwload improvements,
    	pkill -j jailname support,
    	timeout(1) added,
    	ypinit(8) eui64 NIS map,
    	kern.features.invariants sysctl added.
    
    Approved by:	re (implicit)
    hrs-allbsd committed Mar 24, 2016
  3. - Update relnotes items:

    	last reboot now works again,
    	mv(1) return value has been fixed,
    	mkimg(1) dynamic VHD format fixed,
    	pw(8) userdel/usermod -y option,
    	watchdogd(8) -x option added,
    	rc.firewall now uses ipfw tables when firewall_type="SIMPLE",
    	imxwdt driver fixed,
    	uart(4) PPS polarity fixed,
    	user(4) dev.uart.pps_mode added,
    	uftdi(4) new ioctls to read/write eeprom,
    	legacy ata(4) drivers removed.
    
    Approved by:	re (implicit)
    hrs-allbsd committed Mar 24, 2016
  4. Fix FPIs.

    Approved by:	re (implicit)
    hrs-allbsd committed Mar 24, 2016
  5. - Fix FPIs and catalog entries.

    - Fix typos.
    - Update relnotes items:
    	ctladm(8) return value bugfix,
    	ifconfig -v now displays SFP/SFP+ data,
    	add updstream changeset id to the libarchive(3) improvement,
    	vt(4) ALT_BREAK_TO_DEBUGGER support added,
    	thread_create() API added,
    	pms(4) removed from GENERIC for amd64/i386,
    	kern.racct.enable fixed,
    	cxgbe(4) firmware updated to 1.14.4.0,
    	pf(4) logging issue fixed,
    	LLENTRY_DELETED event in NDP fixed.
    - Edit items:
    	s/Timezone data files/Time zone database/,
    	-manage-gids flag is for nfsuserd, not nfsd.
    
    Approved by:	re (implicit)
    hrs-allbsd committed Mar 24, 2016
Commits on Mar 23, 2016
  1. In preparation for 10.3-RELEASE, revert r296976, i. e. the merge of

    r296416 (head) and r296969 (stable/10) respectively. With SAVESIGVEC
    enabled, csh(1) and tcsh(1) leak signal masks after spawning external
    commands. This causes strange effects like for example SIGTERM not
    being delivered to rc(8) scripts on shutdown albeit these use sh(1),
    if csh(1) or tcsh(1) are used as login shell of root. As such r296976
    causes way more problems than it solves.
    It is anticipated that a proper changeset for the original problem
    will be issued as an Errata Notice post-10.3-RELEASE.
    
    PR:		208132
    Approved by:	re (gjb)
    marius committed Mar 23, 2016
Commits on Mar 18, 2016
  1. Update releng/10.3 to RC3 in preparation for 10.3-RC3 builds.

    Approved by:	re (implicit)
    marius committed Mar 18, 2016
Commits on Mar 17, 2016
  1. MFC: r296996

      Remove 50% ZFS conditional from bsdinstall/zfsboot
    
    PR:		208094
    Approved by:	re (marius)
    allanjude committed Mar 17, 2016
  2. Add paragraph about isp(4) improvements.

    Approved by:	re (implicit)
    amotin committed Mar 17, 2016
  3. MFC 296416:

    Signal handling within tcsh vfork code path will conflict with some system
    libraries (such as libthr) which maintain their own signal state. This
    change adds the tcsh SAVESIGVEC option to save and restore the sigvecs for
    the signals the child modifies before it execs.
    
    Reviewed by:	kib, rwatson
    Reported by:	kib
    Approved by:	re
    markpeek committed Mar 17, 2016
Commits on Mar 16, 2016
  1. Merge r296956:

      Due to invalid use of a signed intermediate value in the bounds checking
      during argument validity verification, unbound zero'ing of the process LDT
      and adjacent memory can be initiated from usermode.
    
    Submitted by:   CORE Security
    Patch by:       kib
    Security:       SA-16:15
    Approved by:	re (implicit)
    glebius committed Mar 16, 2016
  2. MFC 296943:

      Require firewall setup before running rc.d/netwait, otherwise the ping
      packets sent by netwait may not get through.
    
    PR:           207916
    Approved by:	re (marius)
    ian committed Mar 16, 2016
  3. MFC r296908:

    Force the desired alignment of the user save area.
    
    Approved by:	re (marius)
    kostikbel committed Mar 16, 2016
Commits on Mar 15, 2016
  1. MFS r296911:

      Filemon: Attach from the child to avoid racing with the parent attach.
    
    Relnotes:	yes
    Approved by:	re (marius)
    bdrewery committed Mar 15, 2016
  2. MFS r296797:

    MFC r296542: Load linux64 module for amd64 if Linux abi enabled.
    
    Reviewed by:	emaste@
    Approved by:	re (marius)
    Differential Revision:	https://reviews.freebsd.org/D5567
    dchagin committed Mar 15, 2016