Repository navigation
Commit 1909a67
binder: fix memory leak in error path
syzkallar found a 32-byte memory leak in a rarely executed error
case. The transaction complete work item was not freed if put_user()
failed when writing the BR_TRANSACTION_COMPLETE to the user command
buffer. Fixed by freeing it before put_user() is called.
Reported-by: syzbot+182ce46596c3f2e1eb24@syzkaller.appspotmail.com
Signed-off-by: Todd Kjos <tkjos@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 21f010b commit 1909a67
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4256 | 4256 | | |
4257 | 4257 | | |
4258 | 4258 | | |
| 4259 | + | |
| 4260 | + | |
4259 | 4261 | | |
4260 | 4262 | | |
4261 | 4263 | | |
| |||
4264 | 4266 | | |
4265 | 4267 | | |
4266 | 4268 | | |
4267 | | - | |
4268 | | - | |
4269 | 4269 | | |
4270 | 4270 | | |
4271 | 4271 | | |
| |||
0 commit comments