ath(4): Cannot use WPA in 802.11a mode

2017-06-11 Thread stefan
>Synopsis:  ath(4): Cannot use WPA in 802.11a mode
>Category:  kernel
>Environment:
System  : OpenBSD 6.1
Details : OpenBSD 6.1 (GENERIC) #291: Sat Apr  1 13:49:08 MDT 2017
 
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC

Architecture: OpenBSD.i386
Machine : i386
>Description:
I am trying to use my OpenBSD machine as a wifi access point with an
ath(4) card. This works fine as long as I either (a) disable WPA or
(b) operate the card in 80211b mode; if I enable WPA in 80211a mode my
clients can no longer connect.

The card is a Wistron DCMA-81. According to the Internet it should come
with an AR5414 chip but dmesg says AR5413 (in case that matters).

>How-To-Repeat:
This is the configuration without WPA that works:

ath0: flags=8943 mtu 
1500
lladdr 00:0b:6b:23:35:a5
index 4 priority 4 llprio 3
groups: wlan
media: IEEE802.11 autoselect mode 11a hostap
status: active
ieee80211: nwid test chan 48 bssid 00:0b:6b:23:35:a5

This is the configuration with WPA in 11b mode that works:

ath0: flags=8943 mtu 
1500
lladdr 00:0b:6b:23:35:a5
index 4 priority 4 llprio 3
groups: wlan
media: IEEE802.11 autoselect mode 11b hostap
status: active
ieee80211: nwid test chan 3 bssid 00:0b:6b:23:35:a5 wpakey 
0x08f0cc3ee0003f37f35e4a79e2c7ed56b38f3d3c1de8692e62a8ccd1ab044fd2 wpaprotos 
wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp

And this is the configuration with WPA in 11a mode that does not work:

ath0: flags=8943 mtu 
1500
lladdr 00:0b:6b:23:35:a5
index 4 priority 4 llprio 3
groups: wlan
media: IEEE802.11 autoselect mode 11a hostap
status: active
ieee80211: nwid test chan 48 bssid 00:0b:6b:23:35:a5 wpakey 
0x08f0cc3ee0003f37f35e4a79e2c7ed56b38f3d3c1de8692e62a8ccd1ab044fd2 wpaprotos 
wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp

This is what a (Linux) client says when it can't connect:

Successfully initialized wpa_supplicant
wlan0: SME: Trying to authenticate with 00:0b:6b:23:35:a5 (SSID='test' 
freq=5240 MHz)
wlan0: Trying to associate with 00:0b:6b:23:35:a5 (SSID='test' 
freq=5240 MHz)
wlan0: Associated with 00:0b:6b:23:35:a5
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-DISCONNECTED bssid=00:0b:6b:23:35:a5 reason=15
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING 



