Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From 6e4c82467cdef208fb4c0404e920e7f090d4bb30 Mon Sep 17 00:00:00 2001
From: Jia Yu <jyu@vmware.com> Date: Sun, 19 Aug 2018 22:18:45 -0700 Subject: net/bonding: fix buffer corruption in packets [ upstream commit 6b2a47d ] When bond slave devices cannot transmit all packets in bufs array, tx_burst callback shall merge the un-transmitted packets back to bufs array. Recent merge logic introduced a bug which causes invalid mbuf addresses being written to bufs array. When caller frees the un-transmitted packets, due to invalid addresses, application will crash. The fix is avoid shifting mbufs, and directly write un-transmitted packets back to bufs array. Fixes: 0915078 ("net/bonding: burst mode hash calculation") Signed-off-by: Jia Yu <jyu@vmware.com> Acked-by: Chas Williams <chas3@att.com> --- partial-jira-bug: CEM-4321 Pulled in patch from 18.08 Change-Id: I3e2135ada7f93d1d6dd4f8ae80aad820e3b2a486
- Loading branch information
Jeya ganesh babu J
committed
Apr 2, 2019
1 parent
a5ed7f0
commit 332dac0
Showing
1 changed file
with
23 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters