Re: simple pledge for xeyes(1)

2023-09-07 Thread Sebastien Marie
On Thu, Sep 07, 2023 at 11:30:11PM -0400, Thomas Frohwein wrote: > Very basic pledge(2) for the whole program. I didn't dive too much into > the details and maybe this can be refined some more. This is kind of a > product of me trying a tool I made `abstain` [1] for usefulness of > pledge(2)

Re: simple pledge for xeyes(1)

2023-09-07 Thread Bryan Steele
On Thu, Sep 07, 2023 at 11:30:11PM -0400, Thomas Frohwein wrote: > Very basic pledge(2) for the whole program. I didn't dive too much into > the details and maybe this can be refined some more. This is kind of a > product of me trying a tool I made `abstain` [1] for usefulness of > pledge(2)

simple pledge for xeyes(1)

2023-09-07 Thread Thomas Frohwein
Very basic pledge(2) for the whole program. I didn't dive too much into the details and maybe this can be refined some more. This is kind of a product of me trying a tool I made `abstain` [1] for usefulness of pledge(2) execpromises and it helped quickly find that xeyes(1) can run with a very

Re: malloc: add error message in putleakinfo

2023-09-07 Thread Masato Asou
From: Masato Asou Date: Fri, 08 Sep 2023 05:45:55 +0900 (JST) > There was a mistake in the diff. > > From: Masato Asou > Date: Fri, 08 Sep 2023 05:33:23 +0900 (JST) > >> Hi, >> >> I have modified diff. comments, ok? >> >> $ MALLOC_OPTIONS=D ktrace -tu ./a.out 107349 >> a.out(99781) in

Re: CVS: cvs.openbsd.org: xenocara

2023-09-07 Thread Mark Kettenis
> Date: Thu, 7 Sep 2023 22:02:12 +0200 > From: Matthieu Herrb > > On Thu, Sep 07, 2023 at 05:24:56PM +0200, Matthieu Herrb wrote: > > On Thu, Sep 07, 2023 at 07:11:40AM +0200, Anton Lindqvist wrote: > > > On Wed, Sep 06, 2023 at 05:42:37AM -0600, Robert Nagy wrote: > > > > CVSROOT:/cvs >

Re: CVS: cvs.openbsd.org: xenocara

2023-09-07 Thread Theo Buehler
On Thu, Sep 07, 2023 at 10:02:12PM +0200, Matthieu Herrb wrote: > On Thu, Sep 07, 2023 at 05:24:56PM +0200, Matthieu Herrb wrote: > > On Thu, Sep 07, 2023 at 07:11:40AM +0200, Anton Lindqvist wrote: > > > On Wed, Sep 06, 2023 at 05:42:37AM -0600, Robert Nagy wrote: > > > > CVSROOT:/cvs > >

Re: malloc: add error message in putleakinfo

2023-09-07 Thread Masato Asou
There was a mistake in the diff. From: Masato Asou Date: Fri, 08 Sep 2023 05:33:23 +0900 (JST) > Hi, > > I have modified diff. comments, ok? > > $ MALLOC_OPTIONS=D ktrace -tu ./a.out 107349 > a.out(99781) in unknown(): putleakinfo(): Cannot allocate memory > -- > ASOU Masato > > Index:

Re: malloc: add error message in putleakinfo

2023-09-07 Thread Masato Asou
Hi, I have modified diff. comments, ok? $ MALLOC_OPTIONS=D ktrace -tu ./a.out 107349 a.out(99781) in unknown(): putleakinfo(): Cannot allocate memory -- ASOU Masato Index: stdlib/malloc.c === RCS file:

Re: CVS: cvs.openbsd.org: xenocara

2023-09-07 Thread Matthieu Herrb
On Thu, Sep 07, 2023 at 05:24:56PM +0200, Matthieu Herrb wrote: > On Thu, Sep 07, 2023 at 07:11:40AM +0200, Anton Lindqvist wrote: > > On Wed, Sep 06, 2023 at 05:42:37AM -0600, Robert Nagy wrote: > > > CVSROOT: /cvs > > > Module name: xenocara > > > Changes by: rob...@cvs.openbsd.org

Replace selinfo by klist in vnode structure

