{"push_id":1480101096,"size":1,"distinct_size":1,"ref":"refs/heads/mi5","head":"5dccf15717cda3ee9830db7ba7206faa5af266d2","before":"7c2e4976463de021aadfe1fe0427aad55c6b8457","commits":[{"sha":"5dccf15717cda3ee9830db7ba7206faa5af266d2","author":{"name":"Eric Biggers","email":"0106d512ed1cb672be29d4b167a07ead51709fba@google.com"},"message":"net: socket: don't set sk_uid to garbage value in ->setattr()\n\n->setattr() was recently implemented for socket files to sync the socket\ninode's uid to the new 'sk_uid' member of struct sock.  It does this by\ncopying over the ia_uid member of struct iattr.  However, ia_uid is\nactually only valid when ATTR_UID is set in ia_valid, indicating that\nthe uid is being changed, e.g. by chown.  Other metadata operations such\nas chmod or utimes leave ia_uid uninitialized.  Therefore, sk_uid could\nbe set to a \"garbage\" value from the stack.\n\nFix this by only copying the uid over when ATTR_UID is set.\n\nFixes: 86741ec25462 (\"net: core: Add a UID field to struct sock.\")\nSigned-off-by: Eric Biggers <ebiggers@google.com>\nTested-by: Lorenzo Colitti <lorenzo@google.com>\nAcked-by: Lorenzo Colitti <lorenzo@google.com>\nSigned-off-by: David S. Miller <davem@davemloft.net>\nSigned-off-by: HouHongxun <houhongxun@gmail.com>","distinct":true,"url":"https://api.github.com/repos/hohoxu/n5kernel/commits/5dccf15717cda3ee9830db7ba7206faa5af266d2"}]}
{"actor":{"display_login":"hohoxu"}}