From: Arnd Bergmann > Sent: 24 November 2020 15:18 > > The ethtool compat ioctl handling is hidden away in net/socket.c, > which introduces a couple of minor oddities: > ... > + > +static int ethtool_rxnfc_copy_from_compat(struct ethtool_rxnfc *rxnfc, > + const struct compat_ethtool_rxnfc > __user *useraddr, > + size_t size) > +{
I think this (and possibly others) want a 'noinline_for_stack'. So that both the normal and compat structures aren't both on the stack when the real code is called. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)