Skip to contentSkip to conversation

pty/pty03.c: Add another linux git tag

PATCH New Xiao Yang 2 participants 2 messages Sep 25, 2020

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 pty/pty03.c: Add another linux git tag

Running pty03 can trigger the following error on the kernel which applys commit 0ace17d568241 but doesn't apply commit dd42bf1197144:
----------------------------------------------------------
pty03.c:103: TINFO: Creating PTY with HDLC line discipline pty03.c:91: TFAIL: Failed to set the HDLC line discipline: EEXIST (17)
----------------------------------------------------------

---
 testcases/kernel/pty/pty03.c | 4 ++++
 1 file changed, 4 insertions(+)
testcases/kernel/pty/pty03.c +4 -0
index e71739a71..71bcb2eb6 100644
@@ -24,6 +24,9 @@
  *
  * Fixed by commit 0ace17d568241:
  * "can, slip: Protect tty->disc_data in write_wakeup and close with RCU"
+ *
+ * This is also regression test for commit:
+ * dd42bf1197144 ("tty: Prevent ldisc drivers from re-using stale tty fields")
  */
 
 #define _GNU_SOURCE
@@ -151,6 +154,7 @@ static struct tst_test test = {
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "0ace17d568241"},
 		{"CVE", "2020-14416"},
+		{"linux-git", "dd42bf1197144"},
 		{}
 	}
 };
Signature · 1 line
2.25.1