Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2309739ybd; Thu, 27 Jun 2019 10:10:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlCQ2MCCgy8J/ODVsBz2WQqHsvAOzDV4WzVQuL1rA0/k9SCEJeFLfyU9lFn1Xs3S4nc6AW X-Received: by 2002:a17:90a:a397:: with SMTP id x23mr7446812pjp.118.1561655443207; Thu, 27 Jun 2019 10:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561655443; cv=none; d=google.com; s=arc-20160816; b=bQLdg6z73niUVDUFMPatihZLj5IRELAevodGJNFUBxgmCDndqTIfcJaXQrKCimNROe fVPd9VqCCDGJVwfpf5b+R+JwEZLjTQFDAqf2F08SW7EXwAaeKTO+fzeLnPIr321uZHTf ED1evfZAi93ZvTjm9SWQmhg8avOFZoWoerWP+CyYWtixTbmjf+m6onvvv9Y4VgjKypHA 8fRRpRu3Sjw7XUxWFAaPt+EvozlMFCt0wJfHtx0md9BCbD+w43igDyYgpXVv7q43F/Zo 589Jx52ZBGWuaSyntm2twntT8y2/PqjL1AQX9/qy+En0L35ugIdXin/pp9auOQtFaJDQ 1M5w== 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=mX6LM/grtaDjR8oNd7oOcF8gzofdiZE44jxdMZ2CBbs=; b=N+wGUJKM9IpZr6BypcTTLtL0cbf67xYAwHBjNs/l5LS17aGAK7LihSKKaLisn87R7h Urgho6wVcfFmrdTux6KyK3xRut7OWYx6EF7lQeN/+hDFddewHFc4MdjYfTXga6k2J26s iGnBS/SApdRI/Yug2gUYhf33h60SH4q2p32BPn4km2piS2BQ91gW2WatJkfhemLegIyt r77ewtEBKJnnjQKKWf8up8Zws+52mWBYF4N73RrliGw6bNU9QwTM290VxYvc58eKnznD jTCNnLtD4x4WOlhZl7KnkLgaBkAZ+nlu5qC9l4txNBIL81tThgvBYxAXlTpWkzAruWvn zV/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Ql8J5leW; 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 e2si123617pfa.15.2019.06.27.10.10.26; Thu, 27 Jun 2019 10:10:43 -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=Ql8J5leW; 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 S1726597AbfF0RIy (ORCPT + 99 others); Thu, 27 Jun 2019 13:08:54 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:35761 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbfF0RIx (ORCPT ); Thu, 27 Jun 2019 13:08:53 -0400 Received: by mail-io1-f68.google.com with SMTP id m24so6436622ioo.2 for ; Thu, 27 Jun 2019 10:08:53 -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=mX6LM/grtaDjR8oNd7oOcF8gzofdiZE44jxdMZ2CBbs=; b=Ql8J5leW16qqBgrUXZTmNa1CBVLrGHTSOOf69XE0ckgmWH4kSLWckOdTmx4f2iHYef qib7v2BQk/9dj1r1vDjpc8Pp+Sa7OL4kOoJoDXL5WadBulDe6EsNa3jorAG9D6iLRZsq Fara1/0ZM6ELDKu03VLURDf4f0341OErRnQHI= 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=mX6LM/grtaDjR8oNd7oOcF8gzofdiZE44jxdMZ2CBbs=; b=BWKzIBF1b1tyUW4VtR0BFxd4zTqHMlPArNy0QXIzm+L5OAk+mq/FMBA0qqLaK8egiv Ae7mnhNQ92SC0n66pXumm40ZSV1ooBZ4dostccwU8jZLEXLCI4o6CF8OyzEWUlSGbsGu 4cIm0aBxJ/Vj/4auo6w9MyKLr+IP7QK07I4f06+Nxe9G4zTZDAnnAdxpfS3F5sybM1jd sLzuAydet8XWFIJFcHSVzIhp67qQXy4uEPV3IukZ1T7Eu0FDtcJ5Fgl0eNFnvhkI2TEB /o8StntU8gp6TfFfyVT9ZJdRiAyAejpVO2anFh1B9B1sk4XjwXvhxhuE79XDp/Af56rE 7QcQ== X-Gm-Message-State: APjAAAUGhZ+9hggWceGANTAKk27JUV0WvY0NZoyRP81NbivneO+fQ3Nk zzj0oFk/1HNq4WRIejemT00pag== X-Received: by 2002:a5d:9251:: with SMTP id e17mr543228iol.21.1561655332962; Thu, 27 Jun 2019 10:08:52 -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 c1sm1957842ioc.43.2019.06.27.10.08.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 10:08:52 -0700 (PDT) Subject: Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift To: Alexei Starovoitov Cc: David Miller , c0d1n61at3@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, Network Development , LKML , Shuah Khan References: <20190627010137.5612-1-c0d1n61at3@gmail.com> <20190627032532.18374-2-c0d1n61at3@gmail.com> <7f6f44b2-3fe4-85f6-df3c-ad59f2eadba2@linuxfoundation.org> <20190627.092253.1878691006683087825.davem@davemloft.net> <9687ddc6-3bdb-5b2a-2934-ed9c6921551d@linuxfoundation.org> From: Shuah Khan Message-ID: <7c3d7390-caff-ca2f-760e-9bb72ada90dd@linuxfoundation.org> Date: Thu, 27 Jun 2019 11:08:51 -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: 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/27/19 11:05 AM, Alexei Starovoitov wrote: > On Thu, Jun 27, 2019 at 9:54 AM Shuah Khan wrote: >> >> On 6/27/19 10:22 AM, David Miller wrote: >>> From: Shuah Khan >>> Date: Wed, 26 Jun 2019 21:32:52 -0600 >>> >>>> On 6/26/19 9:25 PM, Jiunn Chang wrote: >>>>> Shifting signed 32-bit value by 31 bits is undefined. Changing most >>>>> significant bit to unsigned. >>>>> Changes included in v2: >>>>> - use subsystem specific subject lines >>>>> - CC required mailing lists >>>>> >>>> >>>> These version change lines don't belong in the change log. >>> >>> For networking changes I actually like the change lines to be in the >>> commit log. So please don't stray people this way, thanks. >>> >> >> As a general rule, please don't include change lines in the commit log. >> For networking changes that get sent to David and netdev, as David >> points out here, he likes them in the commit log, please include them >> in the commit log. >> >> I am working on FAQ (Frequently Answered Questions) section for mentees. >> I will add this to it. > > Same for bpf trees. > We prefer developers put as much as info as possible into commit logs > and cover letters. > Explanation of v1->v2->v3 differences is invaluable not only at > the point of code review, but in the future. > Thanks Alex. I will add that to the FAQ. -- Shuah