Re: [PATCH] decnet: fix DN_IFREQ_SIZE

2019-01-27 Thread David Miller
From: Johannes Berg Date: Sat, 26 Jan 2019 21:12:19 +0100 > From: Johannes Berg > > Digging through the ioctls with Al because of the previous > patches, we found that on 64-bit decnet's dn_dev_ioctl() > is wrong, because struct ifreq::ifr_ifru is actually 24 > bytes (not 16 as expected from st

[PATCH] decnet: fix DN_IFREQ_SIZE

2019-01-26 Thread Johannes Berg
From: Johannes Berg Digging through the ioctls with Al because of the previous patches, we found that on 64-bit decnet's dn_dev_ioctl() is wrong, because struct ifreq::ifr_ifru is actually 24 bytes (not 16 as expected from struct sockaddr) due to the ifru_map and ifru_settings members. Clearly,