Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4690770pxb; Sun, 6 Feb 2022 00:22:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzA+zW7jTe5Xy7qDs8rKQZh/vJY2LpvRFOY2UdTzuL5vz+T33hMrbUW4Cv0j5Juhecnqs++ X-Received: by 2002:a17:907:30d6:: with SMTP id vl22mr5470600ejb.453.1644135756892; Sun, 06 Feb 2022 00:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644135756; cv=none; d=google.com; s=arc-20160816; b=a5xlARAFMIqFJNGcG5dGH2LDwAGU7mYNgKGXq6Kv+OGqgpDQqxT/eKW57zvJbFIax9 7ezgiSgQwLL4BCptXM/FjsqN7f6FkghrFCFU4hQNPH7j3H2Q/i0hKtjmIBD3WBnRQaQk JNlRyEvqrD4UVZSCp7fGi6vt0IgkwzB8bi33Luca0wHoWc9fzEKSN5KflbKWu0Ls3Qr/ iflNRTwLaWnzRmyWRp5PJlasRRHhOgwKMRTe5hFvXlr9vG10QzRzbvHG974OhzJmfZ1q GdSm6EKnXrS2RL44Ek5Y2S0OpcN4ahId8WETiAPJ0ow+gSuSIXqYaAOl2SEG57v7TX/N yZww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=sS1voOQtycNxs+VRD69cRXO9tNNrJUr/uPI8vUmNOAU=; b=KSzhCBptz/Ty76B741FLpoBYxCFTo+ImzRVbjUb52PxCvBL8cSuoHxAp0yzMoMUE3O h7JQLVVJOG7KAaoyPfO+hwQV2KFxmO2/dcwP/9UzvqEVWb/9N//6RuB4/IlNKLuTDVXG AoBCZQXkKuMK+3q6zg3Xm5EPeP9jMYUwISU6m5CvM9JHKJt8LTkoySp/o/u+1KVnHgxQ 7YptU2yz4UcEXVNvrPYXmn8mLieLIBarP1XvYg3OX6jiUf5i1H1JChllLcWJOduKSwx7 UPWJUsiMru4rYbzbHqvBH/4Bw3g/XkXvnfYIa/MoGETIoyHdoyqwB1oc3TSaXXVQ1vDg 2a3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=QemKoY3h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr12si4664067ejc.522.2022.02.06.00.22.10; Sun, 06 Feb 2022 00:22:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=QemKoY3h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352336AbiBDWog (ORCPT + 99 others); Fri, 4 Feb 2022 17:44:36 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:42460 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234792AbiBDWoe (ORCPT ); Fri, 4 Feb 2022 17:44:34 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 93DEBB83954; Fri, 4 Feb 2022 22:44:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AFD5C004E1; Fri, 4 Feb 2022 22:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1644014672; bh=pyYNY1Bq0ypF78uQDHSBS1tHlqG7MtbC5GqmbFlxxGw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QemKoY3hr/lcbvj0MhK6HnCVSa5ayyzM4RHXEOy97I22apRoNvw2fCBg23X8uTC66 WVL3dlBIbwSM5CuA2JPiJVSvaHyBhRoyMWC4U/xChuVPLHZ1rf9d7mddGQP/rGPs/n M3TwOexL9ABXmwoPBbEIzS4h/HxJ+Z+VAFW26raE= Date: Fri, 4 Feb 2022 14:44:31 -0800 From: Andrew Morton To: Jann Horn Cc: "Eric W. Biederman" , linux-kernel@vger.kernel.org, Bill Messmer , Al Viro , Randy Dunlap , stable@vger.kernel.org, Kees Cook Subject: Re: [PATCH] coredump: Also dump first pages of non-executable ELF libraries Message-Id: <20220204144431.b5d2b40d22bd5c458846b008@linux-foundation.org> In-Reply-To: References: <20220126025739.2014888-1-jannh@google.com> <87czk5l2i6.fsf@email.froward.int.ebiederm.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Feb 2022 00:59:59 +0100 Jann Horn wrote: > > > I looked in the history and the code was filtering for ELF headers > > > there already. I am just thinking this feels like a good idea > > > regardless of the file format to help verify the file on-disk > > > is the file we think was mapped. > > > > Yeah, I guess that's reasonable. The main difference will probably be > > that the starting pages of some font files, locale files and python > > libraries will also be logged. > > Are you planning to turn that into a proper patch and take it through > your tree, or something like that? If so, we should tell akpm to take > this one back out... I have coredump-also-dump-first-pages-of-non-executable-elf-libraries.patch on hold, pending outcome of this discussion.