Skip to content

"Revert and fix properly" patch series based on umn.edu re-review

Greg Kroah-Hartman linux-crypto linux-leds lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest69 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/69Revert "crypto: cavium/nitrox - add an error message to explain the failure of pci_request_mem_regions"drivers/crypto/cavium/nitrox/nitrox_main.c+0 -10 replies
2/69Revert "ACPI: custom_method: fix memory leaks"drivers/acpi/custom_method.c+1 -40 replies
3/69Revert "media: rcar_drif: fix a memory disclosure"drivers/media/platform/rcar_drif.c+0 -10 replies
4/69Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"drivers/hwmon/lm80.c+2 -90 replies
5/69Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference"drivers/tty/serial/mvebu-uart.c+0 -30 replies
6/69Revert "media: usb: gspca: add a missed check for goto_low_power"drivers/media/usb/gspca/cpia1.c+1 -50 replies
7/69Revert "ALSA: sb: fix a missing check of snd_ctl_add"sound/isa/sb/sb16_main.c+3 -70 replies
8/69Revert "leds: lp5523: fix a missing check of return value of lp55xx_read"drivers/leds/leds-lp5523.c+1 -30 replies
9/69leds: lp5523: check return value of lp5xx_read and jump to cleanup codedrivers/leds/leds-lp5523.c+3 -12 replies
10/69Revert "serial: max310x: pass return value of spi_register_driver"drivers/tty/serial/max310x.c+2 -20 replies
11/69serial: max310x: unregister uart driver in case of failure and abortdrivers/tty/serial/max310x.c+4 -20 replies
12/69Revert "rtlwifi: fix a potential NULL pointer dereference"drivers/net/wireless/realtek/rtlwifi/base.c+0 -50 replies
13/69net: rtlwifi: properly check for alloc_workqueue() failuredrivers/net/wireless/realtek/rtlwifi/base.c+10 -50 replies
14/69Revert "net: fujitsu: fix a potential NULL pointer dereference"drivers/net/ethernet/fujitsu/fmvj18x_cs.c+0 -50 replies
15/69net: fujitsu: fix potential null-ptr-derefdrivers/net/ethernet/fujitsu/fmvj18x_cs.c+5 -00 replies
16/69Revert "net/smc: fix a NULL pointer dereference"net/smc/smc_ism.c+0 -50 replies
17/69net/smc: properly handle workqueue allocation failurenet/smc/smc_ism.c+8 -20 replies
18/69Revert "net: caif: replace BUG_ON with recovery code"drivers/net/caif/caif_serial.c+1 -30 replies
19/69net: caif: remove BUG_ON(dev == NULL) in caif_xmitdrivers/net/caif/caif_serial.c+0 -10 replies
20/69Revert "net: stmicro: fix a missing check of clk_prepare"drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c+1 -30 replies
21/69net: stmicro: handle clk_prepare() failure during initdrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c+5 -30 replies
22/69Revert "niu: fix missing checks of niu_pci_eeprom_read"drivers/net/ethernet/sun/niu.c+2 -80 replies
23/69ethernet: sun: niu: fix missing checks of niu_pci_eeprom_read()drivers/net/ethernet/sun/niu.c+24 -100 replies
24/69Revert "qlcnic: Avoid potential NULL pointer dereference"drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c+0 -20 replies
25/69qlcnic: Add null check after calling netdev_alloc_skbdrivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c+3 -00 replies
26/69Revert "gdrom: fix a memory leak bug"drivers/cdrom/gdrom.c+0 -10 replies
27/69cdrom: gdrom: deallocate struct gdrom_unit fields in remove_gdromdrivers/cdrom/gdrom.c+2 -19 replies
28/69Revert "char: hpet: fix a missing check of ioremap"drivers/char/hpet.c+0 -20 replies
29/69char: hpet: add checks after calling ioremapdrivers/char/hpet.c+4 -00 replies
30/69Revert "scsi: ufs: fix a missing check of devm_reset_control_get"drivers/scsi/ufs/ufs-hisi.c+0 -40 replies
31/69scsi: ufs: handle cleanup correctly on devm_reset_control_get errordrivers/scsi/ufs/ufs-hisi.c+12 -50 replies
32/69Revert "ALSA: gus: add a check of the status of snd_ctl_add"sound/isa/gus/gus_main.c+2 -110 replies
33/69ALSA: gus: properly handle snd_ctl_add() errorsound/isa/gus/gus_main.c+4 -42 replies
34/69Revert "ALSA: sb8: add a check for request_region"sound/isa/sb/sb8.c+0 -40 replies
35/69ALSA: sb8: Add a comment note regarding an unused pointersound/isa/sb/sb8.c+5 -10 replies
36/69Revert "ALSA: usx2y: Fix potential NULL pointer dereference"sound/usb/usx2y/usb_stream.c+0 -50 replies
37/69ALSA: usx2y: check for failure of usb_alloc_urb()sound/usb/usx2y/usb_stream.c+19 -23 replies
38/69Revert "video: hgafb: fix potential NULL pointer dereference"drivers/video/fbdev/hgafb.c+0 -20 replies
39/69video: hgafb: fix potential NULL pointer dereferencedrivers/video/fbdev/hgafb.c+13 -80 replies
40/69Revert "isdn: mISDNinfineon: fix potential NULL pointer dereference"drivers/isdn/hardware/mISDN/mISDNinfineon.c+1 -40 replies
41/69isdn: mISDNinfineon: check/cleanup ioremap failure correctly in setup_iodrivers/isdn/hardware/mISDN/mISDNinfineon.c+16 -80 replies
42/69Revert "ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()"drivers/net/wireless/ath/ath6kl/wmi.c+3 -10 replies
43/69ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()drivers/net/wireless/ath/ath6kl/debug.c drivers/net/wireless/ath/ath6kl/wmi.c+5 -40 replies
44/69Revert "rapidio: fix a NULL pointer dereference when create_workqueue() fails"drivers/rapidio/rio_cm.c+0 -80 replies
45/69rapidio: handle create_workqueue() failuredrivers/rapidio/rio_cm.c+8 -10 replies
46/69Revert "isdn: mISDN: Fix potential NULL pointer dereference of kzalloc"drivers/isdn/hardware/mISDN/hfcsusb.c+0 -30 replies
47/69isdn: mISDN: correctly handle ph_info allocation failure in hfcsusb_ph_infodrivers/isdn/hardware/mISDN/hfcsusb.c+10 -80 replies
48/69Revert "ecryptfs: replace BUG_ON with error handling code"fs/ecryptfs/crypto.c+2 -40 replies
49/69fs: ecryptfs: remove BUG_ON from crypt_scatterlistfs/ecryptfs/crypto.c+0 -20 replies
50/69Revert "dmaengine: qcom_hidma: Check for driver register failure"drivers/dma/qcom/hidma_mgmt.c+2 -12 replies
51/69dmaengine: qcom_hidma: comment platform_driver_register calldrivers/dma/qcom/hidma_mgmt.c+14 -02 replies
52/69Revert "libertas: add checks for the return value of sysfs_create_group"drivers/net/wireless/marvell/libertas/mesh.c+0 -50 replies
53/69libertas: register sysfs groups properlydrivers/net/wireless/marvell/libertas/mesh.c+4 -240 replies
54/69Revert "ASoC: rt5645: fix a NULL pointer dereference"sound/soc/codecs/rt5645.c+0 -30 replies
55/69ASoC: rt5645: add error checking to rt5645_probe functionsound/soc/codecs/rt5645.c+39 -94 replies
56/69Revert "ASoC: cs43130: fix a NULL pointer dereference"sound/soc/codecs/cs43130.c+0 -20 replies
57/69ASoC: cs43130: handle errors in cs43130_probe() properlysound/soc/codecs/cs43130.c+14 -140 replies
58/69Revert "media: dvb: Add check on sp8870_readreg"drivers/media/dvb-frontends/sp8870.c+1 -30 replies
59/69media: dvb: Add check on sp8870_readreg returndrivers/media/dvb-frontends/sp8870.c+3 -10 replies
60/69Revert "media: gspca: mt9m111: Check write_bridge for timeout"drivers/media/usb/gspca/m5602/m5602_mt9m111.c+3 -50 replies
61/69media: gspca: mt9m111: Check write_bridge for timeoutdrivers/media/usb/gspca/m5602/m5602_mt9m111.c+8 -60 replies
62/69Revert "media: gspca: Check the return value of write_bridge for timeout"drivers/media/usb/gspca/m5602/m5602_po1030.c+2 -60 replies
63/69media: gspca: properly check for errors in po1030_probe()drivers/media/usb/gspca/m5602/m5602_po1030.c+7 -30 replies
64/69Revert "net: liquidio: fix a NULL pointer dereference"drivers/net/ethernet/cavium/liquidio/lio_main.c+0 -50 replies
65/69net: liquidio: Add missing null pointer checksdrivers/net/ethernet/cavium/liquidio/lio_main.c drivers/net/ethernet/cavium/liquidio/lio_vf_main.c+40 -150 replies
66/69Revert "video: imsttfb: fix potential NULL pointer dereferences"drivers/video/fbdev/imsttfb.c+0 -51 reply
67/69video: imsttfb: check for ioremap() failuresdrivers/video/fbdev/imsttfb.c+18 -31 reply
68/69Revert "brcmfmac: add a check for the status of usb_register"drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c+1 -50 replies
69/69brcmfmac: properly check for bus register errorsdrivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +3 more+41 -460 replies

Reviews trailers per patch

16 of 69 patches have a Reviewed-by or Acked-by.

PatchMauro Carvalho ChehabFabrizio CastroDominik BrodowskiGuenter RoeckJiri SlabyTakashi IwaiTyler HicksSinan KayaVinod KoulRob HerringJacek AnaszewskiPeter Rosin
1/69
2/69
3/69R-b R-b
4/69A-b
5/69A-b
6/69
7/69R-b
8/69
9/69A-b
10/69A-b
11/69
12/69
13/69
14/69R-b
15/69
16/69
17/69
18/69
19/69
20/69
21/69
22/69
23/69
24/69
25/69
26/69
27/69R-b
28/69
29/69
30/69
31/69
32/69R-b
33/69
34/69A-b
35/69
36/69R-b
37/69
38/69
39/69
40/69
41/69
42/69
43/69
44/69
45/69
46/69
47/69
48/69A-b
49/69
50/69A-b A-b
51/69A-b A-b
52/69
53/69
54/69
55/69
56/69
57/69
58/69
59/69
60/69
61/69
62/69
63/69
64/69
65/69
66/69R-b
67/69R-b
68/69
69/69

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 12 reviewers.

Read the v1 thread

Cover letter [PATCH 00/69] "Revert and fix properly" patch series based on umn.edu re-review

Hi all,

[individuals put on bcc: due to quantity would have been rejected by vger]

Here is the "final" set of reverts and fixes based on the re-review of all accepted umn.edu commits. It consists of 7 "clean" reverts that do not need to be fixed up again for various reasons (see the commit messages for reasoning), and then 31 sets of "revert & fix" commits that consist of reverting the offending commit and then fixing it up properly.

Where these patches were accepted into stable kernels, I've properly tagged them for reverting in the stable kernels automatically as well.

I'll be taking these through one of my trees, so there's no need for any maintainer to have to worry about these needing to go through theirs.

Many thanks to the huge number of people who provided the original "revert review" of all of the patches, as well as the developers here who worked to provide "correct" fixes for these issues so that no kernel release will go out with any bugfix being dropped.

thanks,

greg k-h

----------

Alaa Emad (2):
media: dvb: Add check on sp8870_readreg return
media: gspca: mt9m111: Check write_bridge for timeout

Anirudh Rayabharam (5):
net: fujitsu: fix potential null-ptr-deref net/smc: properly handle workqueue allocation failure
net: stmicro: handle clk_prepare() failure during init
ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()
rapidio: handle create_workqueue() failure

Atul Gopinathan (3):
serial: max310x: unregister uart driver in case of failure and abort
cdrom: gdrom: deallocate struct gdrom_unit fields in remove_gdrom
ALSA: sb8: Add a comment note regarding an unused pointer

