lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 21 Jul 2011 15:25:59 -0700 (PDT) From: David Miller <davem@...emloft.net> To: bhutchings@...arflare.com Cc: linville@...driver.com, kvalo@....qualcomm.com, netdev@...r.kernel.org, linux-wireless@...r.kernel.org Subject: Re: [PATCH net-2.6] ethtool: Allow zero-length register dumps again From: Ben Hutchings <bhutchings@...arflare.com> Date: Thu, 21 Jul 2011 19:54:00 +0200 > Some drivers (ab)use the ethtool_ops::get_regs operation to expose > only a hardware revision ID. Commit > a77f5db361ed9953b5b749353ea2c7fed2bf8d93 ('ethtool: Allocate register > dump buffer with vmalloc()') had the side-effect of breaking these, as > vmalloc() returns a null pointer for size=0 whereas kmalloc() did not. > > For backward-compatibility, allow zero-length dumps again. > > Reported-by: Kalle Valo <kvalo@....qualcomm.com> > Signed-off-by: Ben Hutchings <bhutchings@...arflare.com> > Cc: stable@...nel.org [2.6.37+] Applied to net-next-2.6, I left the CC: stable tag in there so -stable will pick it up once it hits Linus's tree during the merge window. Thanks. -- 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