OpenBSD cvs log

created 2019-11-02T14:49:19Z
begin 2019-10-28T00:00:00Z
end 2019-10-29T00:00:00Z
path src/sys
commits 19

date 2019-10-28T04:11:30Z
author deraadt
files src/sys/arch/sgi/stand/boot/boot.c log diff annotate
message merge version directly into code

date 2019-10-28T04:11:31Z
author deraadt
files src/sys/arch/sgi/stand/boot/conf.c log diff annotate
src/sys/arch/sgi/stand/boot/Attic/version log diff annotate
message merge version directly into code

date 2019-10-28T09:41:37Z
author visa
files src/sys/arch/mips64/include/atomic.h log diff annotate
message Fix atomic_sub_long_nv() on mips64. The negation should use
64-bit unsigned arithmetic.

date 2019-10-28T12:26:46Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
message Better error handling for bwfm(4) connection attempts. When we fail
to connect, e.g. due to a timeout, we will switch the state to SCAN.
Unfortunately this skips clearing the active channel set, which
means that on a scan on all bands only the nodes on the active
channel set, which is defined by whatever node we tried to connect
to, are allowed and all other APs are ignored. Fix this by properly
calling begin_scan(). When we fail to connect and start a scan,
make sure to let the chip know that we don't want to associate
anymore.

Another issue existed when we interrupt a scan, for instance by
setting a new nwid or wpakey. In this case we didn't abort the
scan and started a new scan while the old one as still active.
This could lead to a SCAN -> SCAN transition loop.

Remove the "set ssid" event, since this would be an event in
addition to a failed auth/assoc event, which would make us try
to handle failure twice.

Discussed with and ok stsp@

date 2019-10-28T14:43:03Z
author kettenis
files src/sys/arch/arm/arm/syscall.c log diff annotate
message Add missing KERNEL_UNLOCK.

ok guenther@, mpi@

date 2019-10-28T17:13:44Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
message iwm: enlarge maximum NVM section size; required for newer firmware

ok patrick@

date 2019-10-28T17:19:22Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
message iwm: tweak post-alive NIC locking to more closely match how Linux does it

ok patrick@

date 2019-10-28T17:22:10Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
message The iwm_prepare_card_hw() call in iwm_attach() is only needed on 8k devices.

Patch by Imre Vadasz.
ok patrick@

date 2019-10-28T17:24:56Z
author stsp
files src/sys/dev/pci/if_iwmreg.h log diff annotate
message Remove unused DEFAULT_MAX_TX_POWER definition from if_iwmreg.h,
which had a value different from the IWL_DEFAULT_MAX_TX_POWER
constant in Linux iwlwifi.

Patch by Imre Vadasz.
ok patrick@

date 2019-10-28T17:28:23Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
message Use 0x6c as permanent ID for IWM_PHY_DB_CMD; remove incorrect comment.

Patch by Imre Vadasz.
Matches Linux commit 176aa60bf148b5af4209ac323cef941dee76e390 by Sara Sharon.
ok patrick@

date 2019-10-28T17:32:51Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
message Skip the 'update MCC' command if iwm 8k firmware supports Location
Aware Regulatory (LAR) mode and LAR is disabled according to NVM.

Patch by Imre Vadasz.
ok patrick@

date 2019-10-28T17:34:48Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
message Do not set IWM_SF_CFG_DUMMY_NOTIF_OFF bit in iwm SF_CFG firmware command.
It is only required for devices connected via SDIO which we do not support.

Patch by Imre Vadasz
ok patrick@

date 2019-10-28T17:38:06Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
message Remove unneeded IWM_UCODE_TLV_FLAGS_RX_ENERGY_API flag.
All supported firmware versions have this feature flag set.
Remove now unneeded iwm_calc_rssi() function.

Patch by Imre Vadasz.
ok patrick@

date 2019-10-28T18:00:14Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
message Remove a couple of unneeded IWM_UCODE_TLV_FLAGS_* flags:

IWM_UCODE_TLV_FLAGS_PM_CMD_SUPPORT
IWM_UCODE_TLV_FLAGS_NEWBT_COEX
IWM_UCODE_TLV_FLAGS_BF_UPDATED
IWM_UCODE_TLV_FLAGS_D3_CONTINUITY_API
IWM_UCODE_TLV_FLAGS_STA_KEY_CMD
IWM_UCODE_TLV_FLAGS_DEVICE_PS_CMD
IWM_UCODE_TLV_FLAGS_SCHED_SCAN

All supported firmware versions have these flags set.

Patch by Imre Vadasz
ok patrick@

date 2019-10-28T18:02:58Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
message Get rid of version 1 of iwm's time event firmware API.

All supported firmware versions support IWM_UCODE_TLV_FLAGS_TIME_EVENT_API_V2.
Rename struct iwm_time_event_cmd_v2 to iwm_time_event_cmd, and remove helper
functions for converting from V2 API structs to V1 versions.

Patch by Imre Vadasz
ok patrick@

date 2019-10-28T18:06:04Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
message Recognize IWM_DTS_MEASUREMENT_NOTIF_WIDE PHY_OP notification which will
be generated by version 17 firmware. While at it, declare all known
firmware command groups and all PHY_OPS subcomand ids.

Patch by Imre Vadasz, with tweaks by me

ok patrick@

date 2019-10-28T18:08:08Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
message Make iwm_stop_device() power down bus master DMA clocks on 7k devices only.

Patch by Imre Vadasz
ok patrick@

date 2019-10-28T18:11:10Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
src/sys/dev/pci/pcireg.h log diff annotate
message Have iwm(4) configure the PCIe LTR.

Patch by Imre Vadasz.
Cross-check and pcireg.h tweak by kettenis@
ok patrick@

date 2019-10-28T19:57:50Z
author anton
files src/sys/kern/sysv_shm.c log diff annotate
message Copy in the user-supplied buffer in shmctl(2) before looking up the
shared memory segment. Otherwise, if copyin ends up sleeping it allows
another thread to remove the same segment leading to a use-after-free.

Feedback from kettenis@ and ok guenther@

Reported-by: syzbot+0de42c2e600a6dd3091d@syzkaller.appspotmail.com