Du Cheng (2):
net: caif: remove BUG_ON(dev == NULL) in caif_xmit
ethernet: sun: niu: fix missing checks of niu_pci_eeprom_read()

Greg Kroah-Hartman (44):
Revert "crypto: cavium/nitrox - add an error message to explain the
failure of pci_request_mem_regions"
Revert "media: rcar_drif: fix a memory disclosure"
Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe" Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer
dereference"
Revert "media: usb: gspca: add a missed check for goto_low_power" Revert "ALSA: sb: fix a missing check of snd_ctl_add" Revert "leds: lp5523: fix a missing check of return value of

    lp55xx_read"

Revert "serial: max310x: pass return value of spi_register_driver" Revert "rtlwifi: fix a potential NULL pointer dereference"
net: rtlwifi: properly check for alloc_workqueue() failure Revert "net: fujitsu: fix a potential NULL pointer dereference" Revert "net/smc: fix a NULL pointer dereference"
Revert "net: caif: replace BUG_ON with recovery code" Revert "net: stmicro: fix a missing check of clk_prepare" Revert "niu: fix missing checks of niu_pci_eeprom_read" Revert "qlcnic: Avoid potential NULL pointer dereference" Revert "gdrom: fix a memory leak bug"
Revert "char: hpet: fix a missing check of ioremap"
Revert "scsi: ufs: fix a missing check of devm_reset_control_get" Revert "ALSA: gus: add a check of the status of snd_ctl_add" Revert "ALSA: sb8: add a check for request_region"
Revert "ALSA: usx2y: Fix potential NULL pointer dereference"
ALSA: usx2y: check for failure of usb_alloc_urb()
Revert "video: hgafb: fix potential NULL pointer dereference" Revert "isdn: mISDNinfineon: fix potential NULL pointer dereference" Revert "ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()" Revert "rapidio: fix a NULL pointer dereference when
create_workqueue() fails"
Revert "isdn: mISDN: Fix potential NULL pointer dereference of
kzalloc"
Revert "ecryptfs: replace BUG_ON with error handling code" Revert "dmaengine: qcom_hidma: Check for driver register failure" Revert "libertas: add checks for the return value of
sysfs_create_group"
libertas: register sysfs groups properly
Revert "ASoC: rt5645: fix a NULL pointer dereference" Revert "ASoC: cs43130: fix a NULL pointer dereference"
ASoC: cs43130: handle errors in cs43130_probe() properly Revert "media: dvb: Add check on sp8870_readreg"
Revert "media: gspca: mt9m111: Check write_bridge for timeout" Revert "media: gspca: Check the return value of write_bridge for
timeout"
media: gspca: properly check for errors in po1030_probe() Revert "net: liquidio: fix a NULL pointer dereference" Revert "video: imsttfb: fix potential NULL pointer dereferences"
video: imsttfb: check for ioremap() failures
Revert "brcmfmac: add a check for the status of usb_register"
brcmfmac: properly check for bus register errors

Igor Matheus Andrade Torrente (1):
video: hgafb: fix potential NULL pointer dereference

Kees Cook (1):
Revert "ACPI: custom_method: fix memory leaks"

Kurt Manucredo (1):
ALSA: gus: properly handle snd_ctl_add() error

Phillip Potter (7):
leds: lp5523: check return value of lp5xx_read and jump to cleanup
code
scsi: ufs: handle cleanup correctly on devm_reset_control_get error
isdn: mISDNinfineon: check/cleanup ioremap failure correctly in
setup_io
isdn: mISDN: correctly handle ph_info allocation failure in
hfcsusb_ph_info
fs: ecryptfs: remove BUG_ON from crypt_scatterlist
dmaengine: qcom_hidma: comment platform_driver_register call
ASoC: rt5645: add error checking to rt5645_probe function

Tom Seewald (3):
qlcnic: Add null check after calling netdev_alloc_skb
char: hpet: add checks after calling ioremap
net: liquidio: Add missing null pointer checks

 drivers/acpi/custom_method.c                  |  5 +-
 drivers/cdrom/gdrom.c                         |  4 +-
 drivers/char/hpet.c                           |  2 +
 drivers/crypto/cavium/nitrox/nitrox_main.c    |  1 -
 drivers/dma/qcom/hidma_mgmt.c                 | 17 ++++++-
 drivers/hwmon/lm80.c                          | 11 +----
 drivers/isdn/hardware/mISDN/hfcsusb.c         | 17 +++----
 drivers/isdn/hardware/mISDN/mISDNinfineon.c   | 21 +++++---
 drivers/leds/leds-lp5523.c                    |  2 +-
 drivers/media/dvb-frontends/sp8870.c          |  2 +-
 drivers/media/platform/rcar_drif.c            |  1 -
 drivers/media/usb/gspca/cpia1.c               |  6 +--
 drivers/media/usb/gspca/m5602/m5602_mt9m111.c | 16 +++---
 drivers/media/usb/gspca/m5602/m5602_po1030.c  | 14 +++---
 drivers/net/caif/caif_serial.c                |  3 --
 .../net/ethernet/cavium/liquidio/lio_main.c   | 27 ++++++----
 .../ethernet/cavium/liquidio/lio_vf_main.c    | 27 +++++++---
 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     |  4 +-
 .../ethernet/qlogic/qlcnic/qlcnic_ethtool.c   |  3 +-
 .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c |  8 +--
 drivers/net/ethernet/sun/niu.c                | 32 +++++++-----
 drivers/net/wireless/ath/ath6kl/debug.c       |  5 +-
 .../broadcom/brcm80211/brcmfmac/bcmsdh.c      |  8 +--
 .../broadcom/brcm80211/brcmfmac/bus.h         | 19 ++++++-
 .../broadcom/brcm80211/brcmfmac/core.c        | 42 +++++++---------
 .../broadcom/brcm80211/brcmfmac/pcie.c        |  9 +---
 .../broadcom/brcm80211/brcmfmac/pcie.h        |  5 --
 .../broadcom/brcm80211/brcmfmac/usb.c         |  8 +--
 drivers/net/wireless/marvell/libertas/mesh.c  | 33 ++-----------
 drivers/net/wireless/realtek/rtlwifi/base.c   | 18 +++----
 drivers/rapidio/rio_cm.c                      | 17 +++----
 drivers/scsi/ufs/ufs-hisi.c                   | 15 +++---
 drivers/tty/serial/max310x.c                  |  2 +
 drivers/tty/serial/mvebu-uart.c               |  3 --
 drivers/video/fbdev/hgafb.c                   | 21 ++++----
 drivers/video/fbdev/imsttfb.c                 | 26 +++++++---
 fs/ecryptfs/crypto.c                          |  4 --
 net/smc/smc_ism.c                             | 15 +++---
 sound/isa/gus/gus_main.c                      | 19 ++-----
 sound/isa/sb/sb16_main.c                      | 10 ++--
 sound/isa/sb/sb8.c                            | 10 ++--
 sound/soc/codecs/cs43130.c                    | 28 +++++------
 sound/soc/codecs/rt5645.c                     | 49 ++++++++++++++-----
 sound/usb/usx2y/usb_stream.c                  | 22 +++++++--
 44 files changed, 323 insertions(+), 288 deletions(-)
Signature · 1 line
2.31.1