Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2305334ybd; Thu, 27 Jun 2019 10:06:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeozu4h+ch8e4wov8nJ6SbAdDqNQhxNyliT/VcsXyuGoJY4ofZHVgLfRPbQWS5+22RRUjX X-Received: by 2002:a17:902:7887:: with SMTP id q7mr5917377pll.129.1561655196012; Thu, 27 Jun 2019 10:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561655196; cv=none; d=google.com; s=arc-20160816; b=LujxQVCurQ3evOMOIv6pItGD2aOjMmV0QhdNKbplxOcOZoqyAc+W72LonR93xaRvte I/eCfvWAe+70Dzgz3YQzuBtuPmdomuhVhyLSy71A3zvMXUXHwn7xIKgViz7IwQ5iSVmz AgjVdOGaCgFRO1AG5abJc7kVqGjLUFJDo3MJuw9vJHQ4ZMbXMYfkYZhN21mVqZsZuULf RKhRCMy1Pdn/ziZ6Z4oUKym0q6s0c23uSxliORSNh4swrGFqLc7NvOD0kNtI7RDtWf0M Bj4PcMi8CxBLH8gQz6rhJ+I3n/nmbTbcvB2KzW+pHPWJs0oP0y1hWB0R6o7FoyBvKIin KzMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iOhDHETC5N147AFVi2bFRpawUQhaX7cNPdGDjgonKbE=; b=u6zg7lP8rhpMvHG46cCKmNlmWbWQSzLS+3vuh1lmAgY1HJ3ZrMdUvdDHJRKr0bOSwS j8hMZrWtCVfrF1K4q3h7Tya5zgTXG2tv1iIqvgmsdMfGS9HG9brWk/FoFTPn2NaQSO7k 8TNy7mYCqavWF3hp9FbDKv+7+K4RYGzZutKY4lxbGEQlBoanBoT/cxuCe7NPAeiu6PmR Uz/hOZqKFldjWClcDWKORhsiS7iIs8l4exscdrLKH1Y5F59s9lrDTrBc69rQ9SKmPlNx OeFY2Zk+NZATyqRQ2P+V6DWSGbdTnAe1oZ1AzWzvI3rvSh2Sr8oW2iBkCGDcAortwiq0 GD4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jpn5X78o; 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 v11si2753172plp.304.2019.06.27.10.06.19; Thu, 27 Jun 2019 10:06:35 -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=jpn5X78o; 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 S1726563AbfF0RF6 (ORCPT + 99 others); Thu, 27 Jun 2019 13:05:58 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:40436 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbfF0RF6 (ORCPT ); Thu, 27 Jun 2019 13:05:58 -0400 Received: by mail-lf1-f66.google.com with SMTP id a9so2082678lff.7; Thu, 27 Jun 2019 10:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iOhDHETC5N147AFVi2bFRpawUQhaX7cNPdGDjgonKbE=; b=jpn5X78o7EpWieqkKWa01DsUePXYcOaSUM8L2Ciqxp0pHWZLoRQo1XPg7vrtVsXzoq kCHXSi5z3v+4eI9XPsPSnpUFLakGro5T6dI74bekoZt4EyryN4hYMiyQeO7cER2Zk+x/ 72yFryCaoLJNTOWPSrAPupMr7UzykXZRlzZv2fcRXtVrXQjwaHQiheLGSxjiLrIHkrWY 5GyQFw1Eminvx8EodGGVk2wRzP7BUkSPCyf0koJ1eJHJoAcbAjRlUR4+qjxRRu6lv80i ZGbaAEUwWv0RQkNJJZ0R/1KVJh8/SbcYZudYe1feb1kuzD/84YFE+bvX1ld3BFwsfQbM qaZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iOhDHETC5N147AFVi2bFRpawUQhaX7cNPdGDjgonKbE=; b=A7ZWtAKyLvDzkqLvmxkmzGDlM9qs2MEXBwXr2gRsRsk6Hwdom9ls4Ey62gH+LG42Lq hBjWaEPL8HxiV4TsK4+Yolwgfm4uC36tKdk54bIsmGKxLR6NwhCGTEBl7oOROtpVUhuD go+lCx9d9xVSAGWuccHMbEUfrPrt+2g6q8I1th30BPi60LDH0g3HvCHuAHa3tN2IsmvK 3JRso96aXPr6BuLYEf3B+TKr60LaXYcOyYVnJ7XjxpCTNWHLvupDUbhMliGN73q1F8vS bnT5o6z5prX4JvAgrGe+MyJs6tLWLcn4OoSSJawBRB8yq+uDN+Gnc5mTlwMKDEvG/XtB BXvg== X-Gm-Message-State: APjAAAU3/d8ZqR455QCbsKOaFBKlAL4L2Hyyh7VzKjgrVGZptbwu3yQ2 E1Wm568iF7lphHf6Ew5ZtjbNTM/JSmriu5Uyyxo= X-Received: by 2002:a19:e05c:: with SMTP id g28mr2662435lfj.167.1561655155630; Thu, 27 Jun 2019 10:05:55 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <9687ddc6-3bdb-5b2a-2934-ed9c6921551d@linuxfoundation.org> From: Alexei Starovoitov Date: Thu, 27 Jun 2019 10:05:43 -0700 Message-ID: Subject: Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift To: Shuah Khan Cc: David Miller , c0d1n61at3@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, Network Development , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.