All of lore.kernel.org
 help / color / mirror / Atom feed
* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:01 ` Jiunn Chang
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  1:01 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:01 ` Jiunn Chang
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  1:01 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:01   ` Jiunn Chang
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  1:01 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:01   ` Jiunn Chang
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  1:01 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:01   ` Jiunn Chang
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  1:01 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/kfd_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index dc067ed0b72d..ae5669272303 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
 #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
 #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
 /* Allocation flags: attributes/access options */
-#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
+#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
 #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
 #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
 #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:01   ` Jiunn Chang
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  1:01 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/kfd_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index dc067ed0b72d..ae5669272303 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
 #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
 #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
 /* Allocation flags: attributes/access options */
-#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
+#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
 #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
 #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
 #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:01   ` Jiunn Chang
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  1:01 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/nl80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 6f09d1500960..fa7ebbc6ff27 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
-	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
+	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
 };
 
 /**
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:01   ` Jiunn Chang
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  1:01 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/nl80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 6f09d1500960..fa7ebbc6ff27 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
-	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
+	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
 };
 
 /**
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:12   ` Shuah Khan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-27  1:12 UTC (permalink / raw)


On 6/26/19 7:01 PM, Jiunn Chang wrote:
> Shifting signed 32-bit value by 31 bits is undefined.  Changing most
> significant bit to unsigned.
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---
>   include/uapi/linux/if_packet.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
> index 467b654bd4c7..3d884d68eb30 100644
> --- a/include/uapi/linux/if_packet.h
> +++ b/include/uapi/linux/if_packet.h
> @@ -123,7 +123,7 @@ struct tpacket_auxdata {
>   /* Rx and Tx ring - header status */
>   #define TP_STATUS_TS_SOFTWARE		(1 << 29)
>   #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
> -#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
> +#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
>   
>   /* Rx ring - feature request bits */
>   #define TP_FT_REQ_FILL_RXHASH	0x1
> 


Hi Jiunn,

You will have to cc mailing lists. You sent two patches for two changes
in this file. Combining them in one patch might be a good idea.

btw. I just sent email with some tips and guidelines. Please refer to
them before sending patches.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:12   ` Shuah Khan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  1:12 UTC (permalink / raw)


On 6/26/19 7:01 PM, Jiunn Chang wrote:
> Shifting signed 32-bit value by 31 bits is undefined.  Changing most
> significant bit to unsigned.
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---
>   include/uapi/linux/if_packet.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
> index 467b654bd4c7..3d884d68eb30 100644
> --- a/include/uapi/linux/if_packet.h
> +++ b/include/uapi/linux/if_packet.h
> @@ -123,7 +123,7 @@ struct tpacket_auxdata {
>   /* Rx and Tx ring - header status */
>   #define TP_STATUS_TS_SOFTWARE		(1 << 29)
>   #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
> -#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
> +#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
>   
>   /* Rx ring - feature request bits */
>   #define TP_FT_REQ_FILL_RXHASH	0x1
> 


Hi Jiunn,

You will have to cc mailing lists. You sent two patches for two changes
in this file. Combining them in one patch might be a good idea.

btw. I just sent email with some tips and guidelines. Please refer to
them before sending patches.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:18     ` Shuah Khan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-27  1:18 UTC (permalink / raw)


On 6/26/19 7:01 PM, Jiunn Chang wrote:
> Shifting signed 32-bit value by 31 bits is undefined.  Changing most
> significant bit to unsigned.
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---
>   include/uapi/linux/kfd_ioctl.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index dc067ed0b72d..ae5669272303 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
>   #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
>   /* Allocation flags: attributes/access options */
> -#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
> +#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
> 

Hi Jiunn,

cc mailing lists.

-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:18     ` Shuah Khan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  1:18 UTC (permalink / raw)


On 6/26/19 7:01 PM, Jiunn Chang wrote:
> Shifting signed 32-bit value by 31 bits is undefined.  Changing most
> significant bit to unsigned.
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---
>   include/uapi/linux/kfd_ioctl.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index dc067ed0b72d..ae5669272303 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
>   #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
>   /* Allocation flags: attributes/access options */
> -#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
> +#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
> 

Hi Jiunn,

cc mailing lists.

-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:18     ` Shuah Khan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-27  1:18 UTC (permalink / raw)


On 6/26/19 7:01 PM, Jiunn Chang wrote:
> Shifting signed 32-bit value by 31 bits is undefined.  Changing most
> significant bit to unsigned.
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---
>   include/uapi/linux/nl80211.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
> index 6f09d1500960..fa7ebbc6ff27 100644
> --- a/include/uapi/linux/nl80211.h
> +++ b/include/uapi/linux/nl80211.h
> @@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
>   	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
>   	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
>   	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
> -	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
> +	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
>   };
>   
>   /**
> 

cc mailing lists.

-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift
@ 2019-06-27  1:18     ` Shuah Khan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  1:18 UTC (permalink / raw)


On 6/26/19 7:01 PM, Jiunn Chang wrote:
> Shifting signed 32-bit value by 31 bits is undefined.  Changing most
> significant bit to unsigned.
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---
>   include/uapi/linux/nl80211.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
> index 6f09d1500960..fa7ebbc6ff27 100644
> --- a/include/uapi/linux/nl80211.h
> +++ b/include/uapi/linux/nl80211.h
> @@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
>   	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
>   	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
>   	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
> -	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
> +	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
>   };
>   
>   /**
> 

cc mailing lists.

-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27  1:01 ` Jiunn Chang
  (?)
@ 2019-06-27  3:25   ` c0d1n61at3
  -1 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  3:25 UTC (permalink / raw)
  To: skhan; +Cc: linux-kernel-mentees, netdev, linux-kernel, davem

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

Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
---
 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27  3:25   ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  3:25 UTC (permalink / raw)


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

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27  3:25   ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  3:25 UTC (permalink / raw)


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

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees][PATCH v2] drm/amdkfd: Fix undefined behavior in bit shift
  2019-06-27  1:01   ` Jiunn Chang
  (?)
@ 2019-06-27  3:25     ` c0d1n61at3
  -1 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  3:25 UTC (permalink / raw)
  To: skhan; +Cc: linux-kernel-mentees, dri-devel, linux-kernel, oded.gabbay

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

Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
---
 include/uapi/linux/kfd_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index dc067ed0b72d..ae5669272303 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
 #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
 #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
 /* Allocation flags: attributes/access options */
