Skip to contentSkip to conversation

econet: Move to staging; remove from defconfig

PATCH In review Ben Hutchings 3 participants 8 messages Nov 27, 2010 – Nov 28, 2010

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 econet: Move to staging; remove from defconfig

Recent review has revealed several bugs in econet and other obscure protocol implementations that can be exploited by local users for denial of service or privilege escalation.

The econet protocol (PF_ECONET) is unmaintained. There appear to be no published applications for it, and it has never progressed beyond 'experimental' status.

This protocol generally should not be enabled by distributions, since the cost of a security flaw affecting all installed systems presumably outweighs the benefit to the few (if any) legitimate users.

---
As requested, I'm actually renaming the directory this time. I also noticed that ECONET was enabled in a couple of ARM defconfigs and explicitly disabled in various other defconfigs, so I've removed those lines as well.

This is based on linux-next; I hope it applies to staging.

Ben.

 arch/arm/configs/ixp4xx_defconfig           |    3 ---
 arch/arm/configs/pnx4008_defconfig          |    3 ---
 arch/mips/configs/gpr_defconfig             |    3 ---
 arch/mips/configs/mtx1_defconfig            |    3 ---
 arch/um/defconfig                           |    1 -
 arch/xtensa/configs/common_defconfig        |    1 -
 arch/xtensa/configs/iss_defconfig           |    1 -
 arch/xtensa/configs/s6105_defconfig         |    1 -
 drivers/staging/Kconfig                     |    2 ++
 drivers/staging/Makefile                    |    1 +
 {net => drivers/staging}/econet/Kconfig     |    0
 {net => drivers/staging}/econet/Makefile    |    0
 {net => drivers/staging}/econet/af_econet.c |    0
 net/Kconfig                                 |    1 -
 net/Makefile                                |    1 -
 15 files changed, 3 insertions(+), 18 deletions(-)
 rename {net => drivers/staging}/econet/Kconfig (100%)
 rename {net => drivers/staging}/econet/Makefile (100%)
 rename {net => drivers/staging}/econet/af_econet.c (100%)
arch/arm/configs/ixp4xx_defconfig +0 -3
index 5c50239..bd85c32 100644
@@ -88,9 +88,6 @@ CONFIG_IPDDP_ENCAP=y
 CONFIG_IPDDP_DECAP=y
 CONFIG_X25=m
 CONFIG_LAPB=m
-CONFIG_ECONET=m
-CONFIG_ECONET_AUNUDP=y
-CONFIG_ECONET_NATIVE=y
 CONFIG_WAN_ROUTER=m
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
arch/arm/configs/pnx4008_defconfig +0 -3
index bd481f0..8301e4a 100644
@@ -101,9 +101,6 @@ CONFIG_IPDDP_ENCAP=y
 CONFIG_IPDDP_DECAP=y
 CONFIG_X25=m
 CONFIG_LAPB=m
-CONFIG_ECONET=m
-CONFIG_ECONET_AUNUDP=y
-CONFIG_ECONET_NATIVE=y
 CONFIG_WAN_ROUTER=m
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
arch/mips/configs/gpr_defconfig +0 -3
index 53edc13..9f9aa97 100644
@@ -116,9 +116,6 @@ CONFIG_IPDDP_ENCAP=y
 CONFIG_IPDDP_DECAP=y
 CONFIG_X25=m
 CONFIG_LAPB=m
-CONFIG_ECONET=m
-CONFIG_ECONET_AUNUDP=y
-CONFIG_ECONET_NATIVE=y
 CONFIG_WAN_ROUTER=m
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
arch/mips/configs/mtx1_defconfig +0 -3
index 8146997..79cfb0b 100644
@@ -154,9 +154,6 @@ CONFIG_IPDDP_ENCAP=y
 CONFIG_IPDDP_DECAP=y
 CONFIG_X25=m
 CONFIG_LAPB=m
-CONFIG_ECONET=m
-CONFIG_ECONET_AUNUDP=y
-CONFIG_ECONET_NATIVE=y
 CONFIG_WAN_ROUTER=m
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
arch/um/defconfig +0 -1
index 564f3de..1fd4718 100644
@@ -296,7 +296,6 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
 # CONFIG_ATALK is not set
 # CONFIG_X25 is not set
 # CONFIG_LAPB is not set
-# CONFIG_ECONET is not set
 # CONFIG_WAN_ROUTER is not set
 # CONFIG_NET_SCHED is not set
 
arch/xtensa/configs/common_defconfig +0 -1
index 1d230ee..8c8916c 100644
@@ -239,7 +239,6 @@ CONFIG_IP_PNP_RARP=y
 # CONFIG_X25 is not set
 # CONFIG_LAPB is not set
 # CONFIG_NET_DIVERT is not set
-# CONFIG_ECONET is not set
 # CONFIG_WAN_ROUTER is not set
 
 #
arch/xtensa/configs/iss_defconfig +0 -1
index 7368164..de0c75f 100644
@@ -249,7 +249,6 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
 # CONFIG_ATALK is not set
 # CONFIG_X25 is not set
 # CONFIG_LAPB is not set
-# CONFIG_ECONET is not set
 # CONFIG_WAN_ROUTER is not set
 # CONFIG_PHONET is not set
 # CONFIG_IEEE802154 is not set
arch/xtensa/configs/s6105_defconfig +0 -1
index bb84fbc..c273505 100644
@@ -204,7 +204,6 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
 # CONFIG_ATALK is not set
 # CONFIG_X25 is not set
 # CONFIG_LAPB is not set
-# CONFIG_ECONET is not set
 # CONFIG_WAN_ROUTER is not set
 # CONFIG_NET_SCHED is not set
 # CONFIG_DCB is not set
drivers/staging/Kconfig +2 -0
index 9f83e21..695110d 100644
@@ -192,5 +192,7 @@ source "drivers/staging/cptm1217/Kconfig"
 
 source "drivers/staging/ste_rmi4/Kconfig"
 
+source "drivers/staging/econet/Kconfig"
+
 endif # !STAGING_EXCLUDE_BUILD
 endif # STAGING
drivers/staging/Makefile +1 -0
index 75c0c1f..03f08ed 100644
@@ -71,3 +71,4 @@ obj-$(CONFIG_SND_INTEL_SST)		+= intel_sst/
 obj-$(CONFIG_SPEAKUP)	+= speakup/
 obj-$(CONFIG_TOUCHSCREEN_CLEARPAD_TM1217)	+= cptm1217/
 obj-$(CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_RMI4)	+= ste_rmi4/
+obj-$(CONFIG_ECONET)		+= econet/
drivers/staging/econet/Kconfig renamed from net/econet/Kconfig +0 -0
similarity index 100%
rename from net/econet/Kconfig
rename to drivers/staging/econet/Kconfig
drivers/staging/econet/Makefile renamed from net/econet/Makefile +0 -0
similarity index 100%
rename from net/econet/Makefile
rename to drivers/staging/econet/Makefile
drivers/staging/econet/af_econet.c renamed from net/econet/af_econet.c +0 -0
similarity index 100%
rename from net/econet/af_econet.c
rename to drivers/staging/econet/af_econet.c
net/Kconfig +0 -1
index 5e203b5..4d5b5ed 100644
@@ -207,7 +207,6 @@ source "net/ipx/Kconfig"
 source "drivers/net/appletalk/Kconfig"
 source "net/x25/Kconfig"
 source "net/lapb/Kconfig"
-source "net/econet/Kconfig"
 source "net/wanrouter/Kconfig"
 source "net/phonet/Kconfig"
 source "net/ieee802154/Kconfig"
net/Makefile +0 -1
index 6b7bfd7..0f4ed79 100644
@@ -42,7 +42,6 @@ obj-$(CONFIG_AF_RXRPC)		+= rxrpc/
 obj-$(CONFIG_ATM)		+= atm/
 obj-$(CONFIG_L2TP)		+= l2tp/
 obj-$(CONFIG_DECNET)		+= decnet/
-obj-$(CONFIG_ECONET)		+= econet/
 obj-$(CONFIG_PHONET)		+= phonet/
 ifneq ($(CONFIG_VLAN_8021Q),)
 obj-y				+= 8021q/
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 23 lines · Ben Hutchings

Recent review has revealed several bugs in econet and other obscure protocol implementations that can be exploited by local users for denial of service or privilege escalation.

The econet protocol (PF_ECONET) is unmaintained. There appear to be no published applications for it, and it has never progressed beyond 'experimental' status.

This protocol generally should not be enabled by distributions, since the cost of a security flaw affecting all installed systems presumably outweighs the benefit to the few (if any) legitimate users.

---
As requested, I'm actually renaming the directory this time. I also noticed that ECONET was enabled in a couple of ARM defconfigs and explicitly disabled in various other defconfigs, so I've removed those lines as well.

This is based on linux-next; I hope it applies to staging.

Ben.

Quoted 8 lines
 arch/arm/configs/ixp4xx_defconfig           |    3 ---
 arch/arm/configs/pnx4008_defconfig          |    3 ---
 arch/mips/configs/gpr_defconfig             |    3 ---
 arch/mips/configs/mtx1_defconfig            |    3 ---
 arch/um/defconfig                           |    1 -
 arch/xtensa/configs/common_defconfig        |    1 -
 arch/xtensa/configs/iss_defconfig           |    1 -
 arch/xtensa/configs/s6105_defconfig         |    1 -

No need to change the defconfigs, they will get updated on their own if they need to be.

Quoted 17 lines
 drivers/staging/Kconfig                     |    2 ++
 drivers/staging/Makefile                    |    1 +
 {net => drivers/staging}/econet/Kconfig     |    0
 {net => drivers/staging}/econet/Makefile    |    0
 {net => drivers/staging}/econet/af_econet.c |    0
 net/Kconfig                                 |    1 -
 net/Makefile                                |    1 -
 15 files changed, 3 insertions(+), 18 deletions(-)
 rename {net => drivers/staging}/econet/Kconfig (100%)
 rename {net => drivers/staging}/econet/Makefile (100%)
 rename {net => drivers/staging}/econet/af_econet.c (100%)
arch/arm/configs/ixp4xx_defconfig +0 -0
index 5c50239..bd85c32 100644

arch/arm/configs/ixp4xx_defconfig CONFIG_IPDDP_ENCAP=y · line 93

Quoted 6 lines
arch/arm/configs/ixp4xx_defconfig +0 -3
@@ -88,9 +88,6 @@ CONFIG_IPDDP_ENCAP=y
 CONFIG_IPDDP_DECAP=y
 CONFIG_X25=m
 CONFIG_LAPB=m
-CONFIG_ECONET=m
-CONFIG_ECONET_AUNUDP=y
-CONFIG_ECONET_NATIVE=y

Doesn't this imply that someone is actually using this?

Quoted 8 lines
arch/arm/configs/ixp4xx_defconfig +0 -0
 CONFIG_WAN_ROUTER=m
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
arch/arm/configs/pnx4008_defconfig +0 -0
index bd481f0..8301e4a 100644

arch/arm/configs/pnx4008_defconfig CONFIG_IPDDP_ENCAP=y · line 106

Quoted 6 lines
arch/arm/configs/pnx4008_defconfig +0 -3
@@ -101,9 +101,6 @@ CONFIG_IPDDP_ENCAP=y
 CONFIG_IPDDP_DECAP=y
 CONFIG_X25=m
 CONFIG_LAPB=m
-CONFIG_ECONET=m
-CONFIG_ECONET_AUNUDP=y
-CONFIG_ECONET_NATIVE=y

Same here and for the others.

I also need a TODO file for the staging directory location (see the others for drivers that are going away as an example.)

And I need an ack from the networking maintainer to be able to accept this also.

thanks,

greg k-h

maintainer
#2 lore raw

From: Greg KH <[email protected]>
Date: Sat, 27 Nov 2010 16:21:35 -0800

Quoted 2 lines

And I need an ack from the networking maintainer to be able to accept this also.

I'm not applying this, nor do I want anyone else to.

If people think this protocol is not maintained adequately right now, wait until you push it into staging.

Furthermore, once Phil Blundell was made aware of security holes in econet he fixed them within a few days. Which is much better than I can say for some of the other protocols and filesystems in the tree.

Moving this into staging, is therefore not appropriate.

#3 lore raw
Quoted 11 lines · David Miller

From: Greg KH <[email protected]>
Date: Sat, 27 Nov 2010 16:21:35 -0800

Quoted 2 lines

And I need an ack from the networking maintainer to be able to accept this also.

I'm not applying this, nor do I want anyone else to.

If people think this protocol is not maintained adequately right now, wait until you push it into staging.

Quoted 6 lines

Furthermore, once Phil Blundell was made aware of security holes in econet he fixed them within a few days. Which is much better than I can say for some of the other protocols and filesystems in the tree.

Moving this into staging, is therefore not appropriate.

Agreed.

Ben, why are you trying to remove these protocols that people use and maintain? This is the third one that has been shot down recently...

#4 lore raw
Quoted 17 lines · Greg KH
Quoted 16 lines · David Miller

From: Greg KH <[email protected]>
Date: Sat, 27 Nov 2010 16:21:35 -0800

Quoted 2 lines

And I need an ack from the networking maintainer to be able to accept this also.

I'm not applying this, nor do I want anyone else to.

If people think this protocol is not maintained adequately right now, wait until you push it into staging.

Furthermore, once Phil Blundell was made aware of security holes in econet he fixed them within a few days. Which is much better than I can say for some of the other protocols and filesystems in the tree.

Quoted 6 lines
Quoted 1 line

Moving this into staging, is therefore not appropriate.

Agreed.

Ben, why are you trying to remove these protocols that people use and maintain? This is the third one that has been shot down recently...

Moving to staging is a step toward removal, but not removal itself. I already stated the reasons I picked those three protocols; I'm not going to push the issue if David disagrees.

Ben.

Signature · 9 lines
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101128/6356790c/attachment.sig>
#5 lore raw
In reply to David Miller
Quoted 8 lines · David Miller

From: Greg KH <[email protected]>
Date: Sat, 27 Nov 2010 16:21:35 -0800

Quoted 2 lines

And I need an ack from the networking maintainer to be able to accept this also.

I'm not applying this, nor do I want anyone else to.

Quoted 7 lines

If people think this protocol is not maintained adequately right now, wait until you push it into staging.

Furthermore, once Phil Blundell was made aware of security holes in econet he fixed them within a few days. Which is much better than I can say for some of the other protocols and filesystems in the tree.

Those bugs were present for years and would have been obvious to anyone who cared to read the code. While I very much appreciate Phil's quick response, I don't think this reactive maintenance is enough.

Quoted 1 line

Moving this into staging, is therefore not appropriate.

Oh well, it's not enough as if many distributions bothered to build it anyway, and we've learned our lesson now. Whether it's labelled as staging or not, it's dead, Jim.

Ben.

Signature · 9 lines
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101128/430d1d17/attachment.sig>
maintainer
#6 lore raw

From: Ben Hutchings <[email protected]>
Date: Sun, 28 Nov 2010 01:53:35 +0000

Quoted 12 lines · David Miller
Quoted 11 lines

From: Greg KH <[email protected]>
Date: Sat, 27 Nov 2010 16:21:35 -0800

Quoted 2 lines

And I need an ack from the networking maintainer to be able to accept this also.

I'm not applying this, nor do I want anyone else to.

If people think this protocol is not maintained adequately right now, wait until you push it into staging.

Quoted 8 lines
Quoted 4 lines

Furthermore, once Phil Blundell was made aware of security holes in econet he fixed them within a few days. Which is much better than I can say for some of the other protocols and filesystems in the tree.

Those bugs were present for years and would have been obvious to anyone who cared to read the code. While I very much appreciate Phil's quick response, I don't think this reactive maintenance is enough.

These same arguments could for be made for RDS. Look at all the hellacious awful obvious crap we've discovered in that code recently. A simple read would have caught those too, and I don't see it's maintainer doing such things.

So, you're very much still not convincing Ben, but feel free to keep trying.

#7 lore raw
Quoted 20 lines · David Miller

From: Ben Hutchings <[email protected]>
Date: Sun, 28 Nov 2010 01:53:35 +0000

Quoted 17 lines · David Miller
Quoted 15 lines

From: Greg KH <[email protected]>
Date: Sat, 27 Nov 2010 16:21:35 -0800

Quoted 2 lines

And I need an ack from the networking maintainer to be able to accept this also.

I'm not applying this, nor do I want anyone else to.

If people think this protocol is not maintained adequately right now, wait until you push it into staging.

Furthermore, once Phil Blundell was made aware of security holes in econet he fixed them within a few days. Which is much better than I can say for some of the other protocols and filesystems in the tree.

Quoted 8 lines
Quoted 3 lines

Those bugs were present for years and would have been obvious to anyone who cared to read the code. While I very much appreciate Phil's quick response, I don't think this reactive maintenance is enough.

These same arguments could for be made for RDS. Look at all the hellacious awful obvious crap we've discovered in that code recently. A simple read would have caught those too, and I don't see it's maintainer doing such things.

Indeed, hence the change I made for the upcoming Debian release was:

* af_802154,decnet,econet,rds,x25: Disable auto-loading as mitigation against local exploits. These protocol modules are not widely used and can be explicitly loaded or aliased on systems where they are wanted.

(While decnet may be in better shape than the others, auto-loading is unnecessary for us as the userland support package explicitly loads it..)

Quoted 2 lines

So, you're very much still not convincing Ben, but feel free to keep trying.

I'm not going to try any more.

Ben.

Signature · 9 lines
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101128/ecd46179/attachment.sig>