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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3E7AC433EF for ; Tue, 10 May 2022 07:35:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231615AbiEJHji (ORCPT ); Tue, 10 May 2022 03:39:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241433AbiEJHcF (ORCPT ); Tue, 10 May 2022 03:32:05 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D66E4245C75; Tue, 10 May 2022 00:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=3Hrh/oFhXE1F4xFjCTQdwxSdFdLuAyp8OrT/z6Ubir0=; b=4pMjvkt+lUTr+xgL+mPbWT3Sj1 liDBnYW/9eKfGfccW/xHqL9rIY9PAaDNi48/PqUECoryiZrCjC4xpiZ6wIgTZ0JOWPSFJ2CW/WKyQ d5+hEYbs4SAmyBXfwSuvmmMyy22dODkerOi4I1ZS310PmOGgjzmFLHpruDAVTVIBet4VPZOFZR7H4 LH+MAdOrSRdfppTNHQFZVA9lCDeeQ4V2anQ2+rb6x42fcdRl255QP5eoYvSnLDqVKNmIkT8mW8FiJ M+f1PKQExzGGWhU3ZiIJvY3CT6Shrtvm+r9YfXC0Kc7aphrsVWGpRpQGVwcOv+LOufEL+sTrz0S+w wUpNFQQw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1noKHh-000M5X-Uc; Tue, 10 May 2022 07:27:53 +0000 Date: Tue, 10 May 2022 00:27:53 -0700 From: Christoph Hellwig To: Kees Cook Cc: "Matthew Wilcox (Oracle)" , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Du Cheng , Christophe JAILLET , Vlastimil Babka , William Kucharski , Arnd Bergmann , Nathan Chancellor , netdev@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] niu: Add "overloaded" struct page union member Message-ID: References: <20220509222334.3544344-1-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220509222334.3544344-1-keescook@chromium.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 09, 2022 at 03:23:33PM -0700, Kees Cook wrote: > The randstruct GCC plugin gets upset when it sees struct addresspace > (which is randomized) being assigned to a struct page (which is not > randomized): Well, the right fix here is to remove this abuse from the driver, not to legitimize it as part of a "driver" patch touching a core mm header that doesn't even cc the mm list.