Re: xhci: KASSERT panic on USB run0 network load

2020-02-02 Thread Kenneth Westerback
A kernel with XHCI_DEBUG may supply useful info. Testing the device on the EHCI port I see in your dmesg would also be useful to confirm the problem is likely in xhci vs run. A quick test with an older run device plugged into my Lenovo e595 has not panic'ed yet. Are you connecting to an ' N' acc

Re: disklabel -e says "No changes." when boundend parameter is changed

2020-10-19 Thread Kenneth Westerback
On Mon., Oct. 19, 2020, 3:29 p.m. Todd C. Miller, wrote: > On Mon, 19 Oct 2020 13:26:06 -0600, "Theo de Raadt" wrote: > > > Todd C. Miller wrote: > > > > > For some reason, cmplabel() in disklabel.c doesn't compare the > > > bounds values when it checks for changes. I'm not sure what the > > >

Re: OpenBSD installer partitioning has a problem!

2023-12-18 Thread Kenneth Westerback
OpenBSD GPT abilities encompass creating up to 128 GPT partitions. See fdisk(8) as suggested. The OpenBSD disklabel can only hold 16 partitions, one of which is always 'c'. 'c' always describes the entire disk. 'i' is often created by the installer to hold boot code. GPT partitions of various typ

Re: OpenBSD installer partitioning has a problem!

2023-12-19 Thread Kenneth Westerback
Henryk Paluch writes: > Hello! > >> The OpenBSD installer partitioning does not accept more than 15 partitions >> with GPT (partitions 'c' and 'i' are already defined in advance by the >> installer). It limits from partition 'a' to 'p', but GPT partitions must >> support up to 128 partitions. >

Re: cu hw.ucomnames / cu.c 1.29 problem

2024-02-09 Thread Kenneth Westerback
Looks correct to me. The value returned by get_ucomnames() is only passed to find_ucom() where it is checked against NULL. aphekz, if you can confirm this works for you I can commit. Ken "Theo de Raadt" writes: > Yes, this code should not fail in that circumstance. It should silently > c

Re: cu hw.ucomnames / cu.c 1.29 problem

2024-02-09 Thread Kenneth Westerback
Makes sense to me. Ken On Fri, Feb 9, 2024, 10:44 PM Theo de Raadt wrote: > Kenneth Westerback wrote: > > > Looks correct to me. The value returned by get_ucomnames() is only > > passed to find_ucom() where it is checked against NULL. > > Alternative diff in the

Re: cu hw.ucomnames / cu.c 1.29 problem

2024-02-10 Thread Kenneth Westerback
Works here (amd64) with and without ucom plugged in. Both diffs are ok krw@ Ken "Theo de Raadt" writes: > So everyone I should commit both diffs? -- Ken

Re: arm64 mbp M2 pro, screen blanks and won't restore after inactivity in X

2024-03-08 Thread Kenneth Westerback
I see the same/similar behaviour on my M1 MacMini. i.e. when sceen blanks it won't come back until I reboot. Monitor is connected via HDMI. Happy to provide more details/info/tests if same deemed useful. Ken On Fri, Mar 8, 2024, 2:18 PM Stuart Henderson wrote: > No problems seen in text c

Re: arm64 mbp M2 pro, screen blanks and won't restore after inactivity in X

2024-03-08 Thread Kenneth Westerback
will do some more focused tests and try sthen's xset tweak. Ken On Fri, Mar 8, 2024, 5:18 PM Stuart Henderson wrote: > On 2024/03/08 22:35, Mark Kettenis wrote: > > > Date: Fri, 8 Mar 2024 20:29:35 + > > > From: Stuart Henderson > > > > > &

Re: arm64 mbp M2 pro, screen blanks and won't restore after inactivity in X

2024-03-09 Thread Kenneth Westerback
Stuart Henderson writes: > On 2024/03/08 22:35, Mark Kettenis wrote: >> > Date: Fri, 8 Mar 2024 20:29:35 + >> > From: Stuart Henderson >> > >> > On 2024/03/08 14:34, Kenneth Westerback wrote: >> > > I see the same/similar behaviour on my

Re: Macmini8,1 fixes and problems

2024-06-25 Thread Kenneth Westerback
What do 'fdisk -v' and 'disklabel -d' say? Ken On Tue, Jun 25, 2024, 2:24 PM joshua stein wrote: > This gets the NVMe and Wi-Fi recognized on the MacMini8,1 but fdisk > can't see any partition table and doing 'dd if=/dev/rsd0c' results > in an error. > > nvme0 at pci14 dev 0 function 0

