Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3961781ybi; Tue, 18 Jun 2019 09:16:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZsaRs9LyMsMfw2ONtwkx1355BOrIkIExjnqQ7QW/gPKQuqVUZeoYbPaRRi0aYB5SL2i84 X-Received: by 2002:a63:2444:: with SMTP id k65mr3138463pgk.1.1560874616237; Tue, 18 Jun 2019 09:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560874616; cv=none; d=google.com; s=arc-20160816; b=TG7RBCjGfcy5x+OyBoNFNetrPPNo/CbtuvKkHpjZCML5v1G2pLtO/2Bc8xYtr/Im1L CZHJ7Exi3UFRHSz0MJiUpsrj6bxjX1nXLwnS74Su62zY4ptTgluPi8Nh22VQDNvqeBXW 4Qan3XhP7wmgRaPlAGzfrRjaaBgHbmWC1avjIRXXn3US9AGBqNwDVbVNhWyhXck8aPAz Dj2sILttWveJ3EPZn+x+qvdXUCG+jO7LNuekvWsvU2HcVTjQalxHbtesabZa2ASDiBmq mwbQuNYA+4h89ft+uOwcxmYzu3hJnB7GCx8Ady+7PtkSaFxdFmwZwGWjggy7+GiRVNQf 08Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=hil1qRmTyPMHXxg40ww3Oi6DawOnzGePOXKCto+p4II=; b=AhkHgde3U+GxaPIQMqpFTya0Bt6PgNhyhIVhg5OSElIVSy61CofM+AjGPQZVxKQ/7P J7DIGGJMBx45aEAumsGJh9vVHuc9BuHN0xEDdcdsIborZ+CCfZsFyMym9/ykomlBwt4B 6wS3NKK2JmHhBdVWLsskq7uR0vgzyk4EeAaojSxFHWr5Ozc4ZufBC0jkS2yfK6Xc/YWp SXC+63ZZEawluSe2tpEfC23sZFHFyd9lx46Uqr1hWqvIwj/uAraNlQ29PKtXDwIR8tt3 VOzRaypS+1SEJQcqUAlfFLYIGgTVesoYPZVcyeki72AIF+0hBIJbe0inJXITp7fAoOZi hIlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=cJhoAWJg; 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 l185si14400826pfl.190.2019.06.18.09.16.41; Tue, 18 Jun 2019 09:16:56 -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=@linuxfoundation.org header.s=google header.b=cJhoAWJg; 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 S1729898AbfFRQPQ (ORCPT + 99 others); Tue, 18 Jun 2019 12:15:16 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:37396 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729835AbfFRQPO (ORCPT ); Tue, 18 Jun 2019 12:15:14 -0400 Received: by mail-io1-f65.google.com with SMTP id e5so31234471iok.4 for ; Tue, 18 Jun 2019 09:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hil1qRmTyPMHXxg40ww3Oi6DawOnzGePOXKCto+p4II=; b=cJhoAWJgd0yHNdC6TcZAMxY22bh8u2rlIKRFBY8ZYeg+qTU1nMl+pFI3Rwcl5M2mXB XWzZUp7nsHKcbRb8jf+jAjKiwoPjuWu6UWRdTdReAGaarPG6zVkkuImtYFp/YoAmzI8E W/tJW63O58jnfOs5/XArn4zHKT9fRxptVedGc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hil1qRmTyPMHXxg40ww3Oi6DawOnzGePOXKCto+p4II=; b=Ab7rbwE9qNbL7ifUp9cu74RYq8pZmn5HFu66BBxuwT9rsoyYSfKVsu0t8DI2WEPLDc D89XQWt5VX5an+cni5ZqgnTG3Xc3EZYT1gCHUpM1ZPSJ4MDYcaUVxwhGKIu2x1BKdOix vCBAy++WtLbKfcybSr+aGxF4dIX5I2qQiVGFoYnAdcb/oMmh2DuJBf1Kd4bSbTISTL4A SJsqBl/lOFQpmb4oON87YTlJ55f67D696iWTxGf/H0j43GHViRc+ijUPf+NbKK3pWTRE /iJxD+rkr99pVckOeX99VPFhu4sj2Hb5UXXZkMiU8SqkE/p+do9+RTxfS9kEWItANkqH ibfg== X-Gm-Message-State: APjAAAUfDjP9JnieAQYRthscl3F+BVfRTY7KlXQVswWqeeVs3PdWk+Gz sZFhX4iRycVURRrF2DsxuiFhcA== X-Received: by 2002:a6b:14c2:: with SMTP id 185mr158848iou.69.1560874513443; Tue, 18 Jun 2019 09:15:13 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id c23sm14863843iod.11.2019.06.18.09.15.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 09:15:12 -0700 (PDT) Subject: Re: [Linux-kernel-mentees] [PATCH v2] fs: cramfs_fs.h: Fix shifting signed 32-bit value by 31 bits problem To: Greg KH , Puranjay Mohan Cc: hch@infradead.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, "skh >> Shuah Khan" References: <20190618114947.10563-1-puranjay12@gmail.com> <20190618160847.GC27611@kroah.com> From: Shuah Khan Message-ID: <777ee79c-9371-956a-07df-be866796047b@linuxfoundation.org> Date: Tue, 18 Jun 2019 10:15:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190618160847.GC27611@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/18/19 10:08 AM, Greg KH wrote: > 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. > Puranjay! You can add all the Reviewed-by tags when you resend the patch with Nicolas Pitre on the thread. Reviewed-by: Shuah Khan thanks, -- Shuah