diff mbox

[natty,natty/ti-omap4,oneiric,precise,quantal,CVE,1/1] UBUNTU: SAUCE: rds_ib_send() -- prevent local pings triggering BUG_ON()

Message ID 1343298352-28414-3-git-send-email-apw@canonical.com
State New
Headers show

Commit Message

Andy Whitcroft July 26, 2012, 10:25 a.m. UTC
Pining localhost on an infiniband connection can trigger a BUG_ON()
and cause a denial of service.

Fix identified by comparison of the RHEL source rpms.

CVE-2012-2372
BugLink: http://bugs.launchpad.net/bugs/1016299
Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 net/rds/ib_send.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index c47a511..ae77da2 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -544,7 +544,7 @@  int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
 	int flow_controlled = 0;
 	int nr_sig = 0;
 
-	BUG_ON(off % RDS_FRAG_SIZE);
+	BUG_ON(!conn->c_loopback && off % RDS_FRAG_SIZE);
 	BUG_ON(hdr_off != 0 && hdr_off != sizeof(struct rds_header));
 
 	/* Do not send cong updates to IB loopback */