-#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
+#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
 #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
 #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
 #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] drm/amdkfd: Fix undefined behavior in bit shift
@ 2019-06-27  3:25     ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  3:25 UTC (permalink / raw)


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

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/kfd_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index dc067ed0b72d..ae5669272303 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
 #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
 #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
 /* Allocation flags: attributes/access options */
-#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
+#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
 #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
 #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
 #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] drm/amdkfd: Fix undefined behavior in bit shift
@ 2019-06-27  3:25     ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  3:25 UTC (permalink / raw)


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

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/kfd_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index dc067ed0b72d..ae5669272303 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
 #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
 #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
 /* Allocation flags: attributes/access options */
-#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
+#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
 #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
 #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
 #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees][PATCH v2] nl80211: Fix undefined behavior in bit shift
  2019-06-27  1:01   ` Jiunn Chang
  (?)
@ 2019-06-27  3:25     ` c0d1n61at3
  -1 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  3:25 UTC (permalink / raw)
  To: skhan; +Cc: linux-kernel-mentees, linux-wireless, linux-kernel, johannes

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

Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
---
 include/uapi/linux/nl80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 6f09d1500960..fa7ebbc6ff27 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
-	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
+	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
 };
 
 /**
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-27  3:25     ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  3:25 UTC (permalink / raw)


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

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/nl80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 6f09d1500960..fa7ebbc6ff27 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
-	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
+	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
 };
 
 /**
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-27  3:25     ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  3:25 UTC (permalink / raw)


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

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 include/uapi/linux/nl80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 6f09d1500960..fa7ebbc6ff27 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
-	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
+	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
 };
 
 /**
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27  3:25   ` c0d1n61at3
  (?)
@ 2019-06-27  3:32     ` skhan
  -1 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  3:32 UTC (permalink / raw)
  To: Jiunn Chang
  Cc: linux-kernel-mentees, netdev, linux-kernel, davem,
	skh >> Shuah Khan

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.

> Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
> ---

Move them here.

>   include/uapi/linux/if_packet.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
> index 467b654bd4c7..3d884d68eb30 100644
> --- a/include/uapi/linux/if_packet.h
> +++ b/include/uapi/linux/if_packet.h
> @@ -123,7 +123,7 @@ struct tpacket_auxdata {
>   /* Rx and Tx ring - header status */
>   #define TP_STATUS_TS_SOFTWARE		(1 << 29)
>   #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
> -#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
> +#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
>   
>   /* Rx ring - feature request bits */
>   #define TP_FT_REQ_FILL_RXHASH	0x1
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27  3:32     ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-27  3:32 UTC (permalink / raw)


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.

> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---

Move them here.

>   include/uapi/linux/if_packet.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
> index 467b654bd4c7..3d884d68eb30 100644
> --- a/include/uapi/linux/if_packet.h
> +++ b/include/uapi/linux/if_packet.h
> @@ -123,7 +123,7 @@ struct tpacket_auxdata {
>   /* Rx and Tx ring - header status */
>   #define TP_STATUS_TS_SOFTWARE		(1 << 29)
>   #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
> -#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
> +#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
>   
>   /* Rx ring - feature request bits */
>   #define TP_FT_REQ_FILL_RXHASH	0x1
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27  3:32     ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  3:32 UTC (permalink / raw)


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.

> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---

Move them here.

>   include/uapi/linux/if_packet.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
> index 467b654bd4c7..3d884d68eb30 100644
> --- a/include/uapi/linux/if_packet.h
> +++ b/include/uapi/linux/if_packet.h
> @@ -123,7 +123,7 @@ struct tpacket_auxdata {
>   /* Rx and Tx ring - header status */
>   #define TP_STATUS_TS_SOFTWARE		(1 << 29)
>   #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
> -#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
> +#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
>   
>   /* Rx ring - feature request bits */
>   #define TP_FT_REQ_FILL_RXHASH	0x1
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] drm/amdkfd: Fix undefined behavior in bit shift
  2019-06-27  3:25     ` c0d1n61at3
  (?)
@ 2019-06-27  3:33       ` skhan
  -1 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  3:33 UTC (permalink / raw)
  To: Jiunn Chang
  Cc: linux-kernel-mentees, dri-devel, linux-kernel, oded.gabbay,
	skh >> Shuah Khan

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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
> ---

Move version change lines here.

>   include/uapi/linux/kfd_ioctl.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index dc067ed0b72d..ae5669272303 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
>   #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
>   /* Allocation flags: attributes/access options */
> -#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
> +#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] drm/amdkfd: Fix undefined behavior in bit shift
@ 2019-06-27  3:33       ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-27  3:33 UTC (permalink / raw)


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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---

Move version change lines here.

>   include/uapi/linux/kfd_ioctl.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index dc067ed0b72d..ae5669272303 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
>   #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
>   /* Allocation flags: attributes/access options */
> -#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
> +#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] drm/amdkfd: Fix undefined behavior in bit shift
@ 2019-06-27  3:33       ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  3:33 UTC (permalink / raw)


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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---

Move version change lines here.

>   include/uapi/linux/kfd_ioctl.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index dc067ed0b72d..ae5669272303 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
>   #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
>   /* Allocation flags: attributes/access options */
> -#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
> +#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
>   #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] nl80211: Fix undefined behavior in bit shift
  2019-06-27  3:25     ` c0d1n61at3
  (?)
@ 2019-06-27  3:34       ` skhan
  -1 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  3:34 UTC (permalink / raw)
  To: Jiunn Chang
  Cc: linux-kernel-mentees, linux-wireless, linux-kernel, johannes, Shuah Khan

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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
> ---

Move version change lines here. They don't belong in the commit log.

>   include/uapi/linux/nl80211.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
> index 6f09d1500960..fa7ebbc6ff27 100644
> --- a/include/uapi/linux/nl80211.h
> +++ b/include/uapi/linux/nl80211.h
> @@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
>   	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
>   	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
>   	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
> -	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
> +	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
>   };
>   
>   /**
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-27  3:34       ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-27  3:34 UTC (permalink / raw)


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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---

Move version change lines here. They don't belong in the commit log.

>   include/uapi/linux/nl80211.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
> index 6f09d1500960..fa7ebbc6ff27 100644
> --- a/include/uapi/linux/nl80211.h
> +++ b/include/uapi/linux/nl80211.h
> @@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
>   	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
>   	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
>   	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
> -	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
> +	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
>   };
>   
>   /**
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-27  3:34       ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27  3:34 UTC (permalink / raw)


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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> ---

Move version change lines here. They don't belong in the commit log.

>   include/uapi/linux/nl80211.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
> index 6f09d1500960..fa7ebbc6ff27 100644
> --- a/include/uapi/linux/nl80211.h
> +++ b/include/uapi/linux/nl80211.h
> @@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
>   	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
>   	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
>   	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
> -	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
> +	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
>   };
>   
>   /**
> 

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees][PATCH v3] packet: Fix undefined behavior in bit shift
  2019-06-27  3:25   ` c0d1n61at3
  (?)
@ 2019-06-27  5:04     ` c0d1n61at3
  -1 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  5:04 UTC (permalink / raw)
  To: skhan; +Cc: linux-kernel-mentees, netdev, linux-kernel, davem

Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v3] packet: Fix undefined behavior in bit shift
@ 2019-06-27  5:04     ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  5:04 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v3] packet: Fix undefined behavior in bit shift
@ 2019-06-27  5:04     ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  5:04 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/if_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 467b654bd4c7..3d884d68eb30 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -123,7 +123,7 @@ struct tpacket_auxdata {
 /* Rx and Tx ring - header status */
 #define TP_STATUS_TS_SOFTWARE		(1 << 29)
 #define TP_STATUS_TS_SYS_HARDWARE	(1 << 30) /* deprecated, never set */
-#define TP_STATUS_TS_RAW_HARDWARE	(1 << 31)
+#define TP_STATUS_TS_RAW_HARDWARE	(1U << 31)
 
 /* Rx ring - feature request bits */
 #define TP_FT_REQ_FILL_RXHASH	0x1
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees][PATCH v3] drm/amdkfd: Fix undefined behavior in bit shift
  2019-06-27  3:25     ` c0d1n61at3
  (?)
@ 2019-06-27  5:04       ` c0d1n61at3
  -1 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  5:04 UTC (permalink / raw)
  To: skhan; +Cc: linux-kernel-mentees, dri-devel, linux-kernel, oded.gabbay

Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/kfd_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index dc067ed0b72d..ae5669272303 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
 #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
 #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
 /* Allocation flags: attributes/access options */
-#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
+#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
 #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
 #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
 #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v3] drm/amdkfd: Fix undefined behavior in bit shift
@ 2019-06-27  5:04       ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  5:04 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/kfd_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index dc067ed0b72d..ae5669272303 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
 #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
 #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
 /* Allocation flags: attributes/access options */
-#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
+#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
 #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
 #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
 #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v3] drm/amdkfd: Fix undefined behavior in bit shift
@ 2019-06-27  5:04       ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  5:04 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/kfd_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index dc067ed0b72d..ae5669272303 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -339,7 +339,7 @@ struct kfd_ioctl_acquire_vm_args {
 #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR		(1 << 2)
 #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL	(1 << 3)
 /* Allocation flags: attributes/access options */
-#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1 << 31)
+#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE	(1U << 31)
 #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE	(1 << 30)
 #define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC		(1 << 29)
 #define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE	(1 << 28)
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees][PATCH v3] nl80211: Fix undefined behavior in bit shift
  2019-06-27  3:25     ` c0d1n61at3
  (?)
@ 2019-06-27  5:04       ` c0d1n61at3
  -1 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  5:04 UTC (permalink / raw)
  To: skhan; +Cc: linux-kernel-mentees, linux-wireless, linux-kernel, johannes

Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/nl80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 6f09d1500960..fa7ebbc6ff27 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
-	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
+	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
 };
 
 /**
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v3] nl80211: Fix undefined behavior in bit shift
@ 2019-06-27  5:04       ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27  5:04 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/nl80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 6f09d1500960..fa7ebbc6ff27 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
-	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
+	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
 };
 
 /**
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v3] nl80211: Fix undefined behavior in bit shift
@ 2019-06-27  5:04       ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27  5:04 UTC (permalink / raw)


Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
Changes included in v3:
  - remove change log from patch description

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

 include/uapi/linux/nl80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 6f09d1500960..fa7ebbc6ff27 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5314,7 +5314,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
-	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
+	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1U << 31,
 };
 
 /**
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27  3:32     ` skhan
  (?)
@ 2019-06-27 16:22       ` davem
  -1 siblings, 0 replies; 80+ messages in thread
From: David Miller @ 2019-06-27 16:22 UTC (permalink / raw)
  To: skhan; +Cc: c0d1n61at3, linux-kernel-mentees, netdev, linux-kernel

From: Shuah Khan <skhan@linuxfoundation.org>
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.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 16:22       ` davem
  0 siblings, 0 replies; 80+ messages in thread
From: davem @ 2019-06-27 16:22 UTC (permalink / raw)


From: Shuah Khan <skhan at linuxfoundation.org>
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.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 16:22       ` davem
  0 siblings, 0 replies; 80+ messages in thread
From: David Miller @ 2019-06-27 16:22 UTC (permalink / raw)


From: Shuah Khan <skhan@linuxfoundation.org>
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.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27 16:22       ` davem
  (?)
@ 2019-06-27 16:52         ` skhan
  -1 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27 16:52 UTC (permalink / raw)
  To: David Miller
  Cc: c0d1n61at3, linux-kernel-mentees, netdev, linux-kernel, Shuah Khan

On 6/27/19 10:22 AM, David Miller wrote:
> From: Shuah Khan <skhan@linuxfoundation.org>
> 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.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 16:52         ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-27 16:52 UTC (permalink / raw)


On 6/27/19 10:22 AM, David Miller wrote:
> From: Shuah Khan <skhan at linuxfoundation.org>
> 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.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 16:52         ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27 16:52 UTC (permalink / raw)


On 6/27/19 10:22 AM, David Miller wrote:
> From: Shuah Khan <skhan at linuxfoundation.org>
> 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.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27 16:22       ` davem
  (?)
@ 2019-06-27 16:57         ` c0d1n61at3
  -1 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27 16:57 UTC (permalink / raw)
  To: David Miller; +Cc: skhan, linux-kernel-mentees, netdev, linux-kernel

On Thu, Jun 27, 2019 at 09:22:53AM -0700, David Miller wrote:
> From: Shuah Khan <skhan@linuxfoundation.org>
> 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.

Hello David,

Would you like me to send v3 with the change log in the patch description?

I would be happy to do that.

THX,

Jiunn

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 16:57         ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-06-27 16:57 UTC (permalink / raw)


On Thu, Jun 27, 2019 at 09:22:53AM -0700, David Miller wrote:
> From: Shuah Khan <skhan at linuxfoundation.org>
> 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.

Hello David,

Would you like me to send v3 with the change log in the patch description?

I would be happy to do that.

THX,

Jiunn

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 16:57         ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-06-27 16:57 UTC (permalink / raw)


On Thu, Jun 27, 2019 at 09:22:53AM -0700, David Miller wrote:
> From: Shuah Khan <skhan at linuxfoundation.org>
> 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.

Hello David,

Would you like me to send v3 with the change log in the patch description?

I would be happy to do that.

THX,

Jiunn

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27 16:52         ` skhan
  (?)
@ 2019-06-27 17:05           ` alexei.starovoitov
  -1 siblings, 0 replies; 80+ messages in thread
From: Alexei Starovoitov @ 2019-06-27 17:05 UTC (permalink / raw)
  To: Shuah Khan
  Cc: David Miller, c0d1n61at3, linux-kernel-mentees,
	Network Development, LKML

On Thu, Jun 27, 2019 at 9:54 AM Shuah Khan <skhan@linuxfoundation.org> wrote:
>
> On 6/27/19 10:22 AM, David Miller wrote:
> > From: Shuah Khan <skhan@linuxfoundation.org>
> > 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.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 17:05           ` alexei.starovoitov
  0 siblings, 0 replies; 80+ messages in thread
From: alexei.starovoitov @ 2019-06-27 17:05 UTC (permalink / raw)


On Thu, Jun 27, 2019 at 9:54 AM Shuah Khan <skhan at linuxfoundation.org> wrote:
>
> On 6/27/19 10:22 AM, David Miller wrote:
> > From: Shuah Khan <skhan at linuxfoundation.org>
> > 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.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 17:05           ` alexei.starovoitov
  0 siblings, 0 replies; 80+ messages in thread
From: Alexei Starovoitov @ 2019-06-27 17:05 UTC (permalink / raw)


On Thu, Jun 27, 2019 at 9:54 AM Shuah Khan <skhan at linuxfoundation.org> wrote:
>
> On 6/27/19 10:22 AM, David Miller wrote:
> > From: Shuah Khan <skhan at linuxfoundation.org>
> > 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.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27 17:05           ` alexei.starovoitov
  (?)
@ 2019-06-27 17:08             ` skhan
  -1 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27 17:08 UTC (permalink / raw)
  To: Alexei Starovoitov
  Cc: David Miller, c0d1n61at3, linux-kernel-mentees,
	Network Development, LKML, Shuah Khan

On 6/27/19 11:05 AM, Alexei Starovoitov wrote:
> On Thu, Jun 27, 2019 at 9:54 AM Shuah Khan <skhan@linuxfoundation.org> wrote:
>>
>> On 6/27/19 10:22 AM, David Miller wrote:
>>> From: Shuah Khan <skhan@linuxfoundation.org>
>>> 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

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 17:08             ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-27 17:08 UTC (permalink / raw)


On 6/27/19 11:05 AM, Alexei Starovoitov wrote:
> On Thu, Jun 27, 2019 at 9:54 AM Shuah Khan <skhan at linuxfoundation.org> wrote:
>>
>> On 6/27/19 10:22 AM, David Miller wrote:
>>> From: Shuah Khan <skhan at linuxfoundation.org>
>>> 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

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 17:08             ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-27 17:08 UTC (permalink / raw)


On 6/27/19 11:05 AM, Alexei Starovoitov wrote:
> On Thu, Jun 27, 2019 at 9:54 AM Shuah Khan <skhan at linuxfoundation.org> wrote:
>>
>> On 6/27/19 10:22 AM, David Miller wrote:
>>> From: Shuah Khan <skhan at linuxfoundation.org>
>>> 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

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27 16:57         ` c0d1n61at3
  (?)
@ 2019-06-27 17:34           ` davem
  -1 siblings, 0 replies; 80+ messages in thread
From: David Miller @ 2019-06-27 17:34 UTC (permalink / raw)
  To: c0d1n61at3; +Cc: skhan, linux-kernel-mentees, netdev, linux-kernel

From: Jiunn Chang <c0d1n61at3@gmail.com>
Date: Thu, 27 Jun 2019 11:57:28 -0500

> On Thu, Jun 27, 2019 at 09:22:53AM -0700, David Miller wrote:
>> From: Shuah Khan <skhan@linuxfoundation.org>
>> 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.
> 
> Hello David,
> 
> Would you like me to send v3 with the change log in the patch description?

I'll use v2 which had this done correctly.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 17:34           ` davem
  0 siblings, 0 replies; 80+ messages in thread
From: davem @ 2019-06-27 17:34 UTC (permalink / raw)


From: Jiunn Chang <c0d1n61at3 at gmail.com>
Date: Thu, 27 Jun 2019 11:57:28 -0500

> On Thu, Jun 27, 2019 at 09:22:53AM -0700, David Miller wrote:
>> From: Shuah Khan <skhan at linuxfoundation.org>
>> 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.
> 
> Hello David,
> 
> Would you like me to send v3 with the change log in the patch description?

I'll use v2 which had this done correctly.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-27 17:34           ` davem
  0 siblings, 0 replies; 80+ messages in thread
From: David Miller @ 2019-06-27 17:34 UTC (permalink / raw)


From: Jiunn Chang <c0d1n61at3@gmail.com>
Date: Thu, 27 Jun 2019 11:57:28 -0500

> On Thu, Jun 27, 2019 at 09:22:53AM -0700, David Miller wrote:
>> From: Shuah Khan <skhan at linuxfoundation.org>
>> 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.
> 
> Hello David,
> 
> Would you like me to send v3 with the change log in the patch description?

I'll use v2 which had this done correctly.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] nl80211: Fix undefined behavior in bit shift
  2019-06-27  3:34       ` skhan
  (?)
@ 2019-06-28 13:57         ` johannes
  -1 siblings, 0 replies; 80+ messages in thread
From: Johannes Berg @ 2019-06-28 13:57 UTC (permalink / raw)
  To: Shuah Khan, Jiunn Chang
  Cc: linux-kernel-mentees, linux-wireless, linux-kernel

On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
> 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
> > 
> > Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
> > ---
> 
> Move version change lines here. They don't belong in the commit log.

FWIW, in many cases people (maintainers) now *do* want them in the
commit log. Here, they're just editorial, so agree, but if real
technical changes were made due to reviews, they can indeed be useful.

johannes


^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-28 13:57         ` johannes
  0 siblings, 0 replies; 80+ messages in thread
From: johannes @ 2019-06-28 13:57 UTC (permalink / raw)


On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
> 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
> > 
> > Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> > ---
> 
> Move version change lines here. They don't belong in the commit log.

FWIW, in many cases people (maintainers) now *do* want them in the
commit log. Here, they're just editorial, so agree, but if real
technical changes were made due to reviews, they can indeed be useful.

johannes

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-28 13:57         ` johannes
  0 siblings, 0 replies; 80+ messages in thread
From: Johannes Berg @ 2019-06-28 13:57 UTC (permalink / raw)


On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
> 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
> > 
> > Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> > ---
> 
> Move version change lines here. They don't belong in the commit log.

FWIW, in many cases people (maintainers) now *do* want them in the
commit log. Here, they're just editorial, so agree, but if real
technical changes were made due to reviews, they can indeed be useful.

johannes

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] nl80211: Fix undefined behavior in bit shift
  2019-06-28 13:57         ` johannes
  (?)
@ 2019-06-28 15:04           ` skhan
  -1 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-28 15:04 UTC (permalink / raw)
  To: Johannes Berg, Jiunn Chang
  Cc: linux-kernel-mentees, linux-wireless, linux-kernel, Shuah Khan

On 6/28/19 7:57 AM, Johannes Berg wrote:
> On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
>> 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
>>>
>>> Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
>>> ---
>>
>> Move version change lines here. They don't belong in the commit log.
> 
> FWIW, in many cases people (maintainers) now *do* want them in the
> commit log. Here, they're just editorial, so agree, but if real
> technical changes were made due to reviews, they can indeed be useful.
> 
> johannes
> 

I went looking in the git log. Looks like there are several commits with
"Changes since" included in the commit log. It still appears to be
maintainer preference. Probably from networking and networking related
areas - wireless being one of them. This trend is recent it appears in
any case.

There is a value to seeing changes as the work evolves. However, there
is the concern that how log should it be.

This example commit has history from RFC stage and no doubt very useful
since this is a new driver.

8ef988b914bd449458eb2174febb67b0f137b33c

If we make this more of a norm, we do want to make sure, we evolve
from informal nature of these "Changes since", to "Commit log" text.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-28 15:04           ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-28 15:04 UTC (permalink / raw)


On 6/28/19 7:57 AM, Johannes Berg wrote:
> On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
>> 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
>>>
>>> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
>>> ---
>>
>> Move version change lines here. They don't belong in the commit log.
> 
> FWIW, in many cases people (maintainers) now *do* want them in the
> commit log. Here, they're just editorial, so agree, but if real
> technical changes were made due to reviews, they can indeed be useful.
> 
> johannes
> 

I went looking in the git log. Looks like there are several commits with
"Changes since" included in the commit log. It still appears to be
maintainer preference. Probably from networking and networking related
areas - wireless being one of them. This trend is recent it appears in
any case.

There is a value to seeing changes as the work evolves. However, there
is the concern that how log should it be.

This example commit has history from RFC stage and no doubt very useful
since this is a new driver.

8ef988b914bd449458eb2174febb67b0f137b33c

If we make this more of a norm, we do want to make sure, we evolve
from informal nature of these "Changes since", to "Commit log" text.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-28 15:04           ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-28 15:04 UTC (permalink / raw)


On 6/28/19 7:57 AM, Johannes Berg wrote:
> On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
>> 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
>>>
>>> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
>>> ---
>>
>> Move version change lines here. They don't belong in the commit log.
> 
> FWIW, in many cases people (maintainers) now *do* want them in the
> commit log. Here, they're just editorial, so agree, but if real
> technical changes were made due to reviews, they can indeed be useful.
> 
> johannes
> 

I went looking in the git log. Looks like there are several commits with
"Changes since" included in the commit log. It still appears to be
maintainer preference. Probably from networking and networking related
areas - wireless being one of them. This trend is recent it appears in
any case.

There is a value to seeing changes as the work evolves. However, there
is the concern that how log should it be.

This example commit has history from RFC stage and no doubt very useful
since this is a new driver.

8ef988b914bd449458eb2174febb67b0f137b33c

If we make this more of a norm, we do want to make sure, we evolve
from informal nature of these "Changes since", to "Commit log" text.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] nl80211: Fix undefined behavior in bit shift
  2019-06-28 15:04           ` skhan
  (?)
@ 2019-06-28 15:17             ` johannes
  -1 siblings, 0 replies; 80+ messages in thread
From: Johannes Berg @ 2019-06-28 15:17 UTC (permalink / raw)
  To: Shuah Khan, Jiunn Chang
  Cc: linux-kernel-mentees, linux-wireless, linux-kernel

Hi Shuah,

> I went looking in the git log. Looks like there are several commits with
> "Changes since" included in the commit log. It still appears to be
> maintainer preference. Probably from networking and networking related
> areas - wireless being one of them. This trend is recent it appears in
> any case.

Yeah. I was really just observing that I'd seen this, and some people (I
guess 'many' was an exaggeration) actively request it to be in the
commit log. I "grew up" with "changelog after ---" too ;-)

> There is a value to seeing changes as the work evolves. However, there
> is the concern that how log should it be.

That doesn't parse, what did you mean?

> This example commit has history from RFC stage and no doubt very useful
> since this is a new driver.
> 
> 8ef988b914bd449458eb2174febb67b0f137b33c
> 
> If we make this more of a norm, we do want to make sure, we evolve
> from informal nature of these "Changes since", to "Commit log" text.

Not sure it's really worth it, but I guess some recommendations could be
useful. If it is indeed to become the norm, and there aren't some people
who strongly feel it should *not* be included.

johannes


^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-28 15:17             ` johannes
  0 siblings, 0 replies; 80+ messages in thread
From: johannes @ 2019-06-28 15:17 UTC (permalink / raw)


Hi Shuah,

> I went looking in the git log. Looks like there are several commits with
> "Changes since" included in the commit log. It still appears to be
> maintainer preference. Probably from networking and networking related
> areas - wireless being one of them. This trend is recent it appears in
> any case.

Yeah. I was really just observing that I'd seen this, and some people (I
guess 'many' was an exaggeration) actively request it to be in the
commit log. I "grew up" with "changelog after ---" too ;-)

> There is a value to seeing changes as the work evolves. However, there
> is the concern that how log should it be.

That doesn't parse, what did you mean?

> This example commit has history from RFC stage and no doubt very useful
> since this is a new driver.
> 
> 8ef988b914bd449458eb2174febb67b0f137b33c
> 
> If we make this more of a norm, we do want to make sure, we evolve
> from informal nature of these "Changes since", to "Commit log" text.

Not sure it's really worth it, but I guess some recommendations could be
useful. If it is indeed to become the norm, and there aren't some people
who strongly feel it should *not* be included.

johannes

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-28 15:17             ` johannes
  0 siblings, 0 replies; 80+ messages in thread
From: Johannes Berg @ 2019-06-28 15:17 UTC (permalink / raw)


Hi Shuah,

> I went looking in the git log. Looks like there are several commits with
> "Changes since" included in the commit log. It still appears to be
> maintainer preference. Probably from networking and networking related
> areas - wireless being one of them. This trend is recent it appears in
> any case.

Yeah. I was really just observing that I'd seen this, and some people (I
guess 'many' was an exaggeration) actively request it to be in the
commit log. I "grew up" with "changelog after ---" too ;-)

> There is a value to seeing changes as the work evolves. However, there
> is the concern that how log should it be.

That doesn't parse, what did you mean?

> This example commit has history from RFC stage and no doubt very useful
> since this is a new driver.
> 
> 8ef988b914bd449458eb2174febb67b0f137b33c
> 
> If we make this more of a norm, we do want to make sure, we evolve
> from informal nature of these "Changes since", to "Commit log" text.

Not sure it's really worth it, but I guess some recommendations could be
useful. If it is indeed to become the norm, and there aren't some people
who strongly feel it should *not* be included.

johannes

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] nl80211: Fix undefined behavior in bit shift
  2019-06-28 15:17             ` johannes
  (?)
@ 2019-06-28 15:27               ` skhan
  -1 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-28 15:27 UTC (permalink / raw)
  To: Johannes Berg, Jiunn Chang
  Cc: linux-kernel-mentees, linux-wireless, linux-kernel, Shuah Khan

On 6/28/19 9:17 AM, Johannes Berg wrote:
> Hi Shuah,
> 
>> I went looking in the git log. Looks like there are several commits with
>> "Changes since" included in the commit log. It still appears to be
>> maintainer preference. Probably from networking and networking related
>> areas - wireless being one of them. This trend is recent it appears in
>> any case.
> 
> Yeah. I was really just observing that I'd seen this, and some people (I
> guess 'many' was an exaggeration) actively request it to be in the
> commit log. I "grew up" with "changelog after ---" too ;-)
> 
>> There is a value to seeing changes as the work evolves. However, there
>> is the concern that how log should it be.
> 
> That doesn't parse, what did you mean?

Say we are on version 16 of a patch series, when does the commit log
become too long to be useful?

> 
>> This example commit has history from RFC stage and no doubt very useful
>> since this is a new driver.
>>
>> 8ef988b914bd449458eb2174febb67b0f137b33c
>>

This commit has a very long commit log starting from RFC stage. It is
very informative.

>> If we make this more of a norm, we do want to make sure, we evolve
>> from informal nature of these "Changes since", to "Commit log" text.
> 
> Not sure it's really worth it, but I guess some recommendations could be
> useful. If it is indeed to become the norm, and there aren't some people
> who strongly feel it should *not* be included.
> 

Yeah. If it becomes a norm, we probably will have to set some limits how
long, and reads like part of the commit log as opposed to something
slapped on at the end.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-28 15:27               ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: skhan @ 2019-06-28 15:27 UTC (permalink / raw)


On 6/28/19 9:17 AM, Johannes Berg wrote:
> Hi Shuah,
> 
>> I went looking in the git log. Looks like there are several commits with
>> "Changes since" included in the commit log. It still appears to be
>> maintainer preference. Probably from networking and networking related
>> areas - wireless being one of them. This trend is recent it appears in
>> any case.
> 
> Yeah. I was really just observing that I'd seen this, and some people (I
> guess 'many' was an exaggeration) actively request it to be in the
> commit log. I "grew up" with "changelog after ---" too ;-)
> 
>> There is a value to seeing changes as the work evolves. However, there
>> is the concern that how log should it be.
> 
> That doesn't parse, what did you mean?

Say we are on version 16 of a patch series, when does the commit log
become too long to be useful?

> 
>> This example commit has history from RFC stage and no doubt very useful
>> since this is a new driver.
>>
>> 8ef988b914bd449458eb2174febb67b0f137b33c
>>

This commit has a very long commit log starting from RFC stage. It is
very informative.

>> If we make this more of a norm, we do want to make sure, we evolve
>> from informal nature of these "Changes since", to "Commit log" text.
> 
> Not sure it's really worth it, but I guess some recommendations could be
> useful. If it is indeed to become the norm, and there aren't some people
> who strongly feel it should *not* be included.
> 

Yeah. If it becomes a norm, we probably will have to set some limits how
long, and reads like part of the commit log as opposed to something
slapped on at the end.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-06-28 15:27               ` skhan
  0 siblings, 0 replies; 80+ messages in thread
From: Shuah Khan @ 2019-06-28 15:27 UTC (permalink / raw)


On 6/28/19 9:17 AM, Johannes Berg wrote:
> Hi Shuah,
> 
>> I went looking in the git log. Looks like there are several commits with
>> "Changes since" included in the commit log. It still appears to be
>> maintainer preference. Probably from networking and networking related
>> areas - wireless being one of them. This trend is recent it appears in
>> any case.
> 
> Yeah. I was really just observing that I'd seen this, and some people (I
> guess 'many' was an exaggeration) actively request it to be in the
> commit log. I "grew up" with "changelog after ---" too ;-)
> 
>> There is a value to seeing changes as the work evolves. However, there
>> is the concern that how log should it be.
> 
> That doesn't parse, what did you mean?

Say we are on version 16 of a patch series, when does the commit log
become too long to be useful?

> 
>> This example commit has history from RFC stage and no doubt very useful
>> since this is a new driver.
>>
>> 8ef988b914bd449458eb2174febb67b0f137b33c
>>

This commit has a very long commit log starting from RFC stage. It is
very informative.

>> If we make this more of a norm, we do want to make sure, we evolve
>> from informal nature of these "Changes since", to "Commit log" text.
> 
> Not sure it's really worth it, but I guess some recommendations could be
> useful. If it is indeed to become the norm, and there aren't some people
> who strongly feel it should *not* be included.
> 

Yeah. If it becomes a norm, we probably will have to set some limits how
long, and reads like part of the commit log as opposed to something
slapped on at the end.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] packet: Fix undefined behavior in bit shift
  2019-06-27  3:25   ` c0d1n61at3
  (?)
@ 2019-06-29 18:06     ` davem
  -1 siblings, 0 replies; 80+ messages in thread
From: David Miller @ 2019-06-29 18:06 UTC (permalink / raw)
  To: c0d1n61at3; +Cc: skhan, linux-kernel-mentees, netdev, linux-kernel

From: Jiunn Chang <c0d1n61at3@gmail.com>
Date: Wed, 26 Jun 2019 22:25:30 -0500

> 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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-29 18:06     ` davem
  0 siblings, 0 replies; 80+ messages in thread
From: davem @ 2019-06-29 18:06 UTC (permalink / raw)


From: Jiunn Chang <c0d1n61at3 at gmail.com>
Date: Wed, 26 Jun 2019 22:25:30 -0500

> 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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] packet: Fix undefined behavior in bit shift
@ 2019-06-29 18:06     ` davem
  0 siblings, 0 replies; 80+ messages in thread
From: David Miller @ 2019-06-29 18:06 UTC (permalink / raw)


From: Jiunn Chang <c0d1n61at3@gmail.com>
Date: Wed, 26 Jun 2019 22:25:30 -0500

> 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
> 
> Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] nl80211: Fix undefined behavior in bit shift
  2019-06-28 13:57         ` johannes
  (?)
@ 2019-07-04 18:34           ` c0d1n61at3
  -1 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-07-04 18:34 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Shuah Khan, linux-kernel-mentees, linux-wireless, linux-kernel

On Fri, Jun 28, 2019 at 03:57:05PM +0200, Johannes Berg wrote:
> On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
> > 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
> > > 
> > > Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
> > > ---
> > 
> > Move version change lines here. They don't belong in the commit log.
> 
> FWIW, in many cases people (maintainers) now *do* want them in the
> commit log. Here, they're just editorial, so agree, but if real
> technical changes were made due to reviews, they can indeed be useful.
> 
> johannes
> 

Hello Johannes,

Would you like me to send v3 with the change log in the patch description?

THX,

Jiunn

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-07-04 18:34           ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: c0d1n61at3 @ 2019-07-04 18:34 UTC (permalink / raw)


On Fri, Jun 28, 2019 at 03:57:05PM +0200, Johannes Berg wrote:
> On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
> > 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
> > > 
> > > Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> > > ---
> > 
> > Move version change lines here. They don't belong in the commit log.
> 
> FWIW, in many cases people (maintainers) now *do* want them in the
> commit log. Here, they're just editorial, so agree, but if real
> technical changes were made due to reviews, they can indeed be useful.
> 
> johannes
> 

Hello Johannes,

Would you like me to send v3 with the change log in the patch description?

THX,

Jiunn

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-07-04 18:34           ` c0d1n61at3
  0 siblings, 0 replies; 80+ messages in thread
From: Jiunn Chang @ 2019-07-04 18:34 UTC (permalink / raw)


On Fri, Jun 28, 2019 at 03:57:05PM +0200, Johannes Berg wrote:
> On Wed, 2019-06-26 at 21:34 -0600, Shuah Khan wrote:
> > 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
> > > 
> > > Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
> > > ---
> > 
> > Move version change lines here. They don't belong in the commit log.
> 
> FWIW, in many cases people (maintainers) now *do* want them in the
> commit log. Here, they're just editorial, so agree, but if real
> technical changes were made due to reviews, they can indeed be useful.
> 
> johannes
> 

Hello Johannes,

Would you like me to send v3 with the change log in the patch description?

THX,

Jiunn

^ permalink raw reply	[flat|nested] 80+ messages in thread

* Re: [Linux-kernel-mentees][PATCH v2] nl80211: Fix undefined behavior in bit shift
  2019-07-04 18:34           ` c0d1n61at3
  (?)
@ 2019-07-04 20:20             ` johannes
  -1 siblings, 0 replies; 80+ messages in thread
From: Johannes Berg @ 2019-07-04 20:20 UTC (permalink / raw)
  To: Jiunn Chang
  Cc: Shuah Khan, linux-kernel-mentees, linux-wireless, linux-kernel

On Thu, 2019-07-04 at 13:34 -0500, Jiunn Chang wrote:
> Would you like me to send v3 with the change log in the patch description?
> 
No no, like I said, it's not very useful in this case anyway.

johannes


^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-07-04 20:20             ` johannes
  0 siblings, 0 replies; 80+ messages in thread
From: johannes @ 2019-07-04 20:20 UTC (permalink / raw)


On Thu, 2019-07-04 at 13:34 -0500, Jiunn Chang wrote:
> Would you like me to send v3 with the change log in the patch description?
> 
No no, like I said, it's not very useful in this case anyway.

johannes

^ permalink raw reply	[flat|nested] 80+ messages in thread

* [Linux-kernel-mentees] [PATCH v2] nl80211: Fix undefined behavior in bit shift
@ 2019-07-04 20:20             ` johannes
  0 siblings, 0 replies; 80+ messages in thread
From: Johannes Berg @ 2019-07-04 20:20 UTC (permalink / raw)


On Thu, 2019-07-04 at 13:34 -0500, Jiunn Chang wrote:
> Would you like me to send v3 with the change log in the patch description?
> 
No no, like I said, it's not very useful in this case anyway.

johannes

^ permalink raw reply	[flat|nested] 80+ messages in thread

end of thread, other threads:[~2019-07-04 20:20 UTC | newest]

Thread overview: 80+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27  1:01 [Linux-kernel-mentees] [PATCH] uapi: linux: Fix undefined behavior in bit shift c0d1n61at3
2019-06-27  1:01 ` Jiunn Chang
2019-06-27  1:01 ` c0d1n61at3
2019-06-27  1:01   ` Jiunn Chang
2019-06-27  1:01 ` c0d1n61at3
2019-06-27  1:01   ` Jiunn Chang
2019-06-27  1:18   ` skhan
2019-06-27  1:18     ` Shuah Khan
2019-06-27  3:25   ` [Linux-kernel-mentees][PATCH v2] drm/amdkfd: " Jiunn Chang
2019-06-27  3:25     ` [Linux-kernel-mentees] [PATCH " Jiunn Chang
2019-06-27  3:25     ` c0d1n61at3
2019-06-27  3:33     ` [Linux-kernel-mentees][PATCH " Shuah Khan
2019-06-27  3:33       ` [Linux-kernel-mentees] [PATCH " Shuah Khan
2019-06-27  3:33       ` skhan
2019-06-27  5:04     ` [Linux-kernel-mentees][PATCH v3] " Jiunn Chang
2019-06-27  5:04       ` [Linux-kernel-mentees] [PATCH " Jiunn Chang
2019-06-27  5:04       ` c0d1n61at3
2019-06-27  1:01 ` [Linux-kernel-mentees] [PATCH] uapi: linux: " c0d1n61at3
2019-06-27  1:01   ` Jiunn Chang
2019-06-27  1:18   ` skhan
2019-06-27  1:18     ` Shuah Khan
2019-06-27  3:25   ` [Linux-kernel-mentees][PATCH v2] nl80211: " Jiunn Chang
2019-06-27  3:25     ` [Linux-kernel-mentees] [PATCH " Jiunn Chang
2019-06-27  3:25     ` c0d1n61at3
2019-06-27  3:34     ` [Linux-kernel-mentees][PATCH " Shuah Khan
2019-06-27  3:34       ` [Linux-kernel-mentees] [PATCH " Shuah Khan
2019-06-27  3:34       ` skhan
2019-06-28 13:57       ` [Linux-kernel-mentees][PATCH " Johannes Berg
2019-06-28 13:57         ` [Linux-kernel-mentees] [PATCH " Johannes Berg
2019-06-28 13:57         ` johannes
2019-06-28 15:04         ` [Linux-kernel-mentees][PATCH " Shuah Khan
2019-06-28 15:04           ` [Linux-kernel-mentees] [PATCH " Shuah Khan
2019-06-28 15:04           ` skhan
2019-06-28 15:17           ` [Linux-kernel-mentees][PATCH " Johannes Berg
2019-06-28 15:17             ` [Linux-kernel-mentees] [PATCH " Johannes Berg
2019-06-28 15:17             ` johannes
2019-06-28 15:27             ` [Linux-kernel-mentees][PATCH " Shuah Khan
2019-06-28 15:27               ` [Linux-kernel-mentees] [PATCH " Shuah Khan
2019-06-28 15:27               ` skhan
2019-07-04 18:34         ` [Linux-kernel-mentees][PATCH " Jiunn Chang
2019-07-04 18:34           ` [Linux-kernel-mentees] [PATCH " Jiunn Chang
2019-07-04 18:34           ` c0d1n61at3
2019-07-04 20:20           ` [Linux-kernel-mentees][PATCH " Johannes Berg
2019-07-04 20:20             ` [Linux-kernel-mentees] [PATCH " Johannes Berg
2019-07-04 20:20             ` johannes
2019-06-27  5:04     ` [Linux-kernel-mentees][PATCH v3] " Jiunn Chang
2019-06-27  5:04       ` [Linux-kernel-mentees] [PATCH " Jiunn Chang
2019-06-27  5:04       ` c0d1n61at3
2019-06-27  1:12 ` [Linux-kernel-mentees] [PATCH] uapi: linux: " skhan
2019-06-27  1:12   ` Shuah Khan
2019-06-27  3:25 ` [Linux-kernel-mentees][PATCH v2] packet: " Jiunn Chang
2019-06-27  3:25   ` [Linux-kernel-mentees] [PATCH " Jiunn Chang
2019-06-27  3:25   ` c0d1n61at3
2019-06-27  3:32   ` [Linux-kernel-mentees][PATCH " Shuah Khan
2019-06-27  3:32     ` [Linux-kernel-mentees] [PATCH " Shuah Khan
2019-06-27  3:32     ` skhan
2019-06-27 16:22     ` [Linux-kernel-mentees][PATCH " David Miller
2019-06-27 16:22       ` [Linux-kernel-mentees] [PATCH " David Miller
2019-06-27 16:22       ` davem
2019-06-27 16:52       ` [Linux-kernel-mentees][PATCH " Shuah Khan
2019-06-27 16:52         ` [Linux-kernel-mentees] [PATCH " Shuah Khan
2019-06-27 16:52         ` skhan
2019-06-27 17:05         ` [Linux-kernel-mentees][PATCH " Alexei Starovoitov
2019-06-27 17:05           ` [Linux-kernel-mentees] [PATCH " Alexei Starovoitov
2019-06-27 17:05           ` alexei.starovoitov
2019-06-27 17:08           ` [Linux-kernel-mentees][PATCH " Shuah Khan
2019-06-27 17:08             ` [Linux-kernel-mentees] [PATCH " Shuah Khan
2019-06-27 17:08             ` skhan
2019-06-27 16:57       ` [Linux-kernel-mentees][PATCH " Jiunn Chang
2019-06-27 16:57         ` [Linux-kernel-mentees] [PATCH " Jiunn Chang
2019-06-27 16:57         ` c0d1n61at3
2019-06-27 17:34         ` [Linux-kernel-mentees][PATCH " David Miller
2019-06-27 17:34           ` [Linux-kernel-mentees] [PATCH " David Miller
2019-06-27 17:34           ` davem
2019-06-27  5:04   ` [Linux-kernel-mentees][PATCH v3] " Jiunn Chang
2019-06-27  5:04     ` [Linux-kernel-mentees] [PATCH " Jiunn Chang
2019-06-27  5:04     ` c0d1n61at3
2019-06-29 18:06   ` [Linux-kernel-mentees][PATCH v2] " David Miller
2019-06-29 18:06     ` [Linux-kernel-mentees] [PATCH " David Miller
2019-06-29 18:06     ` davem

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.