When I run chromium or iridium via ssh -X, after some minutes, or
immediately after I switch to a console and back with Ctrl-Alt-Fn, the
keystrokes go wild. Suddenly space brings up a dialog asking about caret
browsing, Ctrl acts like I right-clicked, most letters work but not m,
etc. All is back to normal for a few minutes again after I kill the
chrome and relaunch it. The mouse never seems affected, but I can't
even type a URL normally, and even if I paste a URL, Enter doesn't work.
Nothing in the stdout/stderr from chrome looked interesting, I thought, but I
can send that also. (As I recall, there was nothing additional in the
output from the time when the keys went crazy, but many things at browser
startup.)
The problem doesn't happen with ssh -Y apparently(?), unless connecting
to run chromium on a remote computer. It doesn't happen if I run it
as the same user that is running X, nor with xhost permissions allowing
it to run without ssh. And it doesn't seem to happen with any other
application, including firefox or libreoffice, or xterm. But I don't
want to use open xhost permissions or ssh -Y full-time for this,
because then that user can see other users' keystrokes, in X (as shown by
the program xinput -test for example). (I am guessing use of xauth would
also allow seeing keystrokes of other users, but I haven't tested it, as it
looks like xauth is more for remote connections than xhost is.)
I do this so I can have multiple browsers simultaneously, as different
users, so if one instance of a browser is compromised, it
hopefully can't compromise other users' browsers (which are for connecting
to more secure things). If I could have multiple simultaneous X servers
instead, and if that is considered a reasonable use, that might work
better. Pointing out holes in my thinking is much appreciated.
(What do other people do for this, if anything?)
It didn't happen on OpenBSD 6.8, but I noticed it right after I
upgraded to 6.9 then immediately to 7.0. I'm running stable (syspatches
but not current).
Suggestions? I did something stupid? Should send a bug report?
Thanks much!
Luke Call
Here is /var/run/dmesg.boot. (The dmesg itself is included further down):
s0 detached
uhidev0 detached
uhidev0 at uhub0 port 3 configuration 1 interface 0 "Logitech USB Optical
Mouse" rev 2.00/72.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
wsmouse0 detached
ums0 detached
uhidev0 detached
uhidev0 at uhub0 port 3 configuration 1 interface 0 "Logitech USB Optical
Mouse" rev 2.00/72.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
wsmouse0 detached
ums0 detached
uhidev0 detached
uhidev0 at uhub0 port 3 configuration 1 interface 0 "Logitech USB Optical
Mouse" rev 2.00/72.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
wsmouse0 detached
ums0 detached
uhidev0 detached
uhidev0 at uhub0 port 3 configuration 1 interface 0 "Logitech USB Optical
Mouse" rev 2.00/72.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
[... much more of the above, repeated...]
syncing disks... done
r
OpenBSD 7.0 (GENERIC.MP) #5: Mon Jan 31 09:09:02 MST 2022
r...@syspatch-70-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16033533952 (15290MB)
avail mem = 15531577344 (14812MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xebf90 (49 entries)
bios0: vendor American Megatrends Inc. version "204" date 11/20/2014
bios0: ASUSTeK COMPUTER INC. X550ZA
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT ECDT MCFG MSDM HPET UEFI SSDT SSDT CRAT SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LOM_(S4) SBAZ(S4) ECIR(S4) OHC1(S4) EHC1(S4) OHC2(S4)
EHC2(S4) OHC3(S4) EHC3(S4) OHC4(S4) XHC0(S4) XHC1(S4) ODD8(S3) GLAN(S4)
LID_(S5) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD A10-7400P Radeon R6, 10 Compute Cores 4C+6G, 2495.71 MHz, 15-30-01
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,CPCTR,DBKP,PERFTSC,ITSC,FSGSBASE,BMI1,XSAVEOPT
cpu0: 96KB 64b/line 3-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line
16-way L2 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application proce