Re: netbsd-10 linux emulation issue

2024-03-05 Thread Thomas Klausner
On Tue, Mar 05, 2024 at 04:12:15PM +0100, Hauke Fath (SPG) wrote: > Hi, > > I have been running the IBM Spectrum Protect (AKA Tivoli Storage Manager, > AKA2 ADSM) backup client* in linux emulation on NetBSD for almost twenty > years. It has generally been a very well-behaved piece of software. >

Re: erlang -> asmjit -> mremap questions/bugs

2023-03-01 Thread Thomas Klausner
On Wed, Mar 01, 2023 at 05:48:08PM +0300, Valeriy E. Ushakov wrote: > On Wed, Mar 01, 2023 at 15:29:27 +0100, Thomas Klausner wrote: > > > It seems the problem is that mmap() in the mremap(2) man page example > > (which was used to implement the asmjit version) is not us

erlang -> asmjit -> mremap questions/bugs

2023-03-01 Thread Thomas Klausner
Hi! Erlang comes with a JIT: asmjit. The current version doesn't work with PaX MPROTECT. I filed a bug report and asmjit added code using mremap(). https://github.com/asmjit/asmjit/blob/master/src/asmjit/core/virtmem.cpp#L619 The asmjit self-tests work, but in erlang with the new version there

Re: Module autounload proposal: opt-in, not opt-out

2022-08-08 Thread Thomas Klausner
On Mon, Aug 08, 2022 at 07:18:05AM -0700, Paul Goyette wrote: > It really seems to me that the current module sub-systems is at > best a second-class capability. I often get the feeling that > others don't really care about modules, until it's the only way > to provide something else (dtrace).

ETOOMANYZLIBS

2022-03-24 Thread Thomas Klausner
- Forwarded message from Thomas Klausner - Module Name:src Committed By: wiz Date: Thu Mar 24 10:13:01 UTC 2022 Modified Files: src/common/dist/zlib: deflate.c deflate.h trees.c Log Message: zlib: Fix a bug that can crash deflate on some input when using Z_FIXED. https

Re: python vs. semaphores

