staging: comedi: INSN_CONFIG_DIGITAL_TRIG fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | staging: comedi: ni_6527: fix INSN_CONFIG_DIGITAL_TRIG supportdrivers/ | +1 | 0 replies | |
| 2/4 | staging: comedi: addi_apci_1032: check INSN_CONFIG_DIGITAL_TRIG shiftdrivers/ | +14 | 0 replies | |
| 3/4 | staging: comedi: addi_apci_1564: check INSN_CONFIG_DIGITAL_TRIG shiftdrivers/ | +14 | 0 replies | |
| 4/4 | staging: comedi: addi_apci_1500: check INSN_CONFIG_DIGITAL_TRIG shiftdrivers/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] staging: comedi: INSN_CONFIG_DIGITAL_TRIG fixes
These patches correct problems with INSN_CONFIG_DIGITAL_TRIG comedi configuration instructions in various comedi drivers, in particular the use of unconstrained bit shift amounts from userspace leading to undefined behaviour (although hopefully not the kernel crashy sort).
The patches have been marked for inclusion in the stable tree. Note that patch 4 changes a similar area of code to Dan Carpenter's commit ef75e14a6c93 ("staging: comedi: verify array index is correct before using it"), so I have indicated it as a prerequisite.
*Note to Greg KH*: I have based these patches on your "staging-linus" branch due to the prerequisite ef75e14a6c93 mentioned above being present in neither "staging-next" nor "staging-testing" at the time of posting.
1) staging: comedi: ni_6527: fix INSN_CONFIG_DIGITAL_TRIG support
2) staging: comedi: addi_apci_1032: check INSN_CONFIG_DIGITAL_TRIG shift
3) staging: comedi: addi_apci_1564: check INSN_CONFIG_DIGITAL_TRIG shift
4) staging: comedi: addi_apci_1500: check INSN_CONFIG_DIGITAL_TRIG shift
drivers/staging/comedi/drivers/addi_apci_1032.c | 20 ++++++++++++++------ drivers/staging/comedi/drivers/addi_apci_1500.c | 24 +++++++++++++++++++----- drivers/staging/comedi/drivers/addi_apci_1564.c | 20 ++++++++++++++------ drivers/staging/comedi/drivers/ni_6527.c | 2 +- 4 files changed, 48 insertions(+), 18 deletions(-)