dmesg:
OpenBSD 6.1 (GENERIC) #291: Sat Apr  1 13:49:08 MDT 2017
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 
MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 267931648 (255MB)
avail mem = 250093568 (238MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 11/05/08, BIOS32 rev. 0 @ 0xfd088
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe/0xa800
cpu0 at mainbus0: (uniprocessor)
mtrr: K6-family MTRR support (2 registers)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, address 
00:0d:b9:29:21:ac
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, 
model 0x0034
vr1 at pci0 dev 10 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 
00:0d:b9:29:21:ad
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, 
model 0x0034
vr2 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15, address 
00:0d:b9:29:21:ae
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, 
model 0x0034
ath0 at pci0 dev 12 function 0 "Atheros AR5413" rev 0x01: irq 9
ath0: AR5413 10.5 phy 6.1 rf 6.3 eeprom 5.3, WOR0W, address 00:0b:6b:23:35:a5
glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 
3579545Hz timer, watchdog, gpio, i2c
gpio0 at glxpcib0: 32 pins
iic0 at glxpcib0
maxtmp0 at iic0 addr 0x4c: lm86
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to 

panic on boot in inteldrm

2017-06-11 Thread joe
>Synopsis:  panic on boot with latest amd64 snapshot
>Category:  kernel
>Environment:
System  : OpenBSD 6.1
Details : OpenBSD 6.1-current (GENERIC.MP) #117: Sun Jun 11 
08:26:23 MDT 2017
 
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
>Description:
System panics on boot with latest snapshot. Panic message is:

inteldrm0: msi
panic: attempt to execute user address 0x0 in supervisor mode
Stopped at db_enter+0x9: leave
TID PID UID PRFLAGS CPU COMMAND
* 0   0   0 0x1   0 swapper
db_enter(818eb2fe,81c055b0,10,81c05590,286,8) at 
db_enter+0x9
panic(81845c80,123,81a4b640,6,e,81c056b0) at panic+ox102
trap() at trap+0x84d
--- trap (number 6) ---
acpi_s3_vector_real(80021800,81c058b0,800ed000,80021800,7,800ed000)
 at 0
intel_modeset_init_hw(80021800,7,800ed000,800ed000,800ed000,800ed000)
 at intel_modeset_init_hw+0x10
i915_driver_load(80021800,81831e80,81c05b60,10,800ed000,81831e80)
 at i915_driver_load+0xa71
inteldrm_attach(800d8f00,800ed000,81c05b60,800ed000,81c05b60,800d8f00)
 at inteldrm_attach+0x32e
config_attach(800d8f00,819a88c0,81c05b60,81408b90,800d8f00,0)
 at config_attach+0x1d3
pci_probe_device(800d8f00,80001000,0,0,2,0) at pci_probe_device+0x48e

System is entirely unresponsive at that point, even with ddb.console=1

Disabling inteldrm allows system to boot successfully, but with X nonfunctional

dmesg from previous snapshot, which was working fine:

OpenBSD 6.1-current (GENERIC.MP) #83: Thu May 25 07:07:06 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8454504448 (8062MB)
avail mem = 8192483328 (7812MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec350 (88 entries)
bios0: vendor Dell Inc. version "A24" date 05/10/2017
bios0: Dell Inc. Precision T1650
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT SSDT SSDT DMAR ASF! SLIC
acpi0: wakeup devices UAR1(S3) P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) USB6(S3) USB7(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) 
RP03(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz, 3193.34 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 3193342080 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz, 3192.74 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz, 3192.74 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz, 3192.74 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 

Re: DRM errors on x230, latest snapshot

2017-06-11 Thread William Beach
I'm still getting the same drm errors on boot with the latest snapshot,
however, glxgears and armagetronad run fine now.


OpenBSD 6.1-current (GENERIC.MP) #117: Sun Jun 11 08:26:23 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8282173440 (7898MB)
avail mem = 8025374720 (7653MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdae9d000 (69 entries)
bios0: vendor LENOVO version "G2ET33WW (1.13 )" date 07/24/2012
bios0: LENOVO 2324A57
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC TCPA SSDT SSDT SSDT HPET APIC MCFG ECDT FPDT
ASF! UEFI UEFI POAT SSDT SSDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP3(S4) XHCI(S3) EHC1(S3)
EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz, 2594.56 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2594561920 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz, 2594.11 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz, 2594.11 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz, 2594.11 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus 4 (EXP3)
acpicpu0 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1, EHC2
acpitz0 at acpi0: critical temperature is 103 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0303" at acpi0 not configured
"LEN0020" at acpi0 not configured
"SMO1200" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "45N1023" serial 16566 type LION oem "SANYO"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 2594 MHz: speeds: 2601, 2600, 2500, 2400, 2300,
2200, 2100, 2000, 1900, 1800, 1700, 1600, 1500, 1400, 1300, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
xhci0 at pci0 dev 20 function 0 "Intel 7 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 

Re: pledge.2: missed rename: request -> promises

2017-06-11 Thread Jason McIntyre
On Sun, Jun 11, 2017 at 11:00:11AM -0500, Scott Cheloha wrote:
> Hi,
> 
> The pledge(2) "request" parameter is now called "promises".
> 
> --
> Scott Cheloha
> 

fixed, thanks.
jmc

> Index: lib/libc/sys/pledge.2
> ===
> RCS file: /cvs/src/lib/libc/sys/pledge.2,v
> retrieving revision 1.43
> diff -u -p -r1.43 pledge.2
> --- lib/libc/sys/pledge.2   7 Jun 2017 20:53:59 -   1.43
> +++ lib/libc/sys/pledge.2   11 Jun 2017 15:32:33 -
> @@ -573,7 +573,7 @@ or one of its elements, or
>  .Fa promises
>  points outside the process's allocated address space.
>  .It Bq Er EINVAL
> -.Ar request
> +.Ar promises
>  is malformed or contains invalid keywords.
>  .It Bq Er ENAMETOOLONG
>  An element of
> 



thinkpad X60s inteldrm uvm fault

2017-06-11 Thread Stefan Sperling
On the Thinkpad X60s, the i386 snapshot from June 9 crashes
when glxgears is started. ddb captured via serial console:

uvm_fault(0xd0c17440, 0xd2be2000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at  i915_gem_pread_ioctl+0x38a: movlclean_idt+0x14(%edx),%e
ax
ddb{0}> trace
i915_gem_pread_ioctl(d5786000,f5c6ae74,d58fae00,f5c6ae74,d0c438a8) at i915_gem_
pread_ioctl+0x38a
drmioctl(15800,8020645c,f5c6ae74,7,d51bf014,3fb000,f5c6ad5c,d062ea52,d2be4fec,c
f80,7f70d000,d06bc215) at drmioctl+0xa7
spec_ioctl(f5c6ad60,0,f5c6adec,d53e6588,8020645c) at spec_ioctl+0x9b
VOP_IOCTL(d53e6588,8020645c,f5c6ae74,7,d571dcc0) at VOP_IOCTL+0x4b
vn_ioctl(d510441c,8020645c,f5c6ae74,d51bf014,0) at vn_ioctl+0x7e
sys_ioctl(d51bf014,f5c6af54,f5c6af7c,0,f5c6afa8) at sys_ioctl+0x1b7
syscall() at syscall+0x250
--- syscall (number -813940760) ---
0x6:
ddb{0}> show reg
ds  0x10
es  0x10
fs  0x20clean_idt
gs 0
edi0
esi   0x1000__ALIGN_SIZE
ebp   0xf5c6accc
ebx  0x1
edx   0xd2be2cb0end+0x1ee6cb0
ecx   0xd58fdac0end+0x4c01ac0
eax0
eip   0xd046ff7ai915_gem_pread_ioctl+0x38a
cs   0x8
eflags  0x210246__rodata_size+0xc77e
esp   0xf5c6ac34
ss  0x10
i915_gem_pread_ioctl+0x38a: movlclean_idt+0x14(%edx),%eax
ddb{0}> ps
   PID TID   PPIDUID  S   FLAGS  WAIT  COMMAND
 69728   33243  19746   1000  3 0x3  biowait   glxgears
 19746  377224  51461   1000  30x10008b  pause ksh
 51461  485415  71974   1000  30x1000b2  selectxterm
 71974  417942  26296   1000  30x10008a  pause sh
 26296  393602  78752   1000  30x82  poll  fvwm2
  59516303  1   1000  30x1000b0  selectssh-agent
 78752  135243  69230   1000  30x10008a  pause sh
 69230  232409  83421  0  30x100080  wait  xenodm
 77352  179472  56263  0  30x1000b0  netio Xorg
 58860  325551  1  0  30x100083  ttyin getty
 359016616  1  0  30x100083  ttyin getty
 54141  231053  1  0  30x100083  ttyin getty
 43566  423054  1  0  30x100083  ttyin getty
 73962  475740  1  0  30x100083  ttyin getty
 76318   87321  1  0  30x100083  ttyin getty
*56263  217187  83421 35  70x32Xorg
 83421  374979  1  0  30x88  pause xenodm
 790782880  1  0  30x100098  poll  cron
 65917  330814  1  0  30x80  kqreadapmd
 32502  498153  1572  30x90  poll  dbus-daemon
 91107  243127  1 99  30x100090  poll  sndiod
 42089  292993  1110  30x100090  poll  sndiod
 46819  215306  51015 95  30x100092  kqreadsmtpd
 56030  457486  51015103  30x100092  kqreadsmtpd
 38579  222615  51015 95  30x100092  kqreadsmtpd
 28849   92512  51015 95  30x100092  kqreadsmtpd
 33276  491022  51015 95  30x100092  kqreadsmtpd
 48470  431199  51015 95  30x100092  kqreadsmtpd
 51015  237527  1  0  30x100080  kqreadsmtpd
  3590  248026  1  0  30xb0  selectlpd
 52296  201348  1  0  30x80  selectsshd
 18907  263603  0  0  3 0x14280  nfsidlnfsio
 23400  157363  0  0  3 0x14280  nfsidlnfsio
 52017   80811  0  0  3 0x14280  nfsidlnfsio
 64265  490795  0  0  3 0x14280  nfsidlnfsio
 96807  116644  1  0  30x100080  poll  ntpd
 52753  277429  21766 83  30x100092  poll  ntpd
 21766  244090  1 83  30x100092  poll  ntpd
 40653  442572  94372 74  20x100490pflogd
 94372  281381  1  0  30x80  netio pflogd
 52703  339306  20439 73  20x100090syslogd
 20439  436157  1  0  30x100082  netio syslogd
 30651  282877  1 77  30x100090  poll  dhclient
 58713  233562  1  0  30x80  poll  dhclient
 89578  207572  66702115  30x100092  kqreadslaacd
 62917  342424  66702115  30x100092  kqreadslaacd
 66702  291538  1  0  30x80  kqreadslaacd
  5548  252304  1  0  30x80  mfsidlmount_mfs
 23621  124126  0  0  3 0x14200  pgzerozerothread
 89609   23948  0  0  3 0x14200  aiodoned  aiodoned
 48312  459918  0  0  3 0x14200  syncerupdate
 77418  243314  0  0  3 0x14200  cleaner   cleaner
 94308  387404  0  0  3

pledge.2: missed rename: request -> promises

2017-06-11 Thread Scott Cheloha
Hi,

The pledge(2) "request" parameter is now called "promises".

--
Scott Cheloha

Index: lib/libc/sys/pledge.2
===
RCS file: /cvs/src/lib/libc/sys/pledge.2,v
retrieving revision 1.43
diff -u -p -r1.43 pledge.2
--- lib/libc/sys/pledge.2   7 Jun 2017 20:53:59 -   1.43
+++ lib/libc/sys/pledge.2   11 Jun 2017 15:32:33 -
@@ -573,7 +573,7 @@ or one of its elements, or
 .Fa promises
 points outside the process's allocated address space.
 .It Bq Er EINVAL
-.Ar request
+.Ar promises
 is malformed or contains invalid keywords.
 .It Bq Er ENAMETOOLONG
 An element of