Message ID | fcbd1c89-4a64-51e9-cce6-311b0df2a264@ipfire.org |
---|---|
State | Accepted |
Commit | efd508e9f60d17d8d2205ba8ef3f03407c720fa8 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 491nyh3V8Xz3yC0 for <patchwork@web04.haj.ipfire.org>; Tue, 14 Apr 2020 14:33:00 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 491nyf61YGz1Qm; Tue, 14 Apr 2020 14:32:58 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 491nyf0d3kz2yj5; Tue, 14 Apr 2020 14:32:58 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 491nyc1JFXz2xFP for <development@lists.ipfire.org>; Tue, 14 Apr 2020 14:32:56 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 491nyZ2sPSzRp for <development@lists.ipfire.org>; Tue, 14 Apr 2020 14:32:53 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1586874775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kt3RcBf+87rHWzchJK+RxPkGW6keCi2uo2rTtgw6y1g=; b=68lS3h+un0wVj9Jd5BSM60hwkxcCNXYJtcct+XNw3S8XC8t7VJmzIyy6QNzY4HWqkGt0OQ W7ml4n7wajd7ZHBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1586874775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kt3RcBf+87rHWzchJK+RxPkGW6keCi2uo2rTtgw6y1g=; b=uZJv3ypUBy2pXsbLVwbBGWsECYdW1STK32qFAAWPDZar2GIlnxT6U1PmePbK+Du7gUevh3 0E9LVXHrc2hLGB2s/5OGbkbjCAzv9++ChC+KF4j8CDq+5A8Q4qA35TrD99iBPpnRLJv6O2 GrwBCdBW/4K99OpRAqaaNCS0DoqexAU7aV7DLbELXwXGHrRh0uDSp4oDKSPD947MQLe7Uy YsQEKB/szfd714C8P82Zn5TbbaILn12QzXipmOrPvIUkgyRFtBynzq5asnp4zMGq9NpNAs gPzkLOPdDyyAWxudQkvockZfm9xTSvMKxoq9i2AnMiAF2fOWvRjxYkGZ8M3blQ== To: "IPFire: Development-List" <development@lists.ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= <peter.mueller@ipfire.org> Subject: [PATCH] kernel: enable page poisoning on x86_64 Message-ID: <fcbd1c89-4a64-51e9-cce6-311b0df2a264@ipfire.org> Date: Tue, 14 Apr 2020 16:32:47 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=peter.mueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
kernel: enable page poisoning on x86_64
|
|
Commit Message
Peter Müller
April 14, 2020, 2:32 p.m. UTC
This is already active on i586 and prevents information leaks from freed
data.
Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
config/kernel/kernel.config.x86_64-ipfire | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
Hi, Can you perform any performance benchmarks to see how much this impacts IPsec and IPS throughput? -Michael > On 14 Apr 2020, at 15:32, Peter Müller <peter.mueller@ipfire.org> wrote: > > This is already active on i586 and prevents information leaks from freed > data. > > Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org> > Signed-off-by: Peter Müller <peter.mueller@ipfire.org> > --- > config/kernel/kernel.config.x86_64-ipfire | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire > index b16d13504..f6819859d 100644 > --- a/config/kernel/kernel.config.x86_64-ipfire > +++ b/config/kernel/kernel.config.x86_64-ipfire > @@ -6387,7 +6387,9 @@ CONFIG_DEBUG_KERNEL=y > # > # CONFIG_PAGE_EXTENSION is not set > # CONFIG_DEBUG_PAGEALLOC is not set > -# CONFIG_PAGE_POISONING is not set > +CONFIG_PAGE_POISONING=y > +# CONFIG_PAGE_POISONING_NO_SANITY is not set > +CONFIG_PAGE_POISONING_ZERO=y > # CONFIG_DEBUG_PAGE_REF is not set > # CONFIG_DEBUG_RODATA_TEST is not set > # CONFIG_DEBUG_OBJECTS is not set > -- > 2.16.4
Hello Michael, possibly, but I consider this as being too important in order to drop it due to performance concerns. CONFIG_PAGE_POISONING_NO_SANITY reduces some performance overhead of page poisoning, but since this is currently not enabled on i586, I did not use in on x86_64, either. As mentioned, this is active on i586 already and I have not heard of IPFire being unusable on that architecture. :-) Thanks, and best regards, Peter Müller > Hi, > > Can you perform any performance benchmarks to see how much this impacts IPsec and IPS throughput? > > -Michael > >> On 14 Apr 2020, at 15:32, Peter Müller <peter.mueller@ipfire.org> wrote: >> >> This is already active on i586 and prevents information leaks from freed >> data. >> >> Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org> >> Signed-off-by: Peter Müller <peter.mueller@ipfire.org> >> --- >> config/kernel/kernel.config.x86_64-ipfire | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire >> index b16d13504..f6819859d 100644 >> --- a/config/kernel/kernel.config.x86_64-ipfire >> +++ b/config/kernel/kernel.config.x86_64-ipfire >> @@ -6387,7 +6387,9 @@ CONFIG_DEBUG_KERNEL=y >> # >> # CONFIG_PAGE_EXTENSION is not set >> # CONFIG_DEBUG_PAGEALLOC is not set >> -# CONFIG_PAGE_POISONING is not set >> +CONFIG_PAGE_POISONING=y >> +# CONFIG_PAGE_POISONING_NO_SANITY is not set >> +CONFIG_PAGE_POISONING_ZERO=y >> # CONFIG_DEBUG_PAGE_REF is not set >> # CONFIG_DEBUG_RODATA_TEST is not set >> # CONFIG_DEBUG_OBJECTS is not set >> -- >> 2.16.4 >
Hey, > On 14 Apr 2020, at 15:36, Peter Müller <peter.mueller@ipfire.org> wrote: > > Hello Michael, > > possibly, but I consider this as being too important in order to drop it due > to performance concerns. CONFIG_PAGE_POISONING_NO_SANITY reduces some performance > overhead of page poisoning, but since this is currently not enabled on i586, > I did not use in on x86_64, either. Hmm, I am really not happy with such inconsistent configurations across multiple architectures. This is either a feature that we want or not, but we do not want it on one platform and not on the other. Although I would consider the performance overhead on x86_64 much smaller than i586. PAE might have the same advantage than x86_64. > As mentioned, this is active on i586 already and I have not heard of IPFire > being unusable on that architecture. :-) Well, let’s say it is not running that well any more. -Michael > > Thanks, and best regards, > Peter Müller > >> Hi, >> >> Can you perform any performance benchmarks to see how much this impacts IPsec and IPS throughput? >> >> -Michael >> >>> On 14 Apr 2020, at 15:32, Peter Müller <peter.mueller@ipfire.org> wrote: >>> >>> This is already active on i586 and prevents information leaks from freed >>> data. >>> >>> Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org> >>> Signed-off-by: Peter Müller <peter.mueller@ipfire.org> >>> --- >>> config/kernel/kernel.config.x86_64-ipfire | 4 +++- >>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> >>> diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire >>> index b16d13504..f6819859d 100644 >>> --- a/config/kernel/kernel.config.x86_64-ipfire >>> +++ b/config/kernel/kernel.config.x86_64-ipfire >>> @@ -6387,7 +6387,9 @@ CONFIG_DEBUG_KERNEL=y >>> # >>> # CONFIG_PAGE_EXTENSION is not set >>> # CONFIG_DEBUG_PAGEALLOC is not set >>> -# CONFIG_PAGE_POISONING is not set >>> +CONFIG_PAGE_POISONING=y >>> +# CONFIG_PAGE_POISONING_NO_SANITY is not set >>> +CONFIG_PAGE_POISONING_ZERO=y >>> # CONFIG_DEBUG_PAGE_REF is not set >>> # CONFIG_DEBUG_RODATA_TEST is not set >>> # CONFIG_DEBUG_OBJECTS is not set >>> -- >>> 2.16.4 >>
Hello Michael, > Hey, > >> On 14 Apr 2020, at 15:36, Peter Müller <peter.mueller@ipfire.org> wrote: >> >> Hello Michael, >> >> possibly, but I consider this as being too important in order to drop it due >> to performance concerns. CONFIG_PAGE_POISONING_NO_SANITY reduces some performance >> overhead of page poisoning, but since this is currently not enabled on i586, >> I did not use in on x86_64, either. > > Hmm, I am really not happy with such inconsistent configurations across multiple architectures. > > This is either a feature that we want or not, but we do not want it on one platform and not on the other. Yes, I am currently trying to clean this mess up as we have quite a bunch of those. Since we probably need to have a look at each in detail, I guess opening bugs makes more sense here... > > Although I would consider the performance overhead on x86_64 much smaller than i586. PAE might have the same advantage than x86_64. Yes, I think so too. > >> As mentioned, this is active on i586 already and I have not heard of IPFire >> being unusable on that architecture. :-) > > Well, let’s say it is not running that well any more. I would be surprised to hear that page poisoning is the sole reason for this. :-) Thanks, and best regards, Peter Müller > > -Michael > >> >> Thanks, and best regards, >> Peter Müller >> >>> Hi, >>> >>> Can you perform any performance benchmarks to see how much this impacts IPsec and IPS throughput? >>> >>> -Michael >>> >>>> On 14 Apr 2020, at 15:32, Peter Müller <peter.mueller@ipfire.org> wrote: >>>> >>>> This is already active on i586 and prevents information leaks from freed >>>> data. >>>> >>>> Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org> >>>> Signed-off-by: Peter Müller <peter.mueller@ipfire.org> >>>> --- >>>> config/kernel/kernel.config.x86_64-ipfire | 4 +++- >>>> 1 file changed, 3 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire >>>> index b16d13504..f6819859d 100644 >>>> --- a/config/kernel/kernel.config.x86_64-ipfire >>>> +++ b/config/kernel/kernel.config.x86_64-ipfire >>>> @@ -6387,7 +6387,9 @@ CONFIG_DEBUG_KERNEL=y >>>> # >>>> # CONFIG_PAGE_EXTENSION is not set >>>> # CONFIG_DEBUG_PAGEALLOC is not set >>>> -# CONFIG_PAGE_POISONING is not set >>>> +CONFIG_PAGE_POISONING=y >>>> +# CONFIG_PAGE_POISONING_NO_SANITY is not set >>>> +CONFIG_PAGE_POISONING_ZERO=y >>>> # CONFIG_DEBUG_PAGE_REF is not set >>>> # CONFIG_DEBUG_RODATA_TEST is not set >>>> # CONFIG_DEBUG_OBJECTS is not set >>>> -- >>>> 2.16.4 >>> >
diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire index b16d13504..f6819859d 100644 --- a/config/kernel/kernel.config.x86_64-ipfire +++ b/config/kernel/kernel.config.x86_64-ipfire @@ -6387,7 +6387,9 @@ CONFIG_DEBUG_KERNEL=y # # CONFIG_PAGE_EXTENSION is not set # CONFIG_DEBUG_PAGEALLOC is not set -# CONFIG_PAGE_POISONING is not set +CONFIG_PAGE_POISONING=y +# CONFIG_PAGE_POISONING_NO_SANITY is not set +CONFIG_PAGE_POISONING_ZERO=y # CONFIG_DEBUG_PAGE_REF is not set # CONFIG_DEBUG_RODATA_TEST is not set # CONFIG_DEBUG_OBJECTS is not set