Re: Some possible defects in the source code

2016-08-04 Thread Kenneth Westerback
Fixes for all these issues are now commited. Thanks! Ken On 3 August 2016 at 03:37, wrote: > Greetings! > > We've checked your source code with static analyzer > "AppChecker":https://npo-echelon.ru/en/solutions/appchecker.php and found > some possible defects in your source code: > > 1)

Re: dhclient fails to write resolv.conf

2016-11-23 Thread Kenneth Westerback
On Wed, 23 Nov 2016 at 17:08 ED Fochler wrote: > dhclient fails to update resolv.conf if DHCP is served by dnsmasq on linux. > > This bug is odd and very specific. affects at least OpenBSD 5.9 - 6.0 > amd64. > Running OpenBSD on core2duo laptop and vm gives me the same behavior. > If dhclient.co

Re: BUG in 5.9/6.0 installer script when using hostname.if(5) alias

2016-11-24 Thread Kenneth Westerback
This should be fixed by the /usr/src/distrib/miniroot/install.sub commit I just made. So snapshots after today should work. Ken On Tue, 22 Nov 2016 at 21:35 Clint Pachl wrote: > The 5.9 and 6.0 installers seem to have trouble with interface aliases > in the hostname.if(5) configuration. Th

Re: dhclient fails to write resolv.conf

