terminal tab stop incorrect until reset

2022-03-14 Thread Ted Unangst
This came up long ago, but I've lost the mail, and the problem remains. When printing a line of text containing vt100 escapes and tabs, the tab stops are not set correctly. After running reset, they are. Repro: Open a new xterm and run printf "\e[32m\tgreen\e[0m\n". Observe four space indent.

immediate acpitz shutdown

2020-01-06 Thread Ted Unangst
Turned on my laptop (samsung 9 ativ) and immediately shutdown because acpitz was 144C. That seems rather unlikely. This repeated through a few reboots, and also after going back to a previous kernel, so I'm not sure if anything changed. It just woke up unhappy today. Probably not actionable, but

ryzen disabled L3 cache

2019-11-22 Thread Ted Unangst
An oddity I noticed in dmesg: cpu0: AMD Ryzen 7 3700X 8-Core Processor, 3600.44 MHz, 17-71-00 cpu0: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 8-way L2 cache, 32MB 64b/line disabled L3 cache Why is my L3 cache disabled? I saw some other ryzen dmesg reports, but for

Re: ios 13 dhcpd vs dhclient stale lease

2019-10-30 Thread Ted Unangst
Ted Unangst wrote: > I'm not sure where the bug is exactly (seems probable it could be an apple > problem), but for the record... I think this was fixed with an apple update? Nothing in the release notes of course, but it doesn't seem to happen anymore.

Re: ssh asks for key password incorrectly?

2019-10-21 Thread Ted Unangst
Damien Miller wrote: > On Sun, 20 Oct 2019, Ted Unangst wrote: > > > Ah, so when this happens, it's on a machine that doesn't have > > id_ed25519.pub. > > Here's a before and after ssh -vvv for reference. > > ah, so you have just the private key id_ed25519

Re: ssh asks for key password incorrectly?

2019-10-20 Thread Ted Unangst
Damien Miller wrote: > On Sun, 20 Oct 2019, Ted Unangst wrote: > > > I have two OpenBSD machines, let's call them laptop and desktop. desktop is > > a > > bit older, and has a ecdsa-sha2-nistp256 key in .ssh/authorized_keys. laptop > > is configured with a ssh-ed

ssh asks for key password incorrectly?

2019-10-19 Thread Ted Unangst
I have two OpenBSD machines, let's call them laptop and desktop. desktop is a bit older, and has a ecdsa-sha2-nistp256 key in .ssh/authorized_keys. laptop is configured with a ssh-ed25519 .ssh/id_ed25519 key file. The keyfile has a password and I use ssh-agent and ssh-add to unlock it. What

ios 13 dhcpd vs dhclient stale lease

2019-10-06 Thread Ted Unangst
I'm not sure where the bug is exactly (seems probable it could be an apple problem), but for the record... When my laptop roams from my home wifi to my phone hotspot, it retains the same IP it had on the home network, which doesn't work with the phone network. Running dhclient manually results in

Re: Bypass doas password check with chroot

2019-07-04 Thread Ted Unangst
Ted Unangst wrote: > I think this is not the right note, but after some review I just realized we > don't ever say that a password is required. It's merely hinted at in various > options. I'll make a note of that. Just a simple sentence, but I think it makes explicit the behavior. Inde

Re: Bypass doas password check with chroot

2019-07-04 Thread Ted Unangst
cho...@jtan.com wrote: > Ingo Schwarze writes: > > I see nothing wrong with it. It is easier to describe in the manual > > Indeed I was not suggesting that there was something wrong; being asked for a > password when doing something which root could implicitly do simply confused > me for a

Re: "infinite" gethostbyname(3)

2019-04-30 Thread Ted Unangst
Martin Pieuchot wrote: > When my machine doesn't get a reply from a DNS server, generally the > wifi router of the place where I'm drinking coffee, applications sit > in gethostbyname(3) "indefinitely". At least too long for me to wait > and I end up killing the app. We used to add an entry for

Re: panic on vmctl start

