Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1827441imm; Thu, 14 Jun 2018 04:38:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKInAtnRB9Da9pRVkioVvtRH3sM1LAyFfUPuCZLQmNc7a3H38CEL+sg8Ih8k7aBY4Qs6OfK8 X-Received: by 2002:a17:902:6b04:: with SMTP id o4-v6mr2675516plk.101.1528976312966; Thu, 14 Jun 2018 04:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528976312; cv=none; d=google.com; s=arc-20160816; b=kJhaq85NadFW25Fz3XdxbbhAoXhYHBARmtPbm+1T+D1PxfYAOCsTUlRm2sQAmZ43w7 Rkyz7xKBjpP4L/g2Ijt7M81PbDTvjtxRz7PY98H4TpT239W+Apk2U9PwbOIQFSLHI96q P8fgJw8z2HPPWUuzYbIqHNmGLXJgsu7XqVna1p35wCvzz0Gd0UEzAoJhib42EQawCm6s Xl5kfANFVF4iyqHbRqiuIgjxTqRZ6ZGksohy7JWSO13y7JTISfu+BxWk+33R9WVzOyW7 qIh3VjzAvKc27+o7Uoid9nUeAWexoHl3nbTbs0OytanY4WhuZ/3fhfvxvpiGhmY2qsYs +TUA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=ZgeOi5aMd4CE09NNCstLDXKoABGh61Dq3FqOdkKSC/c=; b=UpoZu60bZwryFeN8KU4Axm04Jyh8ssI1CDJ8KAX4Ghu1/q5PCkGG8w2ViMsnc1aiXv 8fEGpJ0sPDe53SgbaPaqQkB6BWnkre4WJ1roEYqy/IVfCFV+DvgWgRI+zJyMDfVpMOBH 90E4IV6H4MDLWwp4Vyt7X2Se2hQJzG35H7QnBdSD5y+a/aOGseI3Xm3y6bxG3NexZhZf CmK5p953sz7DjA9aATaGB7EKifurOAOdZHQhQ3ZUys1RIZHQjpjiZzqYIQBPagzBOO+B LFgUCx0DNwbpr6H50lpB+B4nf0FyThf4/3U3jZrJIVUv7zDFlwKLR/TKzZsKjpBw4Gwn TsBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TJqQTOl5; 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 v3-v6si4246989pgr.44.2018.06.14.04.38.18; Thu, 14 Jun 2018 04:38:32 -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; dkim=pass header.i=@kernel.org header.s=default header.b=TJqQTOl5; 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 S1755128AbeFNLgx (ORCPT + 99 others); Thu, 14 Jun 2018 07:36:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:44096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754810AbeFNLgv (ORCPT ); Thu, 14 Jun 2018 07:36:51 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A55D208D8; Thu, 14 Jun 2018 11:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528976210; bh=g8ZuQD1jniaM5oLHw/o7babjKCzAlML5JprbbgFLRQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TJqQTOl5WXhgPxRG4XwIsERuoQEWhRXRoSMvyya1nr/PjJ+9E8e5kWy7LxB9UzZwW 3kZQ1RpD7doDvUCfvoK1DqdLgRUIFjVAbhyGdVrsWJcAXuZ78s1d5JMqdNSJOcOHdz pfjU5oc2LYWA/D3JsYZpyd1a3OORnDRDvhpjcVuI= Date: Thu, 14 Jun 2018 13:36:29 +0200 From: Greg Kroah-Hartman To: Jan Stancek Cc: Naresh Kamboju , Ben Hutchings , Rafael Tinoco , Linus Torvalds , ltp@lists.linux.it, open list , lkft-triage@lists.linaro.org, patches@kernelci.org, linux- stable , Andrew Morton , Shuah Khan , Guenter Roeck Subject: Re: [LTP] [PATCH 4.4 00/24] 4.4.137-stable review Message-ID: <20180614113628.GA24372@kroah.com> References: <20180612164816.587001852@linuxfoundation.org> <20180614063448.GB6021@kroah.com> <20180614090151.GA24997@kroah.com> <2072095076.26539556.1528969792388.JavaMail.zimbra@redhat.com> <20180614102119.GA19094@kroah.com> <602443463.26544751.1528972563608.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <602443463.26544751.1528972563608.JavaMail.zimbra@redhat.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 14, 2018 at 06:36:03AM -0400, Jan Stancek wrote: > > ----- Original Message ----- > > On Thu, Jun 14, 2018 at 05:49:52AM -0400, Jan Stancek wrote: > > > > > > ----- Original Message ----- > > > > On Thu, Jun 14, 2018 at 02:24:25PM +0530, Naresh Kamboju wrote: > > > > > On 14 June 2018 at 12:04, Greg Kroah-Hartman > > > > > > > > > > wrote: > > > > > > On Wed, Jun 13, 2018 at 10:48:50PM -0300, Rafael Tinoco wrote: > > > > > >> On 13 June 2018 at 18:08, Rafael David Tinoco > > > > > >> wrote: > > > > > >> > On Wed, Jun 13, 2018 at 6:00 PM, Greg Kroah-Hartman > > > > > >> > wrote: > > > > > >> >> On Wed, Jun 13, 2018 at 05:47:49PM -0300, Rafael Tinoco wrote: > > > > > >> >>> Results from Linaro’s test farm. > > > > > >> >>> Regressions detected. > > > > > >> >>> > > > > > >> >>> NOTE: > > > > > >> >>> > > > > > >> >>> 1) LTP vma03 test (cve-2011-2496) broken on v4.4-137-rc1 because > > > > > >> >>> of: > > > > > >> >>> > > > > > >> >>> 6ea1dc96a03a mmap: relax file size limit for regular files > > > > > >> >>> bd2f9ce5bacb mmap: introduce sane default mmap limits > > > > > >> >>> > > > > > >> >>> discussion: > > > > > >> >>> > > > > > >> >>> https://github.com/linux-test-project/ltp/issues/341 > > > > > >> >>> > > > > > >> >>> mainline commit (v4.13-rc7): > > > > > >> >>> > > > > > >> >>> 0cc3b0ec23ce Clarify (and fix) MAX_LFS_FILESIZE macros > > > > > >> >>> > > > > > >> >>> should be backported to 4.4.138-rc2 and fixes the issue. > > > > > >> >> > > > > > >> >> Really? That commit says it fixes c2a9737f45e2 ("vfs,mm: fix a > > > > > >> >> dead > > > > > >> >> loop in truncate_inode_pages_range()") which is not in 4.4.y at > > > > > >> >> all. > > > > > >> >> > > > > > >> >> Did you test this out? > > > > > >> > > > > > > >> > Yes, the LTP contains the tests (last comment is the final test > > > > > >> > for > > > > > >> > arm32, right before Jan tests i686). > > > > > >> > > > > > > >> > Fixing MAX_LFS_FILESIZE fixes the new limit for mmap() brought by > > > > > >> > those 2 commits (file_mmap_size_max()). > > > > > >> > offset tested by the LTP test is 0xfffffffe000. > > > > > >> > file_mmap_size_max gives: 0xFFFFFFFF000 as max value, but only > > > > > >> > after > > > > > >> > the mentioned patch. > > > > > >> > > > > > > >> > Original intent for this fix was other though. > > > > > >> > > > > > >> To clarify this a bit further. > > > > > >> > > > > > >> The LTP CVE test is breaking in the first call to mmap(), even > > > > > >> before > > > > > >> trying to remap and test the security issue. That start happening in > > > > > >> this round because of those mmap() changes and the offset used in > > > > > >> the > > > > > >> LTP test. Linus changed limit checks and made them to be related to > > > > > >> MAX_LFS_FILESIZE. Unfortunately, in 4.4 stable, we were missing the > > > > > >> fix for MAX_LFS_FILESIZE (which before commit 0cc3b0ec23ce was less > > > > > >> than the REAL 32 bit limit). > > > > > >> > > > > > >> Commit 0cc3b0ec23ce was made because an user noticed the FS limit > > > > > >> not > > > > > >> being what it should be. In our case, the 4.4 stable kernel, we are > > > > > >> facing this 32 bit lower limit (than the real 32 bit real limit), > > > > > >> because of the LTP CVE test, so we need this fix to have the real 32 > > > > > >> bit limit set for that macro (mmap limits did not use that macro > > > > > >> before). > > > > > >> > > > > > >> I have tested in arm32 and Jan Stancek, who first responded to LTP > > > > > >> issue, has tested this in i686 and both worked after that patch was > > > > > >> included to v4.4-137-rc1 (my last test was even with 4.4.138-rc1). > > > > > >> > > > > > >> Hope that helps a bit. > > > > > > > > > > > > Ok, thanks, it didn't apply cleanly but I've fixed it up now. > > > > > > > > > > On the latest 4.4.138-rc1, > > > > > LTP "cve-2011-2496" test still fails on arm32 beagleboard x15 and > > > > > qemu_arm. > > > > > > > > > > Summary > > > > > ------------------------------------------------------------------------ > > > > > kernel: 4.4.138-rc1 > > > > > git repo: > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git > > > > > git branch: linux-4.4.y > > > > > git commit: 7d690c56754ef7be647fbcf7bcdceebd59926b3f > > > > > git describe: v4.4.137-15-g7d690c56754e > > > > > Test details: > > > > > https://qa-reports.linaro.org/lkft/linux-stable-rc-4.4-oe/build/v4.4.137-15-g7d690c56754e > > > > > > > > Ok, but what does this mean? Is there a commit somewhere that I need to > > > > pick up for 4.4.y that is already in newer kernels? > > > > > > Hi Greg, > > > > > > I think the expectations was that: > > > 0cc3b0ec23ce Clarify (and fix) MAX_LFS_FILESIZE macros > > > has been included to linux-4.4.y HEAD, so they re-ran the tests. > > > > > > Report from Naresh above looks like original report: LTP vma03 is > > > cve-2011-2496 test. > > > > And the test fails now? > > > > Still confused. > > I don't see the patch (0cc3b0ec23ce) applied to linux-stable-rc.git, > branch linux-4.4.y: > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/log/?h=linux-4.4.y > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/tree/include/linux/fs.h?h=linux-4.4.y&id=7d690c56754ef7be647fbcf7bcdceebd59926b3f#n929 > > That is what has been tested above - is that the correct place > to get your backport of 0cc3b0ec23ce? I only push out the -rc git tree when I am at a "stopping point" in work on the stable tree. If I added this patch earlier today, I have not pushed out a new -rc. Please work off of the stable-queue.git tree instead if you want to always see the latest version of what I have applied to the queue. thanks, greg k-h