Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1766555imm; Thu, 14 Jun 2018 03:37:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIZmzX0DkS90ZBK9awg4qsQSr1Zysss0JHw5puC9QcMgGzgkb/hhkOuSeJK70QSjSymNKxJ X-Received: by 2002:a63:6e08:: with SMTP id j8-v6mr1822409pgc.428.1528972622170; Thu, 14 Jun 2018 03:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528972622; cv=none; d=google.com; s=arc-20160816; b=DkNkD2qKSkQcoU/W+PnaU/X5j1bs12dk8wAqSeIOS7eXkQuQnVOtnX2prr28jDCieb Fab49PxEqG4yv4A9C7XA4g6ya4CF0Pz/EJY6Ne8Jl05+L1+dna4x55h+Qje1GArRmAge ysLUuSScI9H9dqg/cnBOMO/eBWow0pAhzes7iCNflePVZBF4/NLGgxIpIpDywbBSCeOX GJ980+JG5YueRP6M5je8NBjo5SkZBhzXpejYbz5LrznGCp/EvLwOs/JTCFaox6eKnKI3 Lye5bbXhJz+vn+0fGjgjH4r/amxtajQb3vzNWa1c47JH6eI0/tAM5u4FYwijJvUrurSU vklA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:arc-authentication-results; bh=LXriAoIXSmLPcNtBmNyZ2NIczfkyBV2NOiY3ZVy2de8=; b=tQ7/SioXyJW3F3xF+xGrISZ72+/5GKXP46YwRJRE/vYGGt7w+F/1lNGg+fxgqLMwG9 rtuUyx+7GmzCk9egCMuCz6LIadJvPzAes+PQQKNzid/jwHTFPJqvbgs7Y/ws4QU4voxJ f++pbmExoXqQMlHqXOyanp4wKuOByEklgH/chLNmHcGgVpwdkVQjclRfSOiC6zTqCUjK CD2IxoGs4JMEaObGAwra0hRFcDtleAplp07nWvFduXAOHQ0sbwxAGSkvqpb4HHibwD9U CYinBV1/tW+M3OL/86524tp8xeGxmeYPpOwSZueMM7G6Cs902w9z2itoUo0pDQQYORcK eDJg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14-v6si4124291pgv.255.2018.06.14.03.36.47; Thu, 14 Jun 2018 03:37:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932115AbeFNKgI convert rfc822-to-8bit (ORCPT + 99 others); Thu, 14 Jun 2018 06:36:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59962 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755033AbeFNKgF (ORCPT ); Thu, 14 Jun 2018 06:36:05 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 56C4A81109; Thu, 14 Jun 2018 10:36:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 35EFA108407B; Thu, 14 Jun 2018 10:36:04 +0000 (UTC) Received: from zmail17.collab.prod.int.phx2.redhat.com (zmail17.collab.prod.int.phx2.redhat.com [10.5.83.19]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id D96EA1800532; Thu, 14 Jun 2018 10:36:03 +0000 (UTC) Date: Thu, 14 Jun 2018 06:36:03 -0400 (EDT) From: Jan Stancek To: Greg Kroah-Hartman 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 Message-ID: <602443463.26544751.1528972563608.JavaMail.zimbra@redhat.com> In-Reply-To: <20180614102119.GA19094@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> Subject: Re: [LTP] [PATCH 4.4 00/24] 4.4.137-stable review MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.43.17.9, 10.4.195.10] Thread-Topic: 4.4.137-stable review Thread-Index: vozXQsn9nPi0tN/GdLH9COIwNqifQw== X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 14 Jun 2018 10:36:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- 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? Regards, Jan