linux-stable/drivers/infiniband/sw/siw
Jason Gunthorpe a9d2e9ae95 RDMA/siw,rxe: Make emulated devices virtual in the device tree
This moves siw and rxe to be virtual devices in the device tree:

lrwxrwxrwx 1 root root 0 Nov  6 13:55 /sys/class/infiniband/rxe0 -> ../../devices/virtual/infiniband/rxe0/

Previously they were trying to parent themselves to the physical device of
their attached netdev, which doesn't make alot of sense.

My hope is this will solve some weird syzkaller hits related to sysfs as
it could be possible that the parent of a netdev is another netdev, eg
under bonding or some other syzkaller found netdev configuration.

Nesting a ib_device under anything but a physical device is going to cause
inconsistencies in sysfs during destructions.

Link: https://lore.kernel.org/r/0-v1-dcbfc68c4b4a+d6-virtual_dev_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-11-23 16:14:31 -04:00
..
iwarp.h
Kconfig RDMA/core: remove use of dma_virt_ops 2020-11-17 15:22:07 -04:00
Makefile
siw.h RDMA/core: remove use of dma_virt_ops 2020-11-17 15:22:07 -04:00
siw_cm.c RDMA/siw: Fix typo of EAGAIN not -EAGAIN in siw_cm_work_handler() 2020-11-02 15:26:53 -04:00
siw_cm.h
siw_cq.c RDMA/siw: Simplify QP representation 2020-01-03 15:54:09 -04:00
siw_main.c RDMA/siw,rxe: Make emulated devices virtual in the device tree 2020-11-23 16:14:31 -04:00
siw_mem.c mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
siw_mem.h RDMA/siw: Fix 64/32bit pointer inconsistency 2019-08-23 12:08:27 -04:00
siw_qp.c RDMA/siw: Simplify QP representation 2020-01-03 15:54:09 -04:00
siw_qp_rx.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
siw_qp_tx.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
siw_verbs.c RDMA: Check create_flags during create_qp 2020-10-26 19:27:59 -03:00
siw_verbs.h RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00