Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3984309ybi; Tue, 18 Jun 2019 09:40:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqybaFHGH1daZFj9l3AtWSevToMW6LNGHV90IaVllDUrWsgchofajPeo6l4dRecJfsedhnoz X-Received: by 2002:aa7:956d:: with SMTP id x13mr82131904pfq.132.1560876032515; Tue, 18 Jun 2019 09:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560876032; cv=none; d=google.com; s=arc-20160816; b=KfJget81TvnpQlqoAmJ3NgUdP2Lfhg11O5vCoZQzO1JCCZKSw+pMv2nDU0XFUKAIDX 7hBSNaQ27RDIFu6GoJqqpdbWAEQ0JAuzDauzOcxtDhFBmRKdvhM4jP6Zasm5Fhmgsben Zoy3dMGQSCIx6aNjnmN+QUHhf08CBp4Hrcm1WuRqdZ0B4gofZvmWcQM/749QciZkV1yr sB9meYElciTS5IOkoGwdZ1sQba5qeNtWqB/bost5Wf0Hc69/TmAG6ygQMk2GCsybD3GH HQcsgJq0j17CUpCuIMyGnJS07/1bl9qa4h7JjSuhyDI+5N6UCBge7WSerfqP6xczggsY g6JQ== 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=XrrW0E+Aq0ZK5ZEW02c85rKGyeAIqMgJzZ8XI50g1cw=; b=tCV4v8562tnEkFAEHLsxM0bEu1JVhgU/hOsy4hPJ7a/UCndGaZrsdiGlrAfWE8sV8D 2Z63qLx14cwB5UvDAsp3+pM/yjpFOWCEYjGETnUQBXvGQi0NmlC+53/jW3dOcZLJJr4h VSG1OUkEwjBQNjuaTgZnbesTfcXKAL9KsFiabL4WFfH9YHZ3c5vt1jx8MEQZOp6Ji2Qz INQ+kc0KZt2/eAiyf5vA7+1gkYKX0J1Z9mwiXbRgXcMV+9Gx5s4UQQvTDeQWyWi/E8a/ Ck0FfrP27G/mj7fQ5+KKmrZacXIQdBXlRU7llLo5ZnV1fVpJiThEQEZZRwqsRNN5TDl9 Eyng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gwSjnibm; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si614042pgv.93.2019.06.18.09.40.16; Tue, 18 Jun 2019 09:40:32 -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=@gmail.com header.s=20161025 header.b=gwSjnibm; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730005AbfFRQjR (ORCPT + 99 others); Tue, 18 Jun 2019 12:39:17 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:47053 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729774AbfFRQjR (ORCPT ); Tue, 18 Jun 2019 12:39:17 -0400 Received: by mail-pg1-f193.google.com with SMTP id v9so7965276pgr.13 for ; Tue, 18 Jun 2019 09:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XrrW0E+Aq0ZK5ZEW02c85rKGyeAIqMgJzZ8XI50g1cw=; b=gwSjnibm9Blbi+bN6jrixv5dthYVRSRqHZk61Qze0Vo7hNCpvdHYRI6M2c4OZyZ5+8 fHdlBbj+BuL+tQTYoYjtJmRSUtzeYwF5f9ISF3Upb+gGbPWS+MWV8zZP8IeH6qhpQ9s5 2RQYMhRUkfwoGoK8RRr7EvQomQNaWzd6zx0Gbghhw+crVZPNaSjxqFdkeXgok1m1ibMZ g/TxSmcFb7TvSYaAm411mVFCipQzcGYOMsCqqbfelS46Kb+Zelh7o8YvhvyY68NcrtN0 C4O6Qr/5jk1dPGXdY+DKXGYVH+xq4QgRqfV3JiT7CXQAs3rhk66WnEs+8ICl8byim+hK 4AJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XrrW0E+Aq0ZK5ZEW02c85rKGyeAIqMgJzZ8XI50g1cw=; b=s2Wa3lBIEZhZbOlWUWjURt9SIeTGCTTcNdUXt+j+SO8cMxJheopP8iiLMaOgfyeqO4 F9XacfX/mH1Jqa9dJ/TzMGFN1Qpi1mjTcIrzzyqQwTKAgtMkXRFoU8FEuHC177U+qrtM I+BJ/8pBdDJx58tUQ9CpqUM/KbSKWN3G3GyGLlUtJ45Q9xrmtzJp+T+N+riRt5OneLRU 7I7ToFks2cOfH0Qy+kO6P8w4sh9gTWijNRapvNpuaCNbkMEHqIOURLFxhU3KIGj1j75F XhCieRkbAUnk9PwXNhkDkxJhJd+/dV7sGi2Si0PMNH2JwZxKx/2vjRY48lK3v6etTcNy O5Zg== X-Gm-Message-State: APjAAAWFY9fkMk1GCqHMihzmeKABwSoPQ0G+PBS/h3kKrHTiXdN6+JFX p2zzYNndD2YL3+OBF34SHojhREIumhgKGA== X-Received: by 2002:a17:90a:a385:: with SMTP id x5mr6079766pjp.76.1560875956573; Tue, 18 Jun 2019 09:39:16 -0700 (PDT) Received: from arch ([112.196.181.128]) by smtp.gmail.com with ESMTPSA id d4sm2587754pju.19.2019.06.18.09.39.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 09:39:16 -0700 (PDT) Date: Tue, 18 Jun 2019 22:08:37 +0530 From: Puranjay Mohan To: Shuah Khan Cc: hch@infradead.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [Linux-kernel-mentees] [PATCH v2] fs: cramfs_fs.h: Fix shifting signed 32-bit value by 31 bits problem Message-ID: <20190618163835.GA4766@arch> References: <20190618114947.10563-1-puranjay12@gmail.com> <20190618160847.GC27611@kroah.com> <777ee79c-9371-956a-07df-be866796047b@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <777ee79c-9371-956a-07df-be866796047b@linuxfoundation.org> User-Agent: Mutt/1.11.4 (2019-03-13) 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 10:15:11AM -0600, Shuah Khan wrote: > 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 Thanks, I have sent the mail with Nicolas Pitre in CC. --Puranjay