2019-04-20 Thread Ted Unangst
Klemens Nanni wrote: > Surprisingly simple, the last commit in that range broke it: > > revision 1.238 > date: 2019/04/18 18:51:34; author: mlarkin; > jMpas4GuYFG5; > vmm(4): whitespace fix > > Reverting the first hunk of this commit fixes `vmctl start vpn' for me. > >

Re: Cannot set locale categories independently with POSIX 2008 locales

2019-03-28 Thread Ted Unangst
Karl Williamson wrote: > On 3/28/19 8:03 AM, Ingo Schwarze wrote: > >It is unspecified whether the locale object pointed to by base > >shall be modified, or freed and a new locale object created. > > I can see how you might be able to argue for your interpretation. I > believe the

Re: Cannot set locale categories independently with POSIX 2008 locales

2019-03-27 Thread Ted Unangst
Karl Williamson wrote: > > This should fix things. > > Does it work if 'oldloc' is 0? a legal value Nope. Good catch. Index: newlocale.c === RCS file: /home/cvs/src/lib/libc/locale/newlocale.c,v retrieving revision 1.1 diff -u -p

Re: Cannot set locale categories independently with POSIX 2008 locales

2019-03-27 Thread Ted Unangst
Karl Williamson wrote: > This has been reported from multiple sources, and we at Perl 5 have > diagnosed the problem > > If LC_CTYPE is set to C.UTF-8, it is not possible to set any other > category independently to either C or C.UTF-8 without inadvertently > setting LC_CTYPE back to C. The

Re: ping issue with rdomains

2019-03-18 Thread Ted Unangst
Claudio Jeker wrote: > Ping is a bit of a special case since it runs with user _ping when started > as root. So by the time the SO_RTABLE is issued it does not have the privs > to do it. The ping -V option only works when used in rdomain 0. Maybe we can drop privs a little later if we started

confusing install error with no net

2019-03-05 Thread Ted Unangst
Was performing an upgrade, got to the part about asking where the sets are. Specified http. https didn't work (just an internal httpd server, that's normal.) Say yes, try http. Get the error that no sets were found. Took me a few retries, guessing that maybe I typed the path wrong, but the problem

Re: pthread_rwlock deadlock

2019-03-03 Thread Ted Unangst
Sebastien Marie wrote: > > does it makes sens to call __sflush() instead of fflush() in vdprintf() ? > > the FILE variable used by vdprintf() is "home made" on the stack, using > a buffer on the stack too. And as fflush() only enclose __sflush() > with FILE locking, I don't see the gain to use

Re: pthread_rwlock deadlock

2019-03-02 Thread Ted Unangst
Visa Hankala wrote: > On Sat, Mar 02, 2019 at 10:29:07AM +0100, Sebastien Marie wrote: > > I am experiencing dead-lock with the new futex based rwlock > > implementation commited few days ago. > > The problem happens if a read-write lock has been read-locked and > there are multiple writers

Re: pthread_rwlock deadlock

2019-03-02 Thread Ted Unangst
Visa Hankala wrote: > On Sat, Mar 02, 2019 at 04:37:04PM +0100, Sebastien Marie wrote: > > Thread 1 (thread 469200): > > #0 sched_yield () at -:3 > > #1 0x0a8c0609d9c5 in _libc__spinlock (lock=Variable "lock" is not > > available.) at /usr/src/lib/libc/thread/rthread.c:50 > > #2

Re: OpenBSD 6.4 doesn't boot on 486 class processor anymore

2019-02-27 Thread Ted Unangst
Philip Guenther wrote: > The problem is that ucode_load() in sys/arch/i386/stand/libsa/exec_i386.c > uses CPUID() without checking whether the cpuid instruction is supported. > There are currently three places in sys/arch/i386/stand/libsa which make > that check: cpuprobe.c, machdep.c, and

Re: ure not detected with ramdisk

2019-01-29 Thread Ted Unangst
Theo de Raadt wrote: > Ted Unangst wrote: > > > Thinkpad X1 2015. I have a ure that works fine with normal kernels but was > > not > > detected when using the ramdisk. > > 'cause it isn't in the config?? > > So the process is you add it, build a ramdisk, r

ure not detected with ramdisk

2019-01-29 Thread Ted Unangst
Thinkpad X1 2015. I have a ure that works fine with normal kernels but was not detected when using the ramdisk. cat /tmp/dmesg | egrep openbsd\|^uhub\|^ure dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub"

iwm put itself down

2019-01-25 Thread Ted Unangst
I'm using a very bad wifi network, which causes iwm much sadness, but this particular error was new and unexpected. Suddenly ping announces the network is down. ping: sendmsg: Network is down ping: wrote ox.tedunangst.com 64 chars, ret=-1 Sure enough, ifconfig says no network. And now comes the

Re: kern.clockrate documentation patch

2019-01-06 Thread Ted Unangst
Amit Kulkarni wrote: > Hi, > > I wanted to know the value of tick, went to man.openbsd.org, and got > https://man.openbsd.org/tick > > While the answer provided on this page below is accurate, IMHO it is not > useful. I had to do a grep on "tick" for the kern.clockrate sysctl. Something >

httpd sends too many 408s

2019-01-01 Thread Ted Unangst
HTTP/1.1 connections stay alive by default, unless the client or server indicates it will close with the Connection: close header. After a timeout, the connection typically closes anyway. httpd in this case sends back a 408 Request Timeout response. This is unusual. I did not exhaustively study

Re: rc(8) ignores last line without newline of *.conf

2018-12-27 Thread Ted Unangst
George Koehler wrote: > stripcom() in /etc/rc uses `while read _line ; do ... done` > to read these files, but `read _line` exits 1 when the last line is > without a newline. This behavior in sh and ksh is consistent with > bash, dash, ksh93, and yash:

Re: fread() on unbuffered FILE doesn't set feof flag

2018-12-14 Thread Ted Unangst
Todd C. Miller wrote: > > After thinking about this a bit more I believe it best to just use > the existing FILE * and swap in the buffer temporarily. There's > no need to store the value of the old buffer; since we are unbuffered > it can only point to _nbuf. This is neat.

Re: fread() on unbuffered FILE doesn't set feof flag

2018-12-12 Thread Ted Unangst
Ted Unangst wrote: > Todd C. Miller wrote: > > On Wed, 12 Dec 2018 13:08:07 -0500, "Ted Unangst" wrote: > > > > > i don't want to go too far down the legacy rabbit hole, just float nicely > > > above it. > > > > Which is exactly how we go

Re: fread() on unbuffered FILE doesn't set feof flag

2018-12-12 Thread Ted Unangst
Todd C. Miller wrote: > On Wed, 12 Dec 2018 13:08:07 -0500, "Ted Unangst" wrote: > > > i don't want to go too far down the legacy rabbit hole, just float nicely > > above it. > > Which is exactly how we got to this point. What else is missing > and how m

Re: fread() on unbuffered FILE doesn't set feof flag

2018-12-12 Thread Ted Unangst
Todd C. Miller wrote: > On Wed, 12 Dec 2018 08:59:25 +0100, Sebastien Marie wrote: > > > The approch is to directly set __SEOF or __SERR. It is more simple than > > trying to reuse __srefill(). > > My concern is that __srefill() does more than just that. In particular, > it has the following: >

Re: libGL error: ...

2018-12-11 Thread Ted Unangst
Roderick wrote: > > libGL error: Version 4 or later of flush extension not found > libGL error: failed to load driver i915 This error also occurs on an HP mini 110. It appears cosmetic. glxgears still runs, fast enough, and firefox runs as well, somewhat less fast. dmesg below. it's GM45.

Re: fread() on unbuffered FILE doesn't set feof flag

2018-12-11 Thread Ted Unangst
Sebastien Marie wrote: > When looking at fread(3) code in libc, I found that we doesn't set > __SEOF when the FILE is unbuffered. > > src/lib/libc/stdio/fread.c > 72 if ((fp->_flags & __SNBF) != 0) { > 73 /* > 74 * We know if we're

Re: Thinkpad X1 reproducible suspend panic

2018-11-12 Thread Ted Unangst
Edd Barrett wrote: > I used a USB drive so that I wouldn't trash my everyday filesystems by > constant dirty shutdowns. However, it seems essential for reproduction. > If I boot a recent snap off my SSD, this bug does not manifest (but this will never work. USB devices are ejected during suspend.

idle threads say 100%

2018-11-01 Thread Ted Unangst
I know there have been some changes in this area, but this seems like a remaining bug. Run top. Press S to show system processes. Observe idle1 and idle3 (the hyperthreaded idles) stuck at 100%. With 0:00 time. Now if you switch hw.smt=1 the 100% slowly ticks down, but the time immediately jumps

Re: bug in master src/lib/libc/hash/siphash.c

2017-12-21 Thread Ted Unangst
Mark Karpilovskij wrote: > If only a single call to SipHash_Update is performed or if the size of > processed data is a multiple of sizeof(ctx->buf), this bug does nothing. > However when we performed several updates of various lengths, the data > written to ctx->buf were too long and the call to

ftp proxies and redirects

2017-10-02 Thread Ted Unangst
I believe there's a bug with ftp and redirects when using a proxy. ftp seems to add the redirect URL to the proxy host, fetching http://proxy/new-url instead of http://orighost/new-url. I'm not certain this isn't a server or proxy bug, in part because I'm not certain who's supposed to say what or

Re: config(8) elf handling

2017-09-13 Thread Ted Unangst
Philip Guenther wrote: > On Wed, 13 Sep 2017, Miod Vallat wrote: > > > > > Forcing uextraloc into .data via > > > int uextraloc __attribute__ ((section(".data"))) = 0; > > > avoids the crashes. > > > > Regardless of this bug, the in-tree gcc was modified to default to put > > explicitly zero

Re: Suspend-to-full-encrypted-disk is broken (by KARL?)

2017-09-07 Thread Ted Unangst
Natasha Kerensikova wrote: > on Thursday 20 July 2017 at 21:45, YASUOKA Masahiko wrote: > > On Tue, 18 Jul 2017 15:48:48 -0600 > > "Theo de Raadt" wrote: > > > The changes introduced into the bootloader are largely correct. They > > > make the right decisions. They just

ssh-keygen -l -v -F

2017-08-06 Thread Ted Unangst
The man page says using -l to print the fingerprint I can add a -v to get the pretty art, but this doesn't work with -F. It just prints the ugly base64 gibberish.

Re: asus x205ta keyboard issue

2017-08-03 Thread Ted Unangst
michele.cu...@gmail.com wrote: > >Synopsis:iic keyboard sometimes reapeat key press > When the problem happens, on dmesg I see messages like this: > > dwiic1: timed out reading remaining 13 > > Any idea what's happening? keyboard controllers are surprisingly

Re: OpenBSD guest hangs in vmd on -current host

2017-07-19 Thread Ted Unangst
Mike Larkin wrote: > On Tue, Jul 18, 2017 at 09:36:12PM -0700, Max Parmer wrote: > > > > >Synopsis: OpenBSD guest hangs in vmd on -current host > > >Category: system > > >Environment: > > System : OpenBSD 6.1 > > Details : OpenBSD 6.1-current (GENERIC.MP) #99: Mon Jul 17

Re: OpenBSD guest hangs in vmd on -current host

2017-07-19 Thread Ted Unangst
Max Parmer wrote: > > >Synopsis:OpenBSD guest hangs in vmd on -current host > >Category:system > >Environment: > System : OpenBSD 6.1 > Details : OpenBSD 6.1-current (GENERIC.MP) #99: Mon Jul 17 16:53:49 > MDT 2017 > >

Re: missing "struct socket;" in netinet/ip_var.h prevents compiling kernel without MROUTING option

2017-07-13 Thread Ted Unangst
Nick Briggs wrote: > because netinet/ip_var.h, which it includes, depends on >#ifdef MROUTING >extern struct socket *ip_mrouter[]; /* multicast routing daemon */ >#endif > to get a declaration of struct socket outside of any parameter lists. I think this is a better fix. Two

Re: canaries can cause malloc with a size of 0 to hang

2017-07-07 Thread Ted Unangst
Otto Moerbeek wrote: > I think I found it: requested size is not recorded for malloc(0), > bp->offset is not initialized in that case. Other code is carefull not to > use ->offset for size == 0. > OA > -Otto OA from me. :) > > Index: malloc.c >

Re: panic: Stopped at kqueue_scan

2017-07-06 Thread Ted Unangst
Aaron Bieber wrote: > For roughly a week I have been able to reliably produce panics on > amd64 (virtual machine and physical machine) using disk IO heavy > applications (gitea, syncthing). these are also network applications, no? i think that's the io that causes trouble.

Re: reorder_kernel requires writable /usr/share

2017-07-02 Thread Ted Unangst
Theo de Raadt wrote: > Yes, but once again I don't know what this is trying to help. > > Just you, I think. Maybe someone else? > > I am unsure if these 6-line chunks belong in /etc. The configuration > is way out of default. Configuration creep. Start with six lines to support readonly /usr

Re: mandoc -Tlint and Mdocdate

2017-06-21 Thread Ted Unangst
Ingo Schwarze wrote: > As there is no fully satisfactory option, i propose the patch below. > It add the "-W portable" command line option, which is a variant of > "-W style" hiding messages that only apply to base system manuals. I'm not fond of the name portable. To me, this suggests it will

Re: httpd violates pledge with passworded private key

2017-06-10 Thread Ted Unangst
Joel Sing wrote: > > tls_configure_keypair() -> return EWANTSPASSWORD -> application decides how > > to proceed, possibly asking for password, calls > > tls_configure_keypair_this_time_with_password(). > > I'm not sure that I'd consider that sane. We already have tls_load_file() for > this

Re: httpd violates pledge with passworded private key

2017-06-07 Thread Ted Unangst
Jonathan Gray wrote: > when using a server.key with a passphrase, ie > ) at /usr/src/lib/libc/stdio/fopen.c:54 > #3 0x022b2d92d26f in open_console (ui=Variable "ui" is not available. > ) at /usr/src/lib/libcrypto/ui/ui_openssl.c:304 > #6 0x022b2d9dc018 in PEM_def_callback > ) at

weird spin in vmd

2017-05-31 Thread Ted Unangst
ktrace shows we appear to be spinning on kevent and gettime. fd 7 is the tty. Not sure what went wrong. Happened just after typing "root" at login. Never got to password. Reboot, fsck, appears to work now. _vmd vmd750337 / 182448 crw-rw-rw-rwptypt 75033 vmd

vmctl start missing disk

2017-05-30 Thread Ted Unangst
start a vm with a missing disk vmctl start banana -d whatever -i 1 vmctl: start vm command failed: No such file or directory that's not much of a hint what went wrong.

Re: sparc64 -CURRENT in LDOM: ERROR: Last Trap: Fast Data Access Protection

2017-05-27 Thread Ted Unangst
Ax0n wrote: > FWIW, the kernels running in my -stable guests are considerably larger than > 8MB, and not much smaller than the -CURRENT kernels. So it's actually the size of the code in the kernel, not the file size. >From your boot message Booting

Re: sparc64 -CURRENT in LDOM: ERROR: Last Trap: Fast Data Access Protection

2017-05-26 Thread Ted Unangst
Ax0n wrote: > Is this limit specifically for LDOM guests? I have a Sun Blade 1500 I could > compile a custom -CURRENT kernel with, if that might help. Though I'm not > sure I want to do that with every snapshot I try. Not specifically, but the limit can vary by hardware. If you want to run a

Re: sparc64 -CURRENT in LDOM: ERROR: Last Trap: Fast Data Access Protection

2017-05-26 Thread Ted Unangst
Ax0n wrote: > I have a SunFire T2000 that I've chopped up into LDOMs. The primary domain > and six of the LDOMs are running 6.1-STABLE just fine. I pulled down the > May 22 snapshot, and it installs (with a strange error, see bottom of > post), but the LDOM crashes upon boot. I just tried again

Re: xterm fails ungracefully when saveLines resource value is too large

2017-05-25 Thread Ted Unangst
will.brokenbourgh2...@gmail.com wrote: > >Synopsis:xterm fails ungracefully when saveLines resource value is too > >large > >Category:system > >Environment: > System : OpenBSD 6.1 > Details : OpenBSD 6.1 (GENERIC.MP) #6: Mon May 22 20:34:30 CEST 2017 >

Re: softraid i/o errors: which device causes them?

2017-05-19 Thread Ted Unangst
Paul de Weerd wrote: > Hi all, > > I've got a system with several softraid crypto devices mounted, and > one seems to be having issues. dmesg shows several of these: > > softraid0: i/o error on block 1104 target 0 b_error 5 > > Is there a way to figure out which sd(4) device these come from?

Re: softraid crypto performance regression

2017-05-18 Thread Ted Unangst
Mike Belopuhov wrote: > On Wed, May 17, 2017 at 12:42 -0400, Ted Unangst wrote: > > Stefan Sperling wrote: > > > I also have some machines which are affected by this, and I am > > > not sure what to about it. I cannot judge the advantages of > > > either AES i

Re: softraid crypto performance regression

2017-05-17 Thread Ted Unangst
Stefan Sperling wrote: > I also have some machines which are affected by this, and I am > not sure what to about it. I cannot judge the advantages of > either AES implementation. There's very little advantage to a constant time implementation for disk encryption. The threat model doesn't really

Re: Problem in installing: cannot recognize disk

2017-04-13 Thread Ted Unangst
Jonathan Gray wrote: > sdmmc ends up attaching sd. > > sdhc -> sdmmc -> scsibus -> sd > > The submitter should try a release that isn't a year old and provide > details of which particular stream model this is as the branding spans > multiple generations of hardware with different variants.

Re: segfault in grep

2017-04-03 Thread Ted Unangst
Michael Santos wrote: > >Description: > > Use of uninitialized value in grep. > > >How-To-Repeat: > > $ grep -o "" /etc/hosts > Segmentation fault (core dumped) > > >Fix: Thanks.

Re: 2017-03-24 amd64 snapshot upgrade : /etc/shells overwritten

2017-03-24 Thread Ted Unangst
Peter N. M. Hansteen wrote: > Upgrading my laptop to the freshest snapshot about half an hour ago, I > found that the line for my user's main shell, installed from a package > and located under /usr/local/bin was no longer in /etc/shells. > > The fix is to log in as root (or any other user with a

Re: doas -n fails even when no password would be requested

2017-02-14 Thread Ted Unangst
Otto Moerbeek wrote: > On Tue, Feb 14, 2017 at 02:56:01PM -0500, Ted Unangst wrote: > > > Paul de Weerd wrote: > > > Well, in my case I can simply not use doas -n and ensure my script > > > works without prompting for passwords more than once (which is what I >

Re: doas -n fails even when no password would be requested

2017-02-14 Thread Ted Unangst
Paul de Weerd wrote: > Well, in my case I can simply not use doas -n and ensure my script > works without prompting for passwords more than once (which is what I > care about). However, I have to say that doas works great in > scripting setups: it asks for a password once and then all subsequent

Re: doas -n fails even when no password would be requested

2017-02-14 Thread Ted Unangst
Sebastian Benoit wrote: > The -n option helps to use doas non-interactively. > Its debateable wether 'persist' is useful with non-interactive usage, but > this fixes it: So the man page currently says "fail if doas would prompt for password." although it would be more accurate to say "fail if

Re: doas -n fails even when no password would be requested

2017-02-14 Thread Ted Unangst
Theo Buehler wrote: > On Tue, Feb 14, 2017 at 03:57:43PM +0100, Paul de Weerd wrote: > > Consider the following: > > > >1 [weerd@despair] $ doas true > >2 doas (we...@despair.weirdnet.nl) password: > >3 [weerd@despair] $ doas true > >4 [weerd@despair] $ doas -n

Re: fd_getfile with 0xdeadbeef in rax

2017-01-24 Thread Ted Unangst
Martin Pieuchot wrote: > Sure I can do that, I still want to add a comment since it might bite us > later. > > So a counter diff is like an ok? sure.

Re: fd_getfile with 0xdeadbeef in rax

2017-01-23 Thread Ted Unangst
Martin Pieuchot wrote: > On 17/01/17(Tue) 00:24, Alexander Bluhm wrote: > > On Mon, Jan 16, 2017 at 08:36:46PM +0100, cheek...@gmx.com wrote: > > > kernel: protection fault trap, code=0 > > > Stopped at fd_getfile+0x20: testb $0x2,mptramp_gdt32_desc+0x1e(%r > > > ax) > > > ddb{3}> fd_getfile() at

Re: fd_getfile with 0xdeadbeef in rax

2017-01-18 Thread Ted Unangst
Alexander Bluhm wrote: > On Mon, Jan 16, 2017 at 08:36:46PM +0100, cheek...@gmx.com wrote: > > kernel: protection fault trap, code=0 > > Stopped at fd_getfile+0x20: testb $0x2,mptramp_gdt32_desc+0x1e(%r > > ax) > > ddb{3}> fd_getfile() at fd_getfile+0x20 > > sys_fstat() at sys_fstat+0x43 > >

noisy pkg_info errors

2016-12-20 Thread Ted Unangst
When a package doesn't exist, pkg_info prints error messages from the commands it runs in the background. pkg_info burritobox Error from http://ftp.usa.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/ ftp: Error retrieving file: 404 Not Found signify: gzheader truncated Messages about truncated

Re: Allow DDB to be disabled at boot time?

2016-09-03 Thread Ted Unangst
Adam McDougall wrote: > > I just installed installed a snapshot build from: > https://www.mirrorservice.org/pub/OpenBSD/snapshots/amd64/ > dated 2016-09-02 on a Dell R420 and I was able to reproduce > the issue. I am willing to participate further if you or anyone > else has ideas worth trying.

Re: Stopped at bufq_destroy+0x83: movq 0(%rdx),%rax

2016-09-03 Thread Ted Unangst
FranciscoGaitán wrote: > After making my SATA disk to work during some time, when I reboot or > halt I get this message (hand transcribed): > > syncing disks... done > kernel: protection fault trap, code=0 > Stopped at bufq_destroy+0x83: movq 0(%rdx),%rax > ddb{0}> trace > bufq_destroy at

Re: bpfilter_create kassert panic

2016-07-24 Thread Ted Unangst
Alexander Bluhm wrote: > Hi, > > When running some scapy regression tests, a current i386 machine > triggered this panic. dunno if this is best. maybe. the refcounting of units implies that they can last longer than close(). therefore, if open() is expecting close() to remove the unit from the

Re: The kernel did not panic

2016-07-07 Thread Ted Unangst
Atanas Vladimirov wrote: > Snapshot was from Sat Jun 25 12:45:00 MDT 2016. thanks, people are looking for causes.

Re: rm -rf "" # prints error

2016-06-28 Thread Ted Unangst
rkito...@gmail.com wrote: > >Synopsis:rm -rf "" # prints error message but should be silent > >Category:system > >Environment: > System : OpenBSD 5.9 > Details : OpenBSD 5.9 (GENERIC.MP) #1888: Fri Feb 26 01:20:19 MST > 2016 > >

Re: when to free tls config?

2016-06-27 Thread Ted Unangst
Joel Sing wrote: > On Saturday 25 June 2016 22:58:59 Ted Unangst wrote: > > It's unfortunately unclear from the documentation when it is safe to call > > tls_config_free(). One might naively assume after a call to tls_configure, > > but that's not correct as the config is

when to free tls config?

2016-06-25 Thread Ted Unangst
It's unfortunately unclear from the documentation when it is safe to call tls_config_free(). One might naively assume after a call to tls_configure, but that's not correct as the config is also accessed during connect.

Re: gzip pledge - change in behavior

2016-06-08 Thread Ted Unangst
Simon Mages wrote: > I just noticed a problem with gzip in OpenBSD 5.9 introduced with pledge: > if root compresses a file, the owner and group are not copied onto the created > archive file: > > user@obsd59:tmp >ls -l server.log > > -rw-r--r-- 1 user wheel 345 Jun 3 09:16 server.log > >

Re: dig -p should abort instead of printing a warning

2016-06-04 Thread Ted Unangst
peter.van.d...@powerdns.com wrote: > >Synopsis:dig -p prints a warning and ignores the argument > >Category:user > >Environment: > System : OpenBSD 5.9 > Details : OpenBSD 5.9 (GENERIC.MP) #4: Thu May 19 08:22:39 CEST 2016 > >

Re: Small lock.c patch

2016-05-27 Thread Ted Unangst
ilya.kali...@gmail.com wrote: > Brace belongs to switch statement, not while loop > > RCS file: /cvs/src/usr.bin/lock/lock.c,v > retrieving revision 1.32 > diff -u -p -r1.32 lock.c > --- lock.c 15 Oct 2015 02:35:04 - 1.32 > +++ lock.c 27 May 2016 21:41:15 - > @@ -134,7

Re: two audio beep bugs

2016-05-13 Thread Ted Unangst
Mark Kettenis wrote: > > I personally think the wsconsctl settings should be respected by X. > But perhaps we should have a more fundamental discussion about things > first about how X should interact with wscons. There is a more > fundamental problem here where X assumes it has full control

Re: a subset of kevent fails to work with setuid()

2016-05-11 Thread Ted Unangst
Luke Small wrote: > The other kevent calls I use seem to work alright, but when run as root, > this fails. contrary to the manual, kevent() enforces additional restrictions on watching procs. this is a local change that was made when kqueue was first imported, but i can't think of a reason why.

Re: race between kqueue vnode note for writes triggering reads on a pre-mmapped file segment

2016-04-15 Thread Ted Unangst
Ben Woolley wrote: > Do the updates of the mmap happen in the order that writes are made? > If so, I could at least tell when coherence was reached. > > But it isn't a huge deal. The main purpose was to be able to share > memory between workers, and I can just do a read() into the shared > memory

Re: race between kqueue vnode note for writes triggering reads on a pre-mmapped file segment

2016-04-15 Thread Ted Unangst
Ben Woolley wrote: > On both UFS and tmpfs, if you watch for updates to the file with > kqueue, and pre-mmap a segment of the file, using the kqueue data to > notify of updates to the file crusor, and append the file in a > separate process, the written contents will populate AFTER the kqueue >

Re: [bug?] pthread_barrier_wait

2016-04-12 Thread Ted Unangst
Kári Tristan Helgason wrote: > I apologise in advance if the diff appears strange, I don't really know how > to get cvs to do what I want. cvs diff -u helps a lot. :)

Re: [bug?] pthread_barrier_wait

2016-04-11 Thread Ted Unangst
Paul Irofti wrote: > > What do you think? > > I think this diff is even safer: it checks for threads entering and > exiting the barrier while holding the mutex, and if both values are 0 it > proceeds to destroy the barrier. > > I also renamed sofar to in so that the relationship between threads

openssl command can't be exited

2016-03-24 Thread Ted Unangst
Accidentally ask for a password: # openssl genrsa -aes256 -out /etc/ssl/private/server.key 2048 Generating RSA private key, 2048 bit long modulus .+++ ...+++ e is 65537 (0x10001)

Re: equivalence classes do NOT work at all

2016-03-19 Thread Ted Unangst
George Delles wrote: > # echo á | grep '[[=a=]]'# echo ô | grep '[[=o=]]'#  > On Linux to compare: > # echo á | grep '[[=a=]]'á# echo ô | grep '[[=o=]]'ô# > «STANDARDSThe grep utility is compliant with the IEEE Std 1003.1-2008 > (“POSIX.1”) specification». >

"apropos Vt=short" finds nothing

2015-12-30 Thread Ted Unangst
My understanding is that "apropos Vt=short" should find the stdarg.3 man page. "apropos Va=va_list" does find the page, so I think I have a working index.

Re: dhclient doesn't work in trunk failover

2015-12-24 Thread Ted Unangst
timo.my...@wickedbsd.net wrote: > This might be caused by my current setup. I haven't used the ethernet > with my Thinkpad in ages. Previously I had the wireless and wired > clients in same subnet. This time the wireless and wired clients use > different subnets. Might

Re: libc getaddrinfo() bug

2015-12-17 Thread Ted Unangst
Serguey Parkhomovsky wrote: > On Wed, Dec 16, 2015 at 06:08:22PM -0500, Ted Unangst wrote: > > > > well, nobody fixed it, so if it's working, it's not using getaddrinfo. > > > > Hmmm... looks like getaddrinfo was using my nameserver to resolve the > decim

Re: screen brightness resets

2015-12-16 Thread Ted Unangst
Mark Kettenis wrote: > > From: "Ted Unangst" <t...@tedunangst.com> > > Date: Wed, 09 Dec 2015 06:49:42 -0500 > > > > Thinkpad X1 2015 (broadwell). This is a recent regression, though I'm not > > sure > > when it was introduced. I have lidsuspen

Re: httpd crashes when fetching a hidden file located on a CD

2015-12-11 Thread Ted Unangst
Ted Unangst wrote: > Jonathan Gray wrote: > > > > > > There's one thing to add though, it looks like it happens for any file on > > > cd9660, not just dotfiles. > > > > It is worth pointing out that httpd has had trouble serving files off > > speci

screen brightness resets

2015-12-09 Thread Ted Unangst
Thinkpad X1 2015 (broadwell). This is a recent regression, though I'm not sure when it was introduced. I have lidsuspend=0. When I close the lid and open it again, the screen comes back at 100% brightness. As in, far too bright. Previously, the screen would always open back up at the same

Re: screen brightness resets

2015-12-09 Thread Ted Unangst
Ted Unangst wrote: > Thinkpad X1 2015 (broadwell). This is a recent regression, though I'm not sure > when it was introduced. I have lidsuspend=0. When I close the lid and open it > again, the screen comes back at 100% brightness. As in, far too bright. > > Previously, the scre

Re: httpd crashes when fetching a hidden file located on a CD

2015-12-08 Thread Ted Unangst
Jonathan Gray wrote: > > > > There's one thing to add though, it looks like it happens for any file on > > cd9660, not just dotfiles. > > It is worth pointing out that httpd has had trouble serving files off > specific filesystems in the past due to kqueue issues. > > cd9660_vops does not

crash in bufq_destroy

2015-12-03 Thread Ted Unangst
On reboot of a current amd64 kernel. running softraid crypto. (hand transcription) syncing disks... done kernel: protection fault trap, code=0 Stopped at bufq_destroy+0x83: mo ddb{0}> tr bufq_destroy() at bufq_destroy+0x83 sddetach() config_detach() scsi_detach_lun() sr_discipline_shutdown()

Re: playing video makes system unresponsive, but keeps playing

2015-11-18 Thread Ted Unangst
Michael McConville wrote: > This is very pronounced. Firefox immediately spiked to almost 300% CPU > on my four-core CPU and become non-responsive. I'm on Landry's Firefox > 43 beta. > > I haven't had issues with .mkv videos in VLC, though. Which encodings > are giving you trouble? > > I don't

Re: kernel panic - sparc64 on Netra X1 - psycho0: uncorrectable DMA error AFAR

2015-11-17 Thread Ted Unangst
Steven Chamberlain wrote: > Hi, > > (I have a Netra X1 also affected by this bug). > > Stuart Henderson wrote: > > could it be this? > > > > CVSROOT:/cvs > > Module name:src > > Changes by: d...@cvs.openbsd.org 2014/09/03 18:36:00 > > > > Modified files: > > sys/sys

dhclient spams me with no buffer space

2015-11-11 Thread Ted Unangst
On my X1 carbon, I unplugged the ethernet cable and switched to wireless. I had a forgotten dhclient running for some time. ifconfig reports the following: ifconfig em0 em0: flags=8843 mtu 1500 lladdr 54:ee:75:3c:17:cb priority: 0

  1   2   3   >