aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTetsuo Handa <[email protected]>2018-05-26 09:53:13 +0900
committerGreg Kroah-Hartman <[email protected]>2018-06-28 21:30:16 +0900
commit3d63b7e4ae0dc5e02d28ddd2fa1f945defc68d81 (patch)
tree4c72cbec570647876d8060aa4cb85cc4f3dfb796 /tools/perf/scripts/python/export-to-sqlite.py
parent7daf201d7fe8334e2d2364d4e8ed3394ec9af819 (diff)
n_tty: Fix stall at n_tty_receive_char_special().
syzbot is reporting stalls at n_tty_receive_char_special() [1]. This is because comparison is not working as expected since ldata->read_head can change at any moment. Mitigate this by explicitly masking with buffer size when checking condition for "while" loops. [1] https://syzkaller.appspot.com/bug?id=3d7481a346958d9469bebbeb0537d5f056bdd6e8 Signed-off-by: Tetsuo Handa <[email protected]> Reported-by: syzbot <[email protected]> Fixes: bc5a5e3f45d04784 ("n_tty: Don't wrap input buffer indices at buffer size") Cc: stable <[email protected]> Cc: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions