From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D1E1C433F5 for ; Mon, 13 Sep 2021 15:41:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2CE2D60F6F for ; Mon, 13 Sep 2021 15:41:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2CE2D60F6F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zt1XA1WViqNvBhoHEGueXWFAeppdrLro19/6pYowzJE=; b=KhS5N17ZBjTlKB PvKpNv5s8Lha8EM0Bbsix4aIR8Otnki3nxcN7oOJmA+eDYRtTxqEmHwGowf87bltwXjkpAOCtcIzB h5l7RRENuZVtGvsPrCUQySM87Q8rSm3DT2InTAPvRrHKShFu7iIHCHBCGBOjLurKYrH/yEv2p7vEE Rk03o1EU1cwjlicw0yLKVZJDxHX7Jni0up/U6KyEdrrJfbizY2geIIWVwcXnoDNf4RpcSoeJ6wblo pzP6EBEOozSMgU2OP4dOW2CPdpYf2XvC8ENrdq5bspvnGi8eTeYE+NgmCfhgMPza2L4VprRe7Joik 1Xwc36QmuVwJW4izORZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPo4J-002DVk-UY; Mon, 13 Sep 2021 15:40:28 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPo4F-002DUx-PF for linux-arm-kernel@lists.infradead.org; Mon, 13 Sep 2021 15:40:25 +0000 Received: by mail-pg1-x532.google.com with SMTP id 17so9831548pgp.4 for ; Mon, 13 Sep 2021 08:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=UTBNbNzmJ0V4N4GAfP+8kqFRPq2wx26waWFlVgJOM28=; b=FMBStT2G9OSQXJXaddJUgaRx0dnRtSiqgiLCdMJNAt/AA/SlaREMi1pult+AaP8SWt HLRav9CvEnwacRYXtTSm1Ar6F1MPBlgLWVectakIiX1KuNhfBV613jNtF17Mi9zxXxom F6N9FNQLvUHy/M2K6TJkREADN1m9C/T6P40Dw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UTBNbNzmJ0V4N4GAfP+8kqFRPq2wx26waWFlVgJOM28=; b=JmfiqDETHeH/hSnkFd5UR/iQqQwotF+UDwQPgBr7pqg9Ncz8N9pQuNHZ18UIPYRrNp pyUBXZc2SPhSO1tVPMpHVEmm88tjFcbU1wTPWbvtI1maLhpa6GqZAl8liihz6SBdE+uH cGEkb+8B8kw4b1FEZT7teORFBkrOoWYA118Ln0GVXo8MhQC0IjBhKt3tboBuxw693yEL udErP2TS9j0zV0oDZjnqQ0PcrX4Fk0IdZmcLnwEvlaTNk5S/0tqoEDweCHcaJGegWwK9 VkzSYkALEtbWyAUkw1SXSy3uCdVw1zWIjBfOtriL8rAYRJ0UL+6IHbyGEP0FiT2b7tFE NlYw== X-Gm-Message-State: AOAM533ZPEziD4NaOC8Qw5IZRU2ieWmJoYuIHa3pCjiug/89VMzPaUH2 hmmGGbCobo6y2ObmOGDt1HjiDQ== X-Google-Smtp-Source: ABdhPJw87Aajx2YP8qfFJjqkT0VA5LZvsh4HrN7EwJFSL9zM4eywWNXfayU2iN8JOo1mstA1j3vW/Q== X-Received: by 2002:a05:6a00:2184:b0:3f4:cac4:cf41 with SMTP id h4-20020a056a00218400b003f4cac4cf41mr204844pfi.6.1631547619576; Mon, 13 Sep 2021 08:40:19 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j128sm7659744pfd.38.2021.09.13.08.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 08:40:19 -0700 (PDT) Date: Mon, 13 Sep 2021 08:40:18 -0700 From: Kees Cook To: Ard Biesheuvel Cc: linux-arm-kernel@lists.infradead.org, Keith Packard , Russell King , Arnd Bergmann , Linus Walleij Subject: Re: [PATCH v4 0/5] ARM: support THREAD_INFO_IN_TASK Message-ID: <202109130839.05A4A63A@keescook> References: <20210913104001.3043132-1-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210913104001.3043132-1-ardb@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210913_084023_880551_DE3E2BEC X-CRM114-Status: GOOD ( 14.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Sep 13, 2021 at 12:39:56PM +0200, Ard Biesheuvel wrote: > Placing thread_info in the kernel stack leaves it vulnerable to stack > overflow attacks. This short series addresses that by using the existing > THREAD_INFO_IN_TASK infrastructure. > > This v4 is a follow-up to Keith's v3 [0], which did not address all > concerns I raised in response to v2. After collaborating with Keith > off-list, we decided that I should go ahead and post our joint v4. Great! Thanks for working through this. :) -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel