Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1562691
| From | Kalle Valo <kvalo@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: libertas: fix improper return value |
| Date | 2017-01-19 13:50 +0100 |
| Message-ID | <t1kka-1B7-11@gated-at.bofh.it> (permalink) |
| References | <sKg3f-8t6-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Pan Bian <bianpan2016@163.com> wrote: > Function lbs_cmd_802_11_sleep_params() always return 0, even if the call > to lbs_cmd_with_response() fails. In this case, the parameter @sp will > keep uninitialized. Because the return value is 0, its caller (say > lbs_sleepparams_read()) will not detect the error, and will copy the > uninitialized stack memory to user sapce, resulting in stack information > leak. To avoid the bug, this patch returns variable ret (which takes > the return value of lbs_cmd_with_response()) instead of 0. > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188451 > > Signed-off-by: Pan Bian <bianpan2016@163.com> Patch applied to wireless-drivers-next.git, thanks. 259010c509b6 libertas: fix improper return value -- https://patchwork.kernel.org/patch/9459597/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: libertas: fix improper return value Kalle Valo <kvalo@codeaurora.org> - 2017-01-19 13:50 +0100
csiph-web