[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150702.121204.1674202660204278751.davem@davemloft.net>
Date: Thu, 02 Jul 2015 12:12:04 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: alexander.sverdlin@...ia.com
Cc: netdev@...r.kernel.org, mporter@...nel.crashing.org,
alexandre.bounine@....com, frank.kunz@...ia.com,
marek.krzyzowski@...ia.com
Subject: Re: [PATCH] rionet: Don't try to corrupt skbuff assigning data
pointer directly
From: Alexander Sverdlin <alexander.sverdlin@...ia.com>
Date: Wed, 1 Jul 2015 15:01:11 +0200
> It's not allowed to assign data pointer of skbuff directly, this makes no sense
> if the assigned pointer is the very same as already existing one, or it brakes
> all the pointer arithmetics in all other cases. We cannot do better as just
> compare them and report BUG() in case of mismatch.
>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@...ia.com>
BUG takes the entire machine out, which is worse than corrupting the
skb->data
If you really want to assert this condition, do it in a way that
doesn't kill the entire machine.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists