Re: [PATCH] Fix Kernel Panic in bonding driver debugfs file: rlb_hash_table

From: David Miller
Date: Wed Apr 29 2015 - 15:37:57 EST

From: Andy Gospodarek <gospo@xxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxx>
> Signed-off-by: Andy Gospodarek <gospo@xxxxxxxxxxxxxxxxxxx>

Applied, thanks.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at