Merge ~rafaeldtinoco/ubuntu/+source/iproute2:lp1831775-disco-sru-iproute2 into ubuntu/+source/iproute2:ubuntu/disco-devel

Proposed by Rafael David Tinoco
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 4f215eedd81af2a4384232ea78c5c45f49b39d27
Merged at revision: 4f215eedd81af2a4384232ea78c5c45f49b39d27
Proposed branch: ~rafaeldtinoco/ubuntu/+source/iproute2:lp1831775-disco-sru-iproute2
Merge into: ubuntu/+source/iproute2:ubuntu/disco-devel
Diff against target: 160 lines (+138/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/series (+2/-0)
debian/patches/ss-review-ssfilter.patch (+128/-0)
Reviewer Review Type Date Requested Status
Andreas Hasenack Approve
Canonical Server Pending
Canonical Server Core Reviewers Pending
Review via email: mp+368422@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

+1, same change in eoan. Handy command to verify that (before the eoan upload is accepted):

git range-diff pkg/ubuntu/disco-devel..lp1831775-disco-sru-iproute2 pkg/ubuntu/eoan-devel..lp1831775-eoan-sru-iproute2

That compares the change between disco-devel and your disco branch that fixes it, to the change between eoan-devel and your eoan branch.

- version ok in d/changelog
- builds fine
- manual test according to the SRU test instructions also passes

I'll sponsor this once the eoan upload is migrated.

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This migrated already. It wasn't auto-closed because I forgot to switch the MP status to "approved".

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

The latest in Cosmic&Disco still is https://launchpad.net/ubuntu/+source/iproute2/4.18.0-1ubuntu2
=> Not merged

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Tagged and sponsored

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 9673707..555936d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
1iproute2 (4.18.0-1ubuntu2.19.04.1) disco; urgency=medium
2
3 * d/p/ss-review-ssfilter.patch: fixed issue with ss and ssfilter
4 where ssfilter rejects single expressions if enclosed in
5 braces (LP: #1831775)
6
7 -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Wed, 05 Jun 2019 21:26:00 -0300
8
1iproute2 (4.18.0-1ubuntu2) cosmic; urgency=low9iproute2 (4.18.0-1ubuntu2) cosmic; urgency=low
210
3 * d/p/1006-ubuntu-iprule-fix-output.patch11 * d/p/1006-ubuntu-iprule-fix-output.patch
diff --git a/debian/patches/series b/debian/patches/series
index 5aa32c6..cd6393b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,5 @@
71002-ubuntu-poc-fan-driver-vxlan.patch71002-ubuntu-poc-fan-driver-vxlan.patch
81005-ubuntu-fix-testsuite-kenv.patch81005-ubuntu-fix-testsuite-kenv.patch
91006-ubuntu-iprule-fix-output.patch91006-ubuntu-iprule-fix-output.patch
10
11ss-review-ssfilter.patch
diff --git a/debian/patches/ss-review-ssfilter.patch b/debian/patches/ss-review-ssfilter.patch
10new file mode 10064412new file mode 100644
index 0000000..749b114
--- /dev/null
+++ b/debian/patches/ss-review-ssfilter.patch
@@ -0,0 +1,128 @@
1Description: ss: Review ssfilter
2
3The original problem was ssfilter rejecting single expressions if
4enclosed in braces, such as:
5
6| sport = 22 or ( dport = 22 )
7
8This is fixed by allowing 'expr' to be an 'exprlist' enclosed in braces.
9The no longer required recursion in 'exprlist' being an 'exprlist'
10enclosed in braces is dropped.
11
12In addition to that, a few other things are changed:
13
14* Remove pointless 'null' prefix in 'appled' before 'exprlist'.
15* For simple equals matches, '=' operator was required for ports but not
16 allowed for hosts. Make this consistent by making '=' operator
17 optional in both cases.
18
19Reported-by: Samuel Mannehed <samuel@cendio.se>
20Fixes: b2038cc0b2403 ("ssfilter: Eliminate shift/reduce conflicts")
21Signed-off-by: Phil Sutter <phil@nwl.cc>
22Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
23
24Origin: upstream, https://github.com/shemminger/iproute2/commit/38d209ecf2ae
25Bug-Ubuntu: https://bugs.launchpad.net/bugs/1831775
26---
27 misc/ssfilter.y | 36 +++++++++++++++++++++---------------
28 1 file changed, 21 insertions(+), 15 deletions(-)
29
30diff --git a/misc/ssfilter.y b/misc/ssfilter.y
31index 88d4229a..0413ddda 100644
32--- a/misc/ssfilter.y
33+++ b/misc/ssfilter.y
34@@ -42,24 +42,22 @@ static void yyerror(char *s)
35 %nonassoc '!'
36
37 %%
38-applet: null exprlist
39+applet: exprlist
40 {
41- *yy_ret = $2;
42- $$ = $2;
43+ *yy_ret = $1;
44+ $$ = $1;
45 }
46 | null
47 ;
48+
49 null: /* NOTHING */ { $$ = NULL; }
50 ;
51+
52 exprlist: expr
53 | '!' expr
54 {
55 $$ = alloc_node(SSF_NOT, $2);
56 }
57- | '(' exprlist ')'
58- {
59- $$ = $2;
60- }
61 | exprlist '|' expr
62 {
63 $$ = alloc_node(SSF_OR, $1);
64@@ -77,13 +75,21 @@ exprlist: expr
65 }
66 ;
67
68-expr: DCOND HOSTCOND
69+eq: '='
70+ | /* nothing */
71+ ;
72+
73+expr: '(' exprlist ')'
74+ {
75+ $$ = $2;
76+ }
77+ | DCOND eq HOSTCOND
78 {
79- $$ = alloc_node(SSF_DCOND, $2);
80+ $$ = alloc_node(SSF_DCOND, $3);
81 }
82- | SCOND HOSTCOND
83+ | SCOND eq HOSTCOND
84 {
85- $$ = alloc_node(SSF_SCOND, $2);
86+ $$ = alloc_node(SSF_SCOND, $3);
87 }
88 | DPORT GEQ HOSTCOND
89 {
90@@ -101,7 +107,7 @@ expr: DCOND HOSTCOND
91 {
92 $$ = alloc_node(SSF_NOT, alloc_node(SSF_D_GE, $3));
93 }
94- | DPORT '=' HOSTCOND
95+ | DPORT eq HOSTCOND
96 {
97 $$ = alloc_node(SSF_DCOND, $3);
98 }
99@@ -126,7 +132,7 @@ expr: DCOND HOSTCOND
100 {
101 $$ = alloc_node(SSF_NOT, alloc_node(SSF_S_GE, $3));
102 }
103- | SPORT '=' HOSTCOND
104+ | SPORT eq HOSTCOND
105 {
106 $$ = alloc_node(SSF_SCOND, $3);
107 }
108@@ -134,7 +140,7 @@ expr: DCOND HOSTCOND
109 {
110 $$ = alloc_node(SSF_NOT, alloc_node(SSF_SCOND, $3));
111 }
112- | DEVNAME '=' DEVCOND
113+ | DEVNAME eq DEVCOND
114 {
115 $$ = alloc_node(SSF_DEVCOND, $3);
116 }
117@@ -142,7 +148,7 @@ expr: DCOND HOSTCOND
118 {
119 $$ = alloc_node(SSF_NOT, alloc_node(SSF_DEVCOND, $3));
120 }
121- | FWMARK '=' MARKMASK
122+ | FWMARK eq MARKMASK
123 {
124 $$ = alloc_node(SSF_MARKMASK, $3);
125 }
126--
1272.20.1
128

Subscribers

People subscribed via source and target branches