Messages in this thread | | | Date | Wed, 29 Apr 2015 15:37:47 -0400 (EDT) | Subject | Re: [PATCH] Fix Kernel Panic in bonding driver debugfs file: rlb_hash_table | From | David Miller <> |
| |
From: Andy Gospodarek <gospo@cumulusnetworks.com> Date: Wed, 29 Apr 2015 14:51:07 -0400
> On Wed, Apr 29, 2015 at 02:24:23PM -0400, Pai wrote: >> This patch fixes a Kernel Panic in bonding driver debugfs file: rlb_hash_table. >> >> $> modprobe bonding mode=6 >> $> cat /sys/kernel/debug/bonding/bond0/rlb_hash_table >> >> This will crash the kernel. The struct alb_bond_info is initialized only when >> the bonding interface is initialized (ip link set bond0 up) and not at the time >> it is allocated. If we try to read the table before that, it'll result in a >> kernel panic. > > Nice catch! > >> >> The patch applies against both net and net-next >> >> Signed-off-by: Vishwanath Pai <vpai@akamai.com> > > Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Applied, thanks.
| |