Received: by 10.223.185.116 with SMTP id b49csp3769194wrg; Tue, 13 Feb 2018 07:29:58 -0800 (PST) X-Google-Smtp-Source: AH8x2250pKQF7pFWF7j+4OuHsjij39FD22iNXIK67WPv0pJNS6qnhwJjQwWm46LT+4YObF6UQU48 X-Received: by 10.98.44.77 with SMTP id s74mr1611556pfs.3.1518535798314; Tue, 13 Feb 2018 07:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518535798; cv=none; d=google.com; s=arc-20160816; b=CmKd9bC3HhljGml3jSM8E/6yhC0d8WccaIJOxtKmmr+alUe0zlhpOIZBKzLt+7ObpX W6/p6LRWQKTz28zo+P4ioxQvtDG9kV0MNf2JRU01LFHGyjIEmX1jwB2y93eysvqz3Nqw G6A023cNtaD8ebNcpwLVNY7tpz5j/leWHuKUqQo1nNCU98x8lv87cvBj2cGg2j2fIUrE D1ubvGyZngW4SpxuQ1/P6tK9fC9WnT4wW2Myv6PGmlRJbRknNtNgDFes6+Heg+o3gf3k kt2Z0i6k+gW3rbgdERPVNb/+E0OL5zId1sz/jgMABleFh2+weTdn+6h8nrBRnNLuiVq5 uwxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:mime-version:dkim-signature:arc-authentication-results; bh=3IuKuKU3aayf7XKZAyDzdLHQVaBTYIy1a1XdRp9wLSA=; b=piSiyWyTXYZf+A0fvO8oW8ENFHBEpU6d1oxO9V+Ktc5b3rshqzYGmYP5qcb6GtEman eBZop8p1gguIb7MiMqgVCKlRPxC+TO0lVycNW5z0wO5zT9XC1Pf8vKRrkDZ/ZqeGHVk+ tYexebA+BUZq9wvn/gHvMEetZiisDgQP+t30YrgF6mONKTV1EsWVaeEiWRkBU8wYuBVL tBq3fAhtUd6MYc2wBQUQ8KyRJTU0nbVyAdEwGPv/osRHHOZDDxOmqOL3/qZM7UCY/5Tc 9SDnignsNC3wLP5JM8zJorPQF8L0bLGjI2hnBGgRR0nJxPL1DcteFSQXcNRHZOskiKRV fouw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IawMQJ7J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m63-v6si72268pld.753.2018.02.13.07.29.43; Tue, 13 Feb 2018 07:29:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IawMQJ7J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965174AbeBMP1w (ORCPT + 99 others); Tue, 13 Feb 2018 10:27:52 -0500 Received: from mail-io0-f178.google.com ([209.85.223.178]:35162 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964869AbeBMP1u (ORCPT ); Tue, 13 Feb 2018 10:27:50 -0500 Received: by mail-io0-f178.google.com with SMTP id m11so21645279iob.2 for ; Tue, 13 Feb 2018 07:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to:cc; bh=3IuKuKU3aayf7XKZAyDzdLHQVaBTYIy1a1XdRp9wLSA=; b=IawMQJ7JZiE8Gb0Hg0TpZ+SNCsRQ4iqw83HcOWPYJA/ULf1Jef8VHhH1y+kiT/Il0U 0AdDpLND2R4Khw/dpZUG5MpvQuyPyDeRptAvdZOtFN4dB4wXyr7pSShAghxGBLmVa+wN 4+LkBdH5p1RYMZgTCtPKgnTVJdWnNEYf+GlbSPSWYFVX4hH3ixWwttXR9L3D3pVfggjo csQhtl8mz0NSbnAYBqRppC2kpL4Ol/0mk5C323SDbsrfjsEi9FxRLtveFhiIas7nVRod yJ4C/7CWlza1CJxtjyQY7zALXNA+d6RcgKZn0km6bFZi8v3J6AxJ4f57GU8c9ke1rvKJ z0Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to:cc; bh=3IuKuKU3aayf7XKZAyDzdLHQVaBTYIy1a1XdRp9wLSA=; b=A/OEoa+fJhN1vzqWTOePFlVeadZ0rlg4sK1gFhOeP6WTAfbb9iJ5z7jQffqu9bEK5P BafgvgxLYA7JqqDGXTfMcpohD9lU1rUrNR6iTDpihzboA5cY3qodSy/qB1K8OzXRQDGI ILk9vbtZYwdckZcp2psX0dZtccjZSgZN7XyBolZhVe/g+Z81AOY4E8tr5WbRF3e408AZ Z6uIiuRbNGZTE/OiaALxpKJ7TXws82ANQb53wBtW9RFKIJNKsaMM/k322R/XiadKXens Iztr/61sRaRuQMSkLXT6yLlsNnp/4oPEDIis4soQ6bNTcqhhX6jL8Ot8Dm7BFpcWM8Zn bB6g== X-Gm-Message-State: APf1xPAtAVj5tEHSLIHr1AMddTDFHqMWOSGc810ugX4N48ZsB1zIyGJK cLqebS+MDfvnr/uX7wa8RBW1ig1rXAUWTCsEXA== X-Received: by 10.107.138.13 with SMTP id m13mr1764639iod.81.1518535669723; Tue, 13 Feb 2018 07:27:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.153.2 with HTTP; Tue, 13 Feb 2018 07:27:29 -0800 (PST) Reply-To: whiteheadm@acm.org From: tedheadster Date: Tue, 13 Feb 2018 10:27:29 -0500 Message-ID: Subject: Re: move stack-protector availability out of Kconfig To: Kees Cook Cc: akpm@linux-foundation.org, yamada.masahiro@socionext.com, Arnd Bergmann , josh@joshtriplett.org, npiggin@gmail.com, Laura Abbott , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kees, I have a question about this patch. When I configure a kernel for ARCH=i386 it sets these Kconfig variables this way: HAVE_CC_STACKPROTECTOR=y CC_STACKPROTECTOR_AUTO=y CC_STACKPROTECTOR_NONE=n CC_STACKPROTECTOR_REGULAR=n CC_STACKPROTECTOR_STRONG=n It seems to me that at least _one_ of the last _three_ variables should be set to 'y' with the defaults that are being set, probably CC_STACKPOINTER_NONE=y. All of them being 'n' doesn't make sense to me. As a side note, these defaults set X86_32_LAZY_GS=n (depends on X86_32 [=y] && CC_STACKPROTECTOR_NONE [=n]) which causes the x86_32 kernels to hang. I'll discuss that in a different email thread, but just wanted to say how I came upon this. - Matthew Whitehead