2023-09-07 Thread Vitaliy Makkoveev
Remove the remnants of the leftover selinfo from vnode(9) layer. Just mechanical replacement because knote(9) API is already used. I don't want make klist MP safe with this diff. headers added where is was required. Disabled tmpsfs was also tested. ok? Index: sys/dev/hotplug.c

Re: Replace selwakeup() with knote(9) in wscons(4) and make filterops mpsafe

2023-09-07 Thread Peter Hessler
On 2023 Jul 11 (Tue) at 16:40:32 +0300 (+0300), Vitaliy Makkoveev wrote: :Use per 'wseventvar' structure `mtx' mutex(9) to protect `put' and `get' :circular buffer indexes together with klist data. Not a big deal, but :Xorg will not kernel lock while polling keyboard and mouse events. Also

Re: Reminder of bug in vi and nvi including tested diff

2023-09-07 Thread Raf Czlonka
On Thu, Sep 07, 2023 at 01:10:17PM BST, Walter Alejandro Iglesias wrote: > > I didn't know that, thanks. I'd like to send the patch to the > maintainer of this version too, but after downloading a snapshot a > README.1st in the tarball says: > > Please do not contact the original authors

Re: syslogd retry dns lookup

2023-09-07 Thread Alexander Bluhm
On Sun, Sep 03, 2023 at 02:00:46AM +0200, Alexander Bluhm wrote: > Hi, > > When DNS lookup for remote loghost in @ line in syslog.conf does > not work at startup, retry in intervals. > > Please test if you use the feature. > > ok? anyone? > bluhm > > Index: syslogd.c >

Re: Reminder of bug in vi and nvi including tested diff

2023-09-07 Thread Walter Alejandro Iglesias
Hi Raf, On Thu, Sep 07, 2023 at 12:08:00PM +0100, Raf Czlonka wrote: > On Thu, Sep 07, 2023 at 08:04:43AM BST, Walter Alejandro Iglesias wrote: > > Dear OpenBSD developers, > > > > On Aug 2 I reported this bug: > > > > https://marc.info/?l=openbsd-bugs=169100763926909=2 > > > > After

Re: Reminder of bug in vi and nvi including tested diff

2023-09-07 Thread Tobias Heider
On Thu, Sep 07, 2023 at 09:04:43AM +0200, Walter Alejandro Iglesias wrote: > Dear OpenBSD developers, > > On Aug 2 I reported this bug: > > https://marc.info/?l=openbsd-bugs=169100763926909=2 > > After fiddling around I found a solution that works for both vi base and > nvi from ports: > >

Re: Reminder of bug in vi and nvi including tested diff

2023-09-07 Thread Raf Czlonka
On Thu, Sep 07, 2023 at 08:04:43AM BST, Walter Alejandro Iglesias wrote: > Dear OpenBSD developers, > > On Aug 2 I reported this bug: > > https://marc.info/?l=openbsd-bugs=169100763926909=2 > > After fiddling around I found a solution that works for both vi base and > nvi from ports: > >

Re: malloc: add error message in putleakinfo

2023-09-07 Thread Otto Moerbeek
On Thu, Sep 07, 2023 at 06:45:55PM +0900, Masato Asou wrote: > Hi, > > I am using MALLOC_OPTIONS=D and kdump report no information when > malloc() exceeds 107350 bytes on my OpenBSD box. I have > investigated and found that mmap() faild in putleakinfo(). I'm ok with the general idea, but

malloc: add error message in putleakinfo

2023-09-07 Thread Masato Asou
Hi, I am using MALLOC_OPTIONS=D and kdump report no information when malloc() exceeds 107350 bytes on my OpenBSD box. I have investigated and found that mmap() faild in putleakinfo(). I used the following program: #include #include #include #include #include int main(int argc, char

Reminder of bug in vi and nvi including tested diff

2023-09-07 Thread Walter Alejandro Iglesias
Dear OpenBSD developers, On Aug 2 I reported this bug: https://marc.info/?l=openbsd-bugs=169100763926909=2 After fiddling around I found a solution that works for both vi base and nvi from ports: https://marc.info/?l=openbsd-bugs=16926218514=2 Since nobody answered me in bugs@ I sent