Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1875432rdh; Sat, 25 Nov 2023 06:04:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOCG077PPHrBXOpGyOfpKEIb2mUo0RQG1H29X7m8TucCEGoLlGFHuytQya3+5J7wznBC0p X-Received: by 2002:a05:6870:d1c3:b0:1fa:1ce9:7d45 with SMTP id b3-20020a056870d1c300b001fa1ce97d45mr3216559oac.47.1700921096991; Sat, 25 Nov 2023 06:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700921096; cv=none; d=google.com; s=arc-20160816; b=Fita3NWP+rhx1qd4fb4M6CoaDqZxFOg+vsNYAO1FErgyed5hwi7aV6OyrA6+Fk0YGR hOvyLBjC0/zi95x2Y65mQsI9xioVQ65en+6TFqI7faEWIhFJLd07V+LE9LA8RleIpk9x THwns6z6Rp+llNgLB/wfF5qruZC8YfhxjWWyNxniP+Bdy/oV2RGWMBqV7Gj1pDDoTsGI 9xpofhF8SETqOlZ6AESAagCm5B7B8JdsZlaMSGDX0WADdPx1cxUFxP/BISCEgk/IV1XU e+VuKfHV6kiZO9LqtPXsgWlqI1BfMr73tyzG21AafcjynGiy81/PgzGlI4KX4E+se2Zx 0FFw== 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=yqANZ8f6jW3jVHiQbvUDV/nt12VH2IJbplXqDeCCWrE=; fh=4Aq/zOjDptaE3G3O9UcVbF39P2p52No0y3NSnDA/nKo=; b=IVsfYOTvAJTB1tX+xLLhaqPEFtz9R3KuUMAdsek0YcIfwQw2FSar/jXiK3SiUM0nvV 01rDRexIjGUCSo+tthHxHcuj8FBIChfjjm8wvaCRoclJbdVjdrK+EvjI/g384K6mkfFB aBY75Fu//wBw+v2gHdWZFMhyjxCXZywqB36kcux1d3qDK755K5ZONTvd/4q7+Hc+jNc8 soIxLmr0gfhWm4Mam6ftiJItdPCmNmY8m2KbvfNDIGCFqthMf1D/8mu8F+dTn9t+FWPG 928QNTDvI2jD9nFALBhh1npnJ1uo8NBalIojjKROo2bGP8GTEw5eZfSxjTQhDupfL82r 4v6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTefBvIH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id c12-20020a056830314c00b006cd09d508a2si2490854ots.23.2023.11.25.06.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:04:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTefBvIH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 7B4CE80465E9; Sat, 25 Nov 2023 06:04:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232149AbjKYOEZ (ORCPT + 99 others); Sat, 25 Nov 2023 09:04:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbjKYOEX (ORCPT ); Sat, 25 Nov 2023 09:04:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01A1D127 for ; Sat, 25 Nov 2023 06:04:29 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA45EC433C7; Sat, 25 Nov 2023 14:04:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700921069; bh=oR2FZCEmyWJs3H/Sq60sOFaa52q/UAD9T3D3m2taMI4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XTefBvIHrBsWV7IYBI+6/VC4t2Vsw588aPNliu4s4L00U9hvRFxqa2qdx+kJwD9+b w0oHnWAzg8e8JiXyLkaDlNs+/YB6pfT/EzhNY2X67o91uw6gEzED8IlppfXOpXkQTE E51e1m9UvKCUu16Kx6Kv/+GlZFWklHNblVu7FSf+cSU6xpagLVQG6fBT9/LjIW0w9n 7odR9euCXZ//r8uTqh0AUw2QzRoH9TIkEF5sxO1v1XS2GmFnqmtveBWx/LyDJlB/bw 3ZthPdU8LNULQr9ENhQ5UVt40Nvqg4sMd73z4OSWPPLRaquwb8YFZuthiN0GemE1M9 HdqP8S7Ra6tig== Date: Sat, 25 Nov 2023 15:04:24 +0100 From: Christian Brauner To: Omar Sandoval Cc: Linus Torvalds , Omar Sandoval , David Howells , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] vfs fixes Message-ID: <20231125-kurhotel-zuwege-10cce62a50fd@brauner> References: <20231124-vfs-fixes-3420a81c0abe@brauner> <20231125-manifest-hinauf-7007f16894b6@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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 25 Nov 2023 06:04:47 -0800 (PST) On Sat, Nov 25, 2023 at 05:28:49AM -0800, Omar Sandoval wrote: > On Sat, Nov 25, 2023 at 02:10:52PM +0100, Christian Brauner wrote: > > 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. > > drgn needs /proc/kcore for debugging the live kernel, which is a very > important use case for lots of our users. And it does in fact read from > KCORE_VMALLOC segments, which is why I found and fixed this bug. I'm > happy to clean up this code, although it's a holiday weekend here so I > won't get to it immediately of course. But please don't rip this out. Ugh, I see. I just grepped through the drgn repo. I didn't realize that you were actively using it and not just testing it. If this is actively used then we won't break you ofc. And yeah, if you would fix it that would be great. Given that you're the main active user who happens to have kernel experience you might even want to be made responsible for this file in the future. ;)