Re: [PATCH 0/2] Add support for setting netlink backend string
ping
This patch series is being added as a dependency to KubeSAN:
https://gitlab.com/kubesan/kubesan/-/merge_requests/100/diffs?commit_id=89a370dcde
https://quay.io/repository/kubesan/nbd-client-i
so it would be nice to have it upstream instead of in a one-off fork.
On Tue, Nov 19, 2024 at 05:27:27PM -0600, Eric Blake wrote:
> Stefan Hajnoczi pointed out to me that since kernel 5.14 (commit
> 6497ef8d in Apr 2021), the netlink interface has allowed userspace to
> pass in an arbitrary backend string visible at
> /sys/block/nbdN/backend, and which prevents the abuse of netlink to
> arbitrarily reconfigure an active NBD connection to a different
> backend, for some added safety when multiple threads might be racing
> to create NBD devices. Time to expose it in nbd-client, along with
> first fixing some regressions along the way.
>
> Eric Blake (2):
> nbd-client: Fix use without -N
> nbd-client: Add support for setting /sys/block/nbdN/backend
>
> .gitignore | 1 +
> man/nbd-client.8.sgml.in | 24 +++++++++++++++++++++++-
> nbd-client.c | 30 ++++++++++++++++++++++++------
> nbd-netlink.h | 7 +++++--
> 4 files changed, 53 insertions(+), 9 deletions(-)
>
> --
> 2.47.0
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization: qemu.org | libguestfs.org
Reply to: