Files
android_kernel_xiaomi_sm8450/arch/sparc/kernel
Jag Raman 6c95483b76 sparc64: ldc abort during vds iso boot
Orabug: 20902628

When an ldc control-only packet is received during data exchange in
read_nonraw(), a new rx head is calculated but the rx queue head is not
actually advanced (rx_set_head() is not called) and a branch is taken to
'no_data' at which point two things can happen depending on the value
of the newly calculated rx head and the current rx tail:

- If the rx queue is determined to be not empty, then the wrong packet
  is picked up.

- If the rx queue is determined to be empty, then a read error (EAGAIN)
  is eventually returned since it is falsely assumed that more data was
  expected.

The fix is to update the rx head and return in case of a control only
packet during data exchange.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Aaron Young <aaron.young@oracle.com>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Reviewed-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-10 14:10:55 -07:00
..
2014-05-18 19:01:30 -07:00
2014-05-18 19:01:29 -07:00
2017-06-01 09:42:46 -07:00
2016-08-07 23:55:43 -04:00
2017-03-28 18:24:00 -04:00
2016-08-07 23:55:43 -04:00
2016-11-18 11:16:59 -08:00
2016-08-07 23:55:43 -04:00
2016-07-27 22:53:17 -07:00
2017-06-06 16:41:47 -04:00
2017-06-06 13:45:29 -07:00
2017-06-10 14:10:55 -07:00
2015-03-19 10:17:22 -05:00
2016-12-11 18:01:51 -08:00
2017-03-27 21:51:40 -07:00
2015-03-19 18:54:49 -07:00
2013-06-13 22:12:14 +01:00
2012-03-28 18:30:03 +01:00
2017-03-27 21:51:40 -07:00
2017-06-06 13:45:29 -07:00
2017-03-27 21:51:40 -07:00
2014-07-21 22:27:56 -07:00
2017-04-23 18:28:55 -07:00
2017-04-23 18:28:55 -07:00
2017-06-06 13:45:29 -07:00
2017-03-27 21:51:40 -07:00
2017-03-27 21:51:40 -07:00