Patch "Revert "net/ieee802154: reject zero-sized raw_sendmsg()"" 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

    Revert "net/ieee802154: reject zero-sized raw_sendmsg()"

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:
     revert-net-ieee802154-reject-zero-sized-raw_sendmsg.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 0b7283ae2d4a80b2cc2f4ec48c4f04f0f4ccb4b6
Author: Alexander Aring <aahringo@xxxxxxxxxx>
Date:   Tue Oct 4 21:47:49 2022 -0400

    Revert "net/ieee802154: reject zero-sized raw_sendmsg()"
    
    [ Upstream commit 2eb2756f6c9e9621e022d78321ce40a62c4520b5 ]
    
    This reverts commit 3a4d061c699bd3eedc80dc97a4b2a2e1af83c6f5.
    
    There is a v2 which does return zero if zero length is given.
    
    Signed-off-by: Alexander Aring <aahringo@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221005014750.3685555-1-aahringo@xxxxxxxxxx
    Signed-off-by: Stefan Schmidt <stefan@xxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/ieee802154/socket.c b/net/ieee802154/socket.c
index f160cfc3e8f0..fd5862f9e26a 100644
--- a/net/ieee802154/socket.c
+++ b/net/ieee802154/socket.c
@@ -251,9 +251,6 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
 		return -EOPNOTSUPP;
 	}
 
-	if (!size)
-		return -EINVAL;
-
 	lock_sock(sk);
 	if (!sk->sk_bound_dev_if)
 		dev = dev_getfirstbyhwtype(sock_net(sk), ARPHRD_IEEE802154);



[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