Hello community, here is the log from the commit of package drbd-utils for openSUSE:Factory checked in at 2019-09-11 10:41:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/drbd-utils (Old) and /work/SRC/openSUSE:Factory/.drbd-utils.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "drbd-utils" Wed Sep 11 10:41:19 2019 rev:32 rq:729995 version:9.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/drbd-utils/drbd-utils.changes 2019-09-05 12:47:20.651471421 +0200 +++ /work/SRC/openSUSE:Factory/.drbd-utils.new.7948/drbd-utils.changes 2019-09-11 10:41:58.715203114 +0200 @@ -1,0 +2,18 @@ +Mon Sep 6 08:57:04 UTC 2019 - nw...@suse.com + +- Support Kernel 5.2, bsc#1149945 and bsc#1144702 +- Add patch netlink-prepare-for-kernel-v5.2.patch + Add patch netlink-Add-NLA_F_NESTED-flag-to-nested-attribute.patch + +------------------------------------------------------------------- +Mon Sep 6 01:54:27 UTC 2019 - nw...@suse.com + +- Update to 9.10.0 + * drbdmon: limit desplay lenght, minor fixes + * drbdsetup,v9: avoid underflow when resync regresses + * drbdmeta,v9: allow huge (~1PB volumes) + * drbdsetup,v9: add allow-remote-read flag(9.0.19) + * docker: switch to UBI images + * doc: update JA doc + +------------------------------------------------------------------- Old: ---- drbd-utils-9.9.0.tar.gz New: ---- drbd-utils-9.10.0.tar.gz netlink-Add-NLA_F_NESTED-flag-to-nested-attribute.patch netlink-prepare-for-kernel-v5.2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ drbd-utils.spec ++++++ --- /var/tmp/diff_new_pack.nTM6Am/_old 2019-09-11 10:41:59.479202978 +0200 +++ /var/tmp/diff_new_pack.nTM6Am/_new 2019-09-11 10:41:59.479202978 +0200 @@ -22,7 +22,7 @@ %bcond_without prebuiltman Name: drbd-utils -Version: 9.9.0 +Version: 9.10.0 Release: 0 Summary: Distributed Replicated Block Device License: GPL-2.0+ @@ -37,6 +37,9 @@ # PATCH-SUSE-FIX: Disable quorum in default configuration (bsc#1032142) Patch4: 0001-Disable-quorum-in-default-configuration-bsc-1032142.patch Patch5: move_fencing_from_disk_to_net_in_example.patch +# Bach port patch for kernel v5.2 +Patch6: netlink-prepare-for-kernel-v5.2.patch +Patch7: netlink-Add-NLA_F_NESTED-flag-to-nested-attribute.patch Provides: drbd-bash-completion = %{version} Provides: drbd-pacemaker = %{version} @@ -87,6 +90,8 @@ %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 +%patch7 -p1 %build export WANT_DRBD_REPRODUCIBLE_BUILD=1 ++++++ drbd-utils-9.9.0.tar.gz -> drbd-utils-9.10.0.tar.gz ++++++ ++++ 2697 lines of diff (skipped) ++++++ netlink-Add-NLA_F_NESTED-flag-to-nested-attribute.patch ++++++ >From 859151b228d3b3aacefb09d06d515a2589c22e35 Mon Sep 17 00:00:00 2001 From: He Zhe <zhe...@windriver.com> Date: Fri, 12 Jul 2019 15:07:27 +0800 Subject: [PATCH 2/2] netlink: Add NLA_F_NESTED flag to nested attribute The mainline kernel v5.2 commit b424e432e770 ("netlink: add validation of NLA_F_NESTED flag") imposes strict validation against nested attribute as follow. " Add new validation flag NL_VALIDATE_NESTED which adds three consistency checks of NLA_F_NESTED_FLAG: - the flag is set on attributes with NLA_NESTED{,_ARRAY} policy - the flag is not set on attributes with other policies except NLA_UNSPEC - the flag is set on attribute passed to nla_parse_nested() " Sending messages with nested attribute without NLA_F_NESTED would cause failed validation. For example, $ drbdsetup new-resource r0 Invalid argument This patch adds NLA_F_NESTED flag to all nested attributes. Signed-off-by: He Zhe <zhe...@windriver.com> --- user/shared/libgenl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/shared/libgenl.h b/user/shared/libgenl.h index 4e9888ca..d900a945 100644 --- a/user/shared/libgenl.h +++ b/user/shared/libgenl.h @@ -863,7 +863,7 @@ static inline struct nlattr *nla_nest_start(struct msg_buff *msg, int attrtype) { struct nlattr *start = (struct nlattr *)msg->tail; - if (nla_put(msg, attrtype, 0, NULL) < 0) + if (nla_put(msg, attrtype | NLA_F_NESTED, 0, NULL) < 0) return NULL; return start; -- 2.12.3 ++++++ netlink-prepare-for-kernel-v5.2.patch ++++++ >From 92ade5989027ee7ea5fbde38ad67cd234822afcf Mon Sep 17 00:00:00 2001 From: Roland Kammerer <roland.kamme...@linbit.com> Date: Fri, 12 Jul 2019 13:36:50 +0200 Subject: [PATCH 1/2] netlink: prepare for kernel v5.2 --- user/shared/libgenl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/user/shared/libgenl.h b/user/shared/libgenl.h index f649bc7d..4e9888ca 100644 --- a/user/shared/libgenl.h +++ b/user/shared/libgenl.h @@ -31,6 +31,10 @@ #define SOL_NETLINK 270 #endif +#ifndef NLA_F_NESTED +#define NLA_F_NESTED 0 +#endif + #define DEBUG_LEVEL 1 #define dbg(lvl, fmt, arg...) \ -- 2.16.4