[Bug 1866458] Re: drbd not working after kernel upgrade 5.0.x -> 5.3.x
Rafael David Tinoco
rafaeldtinoco at ubuntu.com
Sat Mar 7 16:11:53 UTC 2020
Thanks for your report @a1bert!
The commit that likely fixes the issue is this one:
1 commit 859151b2
2 Author: He Zhe <zhe.he at windriver.com>
3 Date: Fri Jul 12 07:07:27 2019
4
5 netlink: Add NLA_F_NESTED flag to nested attribute
6
7 The mainline kernel v5.2 commit b424e432e770
8 ("netlink: add validation of NLA_F_NESTED flag") imposes strict validation
9 against nested attribute as follow.
10
11 "
12 Add new validation flag NL_VALIDATE_NESTED which adds three consistency
13 checks of NLA_F_NESTED_FLAG:
14
15 - the flag is set on attributes with NLA_NESTED{,_ARRAY} policy
16 - the flag is not set on attributes with other policies except NLA_UNSPEC
17 - the flag is set on attribute passed to nla_parse_nested()
18 "
19
20 Sending messages with nested attribute without NLA_F_NESTED would cause failed
21 validation. For example,
22
23 $ drbdsetup new-resource r0
24 Invalid argument
25
26 This patch adds NLA_F_NESTED flag to all nested attributes.
27
28 Signed-off-by: He Zhe <zhe.he at windriver.com>
and a simple:
+#ifndef NLA_F_NESTED
+#define NLA_F_NESTED 0
+#endif
I'll try to fix this in the next days or so.
ADVICE (for other users who find this):
For now mitigation is to stay in the previous kernel and wait until this
bug is either Fix Proposed (-proposed repo) or Fix Released (-updates).
** Changed in: drbd-utils (Ubuntu)
Status: New => Triaged
** Changed in: drbd-utils (Ubuntu)
Importance: Undecided => Medium
** Changed in: drbd-utils (Ubuntu)
Assignee: (unassigned) => Rafael David Tinoco (rafaeldtinoco)
** Changed in: drbd-utils (Ubuntu)
Status: Triaged => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to drbd-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1866458
Title:
drbd not working after kernel upgrade 5.0.x -> 5.3.x
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/drbd-utils/+bug/1866458/+subscriptions
More information about the Ubuntu-server-bugs
mailing list