Skip to contentSkip to conversation

Hyper-V commits for 5.1

GIT PULL Sasha Levin 2 participants 5 messages Apr 17, 2019 – Apr 25, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b:

Linux 5.1-rc1 (2019-03-17 14:22:26 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git tags/hyperv-fixes-signed

for you to fetch changes up to a0033bd1eae4650b69be07c17cb87393da584563:

Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup() (2019-04-13 09:36:35 -0400)

- ---------------------------------------------------------------- Three fixes:

1. Fix for a race condition in the hyper-v ringbuffer code by Kimberly
Brown.
2. Fix to show monitor data only when monitor pages are actually
allocated, also by Kimberly Brown.
3. Fix cpu reference counting in the vmbus code by Dexuan Cui.

- ---------------------------------------------------------------- Dexuan Cui (1):
Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()

Kimberly Brown (4):
Drivers: hv: vmbus: Expose monitor data only when monitor pages are used
Drivers: hv: vmbus: Refactor chan->state if statement
Drivers: hv: vmbus: Set ring_info field to 0 and remove memset
Drivers: hv: vmbus: Fix race condition with new ring_buffer_info mutex

 Documentation/ABI/stable/sysfs-bus-vmbus |  12 ++-
 drivers/hv/channel_mgmt.c                |   3 +
 drivers/hv/hv.c                          |   1 -
 drivers/hv/hyperv_vmbus.h                |   3 +
 drivers/hv/ring_buffer.c                 |  22 +++-
 drivers/hv/vmbus_drv.c                   | 166 +++++++++++++++++++++++++------
 include/linux/hyperv.h                   |   7 +-
 7 files changed, 175 insertions(+), 39 deletions(-)

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE4n5dijQDou9mhzu83qZv95d3LNwFAly2gjwACgkQ3qZv95d3 LNwtLg//UPVpBuilk7pzyumaEYNNeVcq781h/cghAOxiTDPlCI/qAkshdPj9ePAI UWmBl/lUTXWcN26Xb2NLF9VulXfTFCiphQdgYMQEVslnOvbYLMLkIOOkrkovT6ie OE5x1j+2S2uF+nwZvLq+FYuS5OiCBx8De1HaCUJQjh1dnrcdjCBTk+idE12tdqa6 pXO32CBKLUK0AEo9yHfeyg9RRsXV89u0wDEOhS160sqx5B6o1TevGOxkPDDQKrKG mo80aY17MV3ljcODt4pqCNz1rITV6wwZ2oTz1sEv+5nMsqGZ9dcpXYQiQp0huaVl /j4v/xY9gUDhGYvixoT8Mn87zc7y0y6o+VMcoM7YO7NJkbDA3XN6UaGzXdon061U w25JBpWdHmot+5PxNafp708V7OBcWpbCoEFhSKvzKcYZlnGo4OA0om966v1WsW2K ssXEPS4qdwtRM1dyK9c/Lt9HgaZWXzpIzj2bMxVjYPMeAmOd6W0QlfnuZuxYHmRd aoZswMwFiC2lyOoHtbo50EzeKLwxVju+ToHFTf2jRXnjsLvDXkE6FmX9DSYnwvnE Vs5qCvW8ynOPhTWAn6eKl0Ysb12+m36w+MEol7JTUlw4XPw7ahHsuxsN4TJQnshD mZYG2Mrc38B/YOytT0asT5Z9U5ob9U7446I2Rn3XbdjVs9EEBAA= =gXIY
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 2 lines · Sasha Levin

2. Fix to show monitor data only when monitor pages are actually
allocated, also by Kimberly Brown.

That's not really a "fix", more like a "new feature", right?

Quoted 1 line
 drivers/hv/vmbus_drv.c                   | 166 +++++++++++++++++++++++++------

A patch this big so late in the release cycle is not good.

Can you drop this one and resend the others? If you sent this as a patch series, I could have done it that way on my own :)

thanks,

greg k-h

#2 lore raw
Quoted 5 lines · Greg KH
Quoted 2 lines · Sasha Levin

2. Fix to show monitor data only when monitor pages are actually
allocated, also by Kimberly Brown.

That's not really a "fix", more like a "new feature", right?

This is (sadly) a fix; we access invalid memory or leak kernel memory to userspace if we access the monitor sysfs files when there are no monitor pages allocated.

Quoted 2 lines
Quoted 1 line
 drivers/hv/vmbus_drv.c                   | 166 +++++++++++++++++++++++++------

A patch this big so late in the release cycle is not good.

Indeed, but I've had it in my queue for a few weeks now so it's been receiving a good amount of testing - it's not something we came up with a few days ago.

Quoted 2 lines

Can you drop this one and resend the others? If you sent this as a patch series, I could have done it that way on my own :)

I would prefer if you could take it in. While it's on the bigger side, a lot of it is documentation (and comments!), and the code itself is straightforward and was well reviewed over 6 iterations of the original patch.

--
Thanks,
Sasha

#3 lore raw

ping?

Quoted 29 lines · Sasha Levin
Quoted 5 lines · Greg KH
Quoted 2 lines · Sasha Levin

2. Fix to show monitor data only when monitor pages are actually allocated, also by Kimberly Brown.

That's not really a "fix", more like a "new feature", right?

This is (sadly) a fix; we access invalid memory or leak kernel memory to userspace if we access the monitor sysfs files when there are no monitor pages allocated.

Quoted 2 lines
Quoted 1 line

drivers/hv/vmbus_drv.c | 166 +++++++++++++++++++++++++------

A patch this big so late in the release cycle is not good.

Indeed, but I've had it in my queue for a few weeks now so it's been receiving a good amount of testing - it's not something we came up with a few days ago.

Quoted 2 lines

Can you drop this one and resend the others? If you sent this as a patch series, I could have done it that way on my own :)

I would prefer if you could take it in. While it's on the bigger side, a lot of it is documentation (and comments!), and the code itself is straightforward and was well reviewed over 6 iterations of the original patch.

--
Thanks,
Sasha

#4 lore raw
In reply to Sasha Levin
Quoted 10 lines · Sasha Levin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b:

Linux 5.1-rc1 (2019-03-17 14:22:26 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git tags/hyperv-fixes-signed

Now pulled and pushed out, thanks.

greg k-h