Files
freebsd-src/sys/dev
Mark Johnston ebf1041fc8 hv_kvp: Fix some bugs and nits
- Use pending_mutex to synchronize several state flags.  In particular,
  ensure that two threads can't race to open the device file at the same
  time.[1]
- Fix an off-by-one in hv_kvp_dev_daemon_read() that would result in a
  one-byte OOB read if the caller supplied a large enough read buffer.[2]
- Change the device permissions to 0600: hv_kvp_dev_daemon_read()
  returns an error until the owning process registers itself with a
  write, so there's no sense in providing read-only access.
- Use bool instead of boolean_t.
- Don't return negative error numbers to userspace.
- Call seldrain() when closing the device.

Reported by:	pixelpop [1][2]
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D60387
2026-10-20 15:30:38 +00:00
..
2026-09-18 16:09:32 -07:00
2025-11-26 23:19:26 -07:00
2026-10-09 23:07:02 +01:00
2024-06-16 16:37:25 -04:00
2026-09-18 14:53:39 -07:00
2026-09-30 14:41:12 +01:00
2026-10-05 16:22:44 -04:00
2026-07-16 18:20:41 +00:00
2026-09-18 16:10:30 -07:00
2026-09-21 19:43:31 -03:00
2025-06-11 17:39:02 +01:00
2025-08-13 14:14:00 +03:00
2024-01-10 19:20:26 +01:00
2026-09-30 12:36:18 +02:00
2026-07-13 16:40:42 -03:00
2026-10-20 15:30:38 +00:00
2023-11-26 22:23:30 -07:00
2026-06-01 14:02:52 +08:00
2026-10-05 10:01:54 -04:00
2025-05-06 13:54:18 +02:00
2025-06-11 17:39:02 +01:00
2026-01-12 00:58:11 +00:00
2023-12-28 13:31:56 -05:00
2026-01-12 00:58:11 +00:00
2025-07-05 11:35:53 +03:00
2026-10-13 19:36:17 +01:00
2026-05-05 13:33:39 -04:00
2026-02-17 15:45:13 -05:00
2026-09-18 14:53:39 -07:00
2025-08-13 14:14:00 +03:00
2024-01-10 19:20:31 +01:00
2025-08-13 14:14:00 +03:00
2024-01-10 19:20:34 +01:00
2025-06-11 17:39:02 +01:00
2026-05-12 17:54:40 +01:00
2026-02-17 15:45:13 -05:00
2025-08-13 14:14:00 +03:00
2026-10-13 18:31:50 +02:00
2025-06-11 17:39:02 +01:00
2025-11-07 15:23:42 -08:00
2026-02-17 15:45:13 -05:00
2024-11-04 20:31:16 -05:00
2026-09-15 01:44:33 +00:00
2026-10-12 18:59:44 +02:00
2024-06-16 16:37:26 -04:00
2026-10-20 09:34:03 -05:00