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

Proposed by Rafael David Tinoco
Status: Rejected
Rejected by: Christian Ehrhardt 
Proposed branch: ~rafaeldtinoco/ubuntu/+source/iproute2:lp1831775-cosmic-sru-iproute2
Merge into: ubuntu/+source/iproute2:ubuntu/cosmic-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 Core Reviewers Pending
Canonical Server Pending
Review via email: mp+368423@code.launchpad.net
To post a comment you must log in.
30ff12d... by Rafael David Tinoco

Add: debian/patches/ss-review-ssfilter.patch

Fixed issue with ss and ssfilter where ssfilter rejects single
expressions if enclosed in braces (LP: #1831775)

Signed-off-by: Rafael David Tinoco <email address hidden>

26ced4f... by Rafael David Tinoco

updated changelog for 4.18.0-1ubuntu2.18.10.1

Signed-off-by: Rafael David Tinoco <email address hidden>

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

- range-diff shows the change is the same as for disco
- manual testing also ok
- version ok for sru

+1

Will sponsor once the eoan upload has 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 :

Cosmic was set to Won't Fix in the bug, for Cosmic being out of primary support almost now.

Unmerged commits

26ced4f... by Rafael David Tinoco

updated changelog for 4.18.0-1ubuntu2.18.10.1

Signed-off-by: Rafael David Tinoco <email address hidden>

30ff12d... by Rafael David Tinoco

Add: debian/patches/ss-review-ssfilter.patch

Fixed issue with ss and ssfilter where ssfilter rejects single
expressions if enclosed in braces (LP: #1831775)

Signed-off-by: Rafael David Tinoco <email address hidden>

Preview Diff

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

Subscribers

People subscribed via source and target branches