Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3315476pxb; Fri, 5 Nov 2021 13:30:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3dlUTWhMkEKc06aZ49dvGK0fUNoCk/XUFi0pQ8Huxak0upZB41/rPzT+cybSJP+Vr0Q9K X-Received: by 2002:a05:6602:26c8:: with SMTP id g8mr1181453ioo.74.1636144229619; Fri, 05 Nov 2021 13:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636144229; cv=none; d=google.com; s=arc-20160816; b=vWgJVjzM6UI1tK+Go2d8fJBPL7914WgKvlqC/ioOAA1FBC3AWRVvohpfrmjVsWvNL0 L61O/4eaiVkjdr1PtpcLI2Gj2QOQ0BVmuP3oz1jkTOOdzIDyfyMIFJBTMNlp7nl328ep 16BFNNpzpqYu/hWorGo0ukXOJyyxHKFcK3wQ1XBNrsy82cmq9BeUTW63RyaKjE9pFREH p+tP90YlXikWGHJdl9cVxH5OwCirfL87wADo9QXJAD7iZhCFkJCw4l/WUJjmUcdRKoU7 CfBZM3K/sbisbKmywWpui+UzNrkIw8p34CXr9Pk7k4SZJLNmJTVwFkhZK4HCa0wCA32V 0sHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9BE6s8fqPo7si+9hU4rA5Zx86f+DZzTQse4zPUGhzI0=; b=yLRB8agh2msu0WoxCbNDB6QQAnPSMXvjxMnGiSDKdzT6s0pQEb9zvtbLCm/BlhZSll DocY4Tu3wDPgyOKAu81hZ40unn4zcAdKtKmPDqCy1ZkBao4ABpP04yxvEeVAYBAoKNaI /2sFXcURRcO4y0idVsmgu5uk/RSd6umZq0DJxiU6ZXc/jCeuvHEmU8Jh3YKcgzTmuA9o Hp6bBYwiIB3+GBsEuhh+lGyLz8A32ebv7X7nFEGqHj/XrX+Or2phpzb/CAFLchxIQSJb Be33T1Ybco9BM14MvrF9gryrqFLHyNZtvkzbl1WKBTPqN3gFrncFCD+IQgbfq5+mzyU9 /rig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K2JJlQhf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h25si11401529iob.58.2021.11.05.13.30.16; Fri, 05 Nov 2021 13:30:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K2JJlQhf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232810AbhKET55 (ORCPT + 99 others); Fri, 5 Nov 2021 15:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbhKET54 (ORCPT ); Fri, 5 Nov 2021 15:57:56 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B91C061205 for ; Fri, 5 Nov 2021 12:55:16 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id p8so7874615pgh.11 for ; Fri, 05 Nov 2021 12:55:16 -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=9BE6s8fqPo7si+9hU4rA5Zx86f+DZzTQse4zPUGhzI0=; b=K2JJlQhfcPmTgqNvZMN022hVqYO6eH/8AxgqtQORXguKa8NM7Wo9wB2mxAZqdkfBJP ppNT5YQE5mZot/jPo/6TlUfDTaT2X/TQF4QITNnD9iyLfm2WK1BHpKNEffle0LCGh2b4 sndnUuP6PC/3WEqL8sKDAROrX/WuH+koIv7G8= 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=9BE6s8fqPo7si+9hU4rA5Zx86f+DZzTQse4zPUGhzI0=; b=2hxz7mjXllRrdHk7R1PdfFjpJkjKqFo7miHMvtzewhfijkjgtNhIEkBi9hVzANBEdy x1chJL8kpnL4dS5yzUSbWsZJFiOnkplDV7E42pzau1Mf0tEtAeEFi7pOII13uVu+fVL6 Yv2+l9OfXRlVBClQY9hGpC0i/NrFEPet1FPqlOrRJEpxfCtTwomC9uvGpTz1iedCh3Wn mxzARxG8RyDud7shDS/K8tv9DJXEkPOrY1PsB2uma01ryQMwIyPJVoY0XzlFvniOMdL6 gh3dDNI3GahMRuaOOobOd0Q6csnZxoo52bHukUOUDTL7MpmGYM7etCu+NODuHAgbL6M8 L+QQ== X-Gm-Message-State: AOAM531sPeWN9glL9xQltOLLzE3ak04r2wgGxkxSYCyk8SLSyWgvYJjI vAgLU1CXEl3r/EQoDdc3QtxVvA== X-Received: by 2002:a62:ee10:0:b0:49f:9994:354e with SMTP id e16-20020a62ee10000000b0049f9994354emr7956301pfi.21.1636142116413; Fri, 05 Nov 2021 12:55:16 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d13sm8252555pfu.196.2021.11.05.12.55.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Nov 2021 12:55:16 -0700 (PDT) Date: Fri, 5 Nov 2021 12:55:15 -0700 From: Kees Cook To: Ard Biesheuvel Cc: Guenter Roeck , Linus Torvalds , Linux Kernel Mailing List , Helge Deller , linux-parisc Subject: Re: parisc build failures in mainline kernel Message-ID: <202111051254.1AAE34273@keescook> References: <20211104031554.GA34798@roeck-us.net> <77dc70f4-879a-eb5c-2dd6-682b4c7cfd03@roeck-us.net> <202111051242.86E9DBF@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 05, 2021 at 08:43:52PM +0100, Ard Biesheuvel wrote: > On Fri, 5 Nov 2021 at 20:43, Kees Cook wrote: > > > > On Wed, Nov 03, 2021 at 09:45:47PM -0700, Linus Torvalds wrote: > > > On Wed, Nov 3, 2021 at 9:30 PM Guenter Roeck wrote: > > > > > > > > Unfortunately not. With that patch it complains about task_struct. > > > > > > Gaah. You'll need something like this too > > > > > > - DEFINE(TASK_CPU, offsetof(struct task_struct, cpu)); > > > + DEFINE(TASK_CPU, offsetof(struct task_struct, thread_info.cpu)); > > > > > > in arch/parisc/kernel/asm-offsets.c. > > > > > > And really, it should probably be renamed as TASK_TI_CPU, but then you > > > have to rename all the uses too. > > > > > > There might be other details like that lurking. > > > > I'll check this out too if Ard doesn't beat me to it. Thanks for the > > investigation and sorry for the breakage! > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2a2e8202c7a16a85a881ad2b6e32ccbebdc01dda Heh. Ard did, in fact, beat me to it. Thank you! :) -Kees -- Kees Cook