Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3953837ybi; Tue, 18 Jun 2019 09:09:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxJvAZh2TQIpBKrDkPBBYHkqfFzBzJbnS2udE0nG5lK3dpxpksmwyKOa/MBHBHn86wDh/m X-Received: by 2002:aa7:8f2c:: with SMTP id y12mr37449314pfr.38.1560874182940; Tue, 18 Jun 2019 09:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560874182; cv=none; d=google.com; s=arc-20160816; b=dpEMLFkgYM4L/7zJwOmEcEfcqlkI/EWgqEHYEYBNpTiHVfD56MyQSMoB0olGsIOL4O ql8Bcj9lUQw52itYlz5KxY+L4lUMEPK7DaI0Tr+yYYVnvoUQg/edGIqrP2TbfCkxirKF rUTlG//TiIZYXFqVmPfHITZNbqcmpT0SmUVbcfoNEeFmYXHD+rLQhruECE/pbenL44t1 GCewuIrxK+dibUqA9TM6tYatPcaF0taNt/uTi+bF2b8r6Gv4/9isB+Re9bsddqht/i5F s5kZcevtfQv9N9xPFGNRZ4nCkzaw/YJynV/vWJZPm72KNwKQCYgzP+lMThQn7fwA2LoA Xu4g== 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; bh=s6L1kvkjUCeBDBdtaiGWfoYFWKA1fhD9JuSrw1dmG9o=; b=dGk2XF7yAPQhg5XdqN7cGItJ9MGOq3VBWM0lQzKMufhHtD4IZgKUQi8KxkGGZ8TOsd IDCbIPz4Vaso/wcNIT+B+fVSmewqVOa9JDYpT/xJORlF09SykDi1rjSeTKt4F9yQ4f8z eYljBRjl7YxeqDjuENdXRv4AwLc0BgXuyBxt1iekFBwpewetoMmIGIMJRjIDRoBzEuQ4 g0Wh59C2vlMRTtZGydKnyEcX8ifb7MwTJX0L1q3THazBsZp+HgayhZifAxDY7DCi4tbd 7LF3bn2PmL1d0/N3NTi98aGOHL6BOVtVXl5UoYxMYl65PIvSGYXEzYu07c35QIaYdhXp To3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="0YKi/KzP"; 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 k3si12755649pls.146.2019.06.18.09.09.27; Tue, 18 Jun 2019 09:09:42 -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="0YKi/KzP"; 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 S1729885AbfFRQIv (ORCPT + 99 others); Tue, 18 Jun 2019 12:08:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:48366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729247AbfFRQIu (ORCPT ); Tue, 18 Jun 2019 12:08:50 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 7A80C213F2; Tue, 18 Jun 2019 16:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560874130; bh=YCsNI3NUEf3Ql1pa6VJY/tDOkScY+nHIByu9NbnC36Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0YKi/KzPywEj1N8qH2KtYtm/gAy7MGUSAmSjnLozqZfHcQkhJAsnU26kBZW3TnOs3 x050ZxqF1ZgcYIvK+f5UqVtG8lb76QINYtwEW8rJcere9TfZck1vQOubHmTKC07Jd7 ty3Y8cr9LSJxKvrBnJqvaycxBX2cJ6GxEC26G9m0= Date: Tue, 18 Jun 2019 18:08:47 +0200 From: Greg KH To: Puranjay Mohan Cc: Shuah Khan , hch@infradead.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [Linux-kernel-mentees] [PATCH v2] fs: cramfs_fs.h: Fix shifting signed 32-bit value by 31 bits problem Message-ID: <20190618160847.GC27611@kroah.com> References: <20190618114947.10563-1-puranjay12@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190618114947.10563-1-puranjay12@gmail.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 18, 2019 at 05:19:47PM +0530, Puranjay Mohan wrote: > Fix CRAMFS_BLK_FLAG_UNCOMPRESSED to use "U" cast to avoid shifting signed > 32-bit value by 31 bits problem. This isn't a problem for kernel builds > with gcc. > > This could be problem since this header is part of public API which > could be included for builds using compilers that don't handle this > condition safely resulting in undefined behavior. > > Signed-off-by: Puranjay Mohan Reviewed-by: Greg Kroah-Hartman You should resend this and cc: Nicolas Pitre as he is the cramfs maintainer. thanks, greg k-h