2021-12-14 Thread Thomas Klausner
On Tue, Dec 14, 2021 at 02:08:39PM +0100, Thomas Klausner wrote: > Is anyone aware of problems with semaphores on NetBSD, or has looked > at this particular problem before? Ok, my first test already gave me a bug. The man page says that multiple consecutive sem_open calls (without sem

python vs. semaphores

2021-12-14 Thread Thomas Klausner
Hi! Since at least python 2.7 (2011, probably longer, I haven't dug deeper) pkgsrc comes with a patch for Python that disables POSIX semaphore use (pthread_mutex* and pthread_cond* are used instead). I don't have a small test case yet, but when you build python without the pkgsrc patches and run

Re: General device properties API

2021-08-14 Thread Thomas Klausner
Hi Jason! Some minor comments: Should we use ssize_t instead of int for the size of objects (or -1 if not existing)? I think it's the more appropriate type; on the other hand, we don't seem to be using this type much in the kernel yet at all. Does device_getprop_string always NUL-terminate

Re: regarding the changes to kernel entropy gathering

2021-04-04 Thread Thomas Klausner
On Sun, Apr 04, 2021 at 11:14:31AM -0700, John Nemeth wrote: > I understand the need for good random sources, and won't argue > it. My question is, how can we tell what random sources a system > actually has, i.e. is there some flag that cpuctl identify shows > when a system has

MAXTSIZ removal?

2020-11-25 Thread Thomas Klausner
There was a commit by christos that made MAXTSIZ optional, but at least the amd64 vmparam.h still defines it. Any reason not to remove it? (I still can't start emulators/mame with a GENERIC without that change) Thomas

Re: bug help needed

2019-06-28 Thread Thomas Klausner
Hi! I'm seeing at least the first issue as well, see the thread "recurring tstile hangs on -current" on current-users. The second one has similar lines in the backtrace, but I didn't see the concrete symptoms yet. Thomas On Mon, Jun 03, 2019 at 09:26:18AM +0200, Frank Kardel wrote: > Hi, > >

firefox sandboxing

2018-05-14 Thread Thomas Klausner
Hi! Here's an interesting article about firefox sandboxing improvements on Linux: https://www.morbo.org/2018/05/linux-sandboxing-improvements-in_10.html We already support chroot(2). Are user namespaces (http://man7.org/linux/man-pages/man7/user_namespaces.7.html - looks like capabilities)

Re: amd64: kernel aslr support

2018-01-17 Thread Thomas Klausner
ot;../Makefile.inc" .PATH: ${S}/kern KMOD= aslr_test SRCS= aslr_test.c .include /* $NetBSD: bufq_priocscan.c,v 1.21 2017/05/04 11:03:27 kamil Exp $ */ /*- * Copyright (c) 2018 Thomas Klausner * All rights reserved. * * Redistribution and use in source and binary form

Re: amd64: kernel aslr support

2018-01-16 Thread Thomas Klausner
Hi! On Wed, Nov 15, 2017 at 07:40:55PM +0100, Maxime Villard wrote: > Le 14/11/2017 à 15:43, Maxime Villard a écrit : > > The size and number of these blocks is controlled by the split-by-file > > parameter in Makefile.amd64. Right now it is set to 2MB, which produces a > > kernel with ~23

mount_apfs?

2017-11-08 Thread Thomas Klausner
In case someone is looking for a challenge, here's a description of the APFS (Apple File System) format: https://blog.cugu.eu/post/apfs/ Cheers, Thomas

Re: how to tell if a process is 64-bit

2017-09-14 Thread Thomas Klausner
On Sat, Sep 09, 2017 at 05:58:53AM +1000, Matthew Green wrote: > > In a cross-platform process utility tool the question came up how to > > decide if a process is 64-bit. > > > > https://github.com/giampaolo/psutil/issues/1102 > > > > What's the best answer for NetBSD? > > in C: > >

Re: how to tell if a process is 64-bit

2017-09-08 Thread Thomas Klausner
On Fri, Sep 08, 2017 at 07:38:24AM -0400, Mouse wrote: > First, I have to ask: what does it mean to say that a particular > process is - or isn't - 64-bit? Many 64-bit ports support running 32-bit applications (compat_netbsd32, compat_linux32). Thomas

how to tell if a process is 64-bit

2017-09-08 Thread Thomas Klausner
Hi! In a cross-platform process utility tool the question came up how to decide if a process is 64-bit. https://github.com/giampaolo/psutil/issues/1102 What's the best answer for NetBSD? Thomas

Re: Restricting rdtsc [was: kernel aslr]

2017-03-28 Thread Thomas Klausner
On Tue, Mar 28, 2017 at 10:36:52PM +0200, Maxime Villard wrote: > I already thought about this a few months ago, and my conclusion back then > was that it is very difficult to achieve if we want both good performance > and good security. This is a little off-topic, but the idea would consist in >

Fixed modular kernel path and different kernels

2017-01-14 Thread Thomas Klausner
Hi! One issue that made me avoid modular kernels is that updating is finickier. When you switch from one modular kernel to another, you have to replace /netbsd and /stamd/amd64/${VERSION}/modules. So for example, when testing two different kernels of the same -current major version, you can not

Re: RFC: softint-based if_input

2016-02-03 Thread Thomas Klausner
On Thu, Feb 04, 2016 at 05:53:45AM +, Taylor R Campbell wrote: >Date: Thu, 4 Feb 2016 14:35:46 +0900 >From: Ryota Ozaki > >On Thu, Feb 4, 2016 at 11:35 AM, Thor Lancelot Simon > wrote: >> On Wed, Feb 03, 2016 at 01:44:58PM +0900, Ryota

Re: sys/clock.h finalization

2014-12-22 Thread Thomas Klausner
On Mon, Dec 22, 2014 at 01:44:02AM +0100, Kamil Rytarowski wrote: Please let finalize src/sys/sys/clock.h: 1. Please review and add man page to src/share/man/man9 Thomas K. is responsible for man pages according to src/doc/RESPONSIBLE Committed with slight changes, thanks! Thomas

Re: Does options P1003_1B_SEMAPHORE still exist?

2014-05-06 Thread Thomas Klausner
On Tue, May 06, 2014 at 07:34:44PM +0200, Matthias Drochner wrote: As has been mentioned before, the (kernel) semaphore implementation in -current doesn't work well. In pkgsrc Python, use of semaphores was disabled because threaded Python scripts didn't work. I also found that disabling

Re: Patch: cprng_fast performance - please review.

2014-04-18 Thread Thomas Klausner
On Fri, Apr 18, 2014 at 01:39:18PM -0400, Thor Lancelot Simon wrote: How do you count to 9K? I see: 2K for p 2K for q 1280 bytes for w Are you talking about this w? + uint32_t w[1280], *p = state-p, *q = state-q; This looks like 1280x4 bytes to me. Thomas

Re: Vnode API change: VOP_LOCK

2014-02-21 Thread Thomas Klausner
On Fri, Feb 21, 2014 at 12:35:40PM +0100, J. Hannken-Illjes wrote: The current implementation of vn_lock() is racy. Modification of the vnode oprations vector for active vnodes is unsafe because it is not known whether deadfs or the original file system will be called. - Pass down LK_RETRY

dtrace support level?

2014-02-03 Thread Thomas Klausner
Hi! Just out of curiosity, what percentage, approximately, of the stuff on http://www.brendangregg.com/dtrace.html would work on NetBSD-current right now? Thomas

Re: ~5 percent kernel performance loss in the last 3 weeks

2013-12-04 Thread Thomas Klausner
On Wed, Dec 04, 2013 at 02:09:49PM +0100, Christoph Badura wrote: I was able to pin this down on the pcu/fpu changes. A kernel from just before that change doesn't have the performance loss. Those have been reverted. Thomas

Re: pbulk using tmpfs

2013-04-20 Thread Thomas Klausner
On Sat, Apr 20, 2013 at 11:47:59PM +0200, iMil wrote: I'm running bulk builds for various archs using pbulk for quite some time now, and one of the domUs used for this is hosted by a server with a LSI MPT Fusion Raid controller. In short, that controller sucks, poor write performances, it is a

Re: pinning down dk? assignment

2012-08-12 Thread Thomas Klausner
On Mon, Jul 23, 2012 at 04:21:55PM +0200, Martin Husemann wrote: You can mount them by name. I have (on my non-GPT root disk): NAME=sb2k5Root/a/ ffs rw,log 1 1 NAME=sb2k5Root/bnoneswapsw,dp0 0 in /etc/fstab. With gpt you can label the

Re: Quota on tmpfs

2012-07-13 Thread Thomas Klausner
On Thu, Jul 12, 2012 at 09:33:42PM -0400, Matthew Mondor wrote: If I remember there is some optional support for symbolic links to resolve to user-specific targets, but I forgot the details. With that /tmp/ could potentially be a symbolic link pointing to say, /tmpfs/user/ I think. I think

Re: Rump FS throughput

2012-06-01 Thread Thomas Klausner
On Thu, May 31, 2012 at 01:45:53PM -0400, Matthew Mondor wrote: Although it's useful to mount random media more safely than it would be using kernel-space, I noticed that using 64KB reads, the kernel cd9660 will gladly read ~20MB/s from a DVD, but that rump_cd9660 using 64KB reads is limited

Re: watching dynamic device attachment?

2012-05-04 Thread Thomas Klausner
On Fri, May 04, 2012 at 09:52:36AM -0500, Eric Haszlakiewicz wrote: hmm... I noticed that both devpubd(8) and drvctl(8) refer to a drvctl(4), but I can't find any such man page. Can someone point me at where it might be? AFAIK noone wrote it yet :( Thomas

Re: O-A loan

2012-02-20 Thread Thomas Klausner
On Mon, Feb 20, 2012 at 03:52:39AM +, YAMAMOTO Takashi wrote: y...@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote: i'd like to to either fix or remove O-A page loaning. the biggest problem is the lack of users. thus no way to test. any ideas? After looking at O-A loaning code in

Re: Respawn crashed PUFFS filesystems?

2012-02-12 Thread Thomas Klausner
On Sun, Feb 12, 2012 at 07:12:25AM +0100, Emmanuel Dreyfus wrote: I thought that we could respawn a crashed userland filesystem, lookup all active vnodes again, and redo all operations failed at crash time. That way a crashed filesystem would just cause a delay in ongoing operations, but it

USB contigmalloc()

2011-12-01 Thread Thomas Klausner
Matthew Dillon implemented a solution for USB/graphics cards problem stemming from the fact that some time after the boot, they can't acquire enough contiguous memory. http://thread.gmane.org/gmane.os.dragonfly-bsd.kernel/14431 Anyone interested in porting it or implementing something similar?

Re: USB contigmalloc()

2011-12-01 Thread Thomas Klausner
On Fri, Dec 02, 2011 at 01:51:42AM +0900, Izumi Tsutsui wrote: Anyway, currently our udl(4) doesn't require such allocation, It's also a problem for radeondrm (no USB involved). Thomas

Re: bug #44412

2011-08-03 Thread Thomas Klausner
On Fri, Jul 22, 2011 at 02:55:21PM -0400, David Riley wrote: I filed this report a while back. Someone else has tested my fix on non-PPC systems (x86, x86_64) and reported that it seems to work as well. I'm attaching the patch against -current here; could someone give it a look and

Re: Getting rid of standard boiler plate in kernel man pages CODE REFERENCES

2010-11-08 Thread Thomas Klausner
Hi Iain! I'm not sure what you are proposing.. can you show an example diff (eg using bluetooth.9) ? Sure, attached. Thomas Index: bluetooth.9 === RCS file: /cvsroot/src/share/man/man9/bluetooth.9,v retrieving revision 1.4 diff

Getting rid of standard boiler plate in kernel man pages CODE REFERENCES

2010-11-07 Thread Thomas Klausner
Hi! Many many many kernel (section 9) man pages contain the following sentence in their CODE REFERENCES section: This section describes places within the .Nx source tree where actual code implementing .Nm can be found. All pathnames are relative to .Pa /usr/src . .Pp I suggest we remove it

Re: something really screwed up with mmap+ffs on 5.0_STABLE

2010-09-01 Thread Thomas Klausner
On Tue, Aug 17, 2010 at 11:52:31PM +0300, Antti Kantee wrote: It would be great if someone could confirm or debunk this on -current and for archs beyond i386. Just get the latest sources, go to sys/rump/net/lib/libshmif, comment out line 61 (the one with PREFAULT_RW) from if_shmif.c, make

Re: CVS commit: src/tests/net/icmp

2010-07-08 Thread Thomas Klausner
[redirected from source-changes-d to a hopefully more suitable mailing list] On Mon, Jul 05, 2010 at 12:26:17AM +0300, Antti Kantee wrote: I'm happy to give a more detailed explanation on how it works, but I need one or two questions to determine the place where I should start from. I'm