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
| ||
|
Message-Id: <20150221.201749.1670391333178699646.davem@davemloft.net> Date: Sat, 21 Feb 2015 20:17:49 -0500 (EST) From: David Miller <davem@...emloft.net> To: arvid.brodin@...en.se Cc: netdev@...r.kernel.org, nicolas.dichtel@...nd.com Subject: Re: [PATCH net] net/hsr: Fix NULL pointer dereference and refcnt bugs when deleting a HSR interface. From: Arvid Brodin <arvid.brodin@...en.se> Date: Thu, 19 Feb 2015 20:22:38 +0100 > How to repeat: > > $ sudo ip link add hsr0 type hsr slave1 <if1> slave2 <if2> > $ sudo ip link del hsr0 > BUG: unable to handle kernel NULL pointer dereference at 0000000000000018 > IP: [<ffffffff8187f495>] hsr_del_port+0x15/0xa0 > etc... > > Reported-by: Nicolas Dichtel <nicolas.dichtel@...nd.com> > Fixes: 51f3c605318b056a ("net/hsr: Move slave init to hsr_slave.c.") > Signed-off-by: Arvid Brodin <arvid.brodin@...en.se> You're going to have to write a better commit log message than this. For example, wouldn't it be better to restructure the code or rearrange things slightly rather than just sticking NULL pointer checks all over the place? If this were structures properly, you wouldn't get notifications for devices which lack a device private. A spackling of NULL pointer checks to fix a bug is always a huge red flag. -- 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