Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1965624ybh; Tue, 14 Jul 2020 11:51:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0WCyYwFBs/oxvQbjGxiTE+qhKvnbsv9m86rpV2aZUrz4MWcC4HV1UQVIqVuT/Ou5NwYs/ X-Received: by 2002:a17:906:8316:: with SMTP id j22mr5656415ejx.97.1594752693201; Tue, 14 Jul 2020 11:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594752693; cv=none; d=google.com; s=arc-20160816; b=0yhr8JmniSQtzdEs1rKMNbNbjdoU5KIxCiDB3Ak+na6Dbvot80gGoPQvJouaGocrX6 b6OAtcnje15PK/QGtv7fAsCyIJvYjuVh1rog7LiXAZeAt1KfafXvWqz7DhOySq+NYXvf QNi9FKqWqNwfPB1U/3mc/p2Q7XjLOxR36suV8HT9GMX+7jjWAQ0DHrVZY/B4pQdT7liw 7cnyJ71dbGzTYZ9Pzwb1dXka6aNl0liMFVQJGeP99hgzZVa2f+TCeCtJ9yT3cW+TuTIb RRG6lYhrkv2zDXL3wvYOKsrPBUdgYpsrsrFF8JXlUQIQEcKUBpCPHkzI2hsvmFRpdSRr 7TeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Alox4jKEMRaA950HZ1waP0+wedXfzVsNihjzfohVQYc=; b=VzTqfNcIm4/mOmfOaOfSIBUQLtsJjZzLKXuKdhw0Kb7TPYrN7y1qsHAyYZFjBiC1bI KTygvfWsHXriTlFB+Kbj3iISgWX3hDyIOaFo2UOnNHUpBDooybG3RLvrxUiNzb5BDW3c JUFyE3ePFnLVEMzoi30+YTi58yrrIyBi5u8aUBFjv7Nb1tqvV8uG40+CKns+fbkX/clC PNNn2egssBFnRN+hlZOormWfj6ERAdMQ+uB9XQiApVr0HLk1wEgCR9aP4wNVZE0Hpqq7 pjzNoVYL+J4Y3Ye7A2h7ou1TrpYQQJiSk/2sM3aVOo6eE0TA5/3MSK5OUKQnJXFmmc/M rPzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=VvlDJH5C; 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 g16si11184218ejf.492.2020.07.14.11.51.10; Tue, 14 Jul 2020 11:51:33 -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=VvlDJH5C; 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 S1730193AbgGNStp (ORCPT + 99 others); Tue, 14 Jul 2020 14:49:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729605AbgGNStl (ORCPT ); Tue, 14 Jul 2020 14:49:41 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D6ADC061755 for ; Tue, 14 Jul 2020 11:49:41 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id b25so24780005ljp.6 for ; Tue, 14 Jul 2020 11:49:41 -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=Alox4jKEMRaA950HZ1waP0+wedXfzVsNihjzfohVQYc=; b=VvlDJH5CSlxwkIB6dqeYM9fELFt2NoQrAo8WwW52hkqyP+QEgrAcfi37PxvMFQ3jXz exscy1cS5CvqO0N4kUSCglH47nIFT7m+TmAko7nxgzLwvs9rvLlklibVS3y9Lb+KsOEb 7GJJwIeCsAlMivcZbPoiCqejNh8PNrAxOIO3I= 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=Alox4jKEMRaA950HZ1waP0+wedXfzVsNihjzfohVQYc=; b=X/LKeQIXm355+KLdnshrIPi60skknn7aWDtZdzcp5Ug2QBldBUmLoEiBa9OvBh/p53 5WfRtszvMs61vbL+S/UTSY5qdYOFpL0qKfvI3cwZyCPSAC4ji8ULImcUpLqItMQre5KX g3NFLHhe3fVg1DvmNp91UBzQZ3P0VxwQPi/jI3eUYEdS6rOUA0eCG00D93pFsFGNgsef vgoXKogp5Q8r/Zz45bMRZAe1su31VtqiV9HBoYo1kez8Pie8s/JMVBWYhwk4ScFzPtls W40EiYDvWda4K387rrDI6eY5KbH7kw5BvQ+gcaogEXYzLw/6kmoIjnNzfTmEpSLshg9D N80g== X-Gm-Message-State: AOAM533AcrMybX3Xi0tbGO8aho5Y0Mzu1PdBf66HwyRu8uimcvb3YSVF ZieK+QvWN+OzujHTzG1hmRds4papJuE= X-Received: by 2002:a2e:7a16:: with SMTP id v22mr1794780ljc.42.1594752578974; Tue, 14 Jul 2020 11:49:38 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id k6sm5457184lfm.89.2020.07.14.11.49.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jul 2020 11:49:37 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id f5so24801419ljj.10 for ; Tue, 14 Jul 2020 11:49:36 -0700 (PDT) X-Received: by 2002:a2e:86c4:: with SMTP id n4mr3097947ljj.312.1594752576542; Tue, 14 Jul 2020 11:49:36 -0700 (PDT) MIME-Version: 1.0 References: <20200712215041.GA3644504@google.com> <20200714073306.kq4zikkphqje2yzb@box> <20200714160843.GA1685150@google.com> In-Reply-To: From: Linus Torvalds Date: Tue, 14 Jul 2020 11:49:20 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: WARNING: at mm/mremap.c:211 move_page_tables in i386 To: Joel Fernandes Cc: "Kirill A. Shutemov" , Naresh Kamboju , linux- stable , open list , linux-mm , Arnd Bergmann , Andrew Morton , Roman Gushchin , Michal Hocko , lkft-triage@lists.linaro.org, Chris Down , Michel Lespinasse , Fan Yang , Brian Geffon , Anshuman Khandual , Will Deacon , Catalin Marinas , pugaowei@gmail.com, Jerome Glisse , Greg Kroah-Hartman , Mel Gorman , Hugh Dickins , Al Viro , Tejun Heo , Sasha Levin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 11:12 AM Joel Fernandes wrote: > > I think you misunderstood me. I was not advocating breaking the stack > movement code or breaking stack randomization, I was going to try to > see if I could keep that working while not having to do an overlapping > move. I'm not really seeing how you'd do that with a big stack that gets close to the stack ulimit. Except by avoiding randomization. But the existing randomization may be so bad that it doesn't much matter. And I do think we limit the execve stack to a reasonably small fraction of the whole ulimit. So worth exploring, I guess. The current code with "align_stack" doing randomization could also do with a lot of clarifications. The code is odd. Linus