NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/60084: swap encryption: per-page tracking seems overengineered



The following reply was made to PR kern/60084; it has been noted by GNATS.

From: Takashi YAMAMOTO <yamt9999%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
	imuwoto%gmail.com@localhost, riastradh%netbsd.org@localhost
Subject: Re: kern/60084: swap encryption: per-page tracking seems overengineered
Date: Fri, 27 Mar 2026 12:40:44 +0900

 On Thu, Mar 26, 2026 at 12:40=E2=80=AFPM Taylor R Campbell via gnats
 <gnats-admin%netbsd.org@localhost> wrote:
 >
 > The following reply was made to PR kern/60084; it has been noted by GNATS=
 .
 >
 > From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
 > To: Takashi YAMAMOTO <yamt9999%gmail.com@localhost>
 > Cc: gnats-bugs%netbsd.org@localhost, kern-bug-people%netbsd.org@localhost,
 >         gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, imuwoto%gmail.com@localhost
 > Subject: Re: kern/60084: swap encryption: per-page tracking seems overeng=
 ineered
 > Date: Thu, 26 Mar 2026 03:36:21 +0000
 >
 >  > Date: Wed, 25 Mar 2026 13:11:01 +0900
 >  > From: Takashi YAMAMOTO <yamt9999%gmail.com@localhost>
 >  >=3D20
 >  > >  > my proposal is just a global knob (vm.swap_encrypt) which can't b=
 e
 >  > >  > changed if any swap devices are configured.
 >  > >
 >  > >  here's a patch.
 >  > >  identical patch is available at
 >  > >  https://github.com/yamt/netbsd-src/commit/471d17d6708677e778c2e6d82=
 afd=3D
 >  5d6041863f10
 >  >=3D20
 >  > Taylor, is this acceptable for you?
 >
 >  Go for it!  But please make sure to test that things work when you set
 >  them up in /etc/sysctl.conf and /etc/fstab, when the vm.swap_encrypt
 >  setting doesn't match the kernel default.
 
 my vm has a swap in /etc/fstab and vm.swap_encrypt=3D0 in
 /etc/sysctl.conf to workaround the bugs.
 it seems working as expected.
 



Home | Main Index | Thread Index | Old Index