Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1844574rdh; Sat, 25 Nov 2023 05:11:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOi8o7el5kNBmYC1U/aM8vXKdKNXucfNnFSQBHrlVnwEuOGDfZ6bYG24ausnKsnsS1nwE8 X-Received: by 2002:a05:6a20:160d:b0:18b:844d:778f with SMTP id l13-20020a056a20160d00b0018b844d778fmr7933037pzj.12.1700917868166; Sat, 25 Nov 2023 05:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700917868; cv=none; d=google.com; s=arc-20160816; b=JVRBlHDP49z4Ic3asOAjgHUPX0odLkvuYou/xfKkmHpWHzH4TLM06TyWaF71FdrTXM 4HSSpdNI3wKZh2/yNr/43tg5VNLzIu/TGSE9titIjDtqkYwgDoP+BQ1TsQWDPKdWTpbw MkEoF2E6AIxLKF5votJ+hgY3WJOAHZiacoxzhe3IwwK4hwJz+HoTOQfZEKrkjQng5ls/ dotO7+7UsIF6EJ5dF8A/gth3DocK4X29Q8s2N95xrAqCT0YSIjnTH09ntgQFOCHvayRe c5Ri7+aaBTzRWgVCunIew6FPmpPkrnVGY8V4bk0Z48OZWO+VBqqsuNRp3JtD2tuDmPa9 xOBQ== 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=YbJZb7RfBq0hH2H/8Hr/cRcMRi+//ktPnLMGvjuT4wM=; fh=u+V8y1YDitA47Xek3PBdVNTLlJm034lqY4L14xvTwqo=; b=K4zYjj2Jsy1epe7xvAp9a0sQortdm50YFl0dW+3bmFOzdVFIownfd0zsFQdtEII3pc KEeAlMGnT4ozzQ0ijlt2t6+PyaPQQjuGMDVdVTmFY695muXTHkoGIAsLVfyLwakzFexw bo9//stZfFVHDLcrLMgHNKFge7IlXaGhaeY+DhfoNvFxQTNTWLYnvBPMc46Nz6gWFxnS zBd8pX/n+oGaiqSMcL4KqZ0WY+h6wUX8uZOOTXHeyect+LDURH3C94yCCc5NyhyQJL46 +AfzXaiIulqlZ4US99gDZ97f4DCq4rBLTMbi+MzRHDNcK9s5gQknMer3G+/lGbm44H9x 8XxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tdemR95S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id g12-20020a63e60c000000b00578af609d05si5884578pgh.244.2023.11.25.05.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 05:11:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tdemR95S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CA4E6809C933; Sat, 25 Nov 2023 05:11:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbjKYNKw (ORCPT + 99 others); Sat, 25 Nov 2023 08:10:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232095AbjKYNKu (ORCPT ); Sat, 25 Nov 2023 08:10:50 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 190F0B5 for ; Sat, 25 Nov 2023 05:10:56 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DE46C433C7; Sat, 25 Nov 2023 13:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700917856; bh=7j6ntO1H0+nqJqtu3V8a5oFSFshosbKcXWeIEXFbRjk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tdemR95SUNaQqW0vqdigJ4y5z3gGC/BgDa4iFeJm8SBWuk+BIJjuz6EyKrVurqtuk C7Yk/+fGqOjFqYziZR4ShXtNygezEHphRlCZa+0HobMNnLOE9qnezQINirFvkGw7qE nCqrGyyJV3vGn16TH+HB7oyOfnCC1xqDvQpcfEbOUgCoZDabcJ+mtKmS4zZakVKG8v jFNbrni8VJH4SJ5btGj1wX3m3jxTEdl3aKIWHjutsN7m9LfyFJYwkcDZWHm5dN/+zp xSwvjndO4idNLfWkxX8OythL0/+Aexaec3YSZk4txeySzMlR7Gsr1LxHnOIASI5cIF yT/ksRq1H0Wiw== Date: Sat, 25 Nov 2023 14:10:52 +0100 From: Christian Brauner To: Linus Torvalds Cc: Omar Sandoval , David Howells , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] vfs fixes Message-ID: <20231125-manifest-hinauf-7007f16894b6@brauner> References: <20231124-vfs-fixes-3420a81c0abe@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 25 Nov 2023 05:11:06 -0800 (PST) On Fri, Nov 24, 2023 at 10:25:15AM -0800, Linus Torvalds wrote: > On Fri, 24 Nov 2023 at 02:28, Christian Brauner wrote: > > > > * Fix a bug introduced with the iov_iter rework from last cycle. > > > > This broke /proc/kcore by copying too much and without the correct > > offset. > > Ugh. I think the whole /proc/kcore vmalloc handling is just COMPLETELY broken. Ugh, I didn't even look at that closely because the fix was obviously correct for that helper alone. Let's try and just return zeroed memory like you suggested in your last mail before we bother fixing any of this. Long-term plan, it'd be nice to just get distros to start turning /proc/kcore off. Maybe I underestimate legitimate users but this requires CAP_SYS_RAW_IO so it really can only be useful to pretty privileged stuff anyway.