Skip to content

: Fix axrpc/afs related bugs

Patrick McHardy netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4: Fix use after free in netlink_recvmsgnet/netlink/af_netlink.c+2 -40 replies
2/4: Fix memory leak in SRXAFSCB_GetCapabilitiesfs/afs/cmservice.c+1 -00 replies
3/4: Add __dev_getfirstbyhwtypeinclude/linux/netdevice.h net/core/dev.c+17 -50 replies
4/4: Replace rtnetlink client by direct dev_base walkingfs/afs/Makefile fs/afs/internal.h fs/afs/netdevices.c +1 more+55 -4750 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/04]: Fix axrpc/afs related bugs

These patches fix two bugs introduced by the RXRPC patches. While looking at the other code that came in with these patches, I noticed it includes an entire rtnetlink client in the kernel, which doesn't seem to make much sense since all the information is available in much easier ways, so I've replaced it by two small helper functions that should do exactly the same.

Unless I'm missing something fundamental, please apply :)

 fs/afs/Makefile           |    2 
 fs/afs/cmservice.c        |    1 
 fs/afs/internal.h         |    1 
 fs/afs/netdevices.c       |   54 +++++
 fs/afs/use-rtnetlink.c    |  473 ----------------------------------------------
 include/linux/netdevice.h |    1 
 net/core/dev.c            |   21 +-
 net/netlink/af_netlink.c  |    6 
 8 files changed, 75 insertions(+), 484 deletions(-)

Patrick McHardy (4):
[NETLINK]: Fix use after free in netlink_recvmsg [AFS]: Fix memory leak in SRXAFSCB_GetCapabilities [NET]: Add __dev_getfirstbyhwtype
[AFS]: Replace rtnetlink client by direct dev_base walking