From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754702AbeAOMGx (ORCPT + 1 other); Mon, 15 Jan 2018 07:06:53 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37674 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754181AbeAOMGw (ORCPT ); Mon, 15 Jan 2018 07:06:52 -0500 Date: Mon, 15 Jan 2018 13:06:52 +0100 From: Greg Kroah-Hartman To: Eugene Syromiatnikov Cc: linux-s390@vger.kernel.org, Martin Schwidefsky , Heiko Carstens , Paul Gortmaker , Philippe Ombredanne , Kate Stewart , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] s390: fix setgid16/setuid16 handling of -1 Message-ID: <20180115120652.GA16218@kroah.com> References: <20180115115242.GA15131@asgard.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180115115242.GA15131@asgard.redhat.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 15, 2018 at 12:52:42PM +0100, Eugene Syromiatnikov wrote: > For some reason, the implementation of these two 16-bit ID system calls > used cast instead of low2highgid/low2highuid macros for converting [GU]IDs, > which leads to incorrect handling of value of -1 (which ought to be > considered invalid). > > Discovered by strace test suite. > > Signed-off-by: Eugene Syromiatnikov > --- > arch/s390/kernel/compat_linux.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Care to add a cc: stable on this? thanks, greg k-h