J. Bruce Fields b663c6fd98 nfsd: fix oops on access from high-numbered ports
This bug was always here, but before my commit 6fa02839bf9412e18e77
("recheck for secure ports in fh_verify"), it could only be triggered by
failure of a kmalloc().  After that commit it could be triggered by a
client making a request from a non-reserved port for access to an export
marked "secure".  (Exports are "secure" by default.)

The result is a struct svc_export with a reference count one too low,
resulting in likely oopses next time the export is accessed.

The reference counting here is not straightforward; a later patch will
clean up fh_verify().

Thanks to Lukas Hejtmanek for the bug report and followup.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Cc: Lukas Hejtmanek <xhejtman@ics.muni.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-14 16:49:15 -07:00
..
2008-02-08 09:22:39 -08:00
2008-02-08 09:22:39 -08:00
2008-02-08 09:22:40 -08:00
2008-02-14 21:13:33 -08:00
2008-02-08 09:22:40 -08:00
2008-02-26 03:44:02 +00:00
2008-02-14 21:13:33 -08:00
2008-02-14 21:13:33 -08:00
2008-03-04 14:47:06 -08:00
2008-02-08 09:22:40 -08:00
2008-02-21 15:19:54 -06:00
2007-10-22 08:13:21 -07:00
2008-02-08 09:22:40 -08:00
2008-03-04 16:35:18 -08:00
2008-02-08 09:22:40 -08:00
2008-02-23 17:12:13 -08:00
2008-02-14 21:13:33 -08:00
2008-02-08 09:22:40 -08:00
2008-02-08 09:22:40 -08:00
2008-02-08 09:22:40 -08:00
2007-10-18 14:37:31 -07:00
2008-03-13 13:11:43 -07:00
2008-02-13 16:21:20 -08:00
2008-03-04 16:35:10 -08:00
2008-02-19 10:04:00 +01:00
2008-01-30 13:31:46 +01:00
2008-02-14 21:13:33 -08:00
2008-02-05 09:44:07 -08:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:01 -07:00
2008-02-14 21:13:33 -08:00
2008-02-06 10:41:07 -08:00
2007-05-08 11:15:09 -07:00
2008-02-05 14:37:15 -08:00
2008-01-30 13:31:46 +01:00
2008-02-14 21:13:33 -08:00
2008-02-14 21:13:33 -08:00
2008-02-13 16:21:19 -08:00
2008-02-06 10:41:02 -08:00
2006-10-01 00:39:19 -07:00
2008-02-14 21:13:33 -08:00
2008-02-05 09:44:07 -08:00
2008-02-14 21:13:33 -08:00
2008-02-14 21:13:33 -08:00