Date: Wed, 13 Nov 2024 18:01:05 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 252165] usb network and mii bus media status race condition Message-ID: <bug-252165-7501-W0ZKYF7RDI@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-252165-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-252165-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252165 --- Comment #36 from Ali Abdallah <ali.abdallah@suse.com> --- (In reply to Hans Petter Selasky from comment #26) The issue is that ioctl thread to get the media status, which basically sta= rted by userspace races with ue_tick_task. And I finally know why. The usbd_do_request_flags called releases the lock and then later acquire it (see the code). So, an ioctl waiting on the same lock will be executed toge= ther with ue_tick_task (because they aren't executed from the same thread), caus= ing the race observed here and basically breaking all usb ethernet devices. I will shortly attach a patch to Sync ioctl/tick media status changes. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252165-7501-W0ZKYF7RDI>
