Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp277335imm; Wed, 30 May 2018 23:35:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK9dRyCwQl6a/BpLg73YJufpbYKWDZrOk7V9Lef0Z88Rjz6gTlgcHNkiCbDrIp30v6HJwcH X-Received: by 2002:a17:902:7898:: with SMTP id q24-v6mr5893713pll.254.1527748524467; Wed, 30 May 2018 23:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527748524; cv=none; d=google.com; s=arc-20160816; b=JrmnT0DHt3bCJ0L6Ek/tUruLvLQq3DZQ1lSiX6FJ69lAaR/L0DGeuFqvBoui46wKfQ Wlg6F0q3FaisSFLk6bKl+Au1zIbC+KPR18DTxL491GQp32/ojES5J1rmkvxUMsr4mpFZ 2q1s4oPKlrPWPSZ+SrBfuDfMW0faxCJ5CkRyQMElfxUQKJkIisg3qY27kHL/ZmLKBx0K VjAshJWPO4ZdMhY82gnzRkQLC6PU1NKECn/dANGXhn/sNi4WbwuxhKrtFfCH/YFbidUO O30ZMRmv4PzvW8AhzOsc2rhWMoEWetXRh5jGA3LlARBKW326NuuSCX8axat8kVa6t1YZ tr4Q== 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:dkim-signature:arc-authentication-results; bh=sv4xU1UpwCOUL6+CopkOUnAXRhTaLYHMXb/Ooij1zIE=; b=ymFxrtAI/ILlah+76f7N23diuzRqhw1d3Dnz8KW9j2yWb1YhP58ueYVIQwrpgZmDqK UrlSiN9KkxGgIg6bCWRW/7JXkV6PUEgSUH1Yg8C+WL3RTpX3YGwGcD2x44OU0Hxu158f DpGir8Ujgtk2pYRBKFZsflWk5oWTUuihPiLNd8Yo2pIQVhQJExxZoocPNbePn9U2q6q2 Ph7PRwyXvfLGpoV4EwMRTNn4UIcPKitkt8X6PBpiq1ybiAM4/qYQBhjYnLwFVzfXaDdj I3mbuhlaYA1wUSUud/+w6erZiJcHkDehUhPAhMCGRoBZlCVsH8Dp9jlW81Xcs+CLFsCj 3khg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jH2JSsIl; 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 s66-v6si37528851pfj.164.2018.05.30.23.35.10; Wed, 30 May 2018 23:35:24 -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=jH2JSsIl; 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 S1754016AbeEaGeb (ORCPT + 99 others); Thu, 31 May 2018 02:34:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:56134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753760AbeEaGea (ORCPT ); Thu, 31 May 2018 02:34:30 -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 790F42087D; Thu, 31 May 2018 06:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527748470; bh=WW05sjMF4eq2c3+gL7asuZ3keH8rhp2+4s1Cb4Q5GqM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jH2JSsIlEa/P2R8Wk2JWyySbHVNBA0Lz73N9PygqRPHaFIdYlwGlLD7P2x79TldvE L54dr0mX+p4/1NL7PPUrPCcZWsDijLVMAmswR7As5oSwkSoE4JtKBpFGtI/IowM8Xa F3wiUYoj5cRwnNnv0mW10U8TQXY36XLtUURAPhHI= Date: Thu, 31 May 2018 08:34:08 +0200 From: 'Greg Kroah-Hartman' To: Daniel Sangorrin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, 'Davidlohr Bueso' , 'Joe Lawrence' , 'Andrea Arcangeli' , 'Manfred Spraul' , 'Andrew Morton' , 'Linus Torvalds' Subject: Re: [PATCH 4.4 011/268] Revert "ipc/shm: Fix shmat mmap nil-page protection" Message-ID: <20180531063408.GA7744@kroah.com> References: <20180528100202.045206534@linuxfoundation.org> <20180528100203.357731085@linuxfoundation.org> <005601d3f888$37f266f0$a7d734d0$@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005601d3f888$37f266f0$a7d734d0$@toshiba.co.jp> 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, May 31, 2018 at 11:36:46AM +0900, Daniel Sangorrin wrote: > > -----Original Message----- > > From: stable-owner@vger.kernel.org [mailto:stable-owner@vger.kernel.org] On > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Davidlohr Bueso > > > > commit a73ab244f0dad8fffb3291b905f73e2d3eaa7c00 upstream. > > > > Patch series "ipc/shm: shmat() fixes around nil-page". > > Sorry for being a bit late (the pace is really fast here). > > I have found a regression from 4.4.133-rc1 to 4.4.134-rc1 using Fuego LTP wrapper. > > 4.4.134-rc1 > tst_test.c:982: INFO: Timeout per run is 0h 05m 00s > cve-2017-5669.c:62: INFO: Attempting to attach shared memory to null page > cve-2017-5669.c:74: INFO: Mapped shared memory to (nil) > cve-2017-5669.c:78: FAIL: We have mapped a VM address within the first 64Kb > cve-2017-5669.c:84: INFO: Touching shared memory to see if anything strange happens > > 4.4.133-rc1: > tst_test.c:982: INFO: Timeout per run is 0h 05m 00s > cve-2017-5669.c:62: INFO: Attempting to attach shared memory to null page > cve-2017-5669.c:67: PASS: shmat returned EINVAL > > The culprits should be one or both of the two last commits to ipc/shm (one of them a revert). > > - ipc/shm: fix shmat() nil address after round-down when remapping > - Revert "ipc/shm: Fix shmat mmap nil-page protection" > > I need to investigate the concrete reason, but for now I just wanted to report it. Thanks for letting us know, but this was reported already. See the emails on lkml with the subject: Subject: Re: [PATCH 4.16 000/272] 4.16.13-stable review from Davidlohr Bueso Message-ID: <20180528213039.yy2madue67njkmw5@linux-n805> where he discusses that the LTP test is incorrect and that the kernel change is correct and that LTP is going to be fixed because of this. thanks, greg k-h