220 40353 <CAFdMc-3ow7TvHO+2Y9Ww12PwGRj6H5hq3aennxt2Jq7-XGLzmw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Daniel Gutson <danielgutson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: more security concerns
Date: Sun, 7 Oct 2018 01:54:23 -0300
Lines: 154
Approved: news@gmane.org
Message-ID: <CAFdMc-3ow7TvHO+2Y9Ww12PwGRj6H5hq3aennxt2Jq7-XGLzmw@mail.gmail.com>
References: <CAFdMc-0NqfbqeOhhH1YiVGxDRVPv7COKNqge3mLu8UE8SgcXNw@mail.gmail.com>
 <8fa2ebcf-19c5-4b32-a8c6-9fa503010467@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="00000000000037717905779c4dfa"
X-Trace: blaine.gmane.org 1538887954 10014 195.159.176.226 (7 Oct 2018 04:52:34 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 7 Oct 2018 04:52:34 +0000 (UTC)
To: std-proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDE3NBMV6UFBBEFD43OQKGQETNHWLEI@isocpp.org Sun Oct 07 06:52:30 2018
Return-path: <std-proposals+bncBDE3NBMV6UFBBEFD43OQKGQETNHWLEI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lj1-f198.google.com ([209.85.208.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDE3NBMV6UFBBEFD43OQKGQETNHWLEI@isocpp.org>)
	id 1g913O-0002VR-MY
	for gclcip-std-proposals@m.gmane.org; Sun, 07 Oct 2018 06:52:30 +0200
Original-Received: by mail-lj1-f198.google.com with SMTP id s7-v6sf1183718ljh.3
        for <gclcip-std-proposals@m.gmane.org>; Sat, 06 Oct 2018 21:54:41 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1538888081; cv=pass;
        d=google.com; s=arc-20160816;
        b=qjiHYUkERK1EHfqO6JIW+bTtzMHiH0OlaSiuiKezBhVNvD0VtAhHdQFGhWVfrfGK//
         YbXIDFPsj9Sdangwl2Ft32Gs4fMPPi7vJx2ZrQf0akpAjtLXqh/BLYnti6w7NuBHIzj0
         aGi55Wq+nclwXdQ0iN14kj8qyIfD+5eK6LX3AW2Zjgmo18iWVMkJ9Bioa7SJd00H2u2W
         Fi41MMGZXM2dwk3xY6l2CvD9R/wbLYD4JqaXJmizUraJFRdpm3ydGTvOs87+NlADfdu/
         3L6Os7nCH0wBnFY2NUfLq8TEYQandu+RZu4JzsF5Jqcm4CACfO6Z/3MoWiS9zGOlqtAb
         I61w==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:dkim-signature;
        bh=NCGpPhFDCudb1uJRIZF738AoKUnwwRU+moSQVhGeoF8=;
        b=h3Xy4Q7b5OIA/FQ7NaoWnmIwbWdZ1te0x2IljlUp3nnItL75Ezbd120tzpX8g9FO0B
         l2eCo+khEr/xU1kDVRjLXx9vju8zvix2rLbr9gnx9ICo+ytaYUDL8mbCRABQEFlrAPsL
         fjjjX/QQRgVCu9UAfWaYFymO0YdTrPs68P+NeLtRY2G61XMIvon93o+EhPGC+drdNXNb
         VlhY7WvfCQlEdpNz7XZ9NHF7giWrYK4BOdNk87g2Te2ZNS3VA5F/lBn16A9zqBuiIPHK
         pHPIhciAJxPDFSr2Hn6OjsHM+P0lmR1fec32xZtv5eel609bBnWSO6G0eBy6hZWtDWFZ
         kPHg==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=GZYL2dko;
       spf=pass (google.com: domain of danielgutson@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=danielgutson@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=NCGpPhFDCudb1uJRIZF738AoKUnwwRU+moSQVhGeoF8=;
        b=0KAtgKvID/fugPwEecdJgK5tqMGumQBrtEFhFWjekjrqI2LL1l4f2c2e5Z/u/EGpIi
         kHF0eCV6XW1fWSmu2FzrPP4RqA7134o/RfY2NO1od6ati3GCdkQ0uasGwJEDzbefcHul
         qOVi4kdfut2WDAebHF/wbPJBf2jmu2h9lfu6WCiDQAeihTMxVJFPf1f7iF5DEiQXVBUi
         1LFPV/HUOHtIkwjPZ8cGPsEKBegG+2NO2lKR1X7kmNZnEBJsM4zrbyLmsLt1W9jBYDMR
         mRENy7xS7mtJBvVH7qrqMlQ/MvxeHY4V4AeY00QpHVIq30wNJZBZSmhZBPqFXnxeEUaH
         ghIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=NCGpPhFDCudb1uJRIZF738AoKUnwwRU+moSQVhGeoF8=;
        b=QhC9MPkMsv49RvI08mqvJ/HbNorLBBjwz0haBm6N+Y0kCcopf2bHs8/S1HD7B5YU04
         qfScyH7X0vktp21VUWDia7oOl9XQ7uS46TMobam0KUwZw7oQrYrct+l071iRxYo6UAgy
         gEMv5J8yb5/V3HEglB+4f9zoWExkhtamL8ytdIvl/NT5sbTTc7jvbpPyCahVJJzWBwfl
         HV9A0wq6Kmgjte6gElDVg2wmUH+P95eouSqczKfQqJUClEGvUe5z8Uq6zezShl/JUWGr
         t8WaW507XFBju4I9VLBZSRrqrGskbRKNJuRcb01W+gNEojaZS0J9qf5e+fnVAn7uBp6a
         yBlw==
X-Gm-Message-State: ABuFfoijxR6OMf/UiF7MbWGyAzHjrgu20eq9FJ8zcQPRv4wNBwvUjpgX
	e/rHVZSBWG1K4yGarS4nocZDCQ==
X-Google-Smtp-Source: ACcGV626AtKoF7lF5lS35jBaS+4wMiB4iIHXlm6djFHKxmsP8Ra8+BvSIwwxBI0FPZs/MJSQQDpEVg==
X-Received: by 2002:a2e:8516:: with SMTP id j22-v6mr106268lji.27.1538888081539;
        Sat, 06 Oct 2018 21:54:41 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a2e:2d3:: with SMTP id y80-v6ls625058lje.16.gmail; Sat, 06
 Oct 2018 21:54:39 -0700 (PDT)
X-Received: by 2002:a2e:7608:: with SMTP id r8-v6mr2234517ljc.175.1538888079615;
        Sat, 06 Oct 2018 21:54:39 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1538888079; cv=none;
        d=google.com; s=arc-20160816;
        b=UIl0X8IxUag9Us/JL+nsFEyVRFLAhNBkegTxdQ/2IAQwQY0FvKDkcou/gMhrBobYLM
         3ASVX6CbEvtu2w5JzAv1WEQ29l3KRGWse8Pp6Vsauxtr9ky85iC5TQSwinGSv4InaCC3
         hNwu/5G0Yp8Bj0cFVzz+G2c9l3vZAcQLfOrj1zKhGHfOgX6WB+s2pxKMXmOpcxnkt0hj
         L50MwdUEFDBVN1Bo7V4KKzWlRYavv25/tKnISp7M6Lzr2dBfMXYl1I02HIJWInAFmLOk
         6PVhV9ssBib49TnwsOoj/UEF0YoNCSJ6cxF6NF8FOaVWIWByaodUN4gS8ctQUYuMCumx
         vN3w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature;
        bh=m/2fPbvgejeSNJiXKpD1nOrkJ+0oEmCPJCsFHi7IBYA=;
        b=kKxLwjN2ZqonYEtnw2vkp/cPuGqEIb4jP2ZnqepCYvq5LnocOXT7JldQux+vMyipP4
         c2K12emGbyZC93cHoh3o3e1DROFAHPI+IS3JpBPL/A1/BubI9wqALV8kbENA5VTp0KBt
         yMiOoYZqWKfgSRHH+hN3TrVBx22UZbeudL6O6yaQdA9QQDjwh+uUze0J/ctiVV/81OEC
         EaleoR6qCTUFgyz5g5u1Zd4p56UpOQQ3pbEb1iH/DZOdY+MELKqOlsJf70m7SHM6yffl
         0U7X3rLEd3p4y50Gmii3QyBCEGPDPOtzHLfJhHlHSAeeD0q0Al6T5+WjvAzesdATYV5H
         tMPw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=GZYL2dko;
       spf=pass (google.com: domain of danielgutson@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=danielgutson@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id z9-v6sor764010ljz.29.2018.10.06.21.54.39
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Sat, 06 Oct 2018 21:54:39 -0700 (PDT)
Received-SPF: pass (google.com: domain of danielgutson@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a2e:8ec6:: with SMTP id e6-v6mr9784584ljl.166.1538888077634;
 Sat, 06 Oct 2018 21:54:37 -0700 (PDT)
In-Reply-To: <8fa2ebcf-19c5-4b32-a8c6-9fa503010467@isocpp.org>
X-Original-Sender: danielgutson@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=GZYL2dko;       spf=pass
 (google.com: domain of danielgutson@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=danielgutson@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:40353
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40353>

--00000000000037717905779c4dfa
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

El lun., 1 de oct. de 2018 a la(s) 06:28, <olaf@join.cc> escribi=C3=B3:

>
>
> Op vrijdag 28 september 2018 13:14:06 UTC+2 schreef Daniel Gutson:
>>
>> Again, on the DSE related optimizations.
>>
>> I'm at the Ekoparty where I will show a presentation about security
>> vulnerabilities caused by compiler optimizations. The subject is more an=
d
>> more serious (e.g. [1]).
>>
>> I want to propose to allow [[nodiscard]] in individual expressions, such
>> as calls to memset(), std::fill_n, and assignments (DSE happens with bot=
h
>> memory and registers).
>>
>> What's DSE?
> And what's [1]?
>

Sorry for the lack of context, I strongly suggest people to take a look at
these papers without further participating in this discussion:
https://www.usenix.org/system/files/conference/usenixsecurity17/sec17-yang.=
pdf
https://nebelwelt.net/publications/files/15LangSec.pdf

Comments:
https://wiki.sei.cmu.edu/confluence/display/c/MSC06-C.+Beware+of+compiler+o=
ptimizations
There are plenty of issues filed to the gcc and clang issue trackers about
this that were systematically closed as invalid. But the problem remains
and is deadly serious. I did a demonstration at the Ekoparty of an exploit
using this.


>
>
> --
> You received this message because you are subscribed to the Google Groups
> "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> To view this discussion on the web visit
> https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/8fa2ebcf-19c=
5-4b32-a8c6-9fa503010467%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/8fa2ebcf-19=
c5-4b32-a8c6-9fa503010467%40isocpp.org?utm_medium=3Demail&utm_source=3Dfoot=
er>
> .
>


--=20
Who=E2=80=99s got the sweetest disposition?
One guess, that=E2=80=99s who?
Who=E2=80=99d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?

--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/CAFdMc-3ow7TvHO%2B2Y9Ww12PwGRj6H5hq3aennxt2Jq7-X=
GLzmw%40mail.gmail.com.

--00000000000037717905779c4dfa
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><br><br=
><div class=3D"gmail_quote"><div dir=3D"ltr">El lun., 1 de oct. de 2018 a l=
a(s) 06:28, &lt;olaf@join.cc&gt; escribi=C3=B3:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><br><br>Op vrijdag 28 sep=
tember 2018 13:14:06 UTC+2 schreef Daniel Gutson:<blockquote class=3D"gmail=
_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204=
,204);padding-left:1ex"><div dir=3D"ltr">Again, on the DSE related optimiza=
tions.<div><br></div><div>I&#39;m at the Ekoparty where I will show a prese=
ntation about security vulnerabilities caused by compiler optimizations. Th=
e subject is more and more serious (e.g. [1]).</div><div><br></div><div>I w=
ant to propose to allow [[nodiscard]] in individual expressions, such as ca=
lls to memset(), std::fill_n, and assignments (DSE happens with both memory=
 and registers).</div><div><br></div></div></blockquote><div>What&#39;s DSE=
?</div><div>And what&#39;s [1]?</div></div></blockquote><div><br></div><div=
>Sorry for the lack of context, I strongly suggest people to take a look at=
 these papers without further participating in this discussion:=C2=A0</div>=
<div><a href=3D"https://www.usenix.org/system/files/conference/usenixsecuri=
ty17/sec17-yang.pdf">https://www.usenix.org/system/files/conference/usenixs=
ecurity17/sec17-yang.pdf</a><br></div><div><a href=3D"https://nebelwelt.net=
/publications/files/15LangSec.pdf">https://nebelwelt.net/publications/files=
/15LangSec.pdf</a><br></div><div><br></div><div>Comments:=C2=A0<a href=3D"h=
ttps://wiki.sei.cmu.edu/confluence/display/c/MSC06-C.+Beware+of+compiler+op=
timizations">https://wiki.sei.cmu.edu/confluence/display/c/MSC06-C.+Beware+=
of+compiler+optimizations</a></div><div>There are plenty of issues filed to=
 the gcc and clang issue trackers about this that were systematically close=
d as invalid. But the problem remains and is deadly serious. I did a demons=
tration at the Ekoparty of an exploit using this.</div><div>=C2=A0</div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>=C2=A0=
</div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_=
blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/8fa2ebcf-19c5-4b32-a8c6-9fa503010467%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/8fa2ebcf-19c5-=
4b32-a8c6-9fa503010467%40isocpp.org</a>.<br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
 class=3D"gmail_signature">Who=E2=80=99s got the sweetest disposition?<br>O=
ne guess, that=E2=80=99s who?<br>Who=E2=80=99d never, ever start an argumen=
t?<br>Who never shows a bit of temperament?<br>Who&#39;s never wrong but al=
ways right?<br>Who&#39;d never dream of starting a fight?<br>Who get stuck =
with all the bad luck? </div></div></div></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAFdMc-3ow7TvHO%2B2Y9Ww12PwGRj6H5hq3a=
ennxt2Jq7-XGLzmw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-3ow7TvHO=
%2B2Y9Ww12PwGRj6H5hq3aennxt2Jq7-XGLzmw%40mail.gmail.com</a>.<br />

--00000000000037717905779c4dfa--

.
