macsec: restrict to ethernet devices

Only attach macsec to ethernet devices.

Syzbot was able to trigger a KMSAN warning in macsec_handle_frame
by attaching to a phonet device.

Macvlan has a similar check in macvlan_port_create.

  - fix commit message typo

Reported-by: syzbot <>
Signed-off-by: Willem de Bruijn <>
Signed-off-by: David S. Miller <>
1 file changed