Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3941532pxy; Tue, 4 May 2021 13:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEyzCm4t9nQOZ7v1ots7yF9CnxDDu0oMUWOlLDsfBOvXA3c80OV2Tb6SgYfNOR5U5yBzij X-Received: by 2002:a17:906:abcc:: with SMTP id kq12mr7308347ejb.97.1620160663193; Tue, 04 May 2021 13:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620160663; cv=none; d=google.com; s=arc-20160816; b=ji7BfJdE80OGu4WgGPSvxqJr1E3Gj0oQf9W0S7OjdphL/ssOsSpyaN3Q+GsLMpt4D3 cDJi1cCVNIx+Q3CufostI2bxdhsB1iWYjnJvqMqM0+3n3lHHfwCLitgW+B1GHIVFJfyN bQQfe8jh9sRxRZmj55H09vrU+49ubv1P9XWvhqCE8S1WU+bvpo7+jMGKE94WMgDRR925 8dVC0L8dXeOV0atKSeizxHstddz5RyhIh38EogxAMGOvkhY4+opVTYvieH99lowq1mqb Uy4T68D3XZBaUvC1Ia78hQx4vFjQhvGNTm+MrRwR6fon4/3byXr2VWFTZI5WTkG5WwPp MUFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bxco5XoKdkkQdeuPPA2d1qMEQi2F/pAHKDhVnxntoq8=; b=SmH0bZVAdjPuN9Jijq2AzS+y3H5qdKQvnsrJd4Wd4NRwLar95SzSP3CLotra1ZexZt LjzsotQEuPqbEkb1LH1FTtvfNk1GeqwAk2pbK3d4yI3KgFPoSVj9I9wFGaXgFiA6fNn7 28krCJWHqmF69i1X3TBFhiw9xCN2nfQmuZBwCZmjcCsEoW2WnUg2MbXtqTjvRgdjjcwq BZq8QMuaLjdoQtkZ3/shYG8mhSqOiV9QGL9SkMiHohtcpEqEwq4U/JWcaQiHWMlOAQWP +EIJUMiQoH+4or2VjeaY6aI30vKGilks5m/yxCvKmLxyy0CC1wDVIrtDtikdL6IXHR9V Bd6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="cCqLP/YW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qn15si3393614ejb.104.2021.05.04.13.37.17; Tue, 04 May 2021 13:37:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="cCqLP/YW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232443AbhEDU0L (ORCPT + 99 others); Tue, 4 May 2021 16:26:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbhEDU0K (ORCPT ); Tue, 4 May 2021 16:26:10 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E281C061574 for ; Tue, 4 May 2021 13:25:15 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id b7so9008257ljr.4 for ; Tue, 04 May 2021 13:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bxco5XoKdkkQdeuPPA2d1qMEQi2F/pAHKDhVnxntoq8=; b=cCqLP/YWXo1MfYZTZ0KgnIYEoCm2iKmH41ZPUffIW/VLUp3TNXlvKDf1CWCEret5aF zMs1mD6iNLQG5QMbGipCRIULfZTyU3SIK2+/oaPd5N/vfhP67uQDyQ+NT03CcP2VrOHX qmyiAbKRkT9KGEWIN8V6nwv23PME5WgB/jd+0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bxco5XoKdkkQdeuPPA2d1qMEQi2F/pAHKDhVnxntoq8=; b=eUqL9kgvhJw3lbr7Y7eJS1JJssO9PhJmdJ7UgkryXAxw9RASGmssjDekEix05JxNHG inQ2RVt4P3q9hz8QzMRoM/xrYUXvaRlpe1quhEu0I/3IP3q2REN3pVrgm2ndkyEExHIU /wdU/x69MShIEK6NmXHrXXyL7Uf9Uqe0Ny/0rikwepdE/O88sMmExnuN94b/UrQJEuQ9 MNwpq1ZH+oXzJa2LXKRZg2+M55MVF9W/41P4bx8xeOgI3yTEzdV4LMD7q1gAUhLEzR52 RO2kHiIy8pqpucFmKvaqTP/1+dWSt1hpv1TYcICrTe2301MmdxRH55rSOrIQt9oFHHJl ypCw== X-Gm-Message-State: AOAM532TXTX4zBhgCedwznN442NOrl/TAilZaaEU3vCge8BJnriP+W3T Kj6MCwzU9OEl3m7uYeRhnN6o+CYjkpwP6zmU4Ts= X-Received: by 2002:a2e:575d:: with SMTP id r29mr193048ljd.32.1620159912826; Tue, 04 May 2021 13:25:12 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id w7sm1483017ljo.43.2021.05.04.13.25.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 May 2021 13:25:11 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id v5so4035356ljg.12 for ; Tue, 04 May 2021 13:25:11 -0700 (PDT) X-Received: by 2002:a05:651c:33a:: with SMTP id b26mr18849537ljp.220.1620159911294; Tue, 04 May 2021 13:25:11 -0700 (PDT) MIME-Version: 1.0 References: <20210504115358.20741-1-arek_koz@o2.pl> <1777114.atdPhlSkOF@swift.dev.arusekk.pl> In-Reply-To: <1777114.atdPhlSkOF@swift.dev.arusekk.pl> From: Linus Torvalds Date: Tue, 4 May 2021 13:24:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] proc: Use seq_read_iter for /proc/*/maps To: Arusekk Cc: Greg Kroah-Hartman , Christoph Hellwig , Linux Kernel Mailing List , linux-fsdevel , Alexey Dobriyan , Al Viro Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 4, 2021 at 1:21 PM Arusekk wrote: > > Keeping it the way it is for the sake of security of userspace applications > looks more like security through obscurity to me. No, it's simply "no valid use" and "why expose interfaces that don't need to be exposed". splice() _has_ been a security issue before. It's why I want to limit it now. I want to enable it only for cases that seem to be worth enabling for. Have we fixed all the splice security issues? I certainly hope so. Are you correct in stating that there are probably other places that might be more interesting to attackers? Sure. But none of that changes the basic issue: why expose this? Linus