Re: request for testing: malloc and large allocations

2022-01-16 Thread Otto Moerbeek
On Sun, Jan 09, 2022 at 02:54:43PM +0100, Otto Moerbeek wrote: > Hi, > > currently malloc does cache a number of free'ed regions up to 128k in > size. This cache is indexed by size (in # of pages), so it is very > quick to check. > > Some programs allocate and deallocate larger allocations in a

usr.sbin/eigrpd: fix -Wunused-but-set-variable warning

2022-01-16 Thread Christian Weisgerber
usr.sbin/eigrpd: fix -Wunused-but-set-variable warning M usr.sbin/eigrpd/rde_dual.c diff 41bbcfa017d9537de08312789d0087c674ce4732 77e83947795bf5b53aef72070d7630a825b52c1f blob - f1ed306e1371896676cf45b26e102af5e4d77b36 blob + 9465250934a6b1a5f6d565a13d32c4c450786670 --- usr.sbin/eigrpd/rde_dua

usr.sbin/dvmrpctl: fix -Wunused-but-set-variable warning

2022-01-16 Thread Christian Weisgerber
usr.sbin/dvmrpctl: fix -Wunused-but-set-variable warning This looks like /* not yet implemented */, but the companion functions show_rib_detail_msg() and show_mfc_detail_msg() are equally empty. M usr.sbin/dvmrpctl/dvmrpctl.c diff 4bd575d8630c92f404211d2c625b200ac28213b9 41bbcfa017d9537de0831

usr.sbin/dhcpd: fix -Wunused-but-set-variable warning

2022-01-16 Thread Christian Weisgerber
usr.sbin/dhcpd: fix -Wunused-but-set-variable warning I think this should be fine as strtonum() will catch any errors. M usr.sbin/dhcpd/parse.c diff 5ce17aab12dafb0a17452c4e0e86b29d89d83d13 4bd575d8630c92f404211d2c625b200ac28213b9 blob - 5b719219d00046e02e932796a78dc14ceddaa109 blob + 28334a4

Re: fix active scan on iwm and iwx

2022-01-16 Thread Mark Kettenis
> Date: Sun, 16 Jan 2022 19:28:06 +0100 > From: Stefan Sperling > > On Sun, Jan 16, 2022 at 03:50:55PM +0100, Mark Kettenis wrote: > > However, running this diff I had a problem after resuming my laptop > > twice. After resume the interface didn't work and I found the > > following in dmesg: > >

Re: uvm_swap: introduce uvm_swap_data_lock

2022-01-16 Thread Martin Pieuchot
Nice! On 30/12/21(Thu) 23:38, Theo Buehler wrote: > The diff below does two things: it adds a uvm_swap_data_lock mutex and > trades it for the KERNEL_LOCK in uvm_swapisfull() and uvm_swap_markbad() Why is it enough? Which fields is the lock protecting in these function? Is it `uvmexp.swpages',

Re: fix active scan on iwm and iwx

2022-01-16 Thread Stefan Sperling
On Sun, Jan 16, 2022 at 03:50:55PM +0100, Mark Kettenis wrote: > However, running this diff I had a problem after resuming my laptop > twice. After resume the interface didn't work and I found the > following in dmesg: > > iwm0: could not initialize hardware > > I tried to reset the interface by

Re: AX210 wifi

2022-01-16 Thread Stefan Sperling
On Sun, Jan 16, 2022 at 05:51:03PM +0300, Alex Beakes wrote: > FreeBSD has tested iwlwifi with Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420. > Wifi 6E, ty-a0-gf-a0-63.ucode. > > Is there a way of implementing this and making the wifi module work. > > https://wiki.freebsd.org/WiFi/Iwlwifi I will like

Re: fw_update(8) improve verbose output

2022-01-16 Thread Klemens Nanni
On Wed, Jan 05, 2022 at 05:36:42PM -0800, Andrew Hewus Fresh wrote: > After getting fw_update(8) into a state where it could get some testing, > I found that the man page indicated that -v should indicate different > levels of verbosity and I currently only had one. > > This was useful as I didn't

usr.bin/mg: fix -Wunused-but-set-variable warnings

2022-01-16 Thread Christian Weisgerber
usr.bin/mg: fix -Wunused-but-set-variable warnings * strtonum() is only called to verify that a string is numerical, the return value is unused. * inlist is no longer used after the code was refactored. OK? M usr.bin/mg/interpreter.c diff 6e5c342a53c05496c18849837c67b7dc05ce3792 5ce17aab12

Re: fix active scan on iwm and iwx

2022-01-16 Thread Mark Kettenis
> Date: Thu, 13 Jan 2022 17:45:03 +0100 > From: Stefan Sperling > > At present active scans (which send probe requests, as opposed to > just listening for beacons) are disabled on iwm 9k and iwx. This > was done because firmware misbehaved after association. > > zxystd from the OpenIntelWireless

Re: unlock mmap(2) for anonymous mappings

2022-01-16 Thread Martin Pieuchot
On 14/01/22(Fri) 23:01, Mark Kettenis wrote: > > Date: Tue, 11 Jan 2022 23:13:20 + > > From: Klemens Nanni > > > > On Tue, Jan 11, 2022 at 09:54:44AM -0700, Theo de Raadt wrote: > > > > Now this is clearly a "slow" path. I don't think there is any reason > > > > not to put all the code in th