2016-11-24 Thread Kenneth Westerback
As is shown by the -L file, your DHCP server is configured incorrectly (a.k.a. in violation of the DHCP RFC's). In particular it is specifically FORBIDDEN to pay any attention to the static route option in the presence of a classless-static-routes option. So configuring the server to NOT have a def

Re: dhclient fails to write resolv.conf

2016-11-25 Thread Kenneth Westerback
On Thu, 24 Nov 2016 at 23:46 ED Fochler wrote: > On 2016, Nov 24, at 5:38 PM, Kenneth Westerback wrote: > > As is shown by the -L file, your DHCP server is configured incorrectly (a.k.a. in violation of the DHCP RFC's). In particular it is specifically FORBIDDEN to pay any at

Re: dhclient doesn't work in trunk failover

2015-12-22 Thread Kenneth Westerback
On 22 December 2015 at 15:39, wrote: >>Synopsis: dhclient doesn't renew IP on trunk failover >>Category: system >>Environment: > System : OpenBSD 5.8 > Details : OpenBSD 5.8-current (GENERIC.MP) #1757: Sat Dec 19 > 08:17:18 MST 2015 >

Re: fdisk/kernel gpt detection on hybrid mbr disks

2016-03-12 Thread Kenneth Westerback
On 12 March 2016 at 22:59, joshua stein wrote: > I used the built-in Disk Utility in Mac OS X to slice off a new FAT > partition, and then booted the OpenBSD installer and changed the > partition type in fdisk to OpenBSD to install to it. > > Because Disk Utility creates a hybrid MBR and not just

Re: fdisk/kernel gpt detection on hybrid mbr disks

2016-03-15 Thread Kenneth Westerback
On 15 March 2016 at 19:03, joshua stein wrote: > On Sun, 13 Mar 2016 at 01:49:19 -0500, Kenneth Westerback wrote: >> The non-support for Hybrid MBRs was a deliberate choice and there are >> no plans to open that can of worms. Hybrid MBRs are not part of the >> GPT/UEFI sta

Re: efiboot can't find OpenBSD GPT partition on Lenovo Ideapad 100s

2016-04-22 Thread Kenneth Westerback
I see other reports on the 100s indicating that Ubuntu can't boot either; :-(. e.g. http://askubuntu.com/questions/684041/ubuntu-debian-on-a-lenovo-ideapad-100s-linux-has-issues-with-this-laptop It appears that Lenovo has shipped it with a 32-bit UEFI firmware and this causes problems with a 64-

Re: efiboot can't find OpenBSD GPT partition on Lenovo Ideapad 100s

2016-04-23 Thread Kenneth Westerback
On 23 April 2016 at 07:51, Mark Kettenis wrote: >> Date: Sat, 23 Apr 2016 13:23:49 +0200 (CEST) >> From: Mark Kettenis >> >> > Date: Sat, 23 Apr 2016 12:49:25 +0200 (CEST) >> > From: Mark Kettenis >> > >> > > Could it be this problem is related to >> > > sys/arch/amd64/stand/efi/include/i386/efi

Re: efiboot can't find OpenBSD GPT partition on Lenovo Ideapad 100s

2016-04-23 Thread Kenneth Westerback
On 23 April 2016 at 09:55, Mark Kettenis wrote: >> Date: Sat, 23 Apr 2016 08:25:22 -0400 >> From: Kenneth Westerback >> >> > And here is a possible fix. Got the inspiration from the SYSLINUX >> > bootloader. This forces alignment of the EFI-specific 64-

Re: ext2fs, maybe fsck, bug in current 5.9 beta

2016-04-28 Thread Kenneth Westerback
I think my recent commits to ext2fs have fixed this and related issues. Ken On 24 December 2015 at 12:56, Lampshade wrote: > Hello > I have reproductible problem on snapshots dated > 18,19 and 23 December 2015. > I haven't tested older versions. > > sysctl kern.version > kern.version=OpenB

Re: install57.iso does not recognize a burned image of itself in an attached CD-R drive

2015-05-19 Thread Kenneth Westerback
On 19 May 2015 at 14:00, Robert Peichaer wrote: > On Tue, May 19, 2015 at 11:12:25AM -0400, Kenneth R Westerback wrote: >> On 05/19, Theo de Raadt wrote: >> > > Christian Weisgerber: >> > > >> > > > > Let's install the sets! >> > > > > Location of sets? (cd0 cd1 disk http or 'done') [cd0] cd1 >> >

Re: dhclient not assigning IPs

2015-07-02 Thread Kenneth Westerback
On 2 July 2015 at 07:57, Ted Unangst wrote: > this has been an ongoing problem, but I think it's gotten worse. > > When I change networks, I run dhclient again. It tells me I have a lease. For > instance: > DHCPREQUEST on em0 to 255.255.255.255 > DHCPREQUEST on em0 to 255.255.255.255 > DHCPDISCOVE

Re: fdisk: Unable to read MBR: 5TB drive

2015-07-08 Thread Kenneth Westerback
Fixed in -current. Thanks for the report! Ken On 7 July 2015 at 07:22, Gerald Hanuer wrote: > Reply-To: ghanuer497268()gmail!com > > > Synopsis: fdisk: Unable to read MBR: 5TB drive. > > Environment: > System : OpenBSD 5.8 > Details : OpenBSD 5.8-beta (GENERIC.M

Re: ftp not working

2015-07-19 Thread Kenneth Westerback
On 18 July 2015 at 18:33, Rene Galera wrote: > Hi, > > Changed to ftp://ftp.openbsd.org/pub/OpenBSD/5.7/packages/i386/ > > and the reply back is ftp Can't cconnect or login to host 'ftp.openbsd.org' > ftp://ftp.openbsd.org/pub/OpenBSD/5.7/packages/i386 is empty > > Can't find nano > > Thanks in ad

Re: msdos fs rename bug / weird behaviour

2015-10-23 Thread Kenneth Westerback
On 22 October 2015 at 22:02, Serguey Parkhomovsky wrote: > Hi Matthieu, > > It looks like msdosfs_rename doesn't set the directory offset correctly > if a file is being renamed in the root directory. The following patch > fixes it for me: And here! Should be committed shortly, as I saw that NetBS

Re: dhclient spams me with no buffer space

2015-11-11 Thread Kenneth Westerback
On 11 November 2015 at 21:52, Ted Unangst wrote: > 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 >

Re: dhclient spams me with no buffer space

2015-11-11 Thread Kenneth Westerback
On 11 November 2015 at 22:31, Kenneth Westerback wrote: > On 11 November 2015 at 21:52, Ted Unangst wrote: >> 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 fo

Re: dhclient spams me with no buffer space

2015-11-12 Thread Kenneth Westerback
On 11 November 2015 at 21:52, Ted Unangst wrote: > 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 >

Re:

2015-11-21 Thread Kenneth Westerback
On 21 November 2015 at 05:38, Dennis Lindroos wrote: >>Synopsis:reading from st(4) never stops (no eof?) >>Category:kernel >>Environment: > System : OpenBSD 5.8 > Details : OpenBSD 5.8 (GENERIC) #143: Sun Aug 16 06:15:00 MDT 2015 > dera...@alpha.openbsd.org:/u

Re: ifconfig nwkey problem

2014-04-05 Thread Kenneth Westerback
On 5 April 2014 16:00, Nick Holland wrote: > When setting up wireless for someone, tripped across this one: > > # ifconfig ral0 nwkey 0x4646464646 <- note: 10 hex digits > # ifconfig ral0 > ral0: flags=8843 mtu 1500 > lladdr 00:18:39:15:60:82 > priority: 4 > groups: wl

Re: msdosfs still using 32-bit time

2014-04-21 Thread Kenneth Westerback
On 21 April 2014 13:24, Helg wrote: >>Synopsis: msdosfs still using 32-bit time >>Category: system >>Environment: > System : OpenBSD 5.5 > Details : OpenBSD 5.5-current (GENERIC) #38: Sat Apr 12 09:34:08 > MDT 2014 > > dera...@i386.open

Re: online changing partition id with fdisk causes kernel panic

2014-06-20 Thread Kenneth Westerback
On 20 June 2014 08:27, Jiri B wrote: > I changed partition id from A6 to NTFS of running OpenBSD > 5.5 (16.-18.6. amd64 snapshot) and after a while OS freezed. > > Reproduce steps: > - 5.5 snapshot amd64 > (under RHEVM Linux/KVM: virtio block, virtio net) > - install OS > - boot OS > - fdisk -e

Re: Disklabel on usb hdd wiped on crypto boot

2014-07-21 Thread Kenneth Westerback
On 21 July 2014 04:17, Peter Kane wrote: > Hello > > I have run into another strange problem on the Optiplex 745 in the > dmesg below. It usually boots with a usb crypto key disk, but if I try > to boot with a particular usb hard disk attached it will fail to find > the key disk and will instead e

Re:

2014-08-23 Thread Kenneth Westerback
On 22 August 2014 21:44, wrote: >>Synopsis: IPv6 default gw entered during install does not get recorded >>in /etc/mygate >>Category: system >>Environment: > System : OpenBSD 5.5 > Details : OpenBSD 5.5 (GENERIC) #271: Wed Mar 5 09:31:16 MST 2014 >

Re: INSTALL.linux missing

2014-11-16 Thread Kenneth Westerback
On 16 November 2014 09:35, Benjamin Baier wrote: > Hello. > ftp://ftp.openbsd.org/pub/OpenBSD/5.6/i386/INSTALL.linux is missing. > Found because http://www.openbsd.org/faq/faq4.html#Multibooting links to it. > SInce INSTALL.linux was deemed "too old, undermaintained" in March of this year, I beli

Re: Default pf-ruleset not using /etc/services

2015-01-22 Thread Kenneth Westerback
On 22 January 2015 at 07:59, wrote: > Hello, > > I recently lost access to a co-located server, because I used a non-standard > port for ssh access. > > The default pf-ruleset (in /etc/rc) had kicked in. > > Would it be more correct to have the rulset in /etc/rc use /etc/services > instead of har

Re: Default pf-ruleset not using /etc/services

2015-01-22 Thread Kenneth Westerback
On 22 January 2015 at 07:59, wrote: > Hello, > > I recently lost access to a co-located server, because I used a non-standard > port for ssh access. > > The default pf-ruleset (in /etc/rc) had kicked in. > > Would it be more correct to have the rulset in /etc/rc use /etc/services > instead of har

Re: iostat sd0 + attach cd0 => iostat sd0 cd0

2015-02-26 Thread Kenneth Westerback
On 26 February 2015 at 04:56, Marcus MERIGHI wrote: > hello, > > just wanted to let you know that a running iostat automagically adds cd0 > to it's output when such a device is plugged in: > > $ iostat sd0 4 > tty sd0 cpu > tin tout KB/t t/s MB/s us ni sy in id

Re: openbsd 5.7 crash

2015-03-12 Thread Kenneth Westerback
On 10 March 2015 at 11:36, Martin Pieuchot wrote: > On 10/03/15(Tue) 14:57, Henk Jan Agteresch wrote: >> On Tue, 10 Mar 2015, Martin Pieuchot wrote: >> >> > >> > Thanks for the bug report, I'm preparing ta diff, but I still fail >> > to understand how it can work with 5.5. If you still have a wor

Re: installboot and "ERR M"

2014-02-04 Thread Kenneth Westerback
Yes. Ken On 4 Feb 2014 09:20, "Jean-Philippe Luiggi" wrote: > Le 2014-02-04 08:31, Jean-Philippe Luiggi a écrit : > >> Le 2014-02-04 08:13, Stuart Henderson a écrit : >> >>> On 2014/02/04 07:59, Jean-Philippe Luiggi wrote: >>> Hi Stuart, I'm sorry to bother you with that but

Re: installboot and "ERR M"

2014-02-04 Thread Kenneth Westerback
i.e. the one from the snapshot you are trying to upgrade to) from another device does seem to be your best bet. The key point is to always use the bsd.rd from the snapshot you are trying to install/upgrade. Otherwise you can hurt yourself in various ways. .... Ken > Le 2014-02-04 09:50, Ken