Linus Torvalds
52bce91165
splice: reinstate SIGPIPE/EPIPE handling
...
Commit 8924feff66f3 ("splice: lift pipe_lock out of splice_to_pipe()")
caused a regression when there were no more readers left on a pipe that
was being spliced into: rather than the expected SIGPIPE and -EPIPE
return value, the writer would end up waiting forever for space to free
up (which obviously was not going to happen with no readers around).
Fixes: 8924feff66f3 ("splice: lift pipe_lock out of splice_to_pipe()")
Reported-and-tested-by: Andreas Schwab <schwab@linux-m68k.org>
Debugged-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: stable@kernel.org # v4.9
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-12-21 10:59:34 -08:00
..
2016-12-17 19:16:12 -08:00
2016-10-10 20:16:43 -07:00
2016-12-09 16:45:04 +01:00
2016-10-13 17:03:52 +01:00
2016-12-17 19:16:12 -08:00
2016-10-15 12:09:13 -07:00
2016-10-10 23:02:51 -04:00
2016-12-17 19:16:12 -08:00
2016-10-10 20:16:43 -07:00
2016-12-17 19:16:12 -08:00
2016-12-17 19:16:12 -08:00
2016-12-09 16:45:04 +01:00
2016-12-09 16:45:04 +01:00
2016-05-09 11:41:14 -04:00
2016-12-11 16:33:18 -05:00
2016-10-10 20:16:43 -07:00
2016-10-10 20:16:43 -07:00
2016-12-14 08:31:37 -08:00
2016-12-09 16:45:04 +01:00
2016-10-10 20:16:43 -07:00
2016-05-20 17:58:30 -07:00
2016-12-10 14:25:19 -05:00
2016-10-06 09:07:44 -04:00
2016-12-19 08:23:53 -08:00
2016-12-17 19:16:12 -08:00
2016-12-17 19:16:12 -08:00
2016-10-10 20:16:43 -07:00
2016-06-13 10:20:39 +02:00
2016-06-30 23:34:49 -04:00
2016-12-17 19:16:12 -08:00
2016-12-17 19:16:12 -08:00
2016-10-10 20:16:43 -07:00
2016-11-01 09:43:26 -06:00
2016-12-09 16:45:04 +01:00
2016-10-10 20:16:43 -07:00
2016-10-10 20:16:43 -07:00
2016-12-13 10:19:16 -08:00
2016-12-13 10:19:16 -08:00
2016-12-09 16:45:04 +01:00
2016-12-17 19:16:12 -08:00
2016-12-17 19:16:12 -08:00
2016-11-18 10:59:15 -05:00
2016-12-09 16:45:04 +01:00
2016-12-17 19:16:12 -08:00
2016-12-21 10:40:30 -08:00
2016-11-18 10:59:15 -05:00
2016-12-17 19:16:12 -08:00
2016-12-17 19:16:12 -08:00
2016-12-19 08:23:53 -08:00
2016-12-14 17:09:00 -08:00
2016-12-19 08:23:53 -08:00
2016-10-10 20:16:43 -07:00
2016-09-27 21:06:21 -04:00
2016-12-17 19:16:12 -08:00
2016-12-17 19:16:12 -08:00
2016-12-17 19:16:12 -08:00
2016-12-13 09:16:11 -08:00
2016-05-09 11:41:14 -04:00
2016-05-09 11:41:14 -04:00
2016-12-19 08:23:53 -08:00
2016-10-10 20:16:43 -07:00
2016-12-17 19:16:12 -08:00
2016-05-09 11:41:15 -04:00
2016-12-17 19:16:12 -08:00
2016-10-14 12:18:50 -07:00
2016-12-09 16:45:04 +01:00
2016-09-27 21:06:21 -04:00
2016-12-17 19:16:12 -08:00
2016-11-01 09:43:26 -06:00
2016-11-04 14:34:47 -06:00
2016-12-17 19:16:12 -08:00
2016-12-04 18:29:28 -05:00
2016-10-10 20:16:43 -07:00
2016-12-09 11:57:43 +01:00
2016-05-28 16:34:59 -07:00
2016-07-25 16:51:49 +10:00
2016-12-12 18:55:10 -08:00
2016-08-02 19:35:15 -04:00
2016-07-28 13:29:12 +10:00
2016-09-27 21:06:22 -04:00
2016-12-13 21:07:08 -07:00
2016-12-14 17:09:00 -08:00
2016-08-23 22:58:51 -07:00
2016-09-24 09:27:18 +02:00
2016-12-07 17:44:38 -05:00
2016-11-11 08:12:37 -08:00
2016-12-14 16:04:09 -08:00
2016-12-03 20:51:49 -05:00
2016-12-05 19:01:16 -05:00
2016-12-14 21:35:31 -08:00
2016-03-22 15:36:02 -07:00
2016-05-19 19:12:14 -07:00
2016-12-14 17:25:18 -08:00
2016-12-04 18:29:28 -05:00
2016-03-22 15:36:02 -07:00
2016-12-05 19:01:16 -05:00
2016-09-27 18:47:38 -04:00
2016-12-12 18:55:08 -08:00
2016-10-10 20:16:43 -07:00
2016-12-17 18:44:00 -08:00
2016-12-16 11:02:54 +01:00
2016-12-14 21:35:31 -08:00
2016-12-16 10:24:44 -08:00
2016-10-24 08:12:35 -02:00
2016-12-17 19:16:12 -08:00
2016-10-18 12:21:28 +02:00
2016-12-14 23:48:11 -05:00
2016-12-03 15:55:01 -05:00
2016-12-03 20:51:35 -05:00
2016-11-04 14:34:47 -06:00
2016-12-17 19:16:12 -08:00
2016-12-16 16:34:52 -05:00
2016-10-31 10:56:36 -04:00
2016-10-13 20:28:22 -07:00
2016-10-11 15:06:32 -07:00
2016-09-30 12:46:48 -05:00
2016-09-30 12:46:48 -05:00
2016-10-10 20:16:43 -07:00
2016-03-16 13:09:08 -04:00
2016-12-17 18:44:00 -08:00
2016-05-26 00:13:25 -04:00
2016-10-11 15:06:30 -07:00
2016-10-07 18:46:30 -07:00
2016-12-21 10:59:34 -08:00
2016-12-09 16:45:04 +01:00
2016-12-05 19:03:49 -05:00
2016-11-30 08:38:07 +01:00
2016-04-04 10:41:08 -07:00
2016-06-09 23:42:38 +02:00
2016-12-14 16:04:09 -08:00
2016-12-05 19:03:49 -05:00
2016-11-17 00:00:23 -05:00