[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090706.130841.109675901.davem@davemloft.net>
Date:	Mon, 06 Jul 2009 13:08:41 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	m.kozlowski@...land.pl
Cc:	herbert@...dor.apana.org.au, netdev@...r.kernel.org,
	abacabadabacaba@...il.com, maxk@...lcomm.com,
	linux-net@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: PROBLEM: tun/tap crashes if open() /dev/net/tun and then
 poll() it.
From: Mariusz Kozlowski <m.kozlowski@...land.pl>
Date: Mon, 6 Jul 2009 07:48:35 +0200
> Fix NULL pointer dereference in tun_chr_pool() introduced by
> commit 33dccbb050bbe35b88ca8cf1228dcf3e4d4b3554 and triggered
> by this code:
> 
> 	int fd;
> 	struct pollfd pfd;
> 	fd = open("/dev/net/tun", O_RDWR);
> 	pfd.fd = fd;
> 	pfd.events = POLLIN | POLLOUT;
> 	poll(&pfd, 1, 0);
> 
> Reported-by: Eugene Kapun <abacabadabacaba@...il.com>
> Signed-off-by: Mariusz Kozlowski <m.kozlowski@...land.pl>
Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
