Patch "net: fix IFF_TX_SKB_NO_LINEAR definition" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: fix IFF_TX_SKB_NO_LINEAR definition

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-fix-iff_tx_skb_no_linear-definition.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b1f45aa2e85f45a52aeff267f0f35a0decce6b41
Author: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date:   Thu Jun 23 16:32:32 2022 +0300

    net: fix IFF_TX_SKB_NO_LINEAR definition
    
    [ Upstream commit 3b89b511ea0c705cc418440e2abf9d692a556d84 ]
    
    The "1<<31" shift has a sign extension bug so IFF_TX_SKB_NO_LINEAR is
    0xffffffff80000000 instead of 0x0000000080000000.
    
    Fixes: c2ff53d8049f ("net: Add priv_flags for allow tx skb without linear")
    Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
    Reviewed-by: Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/YrRrcGttfEVnf85Q@kili
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 39f1893ecac0..f8d46dc62d65 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1645,7 +1645,7 @@ enum netdev_priv_flags {
 	IFF_FAILOVER_SLAVE		= 1<<28,
 	IFF_L3MDEV_RX_HANDLER		= 1<<29,
 	IFF_LIVE_RENAME_OK		= 1<<30,
-	IFF_TX_SKB_NO_LINEAR		= 1<<31,
+	IFF_TX_SKB_NO_LINEAR		= BIT_ULL(31),
 };
 
 #define IFF_802_1Q_VLAN			IFF_802_1Q_VLAN



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux