OPNsense Forum

English Forums => 19.1 Legacy Series => Topic started by: Jonny on March 14, 2019, 08:48:45 pm

Title: kern.random.harvest.mask, can't set to 351, stays as 65887
Post by: Jonny on March 14, 2019, 08:48:45 pm
Hi Guys,

I've noticed my kern.random.harvest.mask is set to 65887, I've set it to 351 in tunables, pressed apply then rebooted, yet it still on 65887. I have no idea why. I can see variable set in /boot/loader.conf correctly.

It wasn't in tunables until I manually added it in.


But mask_symbolic doesn't match mask.
Code: [Select]
kern.random.harvest.mask_symbolic: PURE_RDRAND,[UMA],[FS_ATIME],SWI,[INTERRUPT],NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
kern.random.harvest.mask_bin: 000010000000101011111
kern.random.harvest.mask: 65887

Is it doing something weird like 65887=2^16+351 ??

Fresh install of OPNSense 19.1.4

Jonny
Title: Re: kern.random.harvest.mask, can't set to 351, stays as 65887
Post by: Jonny on March 14, 2019, 10:11:16 pm
#FreeBSD on FreeNode
 Told me to point you guys towards this file. Hopefully this helps.

https://github.com/HardenedBSD/hardenedBSD/blob/hardened/current/master/sys/dev/random/random_harvestq.c

They also said /boot/loader.conf  is wrong place for it as it is not loader tunnable.
Title: Re: kern.random.harvest.mask, can't set to 351, stays as 65887
Post by: lattera on March 15, 2019, 12:02:52 am
The HardenedBSD team is looking at this. Thanks for the report!
Title: Re: kern.random.harvest.mask, can't set to 351, stays as 65887
Post by: pylox on March 18, 2019, 09:00:42 am
Hi lattera,

i've observed this topic too ...because is relevant for network performance (especially on weak embedded  devices, e.g. APU). Is there currently impact on this or is it only a  "display" - Problem ?

regards pylox