Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1854710rdh; Sat, 25 Nov 2023 05:29:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIKVuNkcTeKI7eywu9RXan8M4kmfpUUdIbiMdUi+dCt+xck/0gmBChEXXYXCFujGJzMYt1 X-Received: by 2002:a05:6a00:44cd:b0:6c3:6148:570f with SMTP id cv13-20020a056a0044cd00b006c36148570fmr7496149pfb.33.1700918942618; Sat, 25 Nov 2023 05:29:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700918942; cv=none; d=google.com; s=arc-20160816; b=hCtHdtXQCtHg2IZcUI4wkumJG17Cs4MhvywymU72EN2XS0o2aanA0hiVAA2bJq1sRq h4WQUVEzrEotEh/aeLHcMRmmOxJG0vKIhtDfwAFgletX1MtMLRd01wBj9UYdGnwV+ikF z5udu39SZArL6X1NkHmLWbxODXzxUaC9/z62mgRjDVLW3rcsxb66e41Tpl58w7+8/Nvp WfTuDmToL+Qpq1X1htDD+jg+Tmzx1JLloUwqA1SL1i/Io7K9Gxh/WsHS4Za30O20ZwCx ZXdn2K0tJeFFZrEUl4J6qUZAfiQEOp7XJVbN36StvRG/YXZlmri4wkCfhGruoKJACQzG l+yg== 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=qhBkKuI0fbhzEilDcSEndZwSBUCGMGB5hB9S6RQoSuM=; fh=/TM3syjSZekTYQT0CxKK+iDnnprqaRAhE6PUXfikAE4=; b=AEOyCZ43E0GGoYGn4zI8zfZ5WJMUlcPtA14fEZCC1QTDxFfHs3eb5mXeTsY/VGKHwf zFtEFobaiwDIUYa/UB4e1j/xRLQSdD+k7Tzn/51rnead6r65vC93inmEPWUB/LudrzyB 5fsqSFsD2ck89fxaiPG3dkYXhW71NIoMYa2aDLROlgJHpD/QUZzxY689bpkRS0Qx1u7P 7hHxmN+3ESvlUwqTMyiNPJbkn/njgmWSb0Rr5I7mMzyPUtyWirwURJRanY8zI9y3IHpM i4+L9SRqxvdro+WW1Va1BUG9w1uxmGyOlTCnrcOjUtvqT7barHrnnbNQ750JF1upawxE zmMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20230601.gappssmtp.com header.s=20230601 header.b=ZDsE5X5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m129-20020a632687000000b005a9b0fe6afbsi6007141pgm.144.2023.11.25.05.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 05:29:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@osandov-com.20230601.gappssmtp.com header.s=20230601 header.b=ZDsE5X5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 86C43803EE04; Sat, 25 Nov 2023 05:29:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232047AbjKYN2q (ORCPT + 99 others); Sat, 25 Nov 2023 08:28:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231976AbjKYN2p (ORCPT ); Sat, 25 Nov 2023 08:28:45 -0500 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07B29DE for ; Sat, 25 Nov 2023 05:28:52 -0800 (PST) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6ccc9e6a38aso115933b3a.3 for ; Sat, 25 Nov 2023 05:28:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20230601.gappssmtp.com; s=20230601; t=1700918930; x=1701523730; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qhBkKuI0fbhzEilDcSEndZwSBUCGMGB5hB9S6RQoSuM=; b=ZDsE5X5I8qxxAK7qx0g743hbMLx4KwOFOZtJHYq/OkAmmnxkCLqOGDXj6Clzpsa6fi ArXELUDP9hc5sXpbmG/yVwYyVWtYQZrjMAC4wVKYIIxUwyIWfpD/cE2JBx88naXG11r4 /nCv7RIDNBzb/KwbgucmKog3El0zG2OEqUTl3St+AaqQ55LBRbKQ9Z7DETFlUFSN5oQo +f9+uh1fbO/NhJtJtKh1PBNc2rwTJrWxkls/YyttXeW8dgTjOzoC41GjO0v7N3jKUQYE xjKVZROWMP8m/K5UEgAw1Ta9SVjUgkOmA2bEiKdlyG9gUDjq1hys2Hiww06iP1ZZFlcu 0ppA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700918930; x=1701523730; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qhBkKuI0fbhzEilDcSEndZwSBUCGMGB5hB9S6RQoSuM=; b=h06xTdbEFHtwSfijzAz0tT5p9NR3oLPEjZZVgcgGMOy06xrmpVuB0kPMP/tC9OSSXS czPTN+EIE/yIBELqw4k3xt9cpI3z9oUm9fP+NbY2KpPlPL912WE9crgX7lwM6GIwOIMy Qzi6gAEDt4oqNA+bEgevuuxxMqkh4I1Is+/lSxGq93iVF4jFphyGLrZlnxpTYpdGbldT 2t+Hy7wMKj5Z3uVfczrgDn4W0ze+Cp1AUNFH6fAtGuGBSKjUlgDMOBaoU0F9Q/mVxCxp ZchU+8cGgaxq/LepDTNCxD9j6lBWFFFJQL1HGpl/xBQVeJ7HaE71Z97Rnp05GcfhzEX3 YPDg== X-Gm-Message-State: AOJu0YykLmPfkDCOZiuxGnEHS2id4IjgLKw02fJG7RaezdMPg01dkhHr i0DPv6rirLVzRVjP/RgM3quzxA== X-Received: by 2002:a05:6a00:8e03:b0:6c2:cb4a:73c3 with SMTP id io3-20020a056a008e0300b006c2cb4a73c3mr6700182pfb.11.1700918930618; Sat, 25 Nov 2023 05:28:50 -0800 (PST) Received: from telecaster ([2601:602:a300:3bc0::1923]) by smtp.gmail.com with ESMTPSA id fi14-20020a056a00398e00b006a77343b0ccsm4340925pfb.89.2023.11.25.05.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 05:28:50 -0800 (PST) Date: Sat, 25 Nov 2023 05:28:49 -0800 From: Omar Sandoval To: Christian Brauner 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: References: <20231124-vfs-fixes-3420a81c0abe@brauner> <20231125-manifest-hinauf-7007f16894b6@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231125-manifest-hinauf-7007f16894b6@brauner> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 morse.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 (morse.vger.email [0.0.0.0]); Sat, 25 Nov 2023 05:29:00 -0800 (PST) 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. Omar