Received: by 10.192.165.148 with SMTP id m20csp2614578imm; Sun, 22 Apr 2018 10:54:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+gRiPKtrVdmU7SdyjJeLAlIIgwbaeAdZfoo/VrZ/GQVv+cc1nfoRc0JLrDlp7f8B90kI1n X-Received: by 2002:a17:902:bc06:: with SMTP id n6-v6mr17689934pls.97.1524419640567; Sun, 22 Apr 2018 10:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524419640; cv=none; d=google.com; s=arc-20160816; b=BGmML53ekFA0949j1AypYq31DlOWqglWpnAp5eWDxxXy8rmeIqZdsmAGUvIyq9YCfH +RQHM5Ow/iPusKru/nDU9w20nDTRvp6AyNDwE9Mj1Cr4hNMZdMPqayEanDrPUE3XPox7 SjH3ObWfLQfWRhUv2b2+7DupTyp27Vbhva3AD/qXUy+I7zjBBPbhDDykz4kEGoYE5mye JDbTxNCOJGwMagPJ6FUkFGjKrV1D6BcvmI8v/xLPcupgINnXkWpQzdGtSpQDPCQE93gl Ieusm4FokPjbiCyYQ3ggjcX4iu2itkaLPBSWBhqKo0jveMeKR01g8VZpP/ojEq+jH9L9 jkLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=30i1rED7HyWCHhN2ENpkWlfnbz+8g47QWNNLQua4FIM=; b=zfb1XUKbv6047y7BKI/0sabom6zrRSmml0f7HpTr3yWNjN6H8mHm9gBDucySQc7M7K qimrpAq0UAKIQJ5VfUXPmwKhJ0skC62VyRQozmkuvf/chMgMElpZWKgt7NJekSpNyZy5 MLKnGhMCJPcPOchjclOr5nsNB5tWnldi8hbmIlXRTRe3/czx1saTbt86HZN35t3B2V2X NpT5D6lPQU8IjhlIk9urSXahBqsOi1Hs9M0eXUFdO/9kK6karv4pxr8osjKkKjmTr3Nf 2+lcdWQKoXiAy9Gp6BO8lDb5Qo7zHD6UVmlY/mr9iVyeaCTXTU9DbF7smYx2NEI3UH+F 9utg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si11132675plb.90.2018.04.22.10.53.46; Sun, 22 Apr 2018 10:54:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753476AbeDVRwU (ORCPT + 99 others); Sun, 22 Apr 2018 13:52:20 -0400 Received: from shells.gnugeneration.com ([66.240.222.126]:40836 "EHLO shells.gnugeneration.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbeDVRwT (ORCPT ); Sun, 22 Apr 2018 13:52:19 -0400 X-Greylist: delayed 559 seconds by postgrey-1.27 at vger.kernel.org; Sun, 22 Apr 2018 13:52:19 EDT Received: by shells.gnugeneration.com (Postfix, from userid 1000) id 8B4631A403A2; Sun, 22 Apr 2018 10:43:00 -0700 (PDT) Date: Sun, 22 Apr 2018 10:43:00 -0700 From: vcaputo@pengaru.com To: Pavel Machek Cc: Ferry Toth , linux-kernel@vger.kernel.org Subject: Re: DOS by unprivileged user Message-ID: <20180422174300.srzhf3veqxfigqhg@shells.gnugeneration.com> References: <9023506.UBh6vynRGa@delfion> <20180422101654.GA26243@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180422101654.GA26243@amd> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 22, 2018 at 12:16:54PM +0200, Pavel Machek wrote: > On Thu 2018-04-19 21:13:35, Ferry Toth wrote: > > It appears any ordinary user can easily create a DOS on linux. > > > > One sure way to reproduce this is to open gitk on the linux kernel repo > > (SIC) on a machine with 8GB RAM 16 GB swap on a HDD with btrfs and quad core > > + hyperthreading. But I will be easy enough to get the same effect with more > > RAM, other fs etc. > > You may want to disable swap. > I run without swap on my laptops, and still observe long periods of thrashing on the road towards OOM. What seems to occur is the active file-backed mappings of executables/libraries become a sort of swap area, repeatedly being discarded and faulted back in as the context switches occur. If there's any good way to prevent this, I'd like to know. Regards, Vito Caputo