Channel: NetBSD
Writing a NetBSD kernel module.
In this post, weβll look at implementing a simple character device driver as a kernel module in NetBSD. Once it is loaded, userspace processes will be able to write an arbitrary byte string to the device, and on every successive read expect a cryptographically-secure pseudorandom permutation of the original byte string...
https://saurvs.github.io/post/writing-netbsd-kern-mod/
#kernel #module
In this post, weβll look at implementing a simple character device driver as a kernel module in NetBSD. Once it is loaded, userspace processes will be able to write an arbitrary byte string to the device, and on every successive read expect a cryptographically-secure pseudorandom permutation of the original byte string...
https://saurvs.github.io/post/writing-netbsd-kern-mod/
#kernel #module
π5
PlayStation remote kernel heap overflow.
The PlayStation has a kernel PPPoE driver, that originates from NetBSD. This driver has a kernel heap overflow vulnerability, that an attacker can remotely trigger over the LAN, with the ability to control both the contents that are overflown and their sizes.
https://hackerone.com/reports/1350653
#security #pppoe
The PlayStation has a kernel PPPoE driver, that originates from NetBSD. This driver has a kernel heap overflow vulnerability, that an attacker can remotely trigger over the LAN, with the ability to control both the contents that are overflown and their sizes.
https://hackerone.com/reports/1350653
#security #pppoe
Customizing NetBSD boot banners.
I recently discovered that itβs surprisingly easy to customize the NetBSD boot loader banner, simply by adding some directives in the boot.cfg configuration file...
https://www.cambus.net/customizing-netbsd-boot-banners/
#system #boot
I recently discovered that itβs surprisingly easy to customize the NetBSD boot loader banner, simply by adding some directives in the boot.cfg configuration file...
https://www.cambus.net/customizing-netbsd-boot-banners/
#system #boot
The journey to ZFS raidz1 with different sized disks (On NetBSD) (Wheelbarrow optional).
The joy of having a redundant remote backup machine is that if it dies you do not immediately lose any data, just some redundancy. On the other hand, sufficient remoteness can make the process of rebuilding annoying enough to encourage a certain desire to not repeat it.
So... I find myself wanting to setup a NetBSD machine with a ZFS raidz1, but without sufficient equally sized large disks or enough drive bays to pack in many smaller disks. In the world of ZFS, that's a pretty big liability...
https://netbsd0.blogspot.com/2022/05/the-journey-to-zfs-raidz1-with.html
#zfs #backup
The joy of having a redundant remote backup machine is that if it dies you do not immediately lose any data, just some redundancy. On the other hand, sufficient remoteness can make the process of rebuilding annoying enough to encourage a certain desire to not repeat it.
So... I find myself wanting to setup a NetBSD machine with a ZFS raidz1, but without sufficient equally sized large disks or enough drive bays to pack in many smaller disks. In the world of ZFS, that's a pretty big liability...
https://netbsd0.blogspot.com/2022/05/the-journey-to-zfs-raidz1-with.html
#zfs #backup
Compiling the NetBSD kernel as a benchmark.
For a while, I've been compiling my own NetBSD kernel. Just for a few options, mainly CARP, at first for my Raspberry Pis, and at the moment for paravirtualized Xen domUs. Compiling a custom NetBSD kernel is a very easy task, it's just a matter of 3 main steps...
https://blog.anotherhomepage.org/post/2022/05/25/Compiling-the-NetBSD-kernel-as-a-benchmark/
#kernel #system
For a while, I've been compiling my own NetBSD kernel. Just for a few options, mainly CARP, at first for my Raspberry Pis, and at the moment for paravirtualized Xen domUs. Compiling a custom NetBSD kernel is a very easy task, it's just a matter of 3 main steps...
https://blog.anotherhomepage.org/post/2022/05/25/Compiling-the-NetBSD-kernel-as-a-benchmark/
#kernel #system
SSD TRIM in NetBSD HEAD (-current).
Solid state drives are complicated. TRIM is an operation in the SATA command set that can be used to mark specific blocks of a SSD unused, which helps the SSD retain good performance when large amounts of data have been deleted. It requires operating system support. macOS actually didn't support TRIM for quite a long time, so there's at least some drives available in the wild that cope well with not being regularly TRIMed. NetBSD 7.0 added a fdiscard system call, which allows portions of a device or file to be TRIMed...
https://www.unitedbsd.com/d/859-ssd-trim-in-netbsd-head-current
#hdd #fdiscard #trim
Solid state drives are complicated. TRIM is an operation in the SATA command set that can be used to mark specific blocks of a SSD unused, which helps the SSD retain good performance when large amounts of data have been deleted. It requires operating system support. macOS actually didn't support TRIM for quite a long time, so there's at least some drives available in the wild that cope well with not being regularly TRIMed. NetBSD 7.0 added a fdiscard system call, which allows portions of a device or file to be TRIMed...
https://www.unitedbsd.com/d/859-ssd-trim-in-netbsd-head-current
#hdd #fdiscard #trim
π1
NetBSD can also run a Minecraft server.
... The good news is, yes, you can run a Minecraft server on my other favourite OS too. This post explores how I went about it, though Iβm sure there are other ways...
https://rubenerd.com/netbsd-can-also-run-a-minecraft-server/
#games #minecraft
... The good news is, yes, you can run a Minecraft server on my other favourite OS too. This post explores how I went about it, though Iβm sure there are other ways...
https://rubenerd.com/netbsd-can-also-run-a-minecraft-server/
#games #minecraft
π₯2
NetBSD 9.3 released.
The NetBSD Project is pleased to announce NetBSD 9.3, the third release from the NetBSD 9 stable branch.
https://blog.netbsd.org/tnf/entry/netbsd_9_3_released
#release #system
The NetBSD Project is pleased to announce NetBSD 9.3, the third release from the NetBSD 9 stable branch.
https://blog.netbsd.org/tnf/entry/netbsd_9_3_released
#release #system
π₯4π1
Forwarded from OpenBSD
Installing OpenBSD on Scaleway Elastic Metal.
The instructions below will roughly stay the same should you want to install NetBSD or FreeBSD instead of OpenBSD...
https://www.senzilla.io/blog/2022/08/10/installing-openbsd-scaleway-elastic-metal/
#install #system
The instructions below will roughly stay the same should you want to install NetBSD or FreeBSD instead of OpenBSD...
https://www.senzilla.io/blog/2022/08/10/installing-openbsd-scaleway-elastic-metal/
#install #system
Is the NetBSD operating system losing its competitive edge to Linux and FreeBSD?
Iβm not entirely sure there was ever a βcompetitive edgeβ that NetBSD had over FreeBSDβ¦ and the differences between any of the BSDs and Linux are vast β some of them are important, others not so much...
https://www.quora.com/Is-the-NetBSD-operating-system-losing-its-competitive-edge-to-Linux-and-FreeBSD/answer/Stan-Hanks
#system #justread
Iβm not entirely sure there was ever a βcompetitive edgeβ that NetBSD had over FreeBSDβ¦ and the differences between any of the BSDs and Linux are vast β some of them are important, others not so much...
https://www.quora.com/Is-the-NetBSD-operating-system-losing-its-competitive-edge-to-Linux-and-FreeBSD/answer/Stan-Hanks
#system #justread
EuroBSDCon 2022. NetBSD.
No videos are available yet to provide much-needed context to presentations, but we'll keep you posted...
https://blog.netbsd.org/tnf/entry/eurobsdcon_2022
#eurobsdcon
No videos are available yet to provide much-needed context to presentations, but we'll keep you posted...
https://blog.netbsd.org/tnf/entry/eurobsdcon_2022
#eurobsdcon
Crash Override: NetBSD 5.0-9.3 Coredump Kernel Refcount LPE.
NetBSD 5.0 (released 2009) introduced a change to the in-kernel coredump handler that accidentally introduced a reference count bug on the crashing process' credential. Triggering the vulnerability leads to a use-after-free that can be trivially (though slowly) exploited to achieve local privilege escalation, gaining root from an unprivileged starting point...
https://accessvector.net/2022/netbsd-coredump-lpe
#kernel #system
NetBSD 5.0 (released 2009) introduced a change to the in-kernel coredump handler that accidentally introduced a reference count bug on the crashing process' credential. Triggering the vulnerability leads to a use-after-free that can be trivially (though slowly) exploited to achieve local privilege escalation, gaining root from an unprivileged starting point...
https://accessvector.net/2022/netbsd-coredump-lpe
#kernel #system
π₯2
Hunting kernel lock and interrupt latency.
Too much of the kernel still runs with the kernel lock, which is bad for performance -- and especially for interactive system responsiveness, since most of wscons including keyboard and mouse input still use the kernel lock. On single-CPU systems, the same problem arises with interrupt latency on its own...
https://mail-index.netbsd.org/tech-kern/2022/10/30/msg028499.html
#kernel #troubleshooting #system
Too much of the kernel still runs with the kernel lock, which is bad for performance -- and especially for interactive system responsiveness, since most of wscons including keyboard and mouse input still use the kernel lock. On single-CPU systems, the same problem arises with interrupt latency on its own...
https://mail-index.netbsd.org/tech-kern/2022/10/30/msg028499.html
#kernel #troubleshooting #system
π1
NFS on NetBSD: server and client side.
As pretty much any other UNIX system, NetBSD provides solid in-kernel NFS support. See nfsssvc(2). Since I only run Windows occasionally (mainly for MS-Office or MATLAB) and all of my machines either run NetBSD, Slackware or Tribblix, it makes sense for me to opt for NFS as a distributed file system protocol to share files from my server over the local network...
https://www.unitedbsd.com/d/959-nfs-on-netbsd-server-and-client-side
#nfs #filesystem
As pretty much any other UNIX system, NetBSD provides solid in-kernel NFS support. See nfsssvc(2). Since I only run Windows occasionally (mainly for MS-Office or MATLAB) and all of my machines either run NetBSD, Slackware or Tribblix, it makes sense for me to opt for NFS as a distributed file system protocol to share files from my server over the local network...
https://www.unitedbsd.com/d/959-nfs-on-netbsd-server-and-client-side
#nfs #filesystem
π₯3
NetBSD 10.0 BETA available.
After nearly 3 whole years of development (work started on NetBSD 10 in late 2019), BETA snapshots have finally been published for interested users to test. More changes will be backported from the development branch over the next few months before we tag a final release, so the BETA images will keep getting updated...
https://blog.netbsd.org/tnf/entry/netbsd_10_0_beta_available
#system #beta #release
After nearly 3 whole years of development (work started on NetBSD 10 in late 2019), BETA snapshots have finally been published for interested users to test. More changes will be backported from the development branch over the next few months before we tag a final release, so the BETA images will keep getting updated...
https://blog.netbsd.org/tnf/entry/netbsd_10_0_beta_available
#system #beta #release
π2π1
NetBSD at Reproducible Builds Summit Venice 2022.
The sixth Reproducible Builds Summit took place exactly two months ago in Venice, Italy. These three days of workshops were filled with a succession of interactive sessions, where everyone attending had the opportunity to present or learn about anything related to Build Reproducibility...
https://blog.netbsd.org/tnf/entry/reproducible_builds_summit_venice_2022
#system #reproducible
The sixth Reproducible Builds Summit took place exactly two months ago in Venice, Italy. These three days of workshops were filled with a succession of interactive sessions, where everyone attending had the opportunity to present or learn about anything related to Build Reproducibility...
https://blog.netbsd.org/tnf/entry/reproducible_builds_summit_venice_2022
#system #reproducible
π1
NetBSD HAMMER2.
HAMMER2 file system for NetBSD.
https://github.com/kusumi/netbsd_hammer2
#hammer2 #filesystem
HAMMER2 file system for NetBSD.
https://github.com/kusumi/netbsd_hammer2
#hammer2 #filesystem
π5
NetBSD ASCII flag for the bootloader.
Attempting to draw the NetBSD flag in ASCII and use it when booting in both NetBSD/i386 and NetBSD/amd64 in BIOS mode was thus too tempting, so here we go...
https://www.cambus.net/netbsd-ascii-flag-for-the-bootloader/
#boot #system
Attempting to draw the NetBSD flag in ASCII and use it when booting in both NetBSD/i386 and NetBSD/amd64 in BIOS mode was thus too tempting, so here we go...
https://www.cambus.net/netbsd-ascii-flag-for-the-bootloader/
#boot #system
π3
HTML Embed Code: