All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH rc 0/3] Several iommufd bug fixes
@ 2023-07-25 19:05 Jason Gunthorpe
  2023-07-25 19:05 ` [PATCH rc 1/3] iommufd/selftest: Do not try to destroy an access once it is attached Jason Gunthorpe
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Jason Gunthorpe @ 2023-07-25 19:05 UTC (permalink / raw)
  To: iommu
  Cc: Alex Williamson, Lu Baolu, Eric Auger, Kevin Tian, Lixiao Yang,
	Matthew Rosato, Nicolin Chen, stable, syzbot+7574ebfe589049630608,
	Terrence Xu, Yi Liu

Syzkaller found another small issue, a race with
iommufd_object_destroy_user() and IOMMUFD_DESTROY.

While researching that I noticed an error unwind mistake by inspection.

Yi and Nicolin stumbled on the last one running the test suite sometimes.

Jason Gunthorpe (3):
  iommufd/selftest: Do not try to destroy an access once it is attached
  iommufd: IOMMUFD_DESTROY should not increase the refcount
  iommufd: Set end correctly when doing batch carry

 drivers/iommu/iommufd/device.c          | 12 +---
 drivers/iommu/iommufd/iommufd_private.h | 15 ++++-
 drivers/iommu/iommufd/main.c            | 78 +++++++++++++++++++------
 drivers/iommu/iommufd/pages.c           |  2 +-
 drivers/iommu/iommufd/selftest.c        |  9 +--
 5 files changed, 81 insertions(+), 35 deletions(-)


base-commit: 6eaae198076080886b9e7d57f4ae06fa782f90ef
-- 
2.41.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-27 14:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-25 19:05 [PATCH rc 0/3] Several iommufd bug fixes Jason Gunthorpe
2023-07-25 19:05 ` [PATCH rc 1/3] iommufd/selftest: Do not try to destroy an access once it is attached Jason Gunthorpe
2023-07-25 21:45   ` Nicolin Chen
2023-07-26 16:40     ` Jason Gunthorpe
2023-07-26  3:53   ` Greg KH
2023-07-25 19:05 ` [PATCH rc 2/3] iommufd: IOMMUFD_DESTROY should not increase the refcount Jason Gunthorpe
2023-07-27  5:25   ` Tian, Kevin
2023-07-27 14:10     ` Jason Gunthorpe
2023-07-25 19:05 ` [PATCH rc 3/3] iommufd: Set end correctly when doing batch carry Jason Gunthorpe
2023-07-25 19:55   ` Nicolin Chen
2023-07-27  5:26   ` Tian, Kevin
2023-07-27 14:31 ` [PATCH rc 0/3] Several iommufd bug fixes Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.