Re: need some help with debugging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thomas Petazzoni wrote:

> Hi,
> 
> Le Tue, 31 Jul 2007 13:58:33 +0200,
> Bernd Schubert <bschubert@xxxxxxxxx> a écrit :
> 
>> [ 4754.961940]  <IRQ>
>> [<ffffffff880f08f9>] :bonding:bond_check_dev_link+0xcd/00
> 
> This function does:
> 
> static int (* ioctl)(struct net_device *, struct ifreq *, int);
> [...]
> ioctl = slave_dev->do_ioctl;
> [...]
> IOCTL(slave_dev, &ifr, SIOCGMIIREG) == 0
> 
> and IOCTL() in fact uses the ioctl function pointer. So if
> slave_dev->do_ioctl gets corrupted, then you'll call a function outside
> of the kernel code, and end up with a strange stack.

I don't think so, ioctl is checked first

if (ioctl) {
        ...
}


Cheers,
Bernd



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux