Skip to contentSkip to conversation

Revertion of all of the umn.edu commits

PATCH NAK Greg Kroah-Hartman 86 participants 581 messages Apr 21, 2021 – May 9, 2021 3 messages not in the archive Page 3 of 3

Subsystems (158)
lore
Share & tools
lore
author maintainer
#409 lore raw

PATCH 138/190 Revert "net: liquidio: fix a NULL pointer dereference"

In reply to Greg Kroah-Hartman

This reverts commit fe543b2f174f34a7a751aa08b334fe6b105c4569.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/cavium/liquidio/lio_main.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +0 -5
index 7c5af4beedc6..6fa570068648 100644
@@ -1166,11 +1166,6 @@ static void send_rx_ctrl_cmd(struct lio *lio, int start_stop)
 	sc = (struct octeon_soft_command *)
 		octeon_alloc_soft_command(oct, OCTNET_CMD_SIZE,
 					  16, 0);
-	if (!sc) {
-		netif_info(lio, rx_err, lio->netdev,
-			   "Failed to allocate octeon_soft_command\n");
-		return;
-	}
 
 	ncmd = (union octnet_cmd *)sc->virtdptr;
 
Signature · 1 line
2.31.1
author maintainer
#410 lore raw

Re: [PATCH 138/190] Revert "net: liquidio: fix a NULL pointer dereference"

Quoted 42 lines · Greg Kroah-Hartman

This reverts commit fe543b2f174f34a7a751aa08b334fe6b105c4569.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/cavium/liquidio/lio_main.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +0 -5
index 7c5af4beedc6..6fa570068648 100644
@@ -1166,11 +1166,6 @@ static void send_rx_ctrl_cmd(struct lio *lio, int start_stop)
 	sc = (struct octeon_soft_command *)
 		octeon_alloc_soft_command(oct, OCTNET_CMD_SIZE,
 					  16, 0);
-	if (!sc) {
-		netif_info(lio, rx_err, lio->netdev,
-			   "Failed to allocate octeon_soft_command\n");
-		return;
-	}
 
 	ncmd = (union octnet_cmd *)sc->virtdptr;
 
Signature · 1 line
2.31.1

While this does keep the immediate "NULL dereference" from happening, it does not properly propagate the error back to the callers, AND it does not fix this same identical issue in the drivers/net/ethernet/cavium/liquidio/lio_vf_main.c for some reason. I will revert this and fix up both files properly in a later on patch.

thanks,

greg k-h

author maintainer
#411 lore raw

PATCH 139/190 Revert "isdn: mISDNinfineon: fix potential NULL pointer dereference"

In reply to Greg Kroah-Hartman

This reverts commit d721fe99f6ada070ae8fc0ec3e01ce5a42def0d9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/isdn/hardware/mISDN/mISDNinfineon.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/isdn/hardware/mISDN/mISDNinfineon.c +1 -4
index a16c7a2a7f3d..fa9c491f9c38 100644
@@ -697,11 +697,8 @@ setup_io(struct inf_hw *hw)
 				(ulong)hw->addr.start, (ulong)hw->addr.size);
 			return err;
 		}
-		if (hw->ci->addr_mode == AM_MEMIO) {
+		if (hw->ci->addr_mode == AM_MEMIO)
 			hw->addr.p = ioremap(hw->addr.start, hw->addr.size);
-			if (unlikely(!hw->addr.p))
-				return -ENOMEM;
-		}
 		hw->addr.mode = hw->ci->addr_mode;
 		if (debug & DEBUG_HW)
 			pr_notice("%s: IO addr %lx (%lu bytes) mode%d\n",
Signature · 1 line
2.31.1
author maintainer
#412 lore raw

Re: [PATCH 139/190] Revert "isdn: mISDNinfineon: fix potential NULL pointer dereference"

Quoted 43 lines · Greg Kroah-Hartman

This reverts commit d721fe99f6ada070ae8fc0ec3e01ce5a42def0d9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/isdn/hardware/mISDN/mISDNinfineon.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/isdn/hardware/mISDN/mISDNinfineon.c +1 -4
index a16c7a2a7f3d..fa9c491f9c38 100644
@@ -697,11 +697,8 @@ setup_io(struct inf_hw *hw)
 				(ulong)hw->addr.start, (ulong)hw->addr.size);
 			return err;
 		}
-		if (hw->ci->addr_mode == AM_MEMIO) {
+		if (hw->ci->addr_mode == AM_MEMIO)
 			hw->addr.p = ioremap(hw->addr.start, hw->addr.size);
-			if (unlikely(!hw->addr.p))
-				return -ENOMEM;
-		}
 		hw->addr.mode = hw->ci->addr_mode;
 		if (debug & DEBUG_HW)
 			pr_notice("%s: IO addr %lx (%lu bytes) mode%d\n",
Signature · 1 line
2.31.1

This commit is wrong, so I will keep the revert. It should never have used "unlikely()" and if it ever does trigger, resources are left grabbed.

Given there are no users for this code around, I'll just revert this and leave it "as is" as the odds that ioremap() will ever fail here is horrendiously low.

thanks,

greg k-h

author maintainer
#413 lore raw

PATCH 140/190 Revert "isdn: mISDN: Fix potential NULL pointer dereference of kzalloc"

In reply to Greg Kroah-Hartman

This reverts commit 38d22659803a033b1b66cd2624c33570c0dde77d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/isdn/hardware/mISDN/hfcsusb.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/isdn/hardware/mISDN/hfcsusb.c +0 -3
index 70061991915a..4bb470d3963d 100644
@@ -249,9 +249,6 @@ hfcsusb_ph_info(struct hfcsusb *hw)
 	int i;
 
 	phi = kzalloc(struct_size(phi, bch, dch->dev.nrbchan), GFP_ATOMIC);
-	if (!phi)
-		return;
-
 	phi->dch.ch.protocol = hw->protocol;
 	phi->dch.ch.Flags = dch->Flags;
 	phi->dch.state = dch->state;
Signature · 1 line
2.31.1
author maintainer
#414 lore raw

Re: [PATCH 140/190] Revert "isdn: mISDN: Fix potential NULL pointer dereference of kzalloc"

Quoted 40 lines · Greg Kroah-Hartman

This reverts commit 38d22659803a033b1b66cd2624c33570c0dde77d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/isdn/hardware/mISDN/hfcsusb.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/isdn/hardware/mISDN/hfcsusb.c +0 -3
index 70061991915a..4bb470d3963d 100644
@@ -249,9 +249,6 @@ hfcsusb_ph_info(struct hfcsusb *hw)
 	int i;
 
 	phi = kzalloc(struct_size(phi, bch, dch->dev.nrbchan), GFP_ATOMIC);
-	if (!phi)
-		return;
-
 	phi->dch.ch.protocol = hw->protocol;
 	phi->dch.ch.Flags = dch->Flags;
 	phi->dch.state = dch->state;
Signature · 1 line
2.31.1

While it looks like this commit is correct, it is not, as none of the setup actually happens, and the error value is not propagated upwards. So this is worse than the original code being that an atomic operation can almost never fail, and if it did, a oops would be good here, instead of failing to do something that the driver now claims has happened.

So I am keeping the revert.

greg k-h

author maintainer
#415 lore raw

PATCH 141/190 Revert "libertas: add checks for the return value of sysfs_create_group"

In reply to Greg Kroah-Hartman

This reverts commit 434256833d8eb988cb7f3b8a41699e2fe48d9332.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/net/wireless/marvell/libertas/mesh.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/wireless/marvell/libertas/mesh.c +0 -5
index f5b78257d551..c611e6668b21 100644
@@ -805,12 +805,7 @@ static void lbs_persist_config_init(struct net_device *dev)
 {
 	int ret;
 	ret = sysfs_create_group(&(dev->dev.kobj), &boot_opts_group);
-	if (ret)
-		pr_err("failed to create boot_opts_group.\n");
-
 	ret = sysfs_create_group(&(dev->dev.kobj), &mesh_ie_group);
-	if (ret)
-		pr_err("failed to create mesh_ie_group.\n");
 }
 
 static void lbs_persist_config_remove(struct net_device *dev)
Signature · 1 line
2.31.1
author maintainer
#416 lore raw

Re: [PATCH 141/190] Revert "libertas: add checks for the return value of sysfs_create_group"

Quoted 43 lines · Greg Kroah-Hartman

This reverts commit 434256833d8eb988cb7f3b8a41699e2fe48d9332.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/net/wireless/marvell/libertas/mesh.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/wireless/marvell/libertas/mesh.c +0 -5
index f5b78257d551..c611e6668b21 100644
@@ -805,12 +805,7 @@ static void lbs_persist_config_init(struct net_device *dev)
 {
 	int ret;
 	ret = sysfs_create_group(&(dev->dev.kobj), &boot_opts_group);
-	if (ret)
-		pr_err("failed to create boot_opts_group.\n");
-
 	ret = sysfs_create_group(&(dev->dev.kobj), &mesh_ie_group);
-	if (ret)
-		pr_err("failed to create mesh_ie_group.\n");
 }
 
 static void lbs_persist_config_remove(struct net_device *dev)
Signature · 1 line
2.31.1

The original change here is incorrect, the error needs to be propagated back to the caller AND if the second group call fails, the first needs to be removed. There are much better ways to solve this, the driver should NOT be calling sysfs_create_group() on its own as it is racing userspace and loosing. I will keep this revert and fix it up properly in a follow-on patch.

thanks,

greg k-h

author maintainer
#417 lore raw

PATCH 142/190 Revert "rtc: hym8563: fix a missing check of block data read"

In reply to Greg Kroah-Hartman

This reverts commit 9a20b5e35a536d6bb4b2d4a3b14a0457e205356c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Alexandre Belloni <[email protected]>
---
 drivers/rtc/rtc-hym8563.c | 2 --
 1 file changed, 2 deletions(-)
drivers/rtc/rtc-hym8563.c +0 -2
index 0751cae27285..a9d033eff61e 100644
@@ -94,8 +94,6 @@ static int hym8563_rtc_read_time(struct device *dev, struct rtc_time *tm)
 	int ret;
 
 	ret = i2c_smbus_read_i2c_block_data(client, HYM8563_SEC, 7, buf);
-	if (ret < 0)
-		return ret;
 
 	if (buf[0] & HYM8563_SEC_VL) {
 		dev_warn(&client->dev,
Signature · 1 line
2.31.1
#418 lore raw

Re: [PATCH 142/190] Revert "rtc: hym8563: fix a missing check of block data read"

Hello,

Quoted 10 lines · Greg Kroah-Hartman

This reverts commit 9a20b5e35a536d6bb4b2d4a3b14a0457e205356c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Quoted 6 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

There is really nothing wrong in the patch, it was not completely useful but not wrong either.

Quoted 23 lines
Cc Kangjie Lu <[email protected]>
Cc Alexandre Belloni <[email protected]>
---
 drivers/rtc/rtc-hym8563.c | 2 --
 1 file changed, 2 deletions(-)
drivers/rtc/rtc-hym8563.c +0 -2
index 0751cae27285..a9d033eff61e 100644
@@ -94,8 +94,6 @@ static int hym8563_rtc_read_time(struct device *dev, struct rtc_time *tm)
 	int ret;
 
 	ret = i2c_smbus_read_i2c_block_data(client, HYM8563_SEC, 7, buf);
-	if (ret < 0)
-		return ret;
 
 	if (buf[0] & HYM8563_SEC_VL) {
 		dev_warn(&client->dev,
Signature · 1 line
2.31.1
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author maintainer
#419 lore raw

Re: [PATCH 142/190] Revert "rtc: hym8563: fix a missing check of block data read"

Quoted 20 lines · Alexandre Belloni

Hello,

Quoted 10 lines · Greg Kroah-Hartman

This reverts commit 9a20b5e35a536d6bb4b2d4a3b14a0457e205356c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Quoted 6 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 2 lines

There is really nothing wrong in the patch, it was not completely useful but not wrong either.

Thanks for the review, I'll drop it.

greg k-h

#420 lore raw

Re: [PATCH 142/190] Revert "rtc: hym8563: fix a missing check of block data read"

In reply to Greg Kroah-Hartman
Quoted 28 lines · Greg Kroah-Hartman

This reverts commit 9a20b5e35a536d6bb4b2d4a3b14a0457e205356c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Alexandre Belloni <[email protected]>
---
 drivers/rtc/rtc-hym8563.c | 2 --
 1 file changed, 2 deletions(-)
drivers/rtc/rtc-hym8563.c +0 -0
index 0751cae27285..a9d033eff61e 100644

drivers/rtc/rtc-hym8563.c static int hym8563_rtc_read_time(struct device *dev, struct rtc_time *tm) · line 99

Quoted 8 lines
drivers/rtc/rtc-hym8563.c +0 -2
@@ -94,8 +94,6 @@ static int hym8563_rtc_read_time(struct device *dev, struct rtc_time *tm)
 	int ret;
 
 	ret = i2c_smbus_read_i2c_block_data(client, HYM8563_SEC, 7, buf);
-	if (ret < 0)
-		return ret;
 
 	if (buf[0] & HYM8563_SEC_VL) {
 		dev_warn(&client->dev,

Seems like this one was a valid fix, and that the description matched what was done; plenty of other drivers also proceed similarly. I suspect it should be kept.

Willy

author maintainer
#421 lore raw

Re: [PATCH 142/190] Revert "rtc: hym8563: fix a missing check of block data read"

Quoted 35 lines · Willy Tarreau
Quoted 34 lines · Greg Kroah-Hartman

This reverts commit 9a20b5e35a536d6bb4b2d4a3b14a0457e205356c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Alexandre Belloni <[email protected]>
---
 drivers/rtc/rtc-hym8563.c | 2 --
 1 file changed, 2 deletions(-)
drivers/rtc/rtc-hym8563.c +0 -2
index 0751cae27285..a9d033eff61e 100644
@@ -94,8 +94,6 @@ static int hym8563_rtc_read_time(struct device *dev, struct rtc_time *tm)
 	int ret;
 
 	ret = i2c_smbus_read_i2c_block_data(client, HYM8563_SEC, 7, buf);
-	if (ret < 0)
-		return ret;
 
Quoted 6 lines

drivers/rtc/rtc-hym8563.c static int hym8563_rtc_read_time(struct device *dev, struct rtc_time *tm) · line 99

Quoted 2 lines
drivers/rtc/rtc-hym8563.c +0 -0
 	if (buf[0] & HYM8563_SEC_VL) {
 		dev_warn(&client->dev,

Seems like this one was a valid fix, and that the description matched what was done; plenty of other drivers also proceed similarly. I suspect it should be kept.

Thanks for the review, I'll drop this revert from my tree.

greg k-h

author maintainer
#422 lore raw

PATCH 143/190 Revert "power: twl4030: fix a missing check of return value"

In reply to Greg Kroah-Hartman

This reverts commit 6f12e46eebf1a7d4fdd66df5e815df96b8f8b1b5.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Sebastian Reichel <[email protected]>
---
 drivers/power/supply/twl4030_charger.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/power/supply/twl4030_charger.c +1 -3
index 1bc49b2e12e8..dcbd9f03f31a 100644
@@ -805,9 +805,7 @@ static int twl4030_bci_get_property(struct power_supply *psy,
 		is_charging = state & TWL4030_MSTATEC_AC;
 	if (!is_charging) {
 		u8 s;
-		ret = twl4030_bci_read(TWL4030_BCIMDEN, &s);
-		if (ret < 0)
-			return ret;
+		twl4030_bci_read(TWL4030_BCIMDEN, &s);
 		if (psy->desc->type == POWER_SUPPLY_TYPE_USB)
 			is_charging = s & 1;
 		else
Signature · 1 line
2.31.1
#423 lore raw

Re: [PATCH 143/190] Revert "power: twl4030: fix a missing check of return value"

Hi,

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit 6f12e46eebf1a7d4fdd66df5e815df96b8f8b1b5.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines
Cc Kangjie Lu <[email protected]>
Cc Sebastian Reichel <[email protected]>

---

Doing another review:

twl4030 is an I2C connected PMIC, so any read operation can result in -EIO. If this happens 's' will not be initialized, so without handling the error is_charging will be set to an arbitrary state in the following lines. Exiting early from twl4030_bci_get_property is ok and other HW read operation failures in the same function are exiting early with proper error code (as the patch introduced for the only read missing this).

TL;DR: original patch is ok, I suggest to drop the revert.

-- Sebastian

Quoted 21 lines
 drivers/power/supply/twl4030_charger.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/power/supply/twl4030_charger.c +1 -3
index 1bc49b2e12e8..dcbd9f03f31a 100644
@@ -805,9 +805,7 @@ static int twl4030_bci_get_property(struct power_supply *psy,
 		is_charging = state & TWL4030_MSTATEC_AC;
 	if (!is_charging) {
 		u8 s;
-		ret = twl4030_bci_read(TWL4030_BCIMDEN, &s);
-		if (ret < 0)
-			return ret;
+		twl4030_bci_read(TWL4030_BCIMDEN, &s);
 		if (psy->desc->type == POWER_SUPPLY_TYPE_USB)
 			is_charging = s & 1;
 		else
Signature · 1 line
2.31.1
author maintainer
#424 lore raw

Re: [PATCH 143/190] Revert "power: twl4030: fix a missing check of return value"

Quoted 35 lines · Sebastian Reichel

Hi,

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit 6f12e46eebf1a7d4fdd66df5e815df96b8f8b1b5.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines
Cc Kangjie Lu <[email protected]>
Cc Sebastian Reichel <[email protected]>

---

Doing another review:

twl4030 is an I2C connected PMIC, so any read operation can result in -EIO. If this happens 's' will not be initialized, so without handling the error is_charging will be set to an arbitrary state in the following lines. Exiting early from twl4030_bci_get_property is ok and other HW read operation failures in the same function are exiting early with proper error code (as the patch introduced for the only read missing this).

Quoted 1 line

TL;DR: original patch is ok, I suggest to drop the revert.

Thanks for the review, now dropped.

greg k-h

author maintainer
#425 lore raw

PATCH 144/190 Revert "misc/ics932s401: Add a missing check to i2c_smbus_read_word_data"

In reply to Greg Kroah-Hartman

This reverts commit b05ae01fdb8966afff5b153e7a7ee24684745e2d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/ics932s401.c | 2 --
 1 file changed, 2 deletions(-)
drivers/misc/ics932s401.c +0 -2
index 2bdf560ee681..733e5c2b57ce 100644
@@ -133,8 +133,6 @@ static struct ics932s401_data *ics932s401_update_device(struct device *dev)
 	 */
 	for (i = 0; i < NUM_MIRRORED_REGS; i++) {
 		temp = i2c_smbus_read_word_data(client, regs_to_copy[i]);
-		if (temp < 0)
-			data->regs[regs_to_copy[i]] = 0;
 		data->regs[regs_to_copy[i]] = temp >> 8;
 	}
 
Signature · 1 line
2.31.1
author maintainer
#426 lore raw

Re: [PATCH 144/190] Revert "misc/ics932s401: Add a missing check to i2c_smbus_read_word_data"

Quoted 39 lines · Greg Kroah-Hartman

This reverts commit b05ae01fdb8966afff5b153e7a7ee24684745e2d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/ics932s401.c | 2 --
 1 file changed, 2 deletions(-)
drivers/misc/ics932s401.c +0 -2
index 2bdf560ee681..733e5c2b57ce 100644
@@ -133,8 +133,6 @@ static struct ics932s401_data *ics932s401_update_device(struct device *dev)
 	 */
 	for (i = 0; i < NUM_MIRRORED_REGS; i++) {
 		temp = i2c_smbus_read_word_data(client, regs_to_copy[i]);
-		if (temp < 0)
-			data->regs[regs_to_copy[i]] = 0;
 		data->regs[regs_to_copy[i]] = temp >> 8;
 	}
 
Signature · 1 line
2.31.1

While ackward, the original looks good enough for now, so I'll drop this revert.

greg k-h

author maintainer
#427 lore raw

PATCH 145/190 Revert "leds: lp5523: fix a missing check of return value of lp55xx_read"

In reply to Greg Kroah-Hartman

This reverts commit 248b57015f35c94d4eae2fdd8c6febf5cd703900.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Jacek Anaszewski <[email protected]>
---
 drivers/leds/leds-lp5523.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/leds/leds-lp5523.c +1 -3
index fc433e63b1dc..5036d7d5f3d4 100644
@@ -305,9 +305,7 @@ static int lp5523_init_program_engine(struct lp55xx_chip *chip)
 
 	/* Let the programs run for couple of ms and check the engine status */
 	usleep_range(3000, 6000);
-	ret = lp55xx_read(chip, LP5523_REG_STATUS, &status);
-	if (ret)
-		return ret;
+	lp55xx_read(chip, LP5523_REG_STATUS, &status);
 	status &= LP5523_ENG_STATUS_MASK;
 
 	if (status != LP5523_ENG_STATUS_MASK) {
Signature · 1 line
2.31.1
author maintainer
#428 lore raw

Re: [PATCH 145/190] Revert "leds: lp5523: fix a missing check of return value of lp55xx_read"

Quoted 41 lines · Greg Kroah-Hartman

This reverts commit 248b57015f35c94d4eae2fdd8c6febf5cd703900.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Jacek Anaszewski <[email protected]>
---
 drivers/leds/leds-lp5523.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/leds/leds-lp5523.c +1 -3
index fc433e63b1dc..5036d7d5f3d4 100644
@@ -305,9 +305,7 @@ static int lp5523_init_program_engine(struct lp55xx_chip *chip)
 
 	/* Let the programs run for couple of ms and check the engine status */
 	usleep_range(3000, 6000);
-	ret = lp55xx_read(chip, LP5523_REG_STATUS, &status);
-	if (ret)
-		return ret;
+	lp55xx_read(chip, LP5523_REG_STATUS, &status);
 	status &= LP5523_ENG_STATUS_MASK;
 
 	if (status != LP5523_ENG_STATUS_MASK) {
Signature · 1 line
2.31.1

The original commit here did not unwind things properly, so I'll keep the revert and create a correct fix for this later.

thanks,

greg k-h

author maintainer
#429 lore raw

PATCH 146/190 Revert "media: dvb: Add check on sp8870_readreg"

In reply to Greg Kroah-Hartman

This reverts commit 467a37fba93f2b4fe3ab597ff6a517b22b566882.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Sean Young <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/dvb-frontends/sp8870.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/dvb-frontends/sp8870.c +1 -3
index 655db8272268..ee893a2f2261 100644
@@ -280,9 +280,7 @@ static int sp8870_set_frontend_parameters(struct dvb_frontend *fe)
 	sp8870_writereg(state, 0xc05, reg0xc05);
 
 	// read status reg in order to clear pending irqs
-	err = sp8870_readreg(state, 0x200);
-	if (err)
-		return err;
+	sp8870_readreg(state, 0x200);
 
 	// system controller start
 	sp8870_microcontroller_start(state);
Signature · 1 line
2.31.1
author maintainer
#430 lore raw

Re: [PATCH 146/190] Revert "media: dvb: Add check on sp8870_readreg"

Quoted 42 lines · Greg Kroah-Hartman

This reverts commit 467a37fba93f2b4fe3ab597ff6a517b22b566882.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Sean Young <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/dvb-frontends/sp8870.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/dvb-frontends/sp8870.c +1 -3
index 655db8272268..ee893a2f2261 100644
@@ -280,9 +280,7 @@ static int sp8870_set_frontend_parameters(struct dvb_frontend *fe)
 	sp8870_writereg(state, 0xc05, reg0xc05);
 
 	// read status reg in order to clear pending irqs
-	err = sp8870_readreg(state, 0x200);
-	if (err)
-		return err;
+	sp8870_readreg(state, 0x200);
 
 	// system controller start
 	sp8870_microcontroller_start(state);
Signature · 1 line
2.31.1

This change looks to break the driver entirely, I guess no one uses it anymore. It should have checked for < 0 if it actually cared about the result.

I'll keep this as it is not correct.

thanks,

greg k-h

author maintainer
#431 lore raw

PATCH 147/190 Revert "media: dvb: add return value check on Write16"

In reply to Greg Kroah-Hartman

This reverts commit 0f787c12ee7b2b41a74594ed158a0112736f4e4e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Sean Young <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/dvb-frontends/drxd_hard.c | 30 +++++++++----------------
 1 file changed, 11 insertions(+), 19 deletions(-)
drivers/media/dvb-frontends/drxd_hard.c +11 -19
index a7eb81df88c2..3e3de6badc86 100644
@@ -1132,8 +1132,6 @@ static int EnableAndResetMB(struct drxd_state *state)
 
 static int InitCC(struct drxd_state *state)
 {
-	int status = 0;
-
 	if (state->osc_clock_freq == 0 ||
 	    state->osc_clock_freq > 20000 ||
 	    (state->osc_clock_freq % 4000) != 0) {
@@ -1141,17 +1139,14 @@ static int InitCC(struct drxd_state *state)
 		return -1;
 	}
 
-	status |= Write16(state, CC_REG_OSC_MODE__A, CC_REG_OSC_MODE_M20, 0);
-	status |= Write16(state, CC_REG_PLL_MODE__A,
-				CC_REG_PLL_MODE_BYPASS_PLL |
-				CC_REG_PLL_MODE_PUMP_CUR_12, 0);
-	status |= Write16(state, CC_REG_REF_DIVIDE__A,
-				state->osc_clock_freq / 4000, 0);
-	status |= Write16(state, CC_REG_PWD_MODE__A, CC_REG_PWD_MODE_DOWN_PLL,
-				0);
-	status |= Write16(state, CC_REG_UPDATE__A, CC_REG_UPDATE_KEY, 0);
+	Write16(state, CC_REG_OSC_MODE__A, CC_REG_OSC_MODE_M20, 0);
+	Write16(state, CC_REG_PLL_MODE__A, CC_REG_PLL_MODE_BYPASS_PLL |
+		CC_REG_PLL_MODE_PUMP_CUR_12, 0);
+	Write16(state, CC_REG_REF_DIVIDE__A, state->osc_clock_freq / 4000, 0);
+	Write16(state, CC_REG_PWD_MODE__A, CC_REG_PWD_MODE_DOWN_PLL, 0);
+	Write16(state, CC_REG_UPDATE__A, CC_REG_UPDATE_KEY, 0);
 
-	return status;
+	return 0;
 }
 
 static int ResetECOD(struct drxd_state *state)
@@ -1305,10 +1300,7 @@ static int SC_SendCommand(struct drxd_state *state, u16 cmd)
 	int status = 0, ret;
 	u16 errCode;
 
-	status = Write16(state, SC_RA_RAM_CMD__A, cmd, 0);
-	if (status < 0)
-		return status;
-
+	Write16(state, SC_RA_RAM_CMD__A, cmd, 0);
 	SC_WaitForReady(state);
 
 	ret = Read16(state, SC_RA_RAM_CMD_ADDR__A, &errCode, 0);
@@ -1335,9 +1327,9 @@ static int SC_ProcStartCommand(struct drxd_state *state,
 			break;
 		}
 		SC_WaitForReady(state);
-		status |= Write16(state, SC_RA_RAM_CMD_ADDR__A, subCmd, 0);
-		status |= Write16(state, SC_RA_RAM_PARAM1__A, param1, 0);
-		status |= Write16(state, SC_RA_RAM_PARAM0__A, param0, 0);
+		Write16(state, SC_RA_RAM_CMD_ADDR__A, subCmd, 0);
+		Write16(state, SC_RA_RAM_PARAM1__A, param1, 0);
+		Write16(state, SC_RA_RAM_PARAM0__A, param0, 0);
 
 		SC_SendCommand(state, SC_RA_RAM_CMD_PROC_START);
 	} while (0);
Signature · 1 line
2.31.1
author maintainer
#432 lore raw

Re: [PATCH 147/190] Revert "media: dvb: add return value check on Write16"

Quoted 90 lines · Greg Kroah-Hartman

This reverts commit 0f787c12ee7b2b41a74594ed158a0112736f4e4e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Sean Young <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/dvb-frontends/drxd_hard.c | 30 +++++++++----------------
 1 file changed, 11 insertions(+), 19 deletions(-)
drivers/media/dvb-frontends/drxd_hard.c +11 -19
index a7eb81df88c2..3e3de6badc86 100644
@@ -1132,8 +1132,6 @@ static int EnableAndResetMB(struct drxd_state *state)
 
 static int InitCC(struct drxd_state *state)
 {
-	int status = 0;
-
 	if (state->osc_clock_freq == 0 ||
 	    state->osc_clock_freq > 20000 ||
 	    (state->osc_clock_freq % 4000) != 0) {
@@ -1141,17 +1139,14 @@ static int InitCC(struct drxd_state *state)
 		return -1;
 	}
 
-	status |= Write16(state, CC_REG_OSC_MODE__A, CC_REG_OSC_MODE_M20, 0);
-	status |= Write16(state, CC_REG_PLL_MODE__A,
-				CC_REG_PLL_MODE_BYPASS_PLL |
-				CC_REG_PLL_MODE_PUMP_CUR_12, 0);
-	status |= Write16(state, CC_REG_REF_DIVIDE__A,
-				state->osc_clock_freq / 4000, 0);
-	status |= Write16(state, CC_REG_PWD_MODE__A, CC_REG_PWD_MODE_DOWN_PLL,
-				0);
-	status |= Write16(state, CC_REG_UPDATE__A, CC_REG_UPDATE_KEY, 0);
+	Write16(state, CC_REG_OSC_MODE__A, CC_REG_OSC_MODE_M20, 0);
+	Write16(state, CC_REG_PLL_MODE__A, CC_REG_PLL_MODE_BYPASS_PLL |
+		CC_REG_PLL_MODE_PUMP_CUR_12, 0);
+	Write16(state, CC_REG_REF_DIVIDE__A, state->osc_clock_freq / 4000, 0);
+	Write16(state, CC_REG_PWD_MODE__A, CC_REG_PWD_MODE_DOWN_PLL, 0);
+	Write16(state, CC_REG_UPDATE__A, CC_REG_UPDATE_KEY, 0);
 
-	return status;
+	return 0;
 }
 
 static int ResetECOD(struct drxd_state *state)
@@ -1305,10 +1300,7 @@ static int SC_SendCommand(struct drxd_state *state, u16 cmd)
 	int status = 0, ret;
 	u16 errCode;
 
-	status = Write16(state, SC_RA_RAM_CMD__A, cmd, 0);
-	if (status < 0)
-		return status;
-
+	Write16(state, SC_RA_RAM_CMD__A, cmd, 0);
 	SC_WaitForReady(state);
 
 	ret = Read16(state, SC_RA_RAM_CMD_ADDR__A, &errCode, 0);
@@ -1335,9 +1327,9 @@ static int SC_ProcStartCommand(struct drxd_state *state,
 			break;
 		}
 		SC_WaitForReady(state);
-		status |= Write16(state, SC_RA_RAM_CMD_ADDR__A, subCmd, 0);
-		status |= Write16(state, SC_RA_RAM_PARAM1__A, param1, 0);
-		status |= Write16(state, SC_RA_RAM_PARAM0__A, param0, 0);
+		Write16(state, SC_RA_RAM_CMD_ADDR__A, subCmd, 0);
+		Write16(state, SC_RA_RAM_PARAM1__A, param1, 0);
+		Write16(state, SC_RA_RAM_PARAM0__A, param0, 0);
 
 		SC_SendCommand(state, SC_RA_RAM_CMD_PROC_START);
 	} while (0);
Signature · 1 line
2.31.1

Nothing like continuing to hammer on hardware when accesses to it fail, and having "-1" be the only error value this driver seems to know, ick.

But this patch is ok, I'll drop it from my series.

greg k-h

author maintainer
#433 lore raw

PATCH 148/190 Revert "media: mt312: fix a missing check of mt312 reset"

In reply to Greg Kroah-Hartman

This reverts commit 9502cdf0807058a10029488052b064cecceb7fc9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Matthias Schwarzott <[email protected]>
Cc Sean Young <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/dvb-frontends/mt312.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/dvb-frontends/mt312.c +1 -3
index d43a67045dbe..1dc6adefb8fe 100644
@@ -627,9 +627,7 @@ static int mt312_set_frontend(struct dvb_frontend *fe)
 	if (ret < 0)
 		return ret;
 
-	ret = mt312_reset(state, 0);
-	if (ret < 0)
-		return ret;
+	mt312_reset(state, 0);
 
 	return 0;
 }
Signature · 1 line
2.31.1
author maintainer
#434 lore raw

Re: [PATCH 148/190] Revert "media: mt312: fix a missing check of mt312 reset"

Quoted 43 lines · Greg Kroah-Hartman

This reverts commit 9502cdf0807058a10029488052b064cecceb7fc9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Matthias Schwarzott <[email protected]>
Cc Sean Young <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/dvb-frontends/mt312.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/dvb-frontends/mt312.c +1 -3
index d43a67045dbe..1dc6adefb8fe 100644
@@ -627,9 +627,7 @@ static int mt312_set_frontend(struct dvb_frontend *fe)
 	if (ret < 0)
 		return ret;
 
-	ret = mt312_reset(state, 0);
-	if (ret < 0)
-		return ret;
+	mt312_reset(state, 0);
 
 	return 0;
 }
Signature · 1 line
2.31.1

This could have been made much simpler:

	return mt312_reset(state, 0);

but as-is, is fine, I'll drop this revert.

greg k-h

author maintainer
#435 lore raw

PATCH 149/190 Revert "media: lgdt3306a: fix a missing check of return value"

In reply to Greg Kroah-Hartman

This reverts commit c9b7d8f252a5a6f8ca6e948151367cbc7bc4b776.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Sean Young <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/dvb-frontends/lgdt3306a.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/media/dvb-frontends/lgdt3306a.c +1 -4
index 722576f1732a..f34263a33ede 100644
@@ -1690,10 +1690,7 @@ static int lgdt3306a_read_signal_strength(struct dvb_frontend *fe,
 	case QAM_256:
 	case QAM_AUTO:
 		/* need to know actual modulation to set proper SNR baseline */
-		ret = lgdt3306a_read_reg(state, 0x00a6, &val);
-		if (lg_chkerr(ret))
-			goto fail;
-
+		lgdt3306a_read_reg(state, 0x00a6, &val);
 		if(val & 0x04)
 			ref_snr = 2800; /* QAM-256 28dB */
 		else
Signature · 1 line
2.31.1
author maintainer
#436 lore raw

Re: [PATCH 149/190] Revert "media: lgdt3306a: fix a missing check of return value"

Quoted 43 lines · Greg Kroah-Hartman

This reverts commit c9b7d8f252a5a6f8ca6e948151367cbc7bc4b776.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Sean Young <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/dvb-frontends/lgdt3306a.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/media/dvb-frontends/lgdt3306a.c +1 -4
index 722576f1732a..f34263a33ede 100644
@@ -1690,10 +1690,7 @@ static int lgdt3306a_read_signal_strength(struct dvb_frontend *fe,
 	case QAM_256:
 	case QAM_AUTO:
 		/* need to know actual modulation to set proper SNR baseline */
-		ret = lgdt3306a_read_reg(state, 0x00a6, &val);
-		if (lg_chkerr(ret))
-			goto fail;
-
+		lgdt3306a_read_reg(state, 0x00a6, &val);
 		if(val & 0x04)
 			ref_snr = 2800; /* QAM-256 28dB */
 		else
Signature · 1 line
2.31.1

Odd that this was the only fixup for this file, for this specific issue, there are other places in this driver that this same change is needed. That shows someone is not actually using a sane tool to create these :(

But it's ok as-is, I'll drop the revert.

greg k-h

author maintainer
#437 lore raw

PATCH 150/190 Revert "media: gspca: mt9m111: Check write_bridge for timeout"

In reply to Greg Kroah-Hartman

This reverts commit 656025850074f5c1ba2e05be37bda57ba2b8d491.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/usb/gspca/m5602/m5602_mt9m111.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/media/usb/gspca/m5602/m5602_mt9m111.c +3 -5
index bfa3b381d8a2..50481dc928d0 100644
@@ -195,7 +195,7 @@ static const struct v4l2_ctrl_config mt9m111_greenbal_cfg = {
 int mt9m111_probe(struct sd *sd)
 {
 	u8 data[2] = {0x00, 0x00};
-	int i, rc = 0;
+	int i;
 	struct gspca_dev *gspca_dev = (struct gspca_dev *)sd;
 
 	if (force_sensor) {
@@ -213,18 +213,16 @@ int mt9m111_probe(struct sd *sd)
 	/* Do the preinit */
 	for (i = 0; i < ARRAY_SIZE(preinit_mt9m111); i++) {
 		if (preinit_mt9m111[i][0] == BRIDGE) {
-			rc |= m5602_write_bridge(sd,
+			m5602_write_bridge(sd,
 				preinit_mt9m111[i][1],
 				preinit_mt9m111[i][2]);
 		} else {
 			data[0] = preinit_mt9m111[i][2];
 			data[1] = preinit_mt9m111[i][3];
-			rc |= m5602_write_sensor(sd,
+			m5602_write_sensor(sd,
 				preinit_mt9m111[i][1], data, 2);
 		}
 	}
-	if (rc < 0)
-		return rc;
 
 	if (m5602_read_sensor(sd, MT9M111_SC_CHIPVER, data, 2))
 		return -ENODEV;
Signature · 1 line
2.31.1
author maintainer
#438 lore raw

Re: [PATCH 150/190] Revert "media: gspca: mt9m111: Check write_bridge for timeout"

Quoted 60 lines · Greg Kroah-Hartman

This reverts commit 656025850074f5c1ba2e05be37bda57ba2b8d491.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/usb/gspca/m5602/m5602_mt9m111.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/media/usb/gspca/m5602/m5602_mt9m111.c +3 -5
index bfa3b381d8a2..50481dc928d0 100644
@@ -195,7 +195,7 @@ static const struct v4l2_ctrl_config mt9m111_greenbal_cfg = {
 int mt9m111_probe(struct sd *sd)
 {
 	u8 data[2] = {0x00, 0x00};
-	int i, rc = 0;
+	int i;
 	struct gspca_dev *gspca_dev = (struct gspca_dev *)sd;
 
 	if (force_sensor) {
@@ -213,18 +213,16 @@ int mt9m111_probe(struct sd *sd)
 	/* Do the preinit */
 	for (i = 0; i < ARRAY_SIZE(preinit_mt9m111); i++) {
 		if (preinit_mt9m111[i][0] == BRIDGE) {
-			rc |= m5602_write_bridge(sd,
+			m5602_write_bridge(sd,
 				preinit_mt9m111[i][1],
 				preinit_mt9m111[i][2]);
 		} else {
 			data[0] = preinit_mt9m111[i][2];
 			data[1] = preinit_mt9m111[i][3];
-			rc |= m5602_write_sensor(sd,
+			m5602_write_sensor(sd,
 				preinit_mt9m111[i][1], data, 2);
 		}
 	}
-	if (rc < 0)
-		return rc;
 
 	if (m5602_read_sensor(sd, MT9M111_SC_CHIPVER, data, 2))
 		return -ENODEV;
Signature · 1 line
2.31.1

Same here, OR error values together is not ok, keeping this revert.

greg k-h

author maintainer
#439 lore raw

PATCH 151/190 Revert "media: gspca: Check the return value of write_bridge for timeout"

In reply to Greg Kroah-Hartman

This reverts commit a21a0eb56b4e8fe4a330243af8030f890cde2283.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/usb/gspca/m5602/m5602_po1030.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/media/usb/gspca/m5602/m5602_po1030.c +2 -6
index d680b777f097..7bdbb8065146 100644
@@ -154,7 +154,6 @@ static const struct v4l2_ctrl_config po1030_greenbal_cfg = {
 
 int po1030_probe(struct sd *sd)
 {
-	int rc = 0;
 	u8 dev_id_h = 0, i;
 	struct gspca_dev *gspca_dev = (struct gspca_dev *)sd;
 
@@ -174,14 +173,11 @@ int po1030_probe(struct sd *sd)
 	for (i = 0; i < ARRAY_SIZE(preinit_po1030); i++) {
 		u8 data = preinit_po1030[i][2];
 		if (preinit_po1030[i][0] == SENSOR)
-			rc |= m5602_write_sensor(sd,
+			m5602_write_sensor(sd,
 				preinit_po1030[i][1], &data, 1);
 		else
-			rc |= m5602_write_bridge(sd, preinit_po1030[i][1],
-						data);
+			m5602_write_bridge(sd, preinit_po1030[i][1], data);
 	}
-	if (rc < 0)
-		return rc;
 
 	if (m5602_read_sensor(sd, PO1030_DEVID_H, &dev_id_h, 1))
 		return -ENODEV;
Signature · 1 line
2.31.1
author maintainer
#440 lore raw

Re: [PATCH 151/190] Revert "media: gspca: Check the return value of write_bridge for timeout"

Quoted 55 lines · Greg Kroah-Hartman

This reverts commit a21a0eb56b4e8fe4a330243af8030f890cde2283.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/usb/gspca/m5602/m5602_po1030.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/media/usb/gspca/m5602/m5602_po1030.c +2 -6
index d680b777f097..7bdbb8065146 100644
@@ -154,7 +154,6 @@ static const struct v4l2_ctrl_config po1030_greenbal_cfg = {
 
 int po1030_probe(struct sd *sd)
 {
-	int rc = 0;
 	u8 dev_id_h = 0, i;
 	struct gspca_dev *gspca_dev = (struct gspca_dev *)sd;
 
@@ -174,14 +173,11 @@ int po1030_probe(struct sd *sd)
 	for (i = 0; i < ARRAY_SIZE(preinit_po1030); i++) {
 		u8 data = preinit_po1030[i][2];
 		if (preinit_po1030[i][0] == SENSOR)
-			rc |= m5602_write_sensor(sd,
+			m5602_write_sensor(sd,
 				preinit_po1030[i][1], &data, 1);
 		else
-			rc |= m5602_write_bridge(sd, preinit_po1030[i][1],
-						data);
+			m5602_write_bridge(sd, preinit_po1030[i][1], data);
 	}
-	if (rc < 0)
-		return rc;
 
 	if (m5602_read_sensor(sd, PO1030_DEVID_H, &dev_id_h, 1))
 		return -ENODEV;
Signature · 1 line
2.31.1

You do not OR error values together and expect the end result to be anything sane, so I am keeping this revert as it is incorrect.

thanks,

greg k-h

author maintainer
#441 lore raw

PATCH 152/190 Revert "media: usb: gspca: add a missed check for goto_low_power"

In reply to Greg Kroah-Hartman

This reverts commit 5b711870bec4dc9a6d705d41e127e73944fa3650.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/usb/gspca/cpia1.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/media/usb/gspca/cpia1.c +1 -5
index a4f7431486f3..d93d384286c1 100644
@@ -1424,7 +1424,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
 {
 	struct sd *sd = (struct sd *) gspca_dev;
 	struct cam *cam;
-	int ret;
 
 	sd->mainsFreq = FREQ_DEF == V4L2_CID_POWER_LINE_FREQUENCY_60HZ;
 	reset_camera_params(gspca_dev);
@@ -1436,10 +1435,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
 	cam->cam_mode = mode;
 	cam->nmodes = ARRAY_SIZE(mode);
 
-	ret = goto_low_power(gspca_dev);
-	if (ret)
-		gspca_err(gspca_dev, "Cannot go to low power mode: %d\n",
-			  ret);
+	goto_low_power(gspca_dev);
 	/* Check the firmware version. */
 	sd->params.version.firmwareVersion = 0;
 	get_version_information(gspca_dev);
Signature · 1 line
2.31.1
author maintainer
#442 lore raw

Re: [PATCH 152/190] Revert "media: usb: gspca: add a missed check for goto_low_power"

Quoted 50 lines · Greg Kroah-Hartman

This reverts commit 5b711870bec4dc9a6d705d41e127e73944fa3650.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/usb/gspca/cpia1.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/media/usb/gspca/cpia1.c +1 -5
index a4f7431486f3..d93d384286c1 100644
@@ -1424,7 +1424,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
 {
 	struct sd *sd = (struct sd *) gspca_dev;
 	struct cam *cam;
-	int ret;
 
 	sd->mainsFreq = FREQ_DEF == V4L2_CID_POWER_LINE_FREQUENCY_60HZ;
 	reset_camera_params(gspca_dev);
@@ -1436,10 +1435,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
 	cam->cam_mode = mode;
 	cam->nmodes = ARRAY_SIZE(mode);
 
-	ret = goto_low_power(gspca_dev);
-	if (ret)
-		gspca_err(gspca_dev, "Cannot go to low power mode: %d\n",
-			  ret);
+	goto_low_power(gspca_dev);
 	/* Check the firmware version. */
 	sd->params.version.firmwareVersion = 0;
 	get_version_information(gspca_dev);
Signature · 1 line
2.31.1

The original commit here did nothing useful, so I am going to keep this revert.

greg k-h

author maintainer
#443 lore raw

PATCH 153/190 Revert "media: usb: gspca: add a missed return-value check for do_command"

In reply to Greg Kroah-Hartman

This reverts commit 5ceaf5452c1b2a452dadaf377f9f07af7bda9cc3.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/usb/gspca/cpia1.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/media/usb/gspca/cpia1.c +2 -6
index d93d384286c1..99e594559a0c 100644
@@ -537,14 +537,10 @@ static int do_command(struct gspca_dev *gspca_dev, u16 command,
 		}
 		if (sd->params.qx3.button) {
 			/* button pressed - unlock the latch */
-			ret = do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
+			do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
 				   3, 0xdf, 0xdf, 0);
-			if (ret)
-				return ret;
-			ret = do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
+			do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
 				   3, 0xff, 0xff, 0);
-			if (ret)
-				return ret;
 		}
 
 		/* test whether microscope is cradled */
Signature · 1 line
2.31.1
author maintainer
#444 lore raw

Re: [PATCH 153/190] Revert "media: usb: gspca: add a missed return-value check for do_command"

Quoted 47 lines · Greg Kroah-Hartman

This reverts commit 5ceaf5452c1b2a452dadaf377f9f07af7bda9cc3.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/usb/gspca/cpia1.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/media/usb/gspca/cpia1.c +2 -6
index d93d384286c1..99e594559a0c 100644
@@ -537,14 +537,10 @@ static int do_command(struct gspca_dev *gspca_dev, u16 command,
 		}
 		if (sd->params.qx3.button) {
 			/* button pressed - unlock the latch */
-			ret = do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
+			do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
 				   3, 0xdf, 0xdf, 0);
-			if (ret)
-				return ret;
-			ret = do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
+			do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
 				   3, 0xff, 0xff, 0);
-			if (ret)
-				return ret;
 		}
 
 		/* test whether microscope is cradled */
Signature · 1 line
2.31.1

This looks correct, I'll drop the revert.

But ick, recursion? What could go wrong....

greg k-h

author maintainer
#445 lore raw

PATCH 154/190 Revert "ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()"

In reply to Greg Kroah-Hartman

This reverts commit fc6a6521556c8250e356ddc6a3f2391aa62dc976.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/net/wireless/ath/ath6kl/wmi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath6kl/wmi.c +3 -1
index b137e7f34397..aca9732ec1ee 100644
@@ -776,8 +776,10 @@ int ath6kl_wmi_set_roam_lrssi_cmd(struct wmi *wmi, u8 lrssi)
 	cmd->info.params.roam_rssi_floor = DEF_LRSSI_ROAM_FLOOR;
 	cmd->roam_ctrl = WMI_SET_LRSSI_SCAN_PARAMS;
 
-	return ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID,
+	ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID,
 			    NO_SYNC_WMIFLAG);
+
+	return 0;
 }
 
 int ath6kl_wmi_force_roam_cmd(struct wmi *wmi, const u8 *bssid)
Signature · 1 line
2.31.1
author maintainer
#446 lore raw

Re: [PATCH 154/190] Revert "ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()"

Quoted 42 lines · Greg Kroah-Hartman

This reverts commit fc6a6521556c8250e356ddc6a3f2391aa62dc976.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/net/wireless/ath/ath6kl/wmi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath6kl/wmi.c +3 -1
index b137e7f34397..aca9732ec1ee 100644
@@ -776,8 +776,10 @@ int ath6kl_wmi_set_roam_lrssi_cmd(struct wmi *wmi, u8 lrssi)
 	cmd->info.params.roam_rssi_floor = DEF_LRSSI_ROAM_FLOOR;
 	cmd->roam_ctrl = WMI_SET_LRSSI_SCAN_PARAMS;
 
-	return ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID,
+	ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID,
 			    NO_SYNC_WMIFLAG);
+
+	return 0;
 }
 
 int ath6kl_wmi_force_roam_cmd(struct wmi *wmi, const u8 *bssid)
Signature · 1 line
2.31.1

This change does NOTHING as the caller to this function does not even look at the return value of the call. So the "claim" that this fixed an an issue is not true. I will keep this revert and fix it up properly by propagating the error up the stack correctly.

thanks,

greg k-h

author maintainer
#447 lore raw

PATCH 155/190 Revert "brcmfmac: add a check for the status of usb_register"

In reply to Greg Kroah-Hartman

This reverts commit 42daad3343be4a4e1ee03e30a5f5cc731dadfef5.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +1 -5
index 586f4dfc638b..d2a803fc8ac6 100644
@@ -1586,10 +1586,6 @@ void brcmf_usb_exit(void)
 
 void brcmf_usb_register(void)
 {
-	int ret;
-
 	brcmf_dbg(USB, "Enter\n");
-	ret = usb_register(&brcmf_usbdrvr);
-	if (ret)
-		brcmf_err("usb_register failed %d\n", ret);
+	usb_register(&brcmf_usbdrvr);
 }
Signature · 1 line
2.31.1
author maintainer
#448 lore raw

Re: [PATCH 155/190] Revert "brcmfmac: add a check for the status of usb_register"

Quoted 42 lines · Greg Kroah-Hartman

This reverts commit 42daad3343be4a4e1ee03e30a5f5cc731dadfef5.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +1 -5
index 586f4dfc638b..d2a803fc8ac6 100644
@@ -1586,10 +1586,6 @@ void brcmf_usb_exit(void)
 
 void brcmf_usb_register(void)
 {
-	int ret;
-
 	brcmf_dbg(USB, "Enter\n");
-	ret = usb_register(&brcmf_usbdrvr);
-	if (ret)
-		brcmf_err("usb_register failed %d\n", ret);
+	usb_register(&brcmf_usbdrvr);
 }
Signature · 1 line
2.31.1

This change was not ok, and did nothing to actually fix the root problem here. I'll be keeping this revert and will fix it up "properly".

thanks,

greg k-h

author maintainer
#449 lore raw

PATCH 156/190 Revert "serial: max310x: pass return value of spi_register_driver"

In reply to Greg Kroah-Hartman

This reverts commit 51f689cc11333944c7a457f25ec75fcb41e99410.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/tty/serial/max310x.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serial/max310x.c +2 -2
index 1b61d26bb7af..93f69b66b896 100644
@@ -1518,10 +1518,10 @@ static int __init max310x_uart_init(void)
 		return ret;
 
 #ifdef CONFIG_SPI_MASTER
-	ret = spi_register_driver(&max310x_spi_driver);
+	spi_register_driver(&max310x_spi_driver);
 #endif
 
-	return ret;
+	return 0;
 }
 module_init(max310x_uart_init);
 
Signature · 1 line
2.31.1
maintainer
#450 lore raw

Re: [PATCH 156/190] Revert "serial: max310x: pass return value of spi_register_driver"

Quoted 28 lines · Greg Kroah-Hartman

This reverts commit 51f689cc11333944c7a457f25ec75fcb41e99410.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
  drivers/tty/serial/max310x.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serial/max310x.c +0 -0
index 1b61d26bb7af..93f69b66b896 100644

drivers/tty/serial/max310x.c static int __init max310x_uart_init(void) · line 1524

Quoted 9 lines
drivers/tty/serial/max310x.c +2 -2
@@ -1518,10 +1518,10 @@ static int __init max310x_uart_init(void)
  		return ret;
 
  #ifdef CONFIG_SPI_MASTER
-	ret = spi_register_driver(&max310x_spi_driver);
+	spi_register_driver(&max310x_spi_driver);
  #endif
 
-	return ret;
+	return 0;

ACK, uart_unregister_driver() is missing in case of error at least.

Quoted 4 lines
drivers/tty/serial/max310x.c +0 -0
  }
  module_init(max310x_uart_init);
 
Signature · 2 lines
js
suse labs
author maintainer
#451 lore raw

Re: [PATCH 156/190] Revert "serial: max310x: pass return value of spi_register_driver"

Quoted 24 lines · Jiri Slaby
Quoted 23 lines · Greg Kroah-Hartman

This reverts commit 51f689cc11333944c7a457f25ec75fcb41e99410.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
  drivers/tty/serial/max310x.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 14 lines

drivers/tty/serial/max310x.c static int __init max310x_uart_init(void) · line 1522

Quoted 12 lines
drivers/tty/serial/max310x.c +2 -2
index 1b61d26bb7af..93f69b66b896 100644
@@ -1518,10 +1518,10 @@ static int __init max310x_uart_init(void)
  		return ret;
  #ifdef CONFIG_SPI_MASTER
-	ret = spi_register_driver(&max310x_spi_driver);
+	spi_register_driver(&max310x_spi_driver);
  #endif
-	return ret;
+	return 0;

ACK, uart_unregister_driver() is missing in case of error at least.

Many thanks for the review of the two serial driver changes in this series, I've updated the changelog with the information and added your acks.

greg k-h

author maintainer
#452 lore raw

PATCH 157/190 Revert "Input: ad7879 - add check for read errors in interrupt"

In reply to Greg Kroah-Hartman

This reverts commit e85bb0beb6498c0dffe18a2f1f16d575bc175c32.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Dmitry Torokhov <[email protected]>
---
 drivers/input/touchscreen/ad7879.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/input/touchscreen/ad7879.c +4 -7
index e850853328f1..8c4f3c193550 100644
@@ -245,14 +245,11 @@ static void ad7879_timer(struct timer_list *t)
 static irqreturn_t ad7879_irq(int irq, void *handle)
 {
 	struct ad7879 *ts = handle;
-	int error;
 
-	error = regmap_bulk_read(ts->regmap, AD7879_REG_XPLUS,
-				 ts->conversion_data, AD7879_NR_SENSE);
-	if (error)
-		dev_err_ratelimited(ts->dev, "failed to read %#02x: %d\n",
-				    AD7879_REG_XPLUS, error);
-	else if (!ad7879_report(ts))
+	regmap_bulk_read(ts->regmap, AD7879_REG_XPLUS,
+			 ts->conversion_data, AD7879_NR_SENSE);
+
+	if (!ad7879_report(ts))
 		mod_timer(&ts->timer, jiffies + TS_PEN_UP_TIMEOUT);
 
 	return IRQ_HANDLED;
Signature · 1 line
2.31.1
maintainer
#453 lore raw

Re: [PATCH 157/190] Revert "Input: ad7879 - add check for read errors in interrupt"

Hi Greg,

Quoted 10 lines · Greg Kroah-Hartman

This reverts commit e85bb0beb6498c0dffe18a2f1f16d575bc175c32.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Quoted 5 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

This one looks really OK to me and does not have to be reverted (unless Aditya will come clean and show the error introduced?).

Quoted 34 lines
Cc Aditya Pakki <[email protected]>
Cc Dmitry Torokhov <[email protected]>
---
 drivers/input/touchscreen/ad7879.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/input/touchscreen/ad7879.c +4 -7
index e850853328f1..8c4f3c193550 100644
@@ -245,14 +245,11 @@ static void ad7879_timer(struct timer_list *t)
 static irqreturn_t ad7879_irq(int irq, void *handle)
 {
 	struct ad7879 *ts = handle;
-	int error;
 
-	error = regmap_bulk_read(ts->regmap, AD7879_REG_XPLUS,
-				 ts->conversion_data, AD7879_NR_SENSE);
-	if (error)
-		dev_err_ratelimited(ts->dev, "failed to read %#02x: %d\n",
-				    AD7879_REG_XPLUS, error);
-	else if (!ad7879_report(ts))
+	regmap_bulk_read(ts->regmap, AD7879_REG_XPLUS,
+			 ts->conversion_data, AD7879_NR_SENSE);
+
+	if (!ad7879_report(ts))
 		mod_timer(&ts->timer, jiffies + TS_PEN_UP_TIMEOUT);
 
 	return IRQ_HANDLED;
Signature · 1 line
2.31.1

Thanks.

Signature · 1 line
Dmitry
author maintainer
#454 lore raw

Re: [PATCH 157/190] Revert "Input: ad7879 - add check for read errors in interrupt"

Quoted 13 lines · Dmitry Torokhov

Hi Greg,

Quoted 10 lines · Greg Kroah-Hartman

This reverts commit e85bb0beb6498c0dffe18a2f1f16d575bc175c32.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Quoted 8 lines
Quoted 5 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

This one looks really OK to me and does not have to be reverted (unless Aditya will come clean and show the error introduced?).

I'll drop this revert, but it isn't usually good to be calling printk() from an irq.

thanks,

greg k-h

maintainer
#455 lore raw

Re: [PATCH 157/190] Revert "Input: ad7879 - add check for read errors in interrupt"

Quoted 20 lines · Greg Kroah-Hartman
Quoted 19 lines · Dmitry Torokhov

Hi Greg,

Quoted 15 lines · Greg Kroah-Hartman

This reverts commit e85bb0beb6498c0dffe18a2f1f16d575bc175c32.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 5 lines
Quoted 2 lines

This one looks really OK to me and does not have to be reverted (unless Aditya will come clean and show the error introduced?).

I'll drop this revert, but it isn't usually good to be calling printk() from an irq.

How else do you suggest we tell that something is wrong when communicating with the device? For these types of devices the communication is essentially unsolicited so we can't pass failure to a caller to deal with it (i.e. unlike USB there is no URB posted that we could fail and use as a mechanism to signal error to some other layer) and while we could invent "something went wrong" input event so far there was no interest in having anything like that.

I'd suggest sending KOBJ_ERROR uevent when a device driver detects anomaly in the device it controls, but I wonder how systemd would react given past experiences with KOBJ_BIND/KOBJ_UNBIND.

The message is ratelimited so it will not overfill the logs...

Thanks.

Signature · 1 line
Dmitry
author maintainer
#456 lore raw

Re: [PATCH 157/190] Revert "Input: ad7879 - add check for read errors in interrupt"

Quoted 35 lines · Dmitry Torokhov
Quoted 20 lines · Greg Kroah-Hartman
Quoted 19 lines · Dmitry Torokhov

Hi Greg,

Quoted 15 lines · Greg Kroah-Hartman

This reverts commit e85bb0beb6498c0dffe18a2f1f16d575bc175c32.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 5 lines
Quoted 2 lines

This one looks really OK to me and does not have to be reverted (unless Aditya will come clean and show the error introduced?).

I'll drop this revert, but it isn't usually good to be calling printk() from an irq.

How else do you suggest we tell that something is wrong when communicating with the device? For these types of devices the communication is essentially unsolicited so we can't pass failure to a caller to deal with it (i.e. unlike USB there is no URB posted that we could fail and use as a mechanism to signal error to some other layer) and while we could invent "something went wrong" input event so far there was no interest in having anything like that.

Quoted 5 lines

I'd suggest sending KOBJ_ERROR uevent when a device driver detects anomaly in the device it controls, but I wonder how systemd would react given past experiences with KOBJ_BIND/KOBJ_UNBIND.

The message is ratelimited so it will not overfill the logs...

Sending uevents from an irq is not a good idea, as you say :)

I don't know what the best way to "fail" this is, a ratelimited printk() seems to be about all you can do. Luckily hardware doesn't fail that often in this manner.

thanks,

greg k-h

author maintainer
#457 lore raw

PATCH 158/190 Revert "ALSA: sb: fix a missing check of snd_ctl_add"

In reply to Greg Kroah-Hartman

This reverts commit beae77170c60aa786f3e4599c18ead2854d8694d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Takashi Iwai <[email protected]>
---
 sound/isa/sb/sb16_main.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
sound/isa/sb/sb16_main.c +3 -7
index 38dc1fde25f3..aa4870531023 100644
@@ -846,14 +846,10 @@ int snd_sb16dsp_pcm(struct snd_sb *chip, int device)
 	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb16_playback_ops);
 	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb16_capture_ops);
 
-	if (chip->dma16 >= 0 && chip->dma8 != chip->dma16) {
-		err = snd_ctl_add(card, snd_ctl_new1(
-					&snd_sb16_dma_control, chip));
-		if (err)
-			return err;
-	} else {
+	if (chip->dma16 >= 0 && chip->dma8 != chip->dma16)
+		snd_ctl_add(card, snd_ctl_new1(&snd_sb16_dma_control, chip));
+	else
 		pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
-	}
 
 	snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
 				       card->dev, 64*1024, 128*1024);
Signature · 1 line
2.31.1
#458 lore raw

Re: [PATCH 158/190] Revert "ALSA: sb: fix a missing check of snd_ctl_add"

Quoted 17 lines · Greg Kroah-Hartman

This reverts commit beae77170c60aa786f3e4599c18ead2854d8694d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 3 lines
Cc Aditya Pakki <[email protected]>
Cc Takashi Iwai <[email protected]>

The original code change is fine, it's just adding an error return. OTOH, it would be safe even if we ignore the error, too (the mixer element is optional), and the driver is quite legacy. That said, feel free to revert it.

thanks,

Takashi

Quoted 29 lines
---
 sound/isa/sb/sb16_main.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
sound/isa/sb/sb16_main.c +3 -7
index 38dc1fde25f3..aa4870531023 100644
@@ -846,14 +846,10 @@ int snd_sb16dsp_pcm(struct snd_sb *chip, int device)
 	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb16_playback_ops);
 	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb16_capture_ops);
 
-	if (chip->dma16 >= 0 && chip->dma8 != chip->dma16) {
-		err = snd_ctl_add(card, snd_ctl_new1(
-					&snd_sb16_dma_control, chip));
-		if (err)
-			return err;
-	} else {
+	if (chip->dma16 >= 0 && chip->dma8 != chip->dma16)
+		snd_ctl_add(card, snd_ctl_new1(&snd_sb16_dma_control, chip));
+	else
 		pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
-	}
 
 	snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
 				       card->dev, 64*1024, 128*1024);
Signature · 1 line
2.31.1
author maintainer
#459 lore raw

Re: [PATCH 158/190] Revert "ALSA: sb: fix a missing check of snd_ctl_add"

Quoted 19 lines · Takashi Iwai
Quoted 17 lines · Greg Kroah-Hartman

This reverts commit beae77170c60aa786f3e4599c18ead2854d8694d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 8 lines
Quoted 3 lines
Cc Aditya Pakki <[email protected]>
Cc Takashi Iwai <[email protected]>

The original code change is fine, it's just adding an error return. OTOH, it would be safe even if we ignore the error, too (the mixer element is optional), and the driver is quite legacy. That said, feel free to revert it.

Thanks for the review, I'll keep it.

greg k-h

author maintainer
#460 lore raw

PATCH 159/190 Revert "ALSA: gus: add a check of the status of snd_ctl_add"

In reply to Greg Kroah-Hartman

This reverts commit 0f25e000cb4398081748e54f62a902098aa79ec1.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 sound/isa/gus/gus_main.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
sound/isa/gus/gus_main.c +2 -11
index afc088f0377c..b7518122a10d 100644
@@ -77,17 +77,8 @@ static const struct snd_kcontrol_new snd_gus_joystick_control = {
 
 static void snd_gus_init_control(struct snd_gus_card *gus)
 {
-	int ret;
-
-	if (!gus->ace_flag) {
-		ret =
-			snd_ctl_add(gus->card,
-					snd_ctl_new1(&snd_gus_joystick_control,
-						gus));
-		if (ret)
-			snd_printk(KERN_ERR "gus: snd_ctl_add failed: %d\n",
-					ret);
-	}
+	if (!gus->ace_flag)
+		snd_ctl_add(gus->card, snd_ctl_new1(&snd_gus_joystick_control, gus));
 }
 
 /*
Signature · 1 line
2.31.1
#461 lore raw

Re: [PATCH 159/190] Revert "ALSA: gus: add a check of the status of snd_ctl_add"

Quoted 17 lines · Greg Kroah-Hartman

This reverts commit 0f25e000cb4398081748e54f62a902098aa79ec1.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 3 lines

This code change simply adds an error message print out, so it doesn't actually fix anything, per se (although the code change itself is fine). Feel free to revert.

thanks,

Takashi

Quoted 31 lines
---
 sound/isa/gus/gus_main.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
sound/isa/gus/gus_main.c +2 -11
index afc088f0377c..b7518122a10d 100644
@@ -77,17 +77,8 @@ static const struct snd_kcontrol_new snd_gus_joystick_control = {
 
 static void snd_gus_init_control(struct snd_gus_card *gus)
 {
-	int ret;
-
-	if (!gus->ace_flag) {
-		ret =
-			snd_ctl_add(gus->card,
-					snd_ctl_new1(&snd_gus_joystick_control,
-						gus));
-		if (ret)
-			snd_printk(KERN_ERR "gus: snd_ctl_add failed: %d\n",
-					ret);
-	}
+	if (!gus->ace_flag)
+		snd_ctl_add(gus->card, snd_ctl_new1(&snd_gus_joystick_control, gus));
 }
 
 /*
Signature · 1 line
2.31.1
author maintainer
#462 lore raw

Re: [PATCH 159/190] Revert "ALSA: gus: add a check of the status of snd_ctl_add"

Quoted 19 lines · Takashi Iwai
Quoted 17 lines · Greg Kroah-Hartman

This reverts commit 0f25e000cb4398081748e54f62a902098aa79ec1.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 7 lines
Quoted 3 lines

This code change simply adds an error message print out, so it doesn't actually fix anything, per se (although the code change itself is fine). Feel free to revert.

Many thanks for the reviews!

greg k-h

author maintainer
#463 lore raw

PATCH 160/190 Revert "Staging: rts5208: Fix error handling on rtsx_send_cmd"

In reply to Greg Kroah-Hartman

This reverts commit c8c2702409430a6a2fd928e857f15773aaafcc99.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/rts5208/sd.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/staging/rts5208/sd.c +1 -6
index 25c31496757e..63f5465a6eeb 100644
@@ -4424,12 +4424,7 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 		rtsx_init_cmd(chip);
 		rtsx_add_cmd(chip, CHECK_REG_CMD, 0xFD30, 0x02, 0x02);
 
-		retval = rtsx_send_cmd(chip, SD_CARD, 250);
-		if (retval < 0) {
-			write_err = true;
-			rtsx_clear_sd_error(chip);
-			goto sd_execute_write_cmd_failed;
-		}
+		rtsx_send_cmd(chip, SD_CARD, 250);
 
 		retval = sd_update_lock_status(chip);
 		if (retval != STATUS_SUCCESS) {
Signature · 1 line
2.31.1
author maintainer
#464 lore raw

Re: [PATCH 160/190] Revert "Staging: rts5208: Fix error handling on rtsx_send_cmd"

Quoted 44 lines · Greg Kroah-Hartman

This reverts commit c8c2702409430a6a2fd928e857f15773aaafcc99.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/rts5208/sd.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/staging/rts5208/sd.c +1 -6
index 25c31496757e..63f5465a6eeb 100644
@@ -4424,12 +4424,7 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 		rtsx_init_cmd(chip);
 		rtsx_add_cmd(chip, CHECK_REG_CMD, 0xFD30, 0x02, 0x02);
 
-		retval = rtsx_send_cmd(chip, SD_CARD, 250);
-		if (retval < 0) {
-			write_err = true;
-			rtsx_clear_sd_error(chip);
-			goto sd_execute_write_cmd_failed;
-		}
+		rtsx_send_cmd(chip, SD_CARD, 250);
 
 		retval = sd_update_lock_status(chip);
 		if (retval != STATUS_SUCCESS) {
Signature · 1 line
2.31.1

The original looks correct to me, so I'll drop the revert.

greg k-h

author maintainer
#465 lore raw

PATCH 161/190 Revert "staging: rts5208: Add a check for ms_read_extra_data"

In reply to Greg Kroah-Hartman

This reverts commit 73b69c01cc925d9c48e5b4f78e3d8b88c4e5b924.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Dan Carpenter <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/rts5208/ms.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/staging/rts5208/ms.c +1 -4
index 9001570a8c94..37b60ba1bdfe 100644
@@ -1665,10 +1665,7 @@ static int ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk,
 			return STATUS_FAIL;
 		}
 
-		retval = ms_read_extra_data(chip, old_blk, i, extra,
-					    MS_EXTRA_SIZE);
-		if (retval != STATUS_SUCCESS)
-			return STATUS_FAIL;
+		ms_read_extra_data(chip, old_blk, i, extra, MS_EXTRA_SIZE);
 
 		retval = ms_set_rw_reg_addr(chip, OVERWRITE_FLAG,
 					    MS_EXTRA_SIZE, SYSTEM_PARAM, 6);
Signature · 1 line
2.31.1
author maintainer
#466 lore raw

Re: [PATCH 161/190] Revert "staging: rts5208: Add a check for ms_read_extra_data"

Quoted 43 lines · Greg Kroah-Hartman

This reverts commit 73b69c01cc925d9c48e5b4f78e3d8b88c4e5b924.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Dan Carpenter <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/rts5208/ms.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/staging/rts5208/ms.c +1 -4
index 9001570a8c94..37b60ba1bdfe 100644
@@ -1665,10 +1665,7 @@ static int ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk,
 			return STATUS_FAIL;
 		}
 
-		retval = ms_read_extra_data(chip, old_blk, i, extra,
-					    MS_EXTRA_SIZE);
-		if (retval != STATUS_SUCCESS)
-			return STATUS_FAIL;
+		ms_read_extra_data(chip, old_blk, i, extra, MS_EXTRA_SIZE);
 
 		retval = ms_set_rw_reg_addr(chip, OVERWRITE_FLAG,
 					    MS_EXTRA_SIZE, SYSTEM_PARAM, 6);
Signature · 1 line
2.31.1

This one looks fine, I'm dropping it.

greg k-h

author maintainer
#467 lore raw

PATCH 162/190 Revert "dmaengine: qcom_hidma: Check for driver register failure"

In reply to Greg Kroah-Hartman

This reverts commit a474b3f0428d6b02a538aa10b3c3b722751cb382.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Sinan Kaya <[email protected]>
Cc Vinod Koul <[email protected]>
---
 drivers/dma/qcom/hidma_mgmt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/dma/qcom/hidma_mgmt.c +2 -1
index 806ca02c52d7..fe87b01f7a4e 100644
@@ -418,8 +418,9 @@ static int __init hidma_mgmt_init(void)
 		hidma_mgmt_of_populate_channels(child);
 	}
 #endif
-	return platform_driver_register(&hidma_mgmt_driver);
+	platform_driver_register(&hidma_mgmt_driver);
 
+	return 0;
 }
 module_init(hidma_mgmt_init);
 MODULE_LICENSE("GPL v2");
Signature · 1 line
2.31.1
author maintainer
#468 lore raw

Re: [PATCH 162/190] Revert "dmaengine: qcom_hidma: Check for driver register failure"

Quoted 42 lines · Greg Kroah-Hartman

This reverts commit a474b3f0428d6b02a538aa10b3c3b722751cb382.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Sinan Kaya <[email protected]>
Cc Vinod Koul <[email protected]>
---
 drivers/dma/qcom/hidma_mgmt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/dma/qcom/hidma_mgmt.c +2 -1
index 806ca02c52d7..fe87b01f7a4e 100644
@@ -418,8 +418,9 @@ static int __init hidma_mgmt_init(void)
 		hidma_mgmt_of_populate_channels(child);
 	}
 #endif
-	return platform_driver_register(&hidma_mgmt_driver);
+	platform_driver_register(&hidma_mgmt_driver);
 
+	return 0;
 }
 module_init(hidma_mgmt_init);
 MODULE_LICENSE("GPL v2");
Signature · 1 line
2.31.1

The original change is NOT correct, as it does not correctly unwind from the resources that was allocated before the call to platform_driver_register().

As platform_driver_register() should never really fail here, I'll just revert this patch and maybe someone, if they care about this driver, can unwind the mess here. Given that this driver doesn't look to ever be able to be unloaded from the system, failing the init call does not look to be a wise idea.

thanks,

greg k-h

maintainer
#469 lore raw

Re: [PATCH 162/190] Revert "dmaengine: qcom_hidma: Check for driver register failure"

Quoted 9 lines · Greg Kroah-Hartman

The original change is NOT correct, as it does not correctly unwind from the resources that was allocated before the call to platform_driver_register().

As platform_driver_register() should never really fail here, I'll just revert this patch and maybe someone, if they care about this driver, can unwind the mess here. Given that this driver doesn't look to ever be able to be unloaded from the system, failing the init call does not look to be a wise idea.

Please go ahead. I was out-of-office for the last few days.

author maintainer
#470 lore raw

PATCH 163/190 Revert "dmaengine: mv_xor: Fix a missing check in mv_xor_channel_add"

In reply to Greg Kroah-Hartman

This reverts commit 7c97381e7a9a5ec359007c0d491a143e3d9f787c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/dma/mv_xor.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/dma/mv_xor.c +1 -4
index 23b232b57518..78bd52565571 100644
@@ -1144,10 +1144,7 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
 		 dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask) ? "cpy " : "",
 		 dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask) ? "intr " : "");
 
-	ret = dma_async_device_register(dma_dev);
-	if (ret)
-		goto err_free_irq;
-
+	dma_async_device_register(dma_dev);
 	return mv_chan;
 
 err_free_irq:
Signature · 1 line
2.31.1
author maintainer
#471 lore raw

Re: [PATCH 163/190] Revert "dmaengine: mv_xor: Fix a missing check in mv_xor_channel_add"

Quoted 42 lines · Greg Kroah-Hartman

This reverts commit 7c97381e7a9a5ec359007c0d491a143e3d9f787c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/dma/mv_xor.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/dma/mv_xor.c +1 -4
index 23b232b57518..78bd52565571 100644
@@ -1144,10 +1144,7 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
 		 dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask) ? "cpy " : "",
 		 dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask) ? "intr " : "");
 
-	ret = dma_async_device_register(dma_dev);
-	if (ret)
-		goto err_free_irq;
-
+	dma_async_device_register(dma_dev);
 	return mv_chan;
 
 err_free_irq:
Signature · 1 line
2.31.1

The original commit here is correct, I will drop this revert.

greg k-h

author maintainer
#472 lore raw

PATCH 164/190 Revert "iio: ad9523: fix a missing check of return value"

In reply to Greg Kroah-Hartman

This reverts commit ae0b3773721f08526c850e2d8dec85bdb870cd12.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Jonathan Cameron <[email protected]>
---
 drivers/iio/frequency/ad9523.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/iio/frequency/ad9523.c +2 -5
index bdb0bc3b12dd..91eb47e27db0 100644
@@ -944,14 +944,11 @@ static int ad9523_setup(struct iio_dev *indio_dev)
 		}
 	}
 
-	for_each_clear_bit(i, &active_mask, AD9523_NUM_CHAN) {
-		ret = ad9523_write(indio_dev,
+	for_each_clear_bit(i, &active_mask, AD9523_NUM_CHAN)
+		ad9523_write(indio_dev,
 			     AD9523_CHANNEL_CLOCK_DIST(i),
 			     AD9523_CLK_DIST_DRIVER_MODE(TRISTATE) |
 			     AD9523_CLK_DIST_PWR_DOWN_EN);
-		if (ret < 0)
-			return ret;
-	}
 
 	ret = ad9523_write(indio_dev, AD9523_POWER_DOWN_CTRL, 0);
 	if (ret < 0)
Signature · 1 line
2.31.1
#473 lore raw

Re: [PATCH 164/190] Revert "iio: ad9523: fix a missing check of return value"

Quoted 16 lines · On Wed, 21 Apr 2021 15:00:39 +0200 Greg Kroah-Hartman…

This reverts commit ae0b3773721f08526c850e2d8dec85bdb870cd12.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 3 lines
Cc Kangjie Lu <[email protected]>
Cc Jonathan Cameron <[email protected]>

Checked. Original fix was correct. As with others I don't mind how we handle this. Can either drop the revert, or bring it back later.

Thanks,

Jonathan

Quoted 25 lines
---
 drivers/iio/frequency/ad9523.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/iio/frequency/ad9523.c +2 -5
index bdb0bc3b12dd..91eb47e27db0 100644
@@ -944,14 +944,11 @@ static int ad9523_setup(struct iio_dev *indio_dev)
 		}
 	}
 
-	for_each_clear_bit(i, &active_mask, AD9523_NUM_CHAN) {
-		ret = ad9523_write(indio_dev,
+	for_each_clear_bit(i, &active_mask, AD9523_NUM_CHAN)
+		ad9523_write(indio_dev,
 			     AD9523_CHANNEL_CLOCK_DIST(i),
 			     AD9523_CLK_DIST_DRIVER_MODE(TRISTATE) |
 			     AD9523_CLK_DIST_PWR_DOWN_EN);
-		if (ret < 0)
-			return ret;
-	}
 
 	ret = ad9523_write(indio_dev, AD9523_POWER_DOWN_CTRL, 0);
 	if (ret < 0)
author maintainer
#474 lore raw

Re: [PATCH 164/190] Revert "iio: ad9523: fix a missing check of return value"

Quoted 19 lines · Jonathan Cameron
Quoted 16 lines · On Wed, 21 Apr 2021 15:00:39 +0200 Greg Kroah-Hartman…

This reverts commit ae0b3773721f08526c850e2d8dec85bdb870cd12.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 6 lines
Quoted 3 lines
Cc Kangjie Lu <[email protected]>
Cc Jonathan Cameron <[email protected]>

Checked. Original fix was correct. As with others I don't mind how we handle this. Can either drop the revert, or bring it back later.

I'll drop the revert now, thanks for the review!

greg k-h

author maintainer
#475 lore raw

PATCH 165/190 Revert "mfd: mc13xxx: Fix a missing check of a register-read failure"

In reply to Greg Kroah-Hartman

This reverts commit 9e28989d41c0eab57ec0bb156617a8757406ff8a.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/mfd/mc13xxx-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mfd/mc13xxx-core.c +1 -3
index 1abe7432aad8..b2beb7c39cc5 100644
@@ -271,9 +271,7 @@ int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode,
 
 	mc13xxx->adcflags |= MC13XXX_ADC_WORKING;
 
-	ret = mc13xxx_reg_read(mc13xxx, MC13XXX_ADC0, &old_adc0);
-	if (ret)
-		goto out;
+	mc13xxx_reg_read(mc13xxx, MC13XXX_ADC0, &old_adc0);
 
 	adc0 = MC13XXX_ADC0_ADINC1 | MC13XXX_ADC0_ADINC2 |
 	       MC13XXX_ADC0_CHRGRAWDIV;
Signature · 1 line
2.31.1
#476 lore raw

Re: [PATCH 165/190] Revert "mfd: mc13xxx: Fix a missing check of a register-read failure"

Quoted 28 lines · Greg Kroah-Hartman

This reverts commit 9e28989d41c0eab57ec0bb156617a8757406ff8a.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/mfd/mc13xxx-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mfd/mc13xxx-core.c +0 -0
index 1abe7432aad8..b2beb7c39cc5 100644

drivers/mfd/mc13xxx-core.c int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode, · line 277

Quoted 10 lines
drivers/mfd/mc13xxx-core.c +1 -3
@@ -271,9 +271,7 @@ int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode,
 
 	mc13xxx->adcflags |= MC13XXX_ADC_WORKING;
 
-	ret = mc13xxx_reg_read(mc13xxx, MC13XXX_ADC0, &old_adc0);
-	if (ret)
-		goto out;
+	mc13xxx_reg_read(mc13xxx, MC13XXX_ADC0, &old_adc0);
 
 	adc0 = MC13XXX_ADC0_ADINC1 | MC13XXX_ADC0_ADINC2 |
 	       MC13XXX_ADC0_CHRGRAWDIV;

Thanks for bringing this commit to my attention.

The associated LWN article was an interesting read and I have to say, I was very disappointed to hear about the actions of these so called researchers.

Upon re-review of the original commit, this one does appear valid.

Do I need to conduct anymore due diligence or can I drop this patch?

Signature · 4 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
author maintainer
#477 lore raw

Re: [PATCH 165/190] Revert "mfd: mc13xxx: Fix a missing check of a register-read failure"

Quoted 43 lines · Lee Jones
Quoted 28 lines · Greg Kroah-Hartman

This reverts commit 9e28989d41c0eab57ec0bb156617a8757406ff8a.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/mfd/mc13xxx-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mfd/mc13xxx-core.c +0 -0
index 1abe7432aad8..b2beb7c39cc5 100644

drivers/mfd/mc13xxx-core.c int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode, · line 277

Quoted 10 lines
drivers/mfd/mc13xxx-core.c +1 -3
@@ -271,9 +271,7 @@ int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode,
 
 	mc13xxx->adcflags |= MC13XXX_ADC_WORKING;
 
-	ret = mc13xxx_reg_read(mc13xxx, MC13XXX_ADC0, &old_adc0);
-	if (ret)
-		goto out;
+	mc13xxx_reg_read(mc13xxx, MC13XXX_ADC0, &old_adc0);
 
 	adc0 = MC13XXX_ADC0_ADINC1 | MC13XXX_ADC0_ADINC2 |
 	       MC13XXX_ADC0_CHRGRAWDIV;

Thanks for bringing this commit to my attention.

Quoted 7 lines

The associated LWN article was an interesting read and I have to say, I was very disappointed to hear about the actions of these so called researchers.

Upon re-review of the original commit, this one does appear valid.

Do I need to conduct anymore due diligence or can I drop this patch?

Nope, that's it, I'll drop this from my series, thanks for the review!

greg k-h

author maintainer
#478 lore raw

Re: [PATCH 165/190] Revert "mfd: mc13xxx: Fix a missing check of a register-read failure"

In reply to Lee Jones
Quoted 43 lines · Lee Jones
Quoted 28 lines · Greg Kroah-Hartman

This reverts commit 9e28989d41c0eab57ec0bb156617a8757406ff8a.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/mfd/mc13xxx-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mfd/mc13xxx-core.c +0 -0
index 1abe7432aad8..b2beb7c39cc5 100644

drivers/mfd/mc13xxx-core.c int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode, · line 277

Quoted 10 lines
drivers/mfd/mc13xxx-core.c +1 -3
@@ -271,9 +271,7 @@ int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode,
 
 	mc13xxx->adcflags |= MC13XXX_ADC_WORKING;
 
-	ret = mc13xxx_reg_read(mc13xxx, MC13XXX_ADC0, &old_adc0);
-	if (ret)
-		goto out;
+	mc13xxx_reg_read(mc13xxx, MC13XXX_ADC0, &old_adc0);
 
 	adc0 = MC13XXX_ADC0_ADINC1 | MC13XXX_ADC0_ADINC2 |
 	       MC13XXX_ADC0_CHRGRAWDIV;

Thanks for bringing this commit to my attention.

Quoted 7 lines

The associated LWN article was an interesting read and I have to say, I was very disappointed to hear about the actions of these so called researchers.

Upon re-review of the original commit, this one does appear valid.

Do I need to conduct anymore due diligence or can I drop this patch?

I've dropped this revert from my tree now, thanks.

greg k-h

author maintainer
#479 lore raw

PATCH 166/190 Revert "infiniband: bnxt_re: qplib: Check the return value of send_message"

In reply to Greg Kroah-Hartman

This reverts commit 94edd87a1c59f3efa6fdf4e98d6d492e6cec6173.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Devesh Sharma <[email protected]>
Cc Jason Gunthorpe <[email protected]>
---
 drivers/infiniband/hw/bnxt_re/qplib_sp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/infiniband/hw/bnxt_re/qplib_sp.c +3 -2
index 049b3576302b..c9cc03e2130c 100644
@@ -775,8 +775,9 @@ int bnxt_qplib_map_tc2cos(struct bnxt_qplib_res *res, u16 *cids)
 	req.cos0 = cpu_to_le16(cids[0]);
 	req.cos1 = cpu_to_le16(cids[1]);
 
-	return bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp,
-						NULL, 0);
+	bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, NULL,
+				     0);
+	return 0;
 }
 
 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw,
Signature · 1 line
2.31.1
maintainer
#480 lore raw

Re: [PATCH 166/190] Revert "infiniband: bnxt_re: qplib: Check the return value of send_message"

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit 94edd87a1c59f3efa6fdf4e98d6d492e6cec6173.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 7 lines
Cc Aditya Pakki <[email protected]>
Cc Devesh Sharma <[email protected]>
Cc Jason Gunthorpe <[email protected]>
---
 drivers/infiniband/hw/bnxt_re/qplib_sp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Can't see a reason to revert this one, I re-checked the callers error paths and it looks OK

Jason

Acked-by
#481 lore raw

Re: [PATCH 166/190] Revert "infiniband: bnxt_re: qplib: Check the return value of send_message"

Quoted 26 lines · Jason Gunthorpe
Quoted 16 lines · Greg Kroah-Hartman

This reverts commit 94edd87a1c59f3efa6fdf4e98d6d492e6cec6173.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 7 lines
Cc Aditya Pakki <[email protected]>
Cc Devesh Sharma <[email protected]>
Cc Jason Gunthorpe <[email protected]>
---
 drivers/infiniband/hw/bnxt_re/qplib_sp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 4 lines

Can't see a reason to revert this one, I re-checked the callers error paths and it looks OK

Jason

Signature · 2 lines
-Regards
Devesh
author maintainer
#482 lore raw

Re: [PATCH 166/190] Revert "infiniband: bnxt_re: qplib: Check the return value of send_message"

Quoted 27 lines · Devesh Sharma
Quoted 26 lines · Jason Gunthorpe
Quoted 23 lines · Greg Kroah-Hartman

This reverts commit 94edd87a1c59f3efa6fdf4e98d6d492e6cec6173.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Devesh Sharma <[email protected]>
Cc Jason Gunthorpe <[email protected]>
---
 drivers/infiniband/hw/bnxt_re/qplib_sp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 5 lines
Quoted 4 lines

Can't see a reason to revert this one, I re-checked the callers error paths and it looks OK

Jason

Thanks for the review, I'll drop this as the original looks ok for now.

greg k-h

author maintainer
#483 lore raw

PATCH 167/190 Revert "gdrom: fix a memory leak bug"

In reply to Greg Kroah-Hartman

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/cdrom/gdrom.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cdrom/gdrom.c +0 -1
index 9874fc1c815b..466fc3eee8bb 100644
@@ -863,7 +863,6 @@ static void __exit exit_gdrom(void)
 	platform_device_unregister(pd);
 	platform_driver_unregister(&gdrom_driver);
 	kfree(gd.toc);
-	kfree(gd.cd_info);
 }
 
 module_init(init_gdrom);
Signature · 1 line
2.31.1
#484 lore raw

Re: [PATCH 167/190] Revert "gdrom: fix a memory leak bug"

Quoted 1 line

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

The reverted patch looks fishy.

gc.cd_info is kzalloc:ed on probe. In case probe fails after this allocation, the memory is kfree:d but the variable is NOT zeroed out.

AFAICT, the above leads to a double-free on exit by the added line.

I believe gd.cd_info should be kfree:d on remove instead.

However, might not gc.toc also be kfree:d twice for similar reasons?

I could easily be mistaken.

Cheers,
Peter

#485 lore raw

Re: [PATCH 167/190] Revert "gdrom: fix a memory leak bug"

Quoted 7 lines · Peter Rosin
Quoted 1 line

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

The reverted patch looks fishy.

gc.cd_info is kzalloc:ed on probe. In case probe fails after this allocation, the memory is kfree:d but the variable is NOT zeroed out.

Quoted 7 lines

AFAICT, the above leads to a double-free on exit by the added line.

I believe gd.cd_info should be kfree:d on remove instead.

However, might not gc.toc also be kfree:d twice for similar reasons?

I could easily be mistaken.

From taking a quick look the other day, that's my conclusion too. I don't think the patch is correct, but I don't think the surrounding code is correct right now either.

Signature · 1 line
Jens Axboe
author maintainer
#486 lore raw

Re: [PATCH 167/190] Revert "gdrom: fix a memory leak bug"

Quoted 12 lines · Jens Axboe
Quoted 11 lines · Peter Rosin
Quoted 1 line

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

The reverted patch looks fishy.

gc.cd_info is kzalloc:ed on probe. In case probe fails after this allocation, the memory is kfree:d but the variable is NOT zeroed out.

AFAICT, the above leads to a double-free on exit by the added line.

I believe gd.cd_info should be kfree:d on remove instead.

Quoted 7 lines
Quoted 5 lines

However, might not gc.toc also be kfree:d twice for similar reasons?

I could easily be mistaken.

From taking a quick look the other day, that's my conclusion too. I

don't think the patch is correct, but I don't think the surrounding code is correct right now either.

Thanks for the review from both of you, I'll keep this commit in the tree.

greg k-h

#487 lore raw

Re: [PATCH 167/190] Revert "gdrom: fix a memory leak bug"

Quoted 15 lines · Greg KH
Quoted 14 lines · Jens Axboe
Quoted 13 lines · Peter Rosin
Quoted 1 line

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

The reverted patch looks fishy.

gc.cd_info is kzalloc:ed on probe. In case probe fails after this allocation, the memory is kfree:d but the variable is NOT zeroed out.

AFAICT, the above leads to a double-free on exit by the added line.

I believe gd.cd_info should be kfree:d on remove instead.

However, might not gc.toc also be kfree:d twice for similar reasons?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

I could easily be mistaken.

From taking a quick look the other day, that's my conclusion too. I

don't think the patch is correct, but I don't think the surrounding code is correct right now either.

Thanks for the review from both of you, I'll keep this commit in the tree.

Err, which commit is "this" and what tree are you keeping it in? I think you mean that you are keeping the revert in your tree with reverts, and not that you mean that we should keep the original commit in Linus' tree.

In any case, I'd think that the original memory leak is somewhat better than the introduced double-free and therefore the revert should be done.

Cheers,
Peter

#488 lore raw

Re: [PATCH 167/190] Revert "gdrom: fix a memory leak bug"

Quoted 24 lines · Peter Rosin
Quoted 15 lines · Greg KH
Quoted 14 lines · Jens Axboe
Quoted 13 lines · Peter Rosin
Quoted 1 line

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

The reverted patch looks fishy.

gc.cd_info is kzalloc:ed on probe. In case probe fails after this allocation, the memory is kfree:d but the variable is NOT zeroed out.

AFAICT, the above leads to a double-free on exit by the added line.

I believe gd.cd_info should be kfree:d on remove instead.

However, might not gc.toc also be kfree:d twice for similar reasons?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

I could easily be mistaken.

From taking a quick look the other day, that's my conclusion too. I

don't think the patch is correct, but I don't think the surrounding code is correct right now either.

Thanks for the review from both of you, I'll keep this commit in the tree.

Quoted 8 lines

Err, which commit is "this" and what tree are you keeping it in? I think you mean that you are keeping the revert in your tree with reverts, and not that you mean that we should keep the original commit in Linus' tree.

In any case, I'd think that the original memory leak is somewhat better than the introduced double-free and therefore the revert should be done.

It should probably look like the below, though I doubt it matters since only one device is supported anyway. As long as the free happens post unregister, it likely won't make a difference. But it is cleaner and easier to verify, and should double device support ever be introduced, the existing code is buggy.

But given that, I don't think we should keep the revert patch.

drivers/cdrom/gdrom.c +2 -2
index 9874fc1c815b..02d369881165 100644
@@ -831,6 +831,8 @@ static int remove_gdrom(struct platform_device *devptr)
 	if (gdrom_major)
 		unregister_blkdev(gdrom_major, GDROM_DEV_NAME);
 	unregister_cdrom(gd.cd_info);
+	kfree(gd.toc);
+	kfree(gd.cd_info);
 
 	return 0;
 }
@@ -862,8 +864,6 @@ static void __exit exit_gdrom(void)
 {
 	platform_device_unregister(pd);
 	platform_driver_unregister(&gdrom_driver);
-	kfree(gd.toc);
-	kfree(gd.cd_info);
 }
 
 module_init(init_gdrom);
Signature · 1 line
Jens Axboe
author maintainer
#489 lore raw

Re: [PATCH 167/190] Revert "gdrom: fix a memory leak bug"

Quoted 68 lines · Jens Axboe
Quoted 24 lines · Peter Rosin
Quoted 15 lines · Greg KH
Quoted 14 lines · Jens Axboe
Quoted 13 lines · Peter Rosin
Quoted 1 line

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

The reverted patch looks fishy.

gc.cd_info is kzalloc:ed on probe. In case probe fails after this allocation, the memory is kfree:d but the variable is NOT zeroed out.

AFAICT, the above leads to a double-free on exit by the added line.

I believe gd.cd_info should be kfree:d on remove instead.

However, might not gc.toc also be kfree:d twice for similar reasons?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

I could easily be mistaken.

From taking a quick look the other day, that's my conclusion too. I

don't think the patch is correct, but I don't think the surrounding code is correct right now either.

Thanks for the review from both of you, I'll keep this commit in the tree.

Quoted 8 lines

Err, which commit is "this" and what tree are you keeping it in? I think you mean that you are keeping the revert in your tree with reverts, and not that you mean that we should keep the original commit in Linus' tree.

In any case, I'd think that the original memory leak is somewhat better than the introduced double-free and therefore the revert should be done.

It should probably look like the below, though I doubt it matters since only one device is supported anyway. As long as the free happens post unregister, it likely won't make a difference. But it is cleaner and easier to verify, and should double device support ever be introduced, the existing code is buggy.

But given that, I don't think we should keep the revert patch.

drivers/cdrom/gdrom.c +2 -2
index 9874fc1c815b..02d369881165 100644
@@ -831,6 +831,8 @@ static int remove_gdrom(struct platform_device *devptr)
 	if (gdrom_major)
 		unregister_blkdev(gdrom_major, GDROM_DEV_NAME);
 	unregister_cdrom(gd.cd_info);
+	kfree(gd.toc);
+	kfree(gd.cd_info);
 
 	return 0;
 }
@@ -862,8 +864,6 @@ static void __exit exit_gdrom(void)
 {
 	platform_device_unregister(pd);
 	platform_driver_unregister(&gdrom_driver);
-	kfree(gd.toc);
-	kfree(gd.cd_info);
 }
 
 module_init(init_gdrom);
Signature · 2 lines
-- 
Jens Axboe

I'll add this fix to the tree after the revert, and give you the credit for the fix :)

thanks,

greg k-h

#490 lore raw

Re: [PATCH 167/190] Revert "gdrom: fix a memory leak bug"

Quoted 64 lines · Greg KH
Quoted 63 lines · Jens Axboe
Quoted 24 lines · Peter Rosin
Quoted 15 lines · Greg KH
Quoted 14 lines · Jens Axboe
Quoted 13 lines · Peter Rosin
Quoted 1 line

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

The reverted patch looks fishy.

gc.cd_info is kzalloc:ed on probe. In case probe fails after this allocation, the memory is kfree:d but the variable is NOT zeroed out.

AFAICT, the above leads to a double-free on exit by the added line.

I believe gd.cd_info should be kfree:d on remove instead.

However, might not gc.toc also be kfree:d twice for similar reasons?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

I could easily be mistaken.

From taking a quick look the other day, that's my conclusion too. I

don't think the patch is correct, but I don't think the surrounding code is correct right now either.

Thanks for the review from both of you, I'll keep this commit in the tree.

Quoted 8 lines

Err, which commit is "this" and what tree are you keeping it in? I think you mean that you are keeping the revert in your tree with reverts, and not that you mean that we should keep the original commit in Linus' tree.

In any case, I'd think that the original memory leak is somewhat better than the introduced double-free and therefore the revert should be done.

It should probably look like the below, though I doubt it matters since only one device is supported anyway. As long as the free happens post unregister, it likely won't make a difference. But it is cleaner and easier to verify, and should double device support ever be introduced, the existing code is buggy.

But given that, I don't think we should keep the revert patch.

drivers/cdrom/gdrom.c +2 -2
index 9874fc1c815b..02d369881165 100644
@@ -831,6 +831,8 @@ static int remove_gdrom(struct platform_device *devptr)
 	if (gdrom_major)
 		unregister_blkdev(gdrom_major, GDROM_DEV_NAME);
 	unregister_cdrom(gd.cd_info);
+	kfree(gd.toc);
+	kfree(gd.cd_info);
 
 	return 0;
 }
@@ -862,8 +864,6 @@ static void __exit exit_gdrom(void)
 {
 	platform_device_unregister(pd);
 	platform_driver_unregister(&gdrom_driver);
-	kfree(gd.toc);
-	kfree(gd.cd_info);
 }
 
Quoted 8 lines
Quoted 5 lines
drivers/cdrom/gdrom.c +0 -0
 module_init(init_gdrom);
Signature · 2 lines
-- 
Jens Axboe

I'll add this fix to the tree after the revert, and give you the credit for the fix :)

Sounds good, thanks Greg.

Signature · 1 line
Jens Axboe
author maintainer
#491 lore raw

Re: [PATCH 167/190] Revert "gdrom: fix a memory leak bug"

In reply to Peter Rosin
Quoted 22 lines · Peter Rosin
Quoted 21 lines · Greg KH
Quoted 19 lines · Jens Axboe
Quoted 9 lines · Peter Rosin
Quoted 1 line

This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.

The reverted patch looks fishy.

gc.cd_info is kzalloc:ed on probe. In case probe fails after this allocation, the memory is kfree:d but the variable is NOT zeroed out.

AFAICT, the above leads to a double-free on exit by the added line.

Quoted 7 lines

I believe gd.cd_info should be kfree:d on remove instead.

However, might not gc.toc also be kfree:d twice for similar reasons?

I could easily be mistaken.

From taking a quick look the other day, that's my conclusion too. I

don't think the patch is correct, but I don't think the surrounding code is correct right now either.

Quoted 6 lines
Quoted 2 lines

Thanks for the review from both of you, I'll keep this commit in the tree.

Err, which commit is "this" and what tree are you keeping it in? I think you mean that you are keeping the revert in your tree with reverts, and not that you mean that we should keep the original commit in Linus' tree.

That is correct, I will be keeping this revert in my tree.

Quoted 3 lines

In any case, I'd think that the original memory leak is somewhat better than the introduced double-free and therefore the revert should be done.

Will do that.

thanks,

greg k-h

author maintainer
#492 lore raw

PATCH 168/190 Revert "net: marvell: fix a missing check of acpi_match_device"

In reply to Greg Kroah-Hartman

This reverts commit 92ee77d148bf06d8c52664be4d1b862583fd5c0e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -2
index 1767c60056c5..f1a70b37227f 100644
@@ -7328,8 +7328,6 @@ static int mvpp2_probe(struct platform_device *pdev)
 	if (has_acpi_companion(&pdev->dev)) {
 		acpi_id = acpi_match_device(pdev->dev.driver->acpi_match_table,
 					    &pdev->dev);
-		if (!acpi_id)
-			return -EINVAL;
 		priv->hw_version = (unsigned long)acpi_id->driver_data;
 	} else {
 		priv->hw_version =
Signature · 1 line
2.31.1
author maintainer
#493 lore raw

Re: [PATCH 168/190] Revert "net: marvell: fix a missing check of acpi_match_device"

Quoted 39 lines · Greg Kroah-Hartman

This reverts commit 92ee77d148bf06d8c52664be4d1b862583fd5c0e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -2
index 1767c60056c5..f1a70b37227f 100644
@@ -7328,8 +7328,6 @@ static int mvpp2_probe(struct platform_device *pdev)
 	if (has_acpi_companion(&pdev->dev)) {
 		acpi_id = acpi_match_device(pdev->dev.driver->acpi_match_table,
 					    &pdev->dev);
-		if (!acpi_id)
-			return -EINVAL;
 		priv->hw_version = (unsigned long)acpi_id->driver_data;
 	} else {
 		priv->hw_version =
Signature · 1 line
2.31.1

The original commit here looks correct, so I'll drop this revert.

greg k-h

#494 lore raw

Re: [PATCH 168/190] Revert "net: marvell: fix a missing check of acpi_match_device"

Quoted 34 lines · Greg Kroah-Hartman
Quoted 33 lines · Greg Kroah-Hartman

This reverts commit 92ee77d148bf06d8c52664be4d1b862583fd5c0e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -2
index 1767c60056c5..f1a70b37227f 100644
@@ -7328,8 +7328,6 @@ static int mvpp2_probe(struct platform_device *pdev)
 	if (has_acpi_companion(&pdev->dev)) {
 		acpi_id = acpi_match_device(pdev->dev.driver->acpi_match_table,
 					    &pdev->dev);
-		if (!acpi_id)
-			return -EINVAL;
Quoted 8 lines
Quoted 6 lines
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -0
 		priv->hw_version = (unsigned long)acpi_id->driver_data;
 	} else {
 		priv->hw_version =
Signature · 1 line
2.31.1

The original commit here looks correct, so I'll drop this revert.

Agreed, the original patch looks fine to me and the revert is unnecessary.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
maintainer
#495 lore raw

Re: [PATCH 168/190] Revert "net: marvell: fix a missing check of acpi_match_device"

Quoted 45 lines · Russell King - ARM Linux admin
Quoted 34 lines · Greg Kroah-Hartman
Quoted 33 lines · Greg Kroah-Hartman

This reverts commit 92ee77d148bf06d8c52664be4d1b862583fd5c0e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -2
index 1767c60056c5..f1a70b37227f 100644
@@ -7328,8 +7328,6 @@ static int mvpp2_probe(struct platform_device *pdev)
    if (has_acpi_companion(&pdev->dev)) {
            acpi_id = acpi_match_device(pdev->dev.driver->acpi_match_table,
                                        &pdev->dev);
-           if (!acpi_id)
-                   return -EINVAL;
Quoted 8 lines
Quoted 6 lines
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -1
            priv->hw_version = (unsigned long)acpi_id->driver_data;
    } else {
            priv->hw_version =
--

2.31.1

The original commit here looks correct, so I'll drop this revert.

Quoted 2 lines

Agreed, the original patch looks fine to me and the revert is unnecessary.

I wonder how useful these kinds of patches/checks are. If we are dealing with ACPI platform device we must have matched on ACPI node before getting into the probe, so we would match here as well. The exception would be someone playing with "driver_override" device attribute, but that someone must be root as therefore have many options of shooting themselves into foot. So I guess the question is:
do we need to bloat the code with such checks?

Thanks.

Signature · 1 line
Dmitry
#496 lore raw

Re: [PATCH 168/190] Revert "net: marvell: fix a missing check of acpi_match_device"

Quoted 50 lines · Dmitry Torokhov
Quoted 45 lines · Russell King - ARM Linux admin
Quoted 34 lines · Greg Kroah-Hartman
Quoted 33 lines · Greg Kroah-Hartman

This reverts commit 92ee77d148bf06d8c52664be4d1b862583fd5c0e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -2
index 1767c60056c5..f1a70b37227f 100644
@@ -7328,8 +7328,6 @@ static int mvpp2_probe(struct platform_device *pdev)
    if (has_acpi_companion(&pdev->dev)) {
            acpi_id = acpi_match_device(pdev->dev.driver->acpi_match_table,
                                        &pdev->dev);
-           if (!acpi_id)
-                   return -EINVAL;
Quoted 8 lines
Quoted 6 lines
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -1
            priv->hw_version = (unsigned long)acpi_id->driver_data;
    } else {
            priv->hw_version =
--

2.31.1

The original commit here looks correct, so I'll drop this revert.

Quoted 2 lines

Agreed, the original patch looks fine to me and the revert is unnecessary.

Quoted 7 lines

I wonder how useful these kinds of patches/checks are. If we are dealing with ACPI platform device we must have matched on ACPI node before getting into the probe, so we would match here as well. The exception would be someone playing with "driver_override" device attribute, but that someone must be root as therefore have many options of shooting themselves into foot. So I guess the question is:
do we need to bloat the code with such checks?

It's probably way too late now to think about it (due to the quantity of drivers) but in many cases, it seems there's a pattern. On probe, re-lookup the matching ID to fetch the data pointer, and store it in some way. Had we known that such a pattern would be common, it probably would have been a good idea to provide a "match_data" member inside struct device, which the bus probe code can set appropriately from the match tables. That would also have the benefit of elimianting any patches such as this, and likely would reduce bloat too.

As I say, likely way too late for that idea now though.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
author maintainer
#497 lore raw

PATCH 169/190 Revert "atl1e: checking the status of atl1e_write_phy_reg"

In reply to Greg Kroah-Hartman

This reverts commit ff07d48d7bc0974d4f96a85a4df14564fb09f1ef.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +1 -3
index ff9f96de74b8..85f9cb769e30 100644
@@ -455,9 +455,7 @@ static void atl1e_mdio_write(struct net_device *netdev, int phy_id,
 {
 	struct atl1e_adapter *adapter = netdev_priv(netdev);
 
-	if (atl1e_write_phy_reg(&adapter->hw,
-				reg_num & MDIO_REG_ADDR_MASK, val))
-		netdev_err(netdev, "write phy register failed\n");
+	atl1e_write_phy_reg(&adapter->hw, reg_num & MDIO_REG_ADDR_MASK, val);
 }
 
 static int atl1e_mii_ioctl(struct net_device *netdev,
Signature · 1 line
2.31.1
author maintainer
#498 lore raw

Re: [PATCH 169/190] Revert "atl1e: checking the status of atl1e_write_phy_reg"

Quoted 41 lines · Greg Kroah-Hartman

This reverts commit ff07d48d7bc0974d4f96a85a4df14564fb09f1ef.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +1 -3
index ff9f96de74b8..85f9cb769e30 100644
@@ -455,9 +455,7 @@ static void atl1e_mdio_write(struct net_device *netdev, int phy_id,
 {
 	struct atl1e_adapter *adapter = netdev_priv(netdev);
 
-	if (atl1e_write_phy_reg(&adapter->hw,
-				reg_num & MDIO_REG_ADDR_MASK, val))
-		netdev_err(netdev, "write phy register failed\n");
+	atl1e_write_phy_reg(&adapter->hw, reg_num & MDIO_REG_ADDR_MASK, val);
 }
 
 static int atl1e_mii_ioctl(struct net_device *netdev,
Signature · 1 line
2.31.1

The original change here is a mess, what is a user supposed to do if this call fails? I will revert it and properly pass the error value up to the callers, as that is the correct thing to do here, not paper over the issue with a commit message that claims this change "fixes" anything.

thanks,

greg k-h

author maintainer
#499 lore raw

Re: [PATCH 169/190] Revert "atl1e: checking the status of atl1e_write_phy_reg"

Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Greg Kroah-Hartman

This reverts commit ff07d48d7bc0974d4f96a85a4df14564fb09f1ef.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +1 -3
index ff9f96de74b8..85f9cb769e30 100644
@@ -455,9 +455,7 @@ static void atl1e_mdio_write(struct net_device *netdev, int phy_id,
 {
 	struct atl1e_adapter *adapter = netdev_priv(netdev);
 
-	if (atl1e_write_phy_reg(&adapter->hw,
-				reg_num & MDIO_REG_ADDR_MASK, val))
-		netdev_err(netdev, "write phy register failed\n");
+	atl1e_write_phy_reg(&adapter->hw, reg_num & MDIO_REG_ADDR_MASK, val);
 }
 
Quoted 10 lines
Quoted 4 lines
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +0 -0
 static int atl1e_mii_ioctl(struct net_device *netdev,
Signature · 1 line
2.31.1

The original change here is a mess, what is a user supposed to do if this call fails? I will revert it and properly pass the error value up to the callers, as that is the correct thing to do here, not paper over the issue with a commit message that claims this change "fixes" anything.

In looking at this further, Du has pointed out to me that the atl1e_mdio_write function can not easily be changed to return an error value, because that would require all callbacks for mdio_write in struct mii_if_info would need to be changed and handled properly.

So the original commit was as correct as is possible at the moment, making a much larger change like this really isn't needed, so I'll drop the revert.

thanks to Du Cheng for the additional review, it is much appreciated.

greg k-h

author maintainer
#500 lore raw

PATCH 170/190 Revert "net: dsa: bcm_sf2: Propagate error value from mdio_write"

In reply to Greg Kroah-Hartman

This reverts commit e49505f7255be8ced695919c08a29bf2c3d79616.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/dsa/bcm_sf2.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/net/dsa/bcm_sf2.c +4 -3
index ba5d546d06aa..b4f3d458143a 100644
@@ -361,10 +361,11 @@ static int bcm_sf2_sw_mdio_write(struct mii_bus *bus, int addr, int regnum,
 	 * send them to our master MDIO bus controller
 	 */
 	if (addr == BRCM_PSEUDO_PHY_ADDR && priv->indir_phy_mask & BIT(addr))
-		return bcm_sf2_sw_indir_rw(priv, 0, addr, regnum, val);
+		bcm_sf2_sw_indir_rw(priv, 0, addr, regnum, val);
 	else
-		return mdiobus_write_nested(priv->master_mii_bus, addr,
-				regnum, val);
+		mdiobus_write_nested(priv->master_mii_bus, addr, regnum, val);
+
+	return 0;
 }
 
 static irqreturn_t bcm_sf2_switch_0_isr(int irq, void *dev_id)
Signature · 1 line
2.31.1
#501 lore raw

Re: [PATCH 170/190] Revert "net: dsa: bcm_sf2: Propagate error value from mdio_write"

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit e49505f7255be8ced695919c08a29bf2c3d79616.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 3 lines
Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>

While this commit does not fix a known problem, the driver should have arguably propagated the return values and it did not, so I would be inclined to keep it.

Signature · 1 line
Florian
author maintainer
#502 lore raw

Re: [PATCH 170/190] Revert "net: dsa: bcm_sf2: Propagate error value from mdio_write"

Quoted 19 lines · Florian Fainelli
Quoted 16 lines · Greg Kroah-Hartman

This reverts commit e49505f7255be8ced695919c08a29bf2c3d79616.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 7 lines
Quoted 3 lines
Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>

While this commit does not fix a known problem, the driver should have arguably propagated the return values and it did not, so I would be inclined to keep it.

Looks good, I'll drop my revert, thanks for the review.

greg k-h

author maintainer
#503 lore raw

PATCH 171/190 Revert "net: stmicro: fix a missing check of clk_prepare"

In reply to Greg Kroah-Hartman

This reverts commit f86a3b83833e7cfe558ca4d70b64ebc48903efec.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c +1 -3
index 0e1ca2cba3c7..0e86553fc06f 100644
@@ -50,9 +50,7 @@ static int sun7i_gmac_init(struct platform_device *pdev, void *priv)
 		gmac->clk_enabled = 1;
 	} else {
 		clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE);
-		ret = clk_prepare(gmac->tx_clk);
-		if (ret)
-			return ret;
+		clk_prepare(gmac->tx_clk);
 	}
 
 	return 0;
Signature · 1 line
2.31.1
author maintainer
#504 lore raw

Re: [PATCH 171/190] Revert "net: stmicro: fix a missing check of clk_prepare"

Quoted 41 lines · Greg Kroah-Hartman

This reverts commit f86a3b83833e7cfe558ca4d70b64ebc48903efec.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c +1 -3
index 0e1ca2cba3c7..0e86553fc06f 100644
@@ -50,9 +50,7 @@ static int sun7i_gmac_init(struct platform_device *pdev, void *priv)
 		gmac->clk_enabled = 1;
 	} else {
 		clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE);
-		ret = clk_prepare(gmac->tx_clk);
-		if (ret)
-			return ret;
+		clk_prepare(gmac->tx_clk);
 	}
 
 	return 0;
Signature · 1 line
2.31.1

The original commit here can cause a memory leak so I will keep this revert and submit a change that fixes this up properly.

thanks,

greg k-h

author maintainer
#505 lore raw

PATCH 172/190 Revert "net: (cpts) fix a missing check of clk_prepare"

In reply to Greg Kroah-Hartman

This reverts commit 2d822f2dbab7f4c820f72eb8570aacf3f35855bd.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/ti/cpts.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/ti/cpts.c +1 -3
index 43222a34cba0..60fde1bb9665 100644
@@ -778,9 +778,7 @@ struct cpts *cpts_create(struct device *dev, void __iomem *regs,
 		return ERR_CAST(cpts->refclk);
 	}
 
-	ret = clk_prepare(cpts->refclk);
-	if (ret)
-		return ERR_PTR(ret);
+	clk_prepare(cpts->refclk);
 
 	cpts->cc.read = cpts_systim_read;
 	cpts->cc.mask = CLOCKSOURCE_MASK(32);
Signature · 1 line
2.31.1
author maintainer
#506 lore raw

Re: [PATCH 172/190] Revert "net: (cpts) fix a missing check of clk_prepare"

Quoted 41 lines · Greg Kroah-Hartman

This reverts commit 2d822f2dbab7f4c820f72eb8570aacf3f35855bd.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/ti/cpts.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/ti/cpts.c +1 -3
index 43222a34cba0..60fde1bb9665 100644
@@ -778,9 +778,7 @@ struct cpts *cpts_create(struct device *dev, void __iomem *regs,
 		return ERR_CAST(cpts->refclk);
 	}
 
-	ret = clk_prepare(cpts->refclk);
-	if (ret)
-		return ERR_PTR(ret);
+	clk_prepare(cpts->refclk);
 
 	cpts->cc.read = cpts_systim_read;
 	cpts->cc.mask = CLOCKSOURCE_MASK(32);
Signature · 1 line
2.31.1

Original looks correct, revert now dropped.

greg k-h

author maintainer
#507 lore raw

PATCH 173/190 Revert "niu: fix missing checks of niu_pci_eeprom_read"

In reply to Greg Kroah-Hartman

This reverts commit 26fd962bde0b15e54234fe762d86bc0349df1de4.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Shannon Nelson <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/sun/niu.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/net/ethernet/sun/niu.c +2 -8
index 707ccdd03b19..d70cdea756d1 100644
@@ -8097,8 +8097,6 @@ static int niu_pci_vpd_scan_props(struct niu *np, u32 start, u32 end)
 		start += 3;
 
 		prop_len = niu_pci_eeprom_read(np, start + 4);
-		if (prop_len < 0)
-			return prop_len;
 		err = niu_pci_vpd_get_propname(np, start + 5, namebuf, 64);
 		if (err < 0)
 			return err;
@@ -8143,12 +8141,8 @@ static int niu_pci_vpd_scan_props(struct niu *np, u32 start, u32 end)
 			netif_printk(np, probe, KERN_DEBUG, np->dev,
 				     "VPD_SCAN: Reading in property [%s] len[%d]\n",
 				     namebuf, prop_len);
-			for (i = 0; i < prop_len; i++) {
-				err = niu_pci_eeprom_read(np, off + i);
-				if (err >= 0)
-					*prop_buf = err;
-				++prop_buf;
-			}
+			for (i = 0; i < prop_len; i++)
+				*prop_buf++ = niu_pci_eeprom_read(np, off + i);
 		}
 
 		start += len;
Signature · 1 line
2.31.1
author maintainer
#508 lore raw

Re: [PATCH 173/190] Revert "niu: fix missing checks of niu_pci_eeprom_read"

Quoted 55 lines · Greg Kroah-Hartman

This reverts commit 26fd962bde0b15e54234fe762d86bc0349df1de4.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc Shannon Nelson <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/sun/niu.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/net/ethernet/sun/niu.c +2 -8
index 707ccdd03b19..d70cdea756d1 100644
@@ -8097,8 +8097,6 @@ static int niu_pci_vpd_scan_props(struct niu *np, u32 start, u32 end)
 		start += 3;
 
 		prop_len = niu_pci_eeprom_read(np, start + 4);
-		if (prop_len < 0)
-			return prop_len;
 		err = niu_pci_vpd_get_propname(np, start + 5, namebuf, 64);
 		if (err < 0)
 			return err;
@@ -8143,12 +8141,8 @@ static int niu_pci_vpd_scan_props(struct niu *np, u32 start, u32 end)
 			netif_printk(np, probe, KERN_DEBUG, np->dev,
 				     "VPD_SCAN: Reading in property [%s] len[%d]\n",
 				     namebuf, prop_len);
-			for (i = 0; i < prop_len; i++) {
-				err = niu_pci_eeprom_read(np, off + i);
-				if (err >= 0)
-					*prop_buf = err;
-				++prop_buf;
-			}
+			for (i = 0; i < prop_len; i++)
+				*prop_buf++ = niu_pci_eeprom_read(np, off + i);
 		}
 
 		start += len;
Signature · 1 line
2.31.1

The commit here was incorrect, while it is nice to check if niu_pci_eeprom_read() succeeded or not when using the data, any error that might have happened was not propagated upwards properly, causing the kernel to assume that these reads were successful, which results in invalid data in the buffer that was to contain the successfully read data.

I will keep the revert and fix this up properly in a latter submission.

greg k-h

author maintainer
#509 lore raw

PATCH 174/190 Revert "net: chelsio: Add a missing check on cudg_get_buffer"

In reply to Greg Kroah-Hartman

This reverts commit ca19fcb6285bfce1601c073bf4b9d2942e2df8d9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c +0 -4
index 23a2ebdfd503..c7378da78a83 100644
@@ -1638,10 +1638,6 @@ int cudbg_collect_hw_sched(struct cudbg_init *pdbg_init,
 
 	rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_hw_sched),
 			    &temp_buff);
-
-	if (rc)
-		return rc;
-
 	hw_sched_buff = (struct cudbg_hw_sched *)temp_buff.data;
 	hw_sched_buff->map = t4_read_reg(padap, TP_TX_MOD_QUEUE_REQ_MAP_A);
 	hw_sched_buff->mode = TIMERMODE_G(t4_read_reg(padap, TP_MOD_CONFIG_A));
Signature · 1 line
2.31.1
author maintainer
#510 lore raw

Re: [PATCH 174/190] Revert "net: chelsio: Add a missing check on cudg_get_buffer"

Quoted 41 lines · Greg Kroah-Hartman

This reverts commit ca19fcb6285bfce1601c073bf4b9d2942e2df8d9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c +0 -4
index 23a2ebdfd503..c7378da78a83 100644
@@ -1638,10 +1638,6 @@ int cudbg_collect_hw_sched(struct cudbg_init *pdbg_init,
 
 	rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_hw_sched),
 			    &temp_buff);
-
-	if (rc)
-		return rc;
-
 	hw_sched_buff = (struct cudbg_hw_sched *)temp_buff.data;
 	hw_sched_buff->map = t4_read_reg(padap, TP_TX_MOD_QUEUE_REQ_MAP_A);
 	hw_sched_buff->mode = TIMERMODE_G(t4_read_reg(padap, TP_MOD_CONFIG_A));
Signature · 1 line
2.31.1

Original looks correct, dropping this revert.

greg k-h

author maintainer
#511 lore raw

PATCH 175/190 Revert "ipv6/route: Add a missing check on proc_dointvec"

In reply to Greg Kroah-Hartman

This reverts commit f0fb9b288d0a7e9cc324ae362e2dfd2cc2217ded.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/ipv6/route.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
net/ipv6/route.c +1 -5
index 373d48073106..0e85741423d7 100644
@@ -6169,16 +6169,12 @@ static int ipv6_sysctl_rtcache_flush(struct ctl_table *ctl, int write,
 {
 	struct net *net;
 	int delay;
-	int ret;
 	if (!write)
 		return -EINVAL;
 
 	net = (struct net *)ctl->extra1;
 	delay = net->ipv6.sysctl.flush_delay;
-	ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
-	if (ret)
-		return ret;
-
+	proc_dointvec(ctl, write, buffer, lenp, ppos);
 	fib6_run_gc(delay <= 0 ? 0 : (unsigned long)delay, net, delay > 0);
 	return 0;
 }
Signature · 1 line
2.31.1
author maintainer
#512 lore raw

Re: [PATCH 175/190] Revert "ipv6/route: Add a missing check on proc_dointvec"

Quoted 48 lines · Greg Kroah-Hartman

This reverts commit f0fb9b288d0a7e9cc324ae362e2dfd2cc2217ded.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/ipv6/route.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
net/ipv6/route.c +1 -5
index 373d48073106..0e85741423d7 100644
@@ -6169,16 +6169,12 @@ static int ipv6_sysctl_rtcache_flush(struct ctl_table *ctl, int write,
 {
 	struct net *net;
 	int delay;
-	int ret;
 	if (!write)
 		return -EINVAL;
 
 	net = (struct net *)ctl->extra1;
 	delay = net->ipv6.sysctl.flush_delay;
-	ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
-	if (ret)
-		return ret;
-
+	proc_dointvec(ctl, write, buffer, lenp, ppos);
 	fib6_run_gc(delay <= 0 ? 0 : (unsigned long)delay, net, delay > 0);
 	return 0;
 }
Signature · 1 line
2.31.1

Original looks correct, dropping this revert.

greg k-h

author maintainer
#513 lore raw

PATCH 176/190 Revert "net/net_namespace: Check the return value of register_pernet_subsys()"

In reply to Greg Kroah-Hartman

This reverts commit 0eb987c874dc93f9c9d85a6465dbde20fdd3884c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Kirill Tkhai <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/core/net_namespace.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
net/core/net_namespace.c +1 -2
index 43b6ac4c4439..9ae0b275238e 100644
@@ -1101,8 +1101,7 @@ static int __init net_ns_init(void)
 	init_net_initialized = true;
 	up_write(&pernet_ops_rwsem);
 
-	if (register_pernet_subsys(&net_ns_ops))
-		panic("Could not register network namespace subsystems");
+	register_pernet_subsys(&net_ns_ops);
 
 	rtnl_register(PF_UNSPEC, RTM_NEWNSID, rtnl_net_newid, NULL,
 		      RTNL_FLAG_DOIT_UNLOCKED);
Signature · 1 line
2.31.1
Nacked-by on v1 176/190 NAK
#514 lore raw

Re: [PATCH 176/190] Revert "net/net_namespace: Check the return value of register_pernet_subsys()"

Quoted 29 lines · Greg Kroah-Hartman

This reverts commit 0eb987c874dc93f9c9d85a6465dbde20fdd3884c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Kirill Tkhai <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/core/net_namespace.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
net/core/net_namespace.c +0 -0
index 43b6ac4c4439..9ae0b275238e 100644

net/core/net_namespace.c static int __init net_ns_init(void) · line 1104

Quoted 6 lines
net/core/net_namespace.c +1 -2
@@ -1101,8 +1101,7 @@ static int __init net_ns_init(void)
 	init_net_initialized = true;
 	up_write(&pernet_ops_rwsem);
 
-	if (register_pernet_subsys(&net_ns_ops))
-		panic("Could not register network namespace subsystems");
+	register_pernet_subsys(&net_ns_ops);

This patch does not have any problem, since it has been already carefully reviewed.

Kernel panics here only, if we can't allocate ns_common::inum for init_net.

This can be only a result of a critical deficiency of memory during boot.

author maintainer
#515 lore raw

Re: [PATCH 176/190] Revert "net/net_namespace: Check the return value of register_pernet_subsys()"

Quoted 39 lines · Kirill Tkhai
Quoted 29 lines · Greg Kroah-Hartman

This reverts commit 0eb987c874dc93f9c9d85a6465dbde20fdd3884c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Aditya Pakki <[email protected]>
Cc Kirill Tkhai <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/core/net_namespace.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
net/core/net_namespace.c +0 -0
index 43b6ac4c4439..9ae0b275238e 100644

net/core/net_namespace.c static int __init net_ns_init(void) · line 1104

Quoted 6 lines
net/core/net_namespace.c +1 -2
@@ -1101,8 +1101,7 @@ static int __init net_ns_init(void)
 	init_net_initialized = true;
 	up_write(&pernet_ops_rwsem);
 
-	if (register_pernet_subsys(&net_ns_ops))
-		panic("Could not register network namespace subsystems");
+	register_pernet_subsys(&net_ns_ops);
Quoted 3 lines

This patch does not have any problem, since it has been already carefully reviewed.

Kernel panics here only, if we can't allocate ns_common::inum for init_net.

This can be only a result of a critical deficiency of memory during boot.

Odd, ok, I'll drop this but this feels strange...

greg k-h

author maintainer
#516 lore raw

PATCH 177/190 Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

In reply to Greg Kroah-Hartman

This reverts commit 9aa3aa15f4c2f74f47afd6c5db4b420fadf3f315.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/hwmon/lm80.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/hwmon/lm80.c +2 -9
index ac4adb44b224..97ab491d2922 100644
@@ -596,7 +596,6 @@ static int lm80_probe(struct i2c_client *client)
 	struct device *dev = &client->dev;
 	struct device *hwmon_dev;
 	struct lm80_data *data;
-	int rv;
 
 	data = devm_kzalloc(dev, sizeof(struct lm80_data), GFP_KERNEL);
 	if (!data)
@@ -609,14 +608,8 @@ static int lm80_probe(struct i2c_client *client)
 	lm80_init_client(client);
 
 	/* A few vars need to be filled upon startup */
-	rv = lm80_read_value(client, LM80_REG_FAN_MIN(1));
-	if (rv < 0)
-		return rv;
-	data->fan[f_min][0] = rv;
-	rv = lm80_read_value(client, LM80_REG_FAN_MIN(2));
-	if (rv < 0)
-		return rv;
-	data->fan[f_min][1] = rv;
+	data->fan[f_min][0] = lm80_read_value(client, LM80_REG_FAN_MIN(1));
+	data->fan[f_min][1] = lm80_read_value(client, LM80_REG_FAN_MIN(2));
 
 	hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name,
 							   data, lm80_groups);
Signature · 1 line
2.31.1
maintainer Acked-by on v1 177/190
#517 lore raw

Re: [PATCH 177/190] Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit 9aa3aa15f4c2f74f47afd6c5db4b420fadf3f315.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 3 lines

I don't immediately see a problem with this patch, but the other patch introduced at the same time by the same author was indeed malicious, and the bug it introduced was easy to overlook, so I agree that this patch should be reverted.

[ When introducing error handling into this probe function, errors
in lm80_init_client() should be addressed as well. This patch did not do that and thus had limited value anyway. ]

Thanks,
Guenter

Quoted 34 lines
---
 drivers/hwmon/lm80.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/hwmon/lm80.c +2 -9
index ac4adb44b224..97ab491d2922 100644
@@ -596,7 +596,6 @@ static int lm80_probe(struct i2c_client *client)
 	struct device *dev = &client->dev;
 	struct device *hwmon_dev;
 	struct lm80_data *data;
-	int rv;
 
 	data = devm_kzalloc(dev, sizeof(struct lm80_data), GFP_KERNEL);
 	if (!data)
@@ -609,14 +608,8 @@ static int lm80_probe(struct i2c_client *client)
 	lm80_init_client(client);
 
 	/* A few vars need to be filled upon startup */
-	rv = lm80_read_value(client, LM80_REG_FAN_MIN(1));
-	if (rv < 0)
-		return rv;
-	data->fan[f_min][0] = rv;
-	rv = lm80_read_value(client, LM80_REG_FAN_MIN(2));
-	if (rv < 0)
-		return rv;
-	data->fan[f_min][1] = rv;
+	data->fan[f_min][0] = lm80_read_value(client, LM80_REG_FAN_MIN(1));
+	data->fan[f_min][1] = lm80_read_value(client, LM80_REG_FAN_MIN(2));
 
 	hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name,
 							   data, lm80_groups);
author maintainer
#518 lore raw

Re: [PATCH 177/190] Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

Quoted 23 lines · Guenter Roeck
Quoted 16 lines · Greg Kroah-Hartman

This reverts commit 9aa3aa15f4c2f74f47afd6c5db4b420fadf3f315.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 3 lines
Quoted 8 lines

I don't immediately see a problem with this patch, but the other patch introduced at the same time by the same author was indeed malicious, and the bug it introduced was easy to overlook, so I agree that this patch should be reverted.

[ When introducing error handling into this probe function, errors
in lm80_init_client() should be addressed as well. This patch did not do that and thus had limited value anyway. ]

Thanks for the review!

greg k-h

author maintainer
#519 lore raw

PATCH 178/190 Revert "net: netxen: fix a missing check and an uninitialized use"

In reply to Greg Kroah-Hartman

This reverts commit d134e486e831defd26130770181f01dfc6195f7d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c +1 -2
index 08f9477d2ee8..32b9e28dda16 100644
@@ -1107,8 +1107,7 @@ netxen_validate_firmware(struct netxen_adapter *adapter)
 		return -EINVAL;
 	}
 	val = nx_get_bios_version(adapter);
-	if (netxen_rom_fast_read(adapter, NX_BIOS_VERSION_OFFSET, (int *)&bios))
-		return -EIO;
+	netxen_rom_fast_read(adapter, NX_BIOS_VERSION_OFFSET, (int *)&bios);
 	if ((__force u32)val != bios) {
 		dev_err(&pdev->dev, "%s: firmware bios is incompatible\n",
 				fw_name[fw_type]);
Signature · 1 line
2.31.1
author maintainer
#520 lore raw

Re: [PATCH 178/190] Revert "net: netxen: fix a missing check and an uninitialized use"

Quoted 40 lines · Greg Kroah-Hartman

This reverts commit d134e486e831defd26130770181f01dfc6195f7d.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Kangjie Lu <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c +1 -2
index 08f9477d2ee8..32b9e28dda16 100644
@@ -1107,8 +1107,7 @@ netxen_validate_firmware(struct netxen_adapter *adapter)
 		return -EINVAL;
 	}
 	val = nx_get_bios_version(adapter);
-	if (netxen_rom_fast_read(adapter, NX_BIOS_VERSION_OFFSET, (int *)&bios))
-		return -EIO;
+	netxen_rom_fast_read(adapter, NX_BIOS_VERSION_OFFSET, (int *)&bios);
 	if ((__force u32)val != bios) {
 		dev_err(&pdev->dev, "%s: firmware bios is incompatible\n",
 				fw_name[fw_type]);
Signature · 1 line
2.31.1

This change, while messy and could be better, is semi-sane so I'll drop it from my series.

thanks,

greg k-h

author maintainer
#521 lore raw

PATCH 179/190 Revert "drivers/regulator: fix a missing check of return value"

In reply to Greg Kroah-Hartman

This reverts commit 966e927bf8cc6a44f8b72582a1d6d3ffc73b12ad.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/regulator/palmas-regulator.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/regulator/palmas-regulator.c +1 -4
index 337dd614695e..f27ad8254291 100644
@@ -438,16 +438,13 @@ static int palmas_ldo_write(struct palmas *palmas, unsigned int reg,
 static int palmas_set_mode_smps(struct regulator_dev *dev, unsigned int mode)
 {
 	int id = rdev_get_id(dev);
-	int ret;
 	struct palmas_pmic *pmic = rdev_get_drvdata(dev);
 	struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata;
 	struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id];
 	unsigned int reg;
 	bool rail_enable = true;
 
-	ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, &reg);
-	if (ret)
-		return ret;
+	palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, &reg);
 
 	reg &= ~PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
 
Signature · 1 line
2.31.1
author maintainer
#522 lore raw

Re: [PATCH 179/190] Revert "drivers/regulator: fix a missing check of return value"

Quoted 48 lines · Greg Kroah-Hartman

This reverts commit 966e927bf8cc6a44f8b72582a1d6d3ffc73b12ad.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/regulator/palmas-regulator.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/regulator/palmas-regulator.c +1 -4
index 337dd614695e..f27ad8254291 100644
@@ -438,16 +438,13 @@ static int palmas_ldo_write(struct palmas *palmas, unsigned int reg,
 static int palmas_set_mode_smps(struct regulator_dev *dev, unsigned int mode)
 {
 	int id = rdev_get_id(dev);
-	int ret;
 	struct palmas_pmic *pmic = rdev_get_drvdata(dev);
 	struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata;
 	struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id];
 	unsigned int reg;
 	bool rail_enable = true;
 
-	ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, &reg);
-	if (ret)
-		return ret;
+	palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, &reg);
 
 	reg &= ~PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
 
Signature · 1 line
2.31.1

Original looks correct, dropping.

greg k-h

author maintainer
#523 lore raw

PATCH 180/190 Revert "net: socket: fix a missing-check bug"

In reply to Greg Kroah-Hartman

This reverts commit b6168562c8ce2bd5a30e213021650422e08764dc.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/socket.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
net/socket.c +3 -8
index 84a8049c2b09..d4176362a27b 100644
@@ -3182,14 +3182,9 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
 		    copy_in_user(&rxnfc->fs.ring_cookie,
 				 &compat_rxnfc->fs.ring_cookie,
 				 (void __user *)(&rxnfc->fs.location + 1) -
-				 (void __user *)&rxnfc->fs.ring_cookie))
-			return -EFAULT;
-		if (ethcmd == ETHTOOL_GRXCLSRLALL) {
-			if (put_user(rule_cnt, &rxnfc->rule_cnt))
-				return -EFAULT;
-		} else if (copy_in_user(&rxnfc->rule_cnt,
-					&compat_rxnfc->rule_cnt,
-					sizeof(rxnfc->rule_cnt)))
+				 (void __user *)&rxnfc->fs.ring_cookie) ||
+		    copy_in_user(&rxnfc->rule_cnt, &compat_rxnfc->rule_cnt,
+				 sizeof(rxnfc->rule_cnt)))
 			return -EFAULT;
 	}
 
Signature · 1 line
2.31.1
author maintainer
#524 lore raw

Re: [PATCH 180/190] Revert "net: socket: fix a missing-check bug"

Quoted 48 lines · Greg Kroah-Hartman

This reverts commit b6168562c8ce2bd5a30e213021650422e08764dc.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/socket.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
net/socket.c +3 -8
index 84a8049c2b09..d4176362a27b 100644
@@ -3182,14 +3182,9 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
 		    copy_in_user(&rxnfc->fs.ring_cookie,
 				 &compat_rxnfc->fs.ring_cookie,
 				 (void __user *)(&rxnfc->fs.location + 1) -
-				 (void __user *)&rxnfc->fs.ring_cookie))
-			return -EFAULT;
-		if (ethcmd == ETHTOOL_GRXCLSRLALL) {
-			if (put_user(rule_cnt, &rxnfc->rule_cnt))
-				return -EFAULT;
-		} else if (copy_in_user(&rxnfc->rule_cnt,
-					&compat_rxnfc->rule_cnt,
-					sizeof(rxnfc->rule_cnt)))
+				 (void __user *)&rxnfc->fs.ring_cookie) ||
+		    copy_in_user(&rxnfc->rule_cnt, &compat_rxnfc->rule_cnt,
+				 sizeof(rxnfc->rule_cnt)))
 			return -EFAULT;
 	}
 
Signature · 1 line
2.31.1

Original looks correct, dropping this revert.

greg k-h

author maintainer
#525 lore raw

PATCH 181/190 Revert "dm ioctl: harden copy_params()'s copy_from_user() from malicious users"

In reply to Greg Kroah-Hartman

This reverts commit 800a7340ab7dd667edf95e74d8e4f23a17e87076.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/md/dm-ioctl.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
drivers/md/dm-ioctl.c +12 -6
index 1ca65b434f1f..820342de92cd 100644
@@ -1747,7 +1747,8 @@ static void free_params(struct dm_ioctl *param, size_t param_size, int param_fla
 }
 
 static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl *param_kernel,
-		       int ioctl_flags, struct dm_ioctl **param, int *param_flags)
+		       int ioctl_flags,
+		       struct dm_ioctl **param, int *param_flags)
 {
 	struct dm_ioctl *dmi;
 	int secure_data;
@@ -1788,13 +1789,18 @@ static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl *param_kern
 
 	*param_flags |= DM_PARAMS_MALLOC;
 
-	/* Copy from param_kernel (which was already copied from user) */
-	memcpy(dmi, param_kernel, minimum_data_size);
-
-	if (copy_from_user(&dmi->data, (char __user *)user + minimum_data_size,
-			   param_kernel->data_size - minimum_data_size))
+	if (copy_from_user(dmi, user, param_kernel->data_size))
 		goto bad;
+
 data_copied:
+	/*
+	 * Abort if something changed the ioctl data while it was being copied.
+	 */
+	if (dmi->data_size != param_kernel->data_size) {
+		DMERR("rejecting ioctl: data size modified while processing parameters");
+		goto bad;
+	}
+
 	/* Wipe the user buffer so we do not return it to userspace */
 	if (secure_data && clear_user(user, param_kernel->data_size))
 		goto bad;
Signature · 1 line
2.31.1
author maintainer
#526 lore raw

Re: [PATCH 181/190] Revert "dm ioctl: harden copy_params()'s copy_from_user() from malicious users"

Quoted 65 lines · Greg Kroah-Hartman

This reverts commit 800a7340ab7dd667edf95e74d8e4f23a17e87076.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 drivers/md/dm-ioctl.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
drivers/md/dm-ioctl.c +12 -6
index 1ca65b434f1f..820342de92cd 100644
@@ -1747,7 +1747,8 @@ static void free_params(struct dm_ioctl *param, size_t param_size, int param_fla
 }
 
 static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl *param_kernel,
-		       int ioctl_flags, struct dm_ioctl **param, int *param_flags)
+		       int ioctl_flags,
+		       struct dm_ioctl **param, int *param_flags)
 {
 	struct dm_ioctl *dmi;
 	int secure_data;
@@ -1788,13 +1789,18 @@ static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl *param_kern
 
 	*param_flags |= DM_PARAMS_MALLOC;
 
-	/* Copy from param_kernel (which was already copied from user) */
-	memcpy(dmi, param_kernel, minimum_data_size);
-
-	if (copy_from_user(&dmi->data, (char __user *)user + minimum_data_size,
-			   param_kernel->data_size - minimum_data_size))
+	if (copy_from_user(dmi, user, param_kernel->data_size))
 		goto bad;
+
 data_copied:
+	/*
+	 * Abort if something changed the ioctl data while it was being copied.
+	 */
+	if (dmi->data_size != param_kernel->data_size) {
+		DMERR("rejecting ioctl: data size modified while processing parameters");
+		goto bad;
+	}
+
 	/* Wipe the user buffer so we do not return it to userspace */
 	if (secure_data && clear_user(user, param_kernel->data_size))
 		goto bad;
Signature · 1 line
2.31.1

Original looks correct, dropping this commit now.

greg k-h

author maintainer
#527 lore raw

PATCH 182/190 Revert "ethtool: fix a missing-check bug"

In reply to Greg Kroah-Hartman

This reverts commit 2bb3207dbbd4d30e96dd0e1c8e013104193bd59c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/ethtool/ioctl.c | 3 ---
 1 file changed, 3 deletions(-)
net/ethtool/ioctl.c +0 -3
index 771688e1b0da..807bc9465add 100644
@@ -876,9 +876,6 @@ static noinline_for_stack int ethtool_get_rxnfc(struct net_device *dev,
 			return -EINVAL;
 	}
 
-	if (info.cmd != cmd)
-		return -EINVAL;
-
 	if (info.cmd == ETHTOOL_GRXCLSRLALL) {
 		if (info.rule_cnt > 0) {
 			if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32))
Signature · 1 line
2.31.1
Reviewed-by on v1 182/190
#528 lore raw

Re: [PATCH 182/190] Revert "ethtool: fix a missing-check bug"

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit 2bb3207dbbd4d30e96dd0e1c8e013104193bd59c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 6 lines
Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/ethtool/ioctl.c | 3 ---
 1 file changed, 3 deletions(-)

The original patch looks valid and fixes a race.

Signature · 2 lines
James Morris
<[email protected]>
author maintainer
#529 lore raw

Re: [PATCH 182/190] Revert "ethtool: fix a missing-check bug"

Quoted 18 lines · James Morris
Quoted 16 lines · Greg Kroah-Hartman

This reverts commit 2bb3207dbbd4d30e96dd0e1c8e013104193bd59c.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 8 lines
Quoted 6 lines
Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/ethtool/ioctl.c | 3 ---
 1 file changed, 3 deletions(-)

The original patch looks valid and fixes a race.

Thanks for reviewing, now dropped.

greg k-h

author maintainer
#530 lore raw

PATCH 183/190 Revert "media: isif: fix a NULL pointer dereference bug"

In reply to Greg Kroah-Hartman

This reverts commit a26ac6c1bed951b2066cc4b2257facd919e35c0b.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc Hans Verkuil <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/platform/davinci/isif.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/davinci/isif.c +1 -2
index c53cecd072b1..5355a14c090b 100644
@@ -1086,8 +1086,7 @@ static int isif_probe(struct platform_device *pdev)
 
 	while (i >= 0) {
 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
-		if (res)
-			release_mem_region(res->start, resource_size(res));
+		release_mem_region(res->start, resource_size(res));
 		i--;
 	}
 	vpfe_unregister_ccdc_device(&isif_hw_dev);
Signature · 1 line
2.31.1
author maintainer
#531 lore raw

Re: [PATCH 183/190] Revert "media: isif: fix a NULL pointer dereference bug"

Quoted 41 lines · Greg Kroah-Hartman

This reverts commit a26ac6c1bed951b2066cc4b2257facd919e35c0b.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc Hans Verkuil <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/platform/davinci/isif.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/davinci/isif.c +1 -2
index c53cecd072b1..5355a14c090b 100644
@@ -1086,8 +1086,7 @@ static int isif_probe(struct platform_device *pdev)
 
 	while (i >= 0) {
 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
-		if (res)
-			release_mem_region(res->start, resource_size(res));
+		release_mem_region(res->start, resource_size(res));
 		i--;
 	}
 	vpfe_unregister_ccdc_device(&isif_hw_dev);
Signature · 1 line
2.31.1

This looks correct, dropping it.

greg k-h

author maintainer
#532 lore raw

PATCH 184/190 Revert "yam: fix a missing-check bug"

In reply to Greg Kroah-Hartman

This reverts commit 0781168e23a2fc8dceb989f11fc5b39b3ccacc35.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/hamradio/yam.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/hamradio/yam.c +0 -4
index 5ab53e9942f3..616db3a0d2f4 100644
@@ -951,8 +951,6 @@ static int yam_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 				 sizeof(struct yamdrv_ioctl_mcs));
 		if (IS_ERR(ym))
 			return PTR_ERR(ym);
-		if (ym->cmd != SIOCYAMSMCS)
-			return -EINVAL;
 		if (ym->bitrate > YAM_MAXBITRATE) {
 			kfree(ym);
 			return -EINVAL;
@@ -968,8 +966,6 @@ static int yam_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 		if (copy_from_user(&yi, ifr->ifr_data, sizeof(struct yamdrv_ioctl_cfg)))
 			 return -EFAULT;
 
-		if (yi.cmd != SIOCYAMSCFG)
-			return -EINVAL;
 		if ((yi.cfg.mask & YAM_IOBASE) && netif_running(dev))
 			return -EINVAL;		/* Cannot change this parameter when up */
 		if ((yi.cfg.mask & YAM_IRQ) && netif_running(dev))
Signature · 1 line
2.31.1
author maintainer
#533 lore raw

Re: [PATCH 184/190] Revert "yam: fix a missing-check bug"

Quoted 48 lines · Greg Kroah-Hartman

This reverts commit 0781168e23a2fc8dceb989f11fc5b39b3ccacc35.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/hamradio/yam.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/hamradio/yam.c +0 -4
index 5ab53e9942f3..616db3a0d2f4 100644
@@ -951,8 +951,6 @@ static int yam_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 				 sizeof(struct yamdrv_ioctl_mcs));
 		if (IS_ERR(ym))
 			return PTR_ERR(ym);
-		if (ym->cmd != SIOCYAMSMCS)
-			return -EINVAL;
 		if (ym->bitrate > YAM_MAXBITRATE) {
 			kfree(ym);
 			return -EINVAL;
@@ -968,8 +966,6 @@ static int yam_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 		if (copy_from_user(&yi, ifr->ifr_data, sizeof(struct yamdrv_ioctl_cfg)))
 			 return -EFAULT;
 
-		if (yi.cmd != SIOCYAMSCFG)
-			return -EINVAL;
 		if ((yi.cfg.mask & YAM_IOBASE) && netif_running(dev))
 			return -EINVAL;		/* Cannot change this parameter when up */
 		if ((yi.cfg.mask & YAM_IRQ) && netif_running(dev))
Signature · 1 line
2.31.1

Original looks correct, dropping this revert.

greg k-h

author maintainer
#534 lore raw

PATCH 185/190 Revert "net: cxgb3_main: fix a missing-check bug"

In reply to Greg Kroah-Hartman

This reverts commit 2c05d88818ab6571816b93edce4d53703870d7ae.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 17 -----------------
 1 file changed, 17 deletions(-)
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +0 -17
index 84ad7261e243..cc6314aa0154 100644
@@ -2157,8 +2157,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EPERM;
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
-		if (t.cmd != CHELSIO_SET_QSET_PARAMS)
-			return -EINVAL;
 		if (t.qset_idx >= SGE_QSETS)
 			return -EINVAL;
 		if (!in_range(t.intr_lat, 0, M_NEWTIMER) ||
@@ -2258,9 +2256,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
 
-		if (t.cmd != CHELSIO_GET_QSET_PARAMS)
-			return -EINVAL;
-
 		/* Display qsets for all ports when offload enabled */
 		if (test_bit(OFFLOAD_DEVMAP_BIT, &adapter->open_device_map)) {
 			q1 = 0;
@@ -2306,8 +2301,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EBUSY;
 		if (copy_from_user(&edata, useraddr, sizeof(edata)))
 			return -EFAULT;
-		if (edata.cmd != CHELSIO_SET_QSET_NUM)
-			return -EINVAL;
 		if (edata.val < 1 ||
 			(edata.val > 1 && !(adapter->flags & USING_MSIX)))
 			return -EINVAL;
@@ -2348,8 +2341,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EPERM;
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
-		if (t.cmd != CHELSIO_LOAD_FW)
-			return -EINVAL;
 		/* Check t.len sanity ? */
 		fw_data = memdup_user(useraddr + sizeof(t), t.len);
 		if (IS_ERR(fw_data))
@@ -2373,8 +2364,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EBUSY;
 		if (copy_from_user(&m, useraddr, sizeof(m)))
 			return -EFAULT;
-		if (m.cmd != CHELSIO_SETMTUTAB)
-			return -EINVAL;
 		if (m.nmtus != NMTUS)
 			return -EINVAL;
 		if (m.mtus[0] < 81)	/* accommodate SACK */
@@ -2416,8 +2405,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EBUSY;
 		if (copy_from_user(&m, useraddr, sizeof(m)))
 			return -EFAULT;
-		if (m.cmd != CHELSIO_SET_PM)
-			return -EINVAL;
 		if (!is_power_of_2(m.rx_pg_sz) ||
 			!is_power_of_2(m.tx_pg_sz))
 			return -EINVAL;	/* not power of 2 */
@@ -2453,8 +2440,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EIO;	/* need the memory controllers */
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
-		if (t.cmd != CHELSIO_GET_MEM)
-			return -EINVAL;
 		if ((t.addr & 7) || (t.len & 7))
 			return -EINVAL;
 		if (t.mem_id == MEM_CM)
@@ -2507,8 +2492,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EAGAIN;
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
-		if (t.cmd != CHELSIO_SET_TRACE_FILTER)
-			return -EINVAL;
 
 		tp = (const struct trace_params *)&t.sip;
 		if (t.config_tx)
Signature · 1 line
2.31.1
author maintainer
#535 lore raw

Re: [PATCH 185/190] Revert "net: cxgb3_main: fix a missing-check bug"

Quoted 103 lines · Greg Kroah-Hartman

This reverts commit 2c05d88818ab6571816b93edce4d53703870d7ae.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 17 -----------------
 1 file changed, 17 deletions(-)
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +0 -17
index 84ad7261e243..cc6314aa0154 100644
@@ -2157,8 +2157,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EPERM;
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
-		if (t.cmd != CHELSIO_SET_QSET_PARAMS)
-			return -EINVAL;
 		if (t.qset_idx >= SGE_QSETS)
 			return -EINVAL;
 		if (!in_range(t.intr_lat, 0, M_NEWTIMER) ||
@@ -2258,9 +2256,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
 
-		if (t.cmd != CHELSIO_GET_QSET_PARAMS)
-			return -EINVAL;
-
 		/* Display qsets for all ports when offload enabled */
 		if (test_bit(OFFLOAD_DEVMAP_BIT, &adapter->open_device_map)) {
 			q1 = 0;
@@ -2306,8 +2301,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EBUSY;
 		if (copy_from_user(&edata, useraddr, sizeof(edata)))
 			return -EFAULT;
-		if (edata.cmd != CHELSIO_SET_QSET_NUM)
-			return -EINVAL;
 		if (edata.val < 1 ||
 			(edata.val > 1 && !(adapter->flags & USING_MSIX)))
 			return -EINVAL;
@@ -2348,8 +2341,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EPERM;
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
-		if (t.cmd != CHELSIO_LOAD_FW)
-			return -EINVAL;
 		/* Check t.len sanity ? */
 		fw_data = memdup_user(useraddr + sizeof(t), t.len);
 		if (IS_ERR(fw_data))
@@ -2373,8 +2364,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EBUSY;
 		if (copy_from_user(&m, useraddr, sizeof(m)))
 			return -EFAULT;
-		if (m.cmd != CHELSIO_SETMTUTAB)
-			return -EINVAL;
 		if (m.nmtus != NMTUS)
 			return -EINVAL;
 		if (m.mtus[0] < 81)	/* accommodate SACK */
@@ -2416,8 +2405,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EBUSY;
 		if (copy_from_user(&m, useraddr, sizeof(m)))
 			return -EFAULT;
-		if (m.cmd != CHELSIO_SET_PM)
-			return -EINVAL;
 		if (!is_power_of_2(m.rx_pg_sz) ||
 			!is_power_of_2(m.tx_pg_sz))
 			return -EINVAL;	/* not power of 2 */
@@ -2453,8 +2440,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EIO;	/* need the memory controllers */
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
-		if (t.cmd != CHELSIO_GET_MEM)
-			return -EINVAL;
 		if ((t.addr & 7) || (t.len & 7))
 			return -EINVAL;
 		if (t.mem_id == MEM_CM)
@@ -2507,8 +2492,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 			return -EAGAIN;
 		if (copy_from_user(&t, useraddr, sizeof(t)))
 			return -EFAULT;
-		if (t.cmd != CHELSIO_SET_TRACE_FILTER)
-			return -EINVAL;
 
 		tp = (const struct trace_params *)&t.sip;
 		if (t.config_tx)
Signature · 1 line
2.31.1

The original commit looks correct, dropping this revert.

greg k-h

author maintainer
#536 lore raw

PATCH 186/190 Revert "virt: vbox: Only copy_from_user the request-header once"

In reply to Greg Kroah-Hartman

This reverts commit bd23a7269834dc7c1f93e83535d16ebc44b75eba.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc Hans de Goede <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/virt/vboxguest/vboxguest_linux.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/virt/vboxguest/vboxguest_linux.c +1 -3
index 73eb34849eab..f5cd9cfa1ef6 100644
@@ -142,9 +142,7 @@ static long vbg_misc_device_ioctl(struct file *filp, unsigned int req,
 	if (!buf)
 		return -ENOMEM;
 
-	*((struct vbg_ioctl_hdr *)buf) = hdr;
-	if (copy_from_user(buf + sizeof(hdr), (void *)arg + sizeof(hdr),
-			   hdr.size_in - sizeof(hdr))) {
+	if (copy_from_user(buf, (void *)arg, hdr.size_in)) {
 		ret = -EFAULT;
 		goto out;
 	}
Signature · 1 line
2.31.1
Reviewed-by on v1 186/190
#537 lore raw

Re: [PATCH 186/190] Revert "virt: vbox: Only copy_from_user the request-header once"

drivers/virt/vboxguest/vboxguest_linux.c static long vbg_misc_device_ioctl(struct file *filp, unsigned int req, · line 148

Quoted 9 lines · Greg Kroah-Hartman

This reverts commit bd23a7269834dc7c1f93e83535d16ebc44b75eba.

drivers/virt/vboxguest/vboxguest_linux.c +1 -3
-	*((struct vbg_ioctl_hdr *)buf) = hdr;
-	if (copy_from_user(buf + sizeof(hdr), (void *)arg + sizeof(hdr),
-			   hdr.size_in - sizeof(hdr))) {
+	if (copy_from_user(buf, (void *)arg, hdr.size_in)) {
 		ret = -EFAULT;
 		goto out;
 	}

This one seems like a real bugfix, otherwise there's a double-fetch from userspace, and a TOCTOU with the hdr fields that could cause a OOB read.

Tavis.

Signature · 3 lines
 _o)            $ lynx lock.cmpxchg8b.com
 /\\  _o)  _o)  $ finger [email protected]
_\_V _( ) _( )  @taviso
#538 lore raw

Re: [PATCH 186/190] Revert "virt: vbox: Only copy_from_user the request-header once"

Quoted 13 lines · Tavis Ormandy

drivers/virt/vboxguest/vboxguest_linux.c static long vbg_misc_device_ioctl(struct file *filp, unsigned int req, · line 148

Quoted 9 lines · Greg Kroah-Hartman

This reverts commit bd23a7269834dc7c1f93e83535d16ebc44b75eba.

drivers/virt/vboxguest/vboxguest_linux.c +1 -3
-	*((struct vbg_ioctl_hdr *)buf) = hdr;
-	if (copy_from_user(buf + sizeof(hdr), (void *)arg + sizeof(hdr),
-			   hdr.size_in - sizeof(hdr))) {
+	if (copy_from_user(buf, (void *)arg, hdr.size_in)) {
 		ret = -EFAULT;
 		goto out;
 	}

This one seems like a real bugfix, otherwise there's a double-fetch from userspace, and a TOCTOU with the hdr fields that could cause a OOB read.

ACK, except that typecasts in there are messy as hell. But that's,
alas, consistent with the rest of the function...

Patch itself is correct, and AFAICS Wenwen Wang <[email protected]>
might be an innocent collateral damage from that mess - commits from that source appear to be fairly well-written.

#539 lore raw

Re: [PATCH 186/190] Revert "virt: vbox: Only copy_from_user the request-header once"

Quoted 15 lines · Al Viro
Quoted 13 lines · Tavis Ormandy

drivers/virt/vboxguest/vboxguest_linux.c static long vbg_misc_device_ioctl(struct file *filp, unsigned int req, · line 148

Quoted 9 lines · Greg Kroah-Hartman

This reverts commit bd23a7269834dc7c1f93e83535d16ebc44b75eba.

drivers/virt/vboxguest/vboxguest_linux.c +1 -3
-	*((struct vbg_ioctl_hdr *)buf) = hdr;
-	if (copy_from_user(buf + sizeof(hdr), (void *)arg + sizeof(hdr),
-			   hdr.size_in - sizeof(hdr))) {
+	if (copy_from_user(buf, (void *)arg, hdr.size_in)) {
 		ret = -EFAULT;
 		goto out;
 	}

This one seems like a real bugfix, otherwise there's a double-fetch from userspace, and a TOCTOU with the hdr fields that could cause a OOB read.

Quoted 6 lines

ACK, except that typecasts in there are messy as hell. But that's,
alas, consistent with the rest of the function...

Patch itself is correct, and AFAICS Wenwen Wang <[email protected]>
might be an innocent collateral damage from that mess - commits from that source appear to be fairly well-written.

I've dropped it from my tree now, thanks for the review.

greg k-h

#540 lore raw

Re: [PATCH 186/190] Revert "virt: vbox: Only copy_from_user the request-header once"

In reply to Greg Kroah-Hartman

Hi Greg,

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit bd23a7269834dc7c1f93e83535d16ebc44b75eba.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines
Cc Wenwen Wang <[email protected]>
Cc Hans de Goede <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

Ugh what a mess (the whole umn.edu thing).

I still remember reviewing this patch during its original submission and I've reviewed it again this morning when you just send it out.

And now after letting it sit for a bit I've reviewed it a third time and it seems to do what it says on the label / in the original commit msg; and if fixes a real, potentially security, issue.

I'm not sure what the process is for "good" patches in the set which you are reverting. I would prefer for this patch to be dropped from the set of reveert. But I can also submit a revert of the revert(?) once this set of reverts has been merged.

Regards,

Hans

Quoted 20 lines
---
 drivers/virt/vboxguest/vboxguest_linux.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/virt/vboxguest/vboxguest_linux.c +1 -3
index 73eb34849eab..f5cd9cfa1ef6 100644
@@ -142,9 +142,7 @@ static long vbg_misc_device_ioctl(struct file *filp, unsigned int req,
 	if (!buf)
 		return -ENOMEM;
 
-	*((struct vbg_ioctl_hdr *)buf) = hdr;
-	if (copy_from_user(buf + sizeof(hdr), (void *)arg + sizeof(hdr),
-			   hdr.size_in - sizeof(hdr))) {
+	if (copy_from_user(buf, (void *)arg, hdr.size_in)) {
 		ret = -EFAULT;
 		goto out;
 	}
author maintainer
#541 lore raw

Re: [PATCH 186/190] Revert "virt: vbox: Only copy_from_user the request-header once"

Quoted 29 lines · Hans de Goede

Hi Greg,

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit bd23a7269834dc7c1f93e83535d16ebc44b75eba.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines
Cc Wenwen Wang <[email protected]>
Cc Hans de Goede <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

Ugh what a mess (the whole umn.edu thing).

I still remember reviewing this patch during its original submission and I've reviewed it again this morning when you just send it out.

Quoted 8 lines

And now after letting it sit for a bit I've reviewed it a third time and it seems to do what it says on the label / in the original commit msg; and if fixes a real, potentially security, issue.

I'm not sure what the process is for "good" patches in the set which you are reverting. I would prefer for this patch to be dropped from the set of reveert. But I can also submit a revert of the revert(?) once this set of reverts has been merged.

If you have reviewed it, and think it should stay, I will drop the revert from my patch series. Other maintainers/reviewers have asked the same thing for their patches, which is fine.

Anything that I do end up reverting, that was not reviewed, will be again reviewed by me and others to determine if it is "safe" to come back in at a later point in time.

So thanks for the review, I'll drop this one.

thanks,

greg k-h

author maintainer
#542 lore raw

Re: [PATCH 186/190] Revert "virt: vbox: Only copy_from_user the request-header once"

Quoted 43 lines · Greg Kroah-Hartman
Quoted 29 lines · Hans de Goede

Hi Greg,

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit bd23a7269834dc7c1f93e83535d16ebc44b75eba.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines
Cc Wenwen Wang <[email protected]>
Cc Hans de Goede <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

Ugh what a mess (the whole umn.edu thing).

I still remember reviewing this patch during its original submission and I've reviewed it again this morning when you just send it out.

Quoted 8 lines

And now after letting it sit for a bit I've reviewed it a third time and it seems to do what it says on the label / in the original commit msg; and if fixes a real, potentially security, issue.

I'm not sure what the process is for "good" patches in the set which you are reverting. I would prefer for this patch to be dropped from the set of reveert. But I can also submit a revert of the revert(?) once this set of reverts has been merged.

If you have reviewed it, and think it should stay, I will drop the revert from my patch series. Other maintainers/reviewers have asked the same thing for their patches, which is fine.

Quoted 5 lines

Anything that I do end up reverting, that was not reviewed, will be again reviewed by me and others to determine if it is "safe" to come back in at a later point in time.

So thanks for the review, I'll drop this one.

Now dropped, thanks for the review.

greg k-h

#543 lore raw

Re: [PATCH 186/190] Revert "virt: vbox: Only copy_from_user the request-header once"

Hi,

Quoted 44 lines · Greg Kroah-Hartman
Quoted 43 lines · Greg Kroah-Hartman
Quoted 29 lines · Hans de Goede

Hi Greg,

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit bd23a7269834dc7c1f93e83535d16ebc44b75eba.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines
Cc Wenwen Wang <[email protected]>
Cc Hans de Goede <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

Ugh what a mess (the whole umn.edu thing).

I still remember reviewing this patch during its original submission and I've reviewed it again this morning when you just send it out.

Quoted 8 lines

And now after letting it sit for a bit I've reviewed it a third time and it seems to do what it says on the label / in the original commit msg; and if fixes a real, potentially security, issue.

I'm not sure what the process is for "good" patches in the set which you are reverting. I would prefer for this patch to be dropped from the set of reveert. But I can also submit a revert of the revert(?) once this set of reverts has been merged.

If you have reviewed it, and think it should stay, I will drop the revert from my patch series. Other maintainers/reviewers have asked the same thing for their patches, which is fine.

Quoted 7 lines
Quoted 5 lines

Anything that I do end up reverting, that was not reviewed, will be again reviewed by me and others to determine if it is "safe" to come back in at a later point in time.

So thanks for the review, I'll drop this one.

Now dropped, thanks for the review.

Great, thank you.

Regards,

Hans

author maintainer
#544 lore raw

PATCH 187/190 Revert "ALSA: control: fix a redundant-copy issue"

In reply to Greg Kroah-Hartman

This reverts commit 3f12888dfae2a48741c4caa9214885b3aaf350f9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

---
 sound/core/control_compat.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/core/control_compat.c +2 -1
index 1d708aab9c98..857acf83ae47 100644
@@ -381,7 +381,8 @@ static int snd_ctl_elem_add_compat(struct snd_ctl_file *file,
 	if (copy_from_user(&data->id, &data32->id, sizeof(data->id)) ||
 	    copy_from_user(&data->type, &data32->type, 3 * sizeof(u32)))
 		goto error;
-	if (get_user(data->owner, &data32->owner))
+	if (get_user(data->owner, &data32->owner) ||
+	    get_user(data->type, &data32->type))
 		goto error;
 	switch (data->type) {
 	case SNDRV_CTL_ELEM_TYPE_BOOLEAN:
Signature · 1 line
2.31.1
#545 lore raw

Re: [PATCH 187/190] Revert "ALSA: control: fix a redundant-copy issue"

Quoted 17 lines · Greg Kroah-Hartman

This reverts commit 3f12888dfae2a48741c4caa9214885b3aaf350f9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines

This one is, unlike other patches I've been involved with, about the ALSA core code, and this change is likely worth to keep.

The code change is correct, and even though it's really a minor issue, an optimization is right.

thanks,

Takashi

Quoted 21 lines
---
 sound/core/control_compat.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/core/control_compat.c +2 -1
index 1d708aab9c98..857acf83ae47 100644
@@ -381,7 +381,8 @@ static int snd_ctl_elem_add_compat(struct snd_ctl_file *file,
 	if (copy_from_user(&data->id, &data32->id, sizeof(data->id)) ||
 	    copy_from_user(&data->type, &data32->type, 3 * sizeof(u32)))
 		goto error;
-	if (get_user(data->owner, &data32->owner))
+	if (get_user(data->owner, &data32->owner) ||
+	    get_user(data->type, &data32->type))
 		goto error;
 	switch (data->type) {
 	case SNDRV_CTL_ELEM_TYPE_BOOLEAN:
Signature · 1 line
2.31.1
author maintainer
#546 lore raw

Re: [PATCH 187/190] Revert "ALSA: control: fix a redundant-copy issue"

Quoted 24 lines · Takashi Iwai
Quoted 17 lines · Greg Kroah-Hartman

This reverts commit 3f12888dfae2a48741c4caa9214885b3aaf350f9.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines
Quoted 5 lines

This one is, unlike other patches I've been involved with, about the ALSA core code, and this change is likely worth to keep.

The code change is correct, and even though it's really a minor issue, an optimization is right.

Thanks for the review, now dropped.

greg k-h

author maintainer
#547 lore raw

PATCH 188/190 Revert "scsi: 3w-xxxx: fix a missing-check bug"

In reply to Greg Kroah-Hartman

This reverts commit 9899e4d3523faaef17c67141aa80ff2088f17871.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc Adam Radford <[email protected]>
Cc Martin K. Petersen <[email protected]>
---
 drivers/scsi/3w-xxxx.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/scsi/3w-xxxx.c +0 -3
index d90b9fca4aea..8f52f35e40f1 100644
@@ -1035,9 +1035,6 @@ static int tw_chrdev_open(struct inode *inode, struct file *file)
 
 	dprintk(KERN_WARNING "3w-xxxx: tw_ioctl_open()\n");
 
-	if (!capable(CAP_SYS_ADMIN))
-		return -EACCES;
-
 	minor_number = iminor(inode);
 	if (minor_number >= tw_device_extension_count)
 		return -ENODEV;
Signature · 1 line
2.31.1
author maintainer
#548 lore raw

Re: [PATCH 188/190] Revert "scsi: 3w-xxxx: fix a missing-check bug"

Quoted 41 lines · Greg Kroah-Hartman

This reverts commit 9899e4d3523faaef17c67141aa80ff2088f17871.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc Adam Radford <[email protected]>
Cc Martin K. Petersen <[email protected]>
---
 drivers/scsi/3w-xxxx.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/scsi/3w-xxxx.c +0 -3
index d90b9fca4aea..8f52f35e40f1 100644
@@ -1035,9 +1035,6 @@ static int tw_chrdev_open(struct inode *inode, struct file *file)
 
 	dprintk(KERN_WARNING "3w-xxxx: tw_ioctl_open()\n");
 
-	if (!capable(CAP_SYS_ADMIN))
-		return -EACCES;
-
 	minor_number = iminor(inode);
 	if (minor_number >= tw_device_extension_count)
 		return -ENODEV;
Signature · 1 line
2.31.1

The original commit was correct, dropping this revert.

greg k-h

author maintainer
#549 lore raw

PATCH 189/190 Revert "scsi: 3w-9xxx: fix a missing-check bug"

In reply to Greg Kroah-Hartman

This reverts commit c9318a3e0218bc9dacc25be46b9eec363259536f.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc Adam Radford <[email protected]>
Cc Martin K. Petersen <[email protected]>
---
 drivers/scsi/3w-9xxx.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/scsi/3w-9xxx.c +0 -5
index b96e82de4237..4c5d4ea8a592 100644
@@ -886,11 +886,6 @@ static int twa_chrdev_open(struct inode *inode, struct file *file)
 	unsigned int minor_number;
 	int retval = TW_IOCTL_ERROR_OS_ENODEV;
 
-	if (!capable(CAP_SYS_ADMIN)) {
-		retval = -EACCES;
-		goto out;
-	}
-
 	minor_number = iminor(inode);
 	if (minor_number >= twa_device_extension_count)
 		goto out;
Signature · 1 line
2.31.1
Reviewed-by on v1 189/190
#550 lore raw

Re: [PATCH 189/190] Revert "scsi: 3w-9xxx: fix a missing-check bug"

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit c9318a3e0218bc9dacc25be46b9eec363259536f.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 4 lines
Cc Wenwen Wang <[email protected]>
Cc Adam Radford <[email protected]>
Cc Martin K. Petersen <[email protected]>

The original patch here looks valid and necessary.

Please un-revert.

Quoted 23 lines
---
 drivers/scsi/3w-9xxx.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/scsi/3w-9xxx.c +0 -5
index b96e82de4237..4c5d4ea8a592 100644
@@ -886,11 +886,6 @@ static int twa_chrdev_open(struct inode *inode, struct file *file)
 	unsigned int minor_number;
 	int retval = TW_IOCTL_ERROR_OS_ENODEV;
 
-	if (!capable(CAP_SYS_ADMIN)) {
-		retval = -EACCES;
-		goto out;
-	}
-
 	minor_number = iminor(inode);
 	if (minor_number >= twa_device_extension_count)
 		goto out;
Signature · 1 line
2.31.1
Signature · 2 lines
James Morris
<[email protected]>
author maintainer
#551 lore raw

Re: [PATCH 189/190] Revert "scsi: 3w-9xxx: fix a missing-check bug"

Quoted 18 lines · James Morris
Quoted 16 lines · Greg Kroah-Hartman

This reverts commit c9318a3e0218bc9dacc25be46b9eec363259536f.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 8 lines
Quoted 4 lines
Cc Wenwen Wang <[email protected]>
Cc Adam Radford <[email protected]>
Cc Martin K. Petersen <[email protected]>

The original patch here looks valid and necessary.

Please un-revert.

Now dropped, thanks for the review.

greg k-h

author maintainer
#552 lore raw

PATCH 190/190 Revert "ethtool: fix a potential missing-check bug"

In reply to Greg Kroah-Hartman

This reverts commit d656fe49e33df48ee6bc19e871f5862f49895c9e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/ethtool/ioctl.c | 5 -----
 1 file changed, 5 deletions(-)
net/ethtool/ioctl.c +0 -5
index 807bc9465add..542f2428014c 100644
@@ -869,11 +869,6 @@ static noinline_for_stack int ethtool_get_rxnfc(struct net_device *dev,
 		info_size = sizeof(info);
 		if (copy_from_user(&info, useraddr, info_size))
 			return -EFAULT;
-		/* Since malicious users may modify the original data,
-		 * we need to check whether FLOW_RSS is still requested.
-		 */
-		if (!(info.flow_type & FLOW_RSS))
-			return -EINVAL;
 	}
 
 	if (info.cmd == ETHTOOL_GRXCLSRLALL) {
Signature · 1 line
2.31.1
Reviewed-by on v1 190/190
#553 lore raw

Re: [PATCH 190/190] Revert "ethtool: fix a potential missing-check bug"

Quoted 16 lines · Greg Kroah-Hartman

This reverts commit d656fe49e33df48ee6bc19e871f5862f49895c9e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 3 lines
Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>

The original patch looks valid and fixes a race.

Quoted 23 lines
---
 net/ethtool/ioctl.c | 5 -----
 1 file changed, 5 deletions(-)
net/ethtool/ioctl.c +0 -5
index 807bc9465add..542f2428014c 100644
@@ -869,11 +869,6 @@ static noinline_for_stack int ethtool_get_rxnfc(struct net_device *dev,
 		info_size = sizeof(info);
 		if (copy_from_user(&info, useraddr, info_size))
 			return -EFAULT;
-		/* Since malicious users may modify the original data,
-		 * we need to check whether FLOW_RSS is still requested.
-		 */
-		if (!(info.flow_type & FLOW_RSS))
-			return -EINVAL;
 	}
 
 	if (info.cmd == ETHTOOL_GRXCLSRLALL) {
Signature · 1 line
2.31.1
Signature · 2 lines
James Morris
<[email protected]>
author maintainer
#554 lore raw

Re: [PATCH 190/190] Revert "ethtool: fix a potential missing-check bug"

Quoted 18 lines · James Morris
Quoted 16 lines · Greg Kroah-Hartman

This reverts commit d656fe49e33df48ee6bc19e871f5862f49895c9e.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 5 lines
Quoted 3 lines
Cc Wenwen Wang <[email protected]>
Cc David S. Miller <[email protected]>

The original patch looks valid and fixes a race.

Thanks for reviewing, now dropped.

greg k-h

maintainer
#555 lore raw
In reply to Greg Kroah-Hartman
Quoted 11 lines · Greg Kroah-Hartman

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Sigh. As if this wouldn't be a problem everywhere.

Quoted 27 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

This patchset has the "easy" reverts, there are 68 remaining ones that need to be manually reviewed. Some of them are not able to be reverted as they already have been reverted, or fixed up with follow-on patches as they were determined to be invalid. Proof that these submissions were almost universally wrong.

I will be working with some other kernel developers to determine if any of these reverts were actually valid changes, were actually valid, and if so, will resubmit them properly later. For now, it's better to be safe.

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from anyone with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

thanks,

greg k-h

[ ... ]

Quoted 1 line

Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

I see

9aa3aa15f4c2 hwmon: (lm80) fix a missing check of bus read in lm80 probe c9c63915519b hwmon: (lm80) fix a missing check of the status of SMBus read

The latter indeed introduced a problem which was later fixed with

07bd14ccc304 hwmon: (lm80) Fix missing unlock on error in set_fan_div()

I guess that was part of the experiment. I don't see a problem with the patch that is being reverted, but it is not extremely valuable either, so I don't mind the revert. It is not valuable enough to re-apply it later either.

FWIW, I didn't see the problem with the second patch even when re-reviewing it, which makes me suspect that they introduced missing-unlock problems on purpose. It is important to keep that in mind when re-reviewing the patches. Also, it may be part of the pattern that they introduced one or more valid patches followed by a malicious one into the same subsystem on purpose.

Guenter

author maintainer
#556 lore raw
Quoted 59 lines · Guenter Roeck
Quoted 11 lines · Greg Kroah-Hartman

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Sigh. As if this wouldn't be a problem everywhere.

Quoted 27 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

This patchset has the "easy" reverts, there are 68 remaining ones that need to be manually reviewed. Some of them are not able to be reverted as they already have been reverted, or fixed up with follow-on patches as they were determined to be invalid. Proof that these submissions were almost universally wrong.

I will be working with some other kernel developers to determine if any of these reverts were actually valid changes, were actually valid, and if so, will resubmit them properly later. For now, it's better to be safe.

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from anyone with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

thanks,

greg k-h

[ ... ]

Quoted 1 line

Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

I see

9aa3aa15f4c2 hwmon: (lm80) fix a missing check of bus read in lm80 probe c9c63915519b hwmon: (lm80) fix a missing check of the status of SMBus read

The latter indeed introduced a problem which was later fixed with

07bd14ccc304 hwmon: (lm80) Fix missing unlock on error in set_fan_div()

I guess that was part of the experiment. I don't see a problem with the patch that is being reverted, but it is not extremely valuable either, so I don't mind the revert. It is not valuable enough to re-apply it later either.

Quoted 5 lines

FWIW, I didn't see the problem with the second patch even when re-reviewing it, which makes me suspect that they introduced missing-unlock problems on purpose. It is important to keep that in mind when re-reviewing the patches. Also, it may be part of the pattern that they introduced one or more valid patches followed by a malicious one into the same subsystem on purpose.

Thanks for the review of these, much appreciated.

greg k-h

maintainer
#557 lore raw
In reply to Guenter Roeck
Quoted 9 lines · Guenter Roeck
Quoted 7 lines

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Sigh. As if this wouldn't be a problem everywhere.

Right.

Quoted 28 lines
Quoted 27 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

This patchset has the "easy" reverts, there are 68 remaining ones that need to be manually reviewed. Some of them are not able to be reverted as they already have been reverted, or fixed up with follow-on patches as they were determined to be invalid. Proof that these submissions were almost universally wrong.

I will be working with some other kernel developers to determine if any of these reverts were actually valid changes, were actually valid, and if so, will resubmit them properly later. For now, it's better to be safe.

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from anyone with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

thanks,

greg k-h

[ ... ]

Quoted 8 lines
Quoted 1 line

Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

I see

9aa3aa15f4c2 hwmon: (lm80) fix a missing check of bus read in lm80 probe c9c63915519b hwmon: (lm80) fix a missing check of the status of SMBus read

The latter indeed introduced a problem which was later fixed with

Therefore I'd like to ask Kangjie Lu (who is CCed here) to consider revising his statement in the attempted public clarification:

	"The experiment did not introduce any bug or bug-introducing commit into 
	 OSS."

at [1] as it's clearly not true. Missing mutex unlock clearky is a bug introduced by this experiment.

[1] https://www-users.cs.umn.edu/~kjlu/

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs

A message that is not in the archive (sent off-list or not yet received): CAK8KejoGgoWcEUm7gnTw+_5CuZX1+bnHoeY0Ea-pAO+gd8dbcg@mail.gmail.com

maintainer
#559 lore raw
Quoted 11 lines · Kangjie Lu
Quoted 10 lines

Therefore I'd like to ask Kangjie Lu (who is CCed here) to consider revising his statement in the attempted public clarification:

"The experiment did not introduce any bug or bug-introducing
commit into

         OSS."

at [1] as it's clearly not true. Missing mutex unlock clearky is a bug introduced by this experiment.

Quoted 5 lines

Hi everyone,

I am so sorry for the concerns. I fully understand why the community is angry. Please allow me to have a very quick response, as Jiri requested. We will provide a detailed explanation later.

Thanks.

Quoted 2 lines

These are two different projects. The one published at IEEE S&P 2021 has completely finished in November 2020.

What about 8a94644b440 then? It's from May 2020, it has been committed to the tree, and it introduces a NULL pointer dereference on kobject_init_and_add() failure.

Signature · 2 lines
Jiri Kosina
SUSE Labs

A message that is not in the archive (sent off-list or not yet received): CAMV6ehGWOB5ENV2Z0QpjQ=rpF9GC=22QTTY-Win+Jd928LbC-A@mail.gmail.com

maintainer
#561 lore raw
Quoted 11 lines · Qiushi Wu

The function description of "kobject_init_and_add()" mentioned that "If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object." (see
https://elixir.bootlin.com/linux/v5.12-rc8/source/lib/kobject.c#L464) So we use this patch to fix the issue, and I may miss some context here, but I don't see why this cause some issue like NULL dereferences.

The identification methodology for this bug and other similar bugs that are error-handling related, is shown in "Understanding and Detecting Disordered Error Handling with Precise Function Pairing."
(https://www.usenix.org/conference/usenixsecurity21/presentation/wu-qiushi)

You are calling kobject_put() if kobject_init_and_add() fails. That will in turn invoke pci_slot_release() which will try to delete slot->list, but that hasn't been initialized yet.

Fixed in 4684709bf8, present in two major Linux kernel releases.

Signature · 2 lines
Jiri Kosina
SUSE Labs
#562 lore raw
In reply to a message not in the archive

Hi Kangjie,

Quoted 66 lines · Kangjie Lu
Quoted 50 lines · Jiri Kosina
Quoted 9 lines · Guenter Roeck
Quoted 7 lines

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Sigh. As if this wouldn't be a problem everywhere.

Right.

Quoted 28 lines
Quoted 27 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

This patchset has the "easy" reverts, there are 68 remaining ones that need to be manually reviewed. Some of them are not able to be reverted as they already have been reverted, or fixed up with follow-on patches as they were determined to be invalid. Proof that these submissions were almost universally wrong.

I will be working with some other kernel developers to determine if any of these reverts were actually valid changes, were actually valid, and if so, will resubmit them properly later. For now, it's better to be safe.

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from anyone with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

thanks,

greg k-h

[ ... ]

Quoted 8 lines
Quoted 1 line

Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

I see

9aa3aa15f4c2 hwmon: (lm80) fix a missing check of bus read in lm80 probe c9c63915519b hwmon: (lm80) fix a missing check of the status of SMBus read

The latter indeed introduced a problem which was later fixed with

Quoted 8 lines

Therefore I'd like to ask Kangjie Lu (who is CCed here) to consider revising his statement in the attempted public clarification:

"The experiment did not introduce any bug or bug-introducing commit into
OSS."

at [1] as it's clearly not true. Missing mutex unlock clearky is a bug introduced by this experiment.

Hi everyone,

I am so sorry for the concerns. I fully understand why the community is angry. Please allow me to have a very quick response, as Jiri requested. We will provide a detailed explanation later.

Quoted 5 lines

These are two different projects. The one published at IEEE S&P 2021 has completely finished in November 2020. My student Aditya is working on a new project that is to find bugs introduced by bad patches. Please do not link these two projects together. I am sorry that his new patches are not correct either. He did not intentionally make the mistake.

Do you have a list of all known bad commits ? Not that we shouldn't revert the other ones as well, but having a list of bad ones would be useful when reviewing commits individually to see which ones may actually be correct.

Quoted 1 line
Quoted 1 line

[1] https://www-users.cs.umn.edu/~kjlu/

Signature · 3 lines
Regards,

Laurent Pinchart

A message that is not in the archive (sent off-list or not yet received): CAK8Kejqq4qUT=2nqvnVM=r7H_P3dF=+3dHa6HWOCP=9GeeTbpA@mail.gmail.com

maintainer
#564 lore raw
Quoted 2 lines · Kangjie Lu

All of the commits sent by my students are in good faith to fix some bugs.

Fool me once, fool me twice.

How do we know that this isn't part of some obscure follow-up study ?

Guenter

#565 lore raw
Quoted 3 lines · Guenter Roeck
Quoted 1 line · Kangjie Lu

All of the commits sent by my students are in good faith to fix some bugs.

Just to make sure - does that statement cover the following commit?

commit 0c85a7e87465f2d4cbc768e245f4f45b2f299b05

Author: Aditya Pakki <[email protected]>
Date:   Tue Apr 6 19:09:12 2021 -0500

net/rds: Avoid potential use after free in rds_send_remove_from_sock

And is "Ph.D. student in Computer Science" an accurate description of the gentleman in question?

We all made utterly bonehead mistakes (if you want a fresh example of mine, take a look at 161aff1d93ab "LOOKUP_MOUNTPOINT: fold path_mountpointat() into path_lookupat()"; see 035d80695fae for the merge of the fix and explanation of what was wrong in the original commit).

However, there's a general expectation that once you become aware of dumb mistake in something you have published (and merge into mainline certainly qualifies as publication) you shall retract it as soon as possible. If a student is not aware of such expectation, their advisor really ought to inform them of it.

#566 lore raw
Quoted 23 lines · Al Viro
Quoted 3 lines · Guenter Roeck
Quoted 1 line · Kangjie Lu

All of the commits sent by my students are in good faith to fix some bugs.

Just to make sure - does that statement cover the following commit?

commit 0c85a7e87465f2d4cbc768e245f4f45b2f299b05

Author: Aditya Pakki <[email protected]>
Date:   Tue Apr 6 19:09:12 2021 -0500

net/rds: Avoid potential use after free in rds_send_remove_from_sock

And is "Ph.D. student in Computer Science" an accurate description of the gentleman in question?

We all made utterly bonehead mistakes (if you want a fresh example of mine, take a look at 161aff1d93ab "LOOKUP_MOUNTPOINT: fold path_mountpointat() into path_lookupat()"; see 035d80695fae for the merge of the fix and explanation of what was wrong in the original commit).

Quoted 5 lines

However, there's a general expectation that once you become aware of dumb mistake in something you have published (and merge into mainline certainly qualifies as publication) you shall retract it as soon as possible. If a student is not aware of such expectation, their advisor really ought to inform them of it.

Mentioned gentleman was also notified on 8th of April with Coverity report that his patch is questionable:
https://lore.kernel.org/linux-next/202104081640.1A09A99900@keescook/

The report was ignored by the patch author.

Best regards,
Krzysztof

#567 lore raw
In reply to a message not in the archive

Hi Kangjie,

Quoted 74 lines · Kangjie Lu
Quoted 73 lines · Laurent Pinchart
Quoted 71 lines · Kangjie Lu
Quoted 50 lines · Jiri Kosina
Quoted 9 lines · Guenter Roeck
Quoted 7 lines

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Sigh. As if this wouldn't be a problem everywhere.

Right.

Quoted 28 lines
Quoted 27 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

This patchset has the "easy" reverts, there are 68 remaining ones that need to be manually reviewed. Some of them are not able to be reverted as they already have been reverted, or fixed up with follow-on patches as they were determined to be invalid. Proof that these submissions were almost universally wrong.

I will be working with some other kernel developers to determine if any of these reverts were actually valid changes, were actually valid, and if so, will resubmit them properly later. For now, it's better to be safe.

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from anyone with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

thanks,

greg k-h

[ ... ]

Quoted 8 lines
Quoted 1 line

Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

I see

9aa3aa15f4c2 hwmon: (lm80) fix a missing check of bus read in lm80 probe c9c63915519b hwmon: (lm80) fix a missing check of the status of SMBus read

The latter indeed introduced a problem which was later fixed with

Quoted 8 lines

Therefore I'd like to ask Kangjie Lu (who is CCed here) to consider revising his statement in the attempted public clarification:

"The experiment did not introduce any bug or bug-introducing commit into
OSS."

at [1] as it's clearly not true. Missing mutex unlock clearky is a bug introduced by this experiment.

Hi everyone,

I am so sorry for the concerns. I fully understand why the community is angry. Please allow me to have a very quick response, as Jiri requested. We will provide a detailed explanation later.

These are two different projects. The one published at IEEE S&P 2021 has completely finished in November 2020. My student Aditya is working on a new project that is to find bugs introduced by bad patches. Please do not link these two projects together. I am sorry that his new patches are not correct either. He did not intentionally make the mistake.

Quoted 8 lines
Quoted 4 lines

Do you have a list of all known bad commits ? Not that we shouldn't revert the other ones as well, but having a list of bad ones would be useful when reviewing commits individually to see which ones may actually be correct.

We did not introduce any bad commits in the study of hypocrite commits. Please see more details here:
https://www-users.cs.umn.edu/~kjlu/papers/clarifications-hc.pdf

You may not have intended for those patches to be merged upstream, but they were submitted on mailing list for review, and it's clear that at least some of them did get merged. I thus repeat my question: do you have a full list of all malicious patches submitted to mailing lists ?

Quoted 3 lines

All of the commits sent by my students are in good faith to fix some bugs.

Quoted 1 line
Quoted 1 line
Quoted 1 line

[1] https://www-users.cs.umn.edu/~kjlu/

Signature · 3 lines
Regards,

Laurent Pinchart
maintainer
#568 lore raw
In reply to a message not in the archive
Quoted 73 lines · Kangjie Lu
Quoted 57 lines · Jiri Kosina
Quoted 9 lines · Guenter Roeck
Quoted 7 lines

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Sigh. As if this wouldn't be a problem everywhere.

Right.

Quoted 3 lines
Quoted 3 lines

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove

this

Quoted 9 lines
Quoted 9 lines

change to ensure that no problems are being introduced into the codebase.

This patchset has the "easy" reverts, there are 68 remaining ones that need to be manually reviewed. Some of them are not able to be reverted as they already have been reverted, or fixed up with follow-on patches as they were determined to be invalid. Proof that these submissions were almost universally wrong.

Quoted 7 lines
Quoted 7 lines

I will be working with some other kernel developers to determine if any of these reverts were actually valid changes, were actually valid, and if so, will resubmit them properly later. For now, it's better to be safe.

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from

anyone

Quoted 8 lines
Quoted 8 lines

with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

thanks,

greg k-h

Quoted 7 lines

[ ... ]

Quoted 1 line

Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe"

I see

9aa3aa15f4c2 hwmon: (lm80) fix a missing check of bus read in lm80 probe c9c63915519b hwmon: (lm80) fix a missing check of the status of SMBus

read

Quoted 2 lines

The latter indeed introduced a problem which was later fixed with

Therefore I'd like to ask Kangjie Lu (who is CCed here) to consider revising his statement in the attempted public clarification:

Quoted 7 lines

"The experiment did not introduce any bug or bug-introducing
commit into

         OSS."

at [1] as it's clearly not true. Missing mutex unlock clearky is a bug introduced by this experiment.

Hi everyone,

I am so sorry for the concerns. I fully understand why the community is angry. Please allow me to have a very quick response, as Jiri requested. We will provide a detailed explanation later.

Quoted 6 lines

These are two different projects. The one published at IEEE S&P 2021 has completely finished in November 2020. My student Aditya is working on a new project that is to find bugs introduced by bad patches. Please do not link these two projects together. I am sorry that his new patches are not correct either. He did not intentionally make the mistake.

The author of commit c9c63915519b is Kangjie Lu <[email protected]>, not some student, and I have to assume that it intentionally introduced a problem. That was the whole point of the exercise, wasn't it ?
As mentioned by Jiri, the statement "The experiment did not introduce any bug or bug-introducing commit into OSS" is obviously wrong. It is a lie, to say it directly.

I absolutely agree with Greg's assertion: All patches introduced from the umn.edu domain can not be trusted and should be reverted.

It might be worthwhile to have a discussion at the upcoming maintainers summit on how to handle contributions from untrusted sources in the future, and how to identify trusted contributors. Quite obviously the paradigm has finally changed from "assume the contribution is well-intended" to "assume the contribution is malicious". I guess that was prone to happen, but it is sad to experience it anyway.

For my part, congratulations (in a negative sense): You made me much less inclined to accept minor bug fixes from people I don't know in the future.

Guenter

Acked-by on the v1 series
#569 lore raw
In reply to Greg Kroah-Hartman
Quoted 18 lines · Greg Kroah-Hartman

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 5 lines

This patchset has the "easy" reverts, there are 68 remaining ones that need to be manually reviewed. Some of them are not able to be reverted as they already have been reverted, or fixed up with follow-on patches as they were determined to be invalid. Proof that these submissions were almost universally wrong.

Will you take care of these remaining ones in subsequent patches too?

Quoted 40 lines

I will be working with some other kernel developers to determine if any of these reverts were actually valid changes, were actually valid, and if so, will resubmit them properly later. For now, it's better to be safe.

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from anyone with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

thanks,

greg k-h

Greg Kroah-Hartman (190):
Revert "net/rds: Avoid potential use after free in
rds_send_remove_from_sock"
Revert "media: st-delta: Fix reference count leak in delta_run_work" Revert "media: sti: Fix reference count leaks"
Revert "media: exynos4-is: Fix several reference count leaks due to
pm_runtime_get_sync"
Revert "media: exynos4-is: Fix a reference count leak due to
pm_runtime_get_sync"
Revert "media: exynos4-is: Fix a reference count leak" Revert "media: ti-vpe: Fix a missing check and reference count leak" Revert "media: stm32-dcmi: Fix a reference count leak" Revert "media: s5p-mfc: Fix a reference count leak"
Revert "media: camss: Fix a reference count leak."
Revert "media: platform: fcp: Fix a reference count leak." Revert "media: rockchip/rga: Fix a reference count leak." Revert "media: rcar-vin: Fix a reference count leak." Revert "media: rcar-vin: Fix a reference count leak." Revert "firmware: Fix a reference count leak."
Revert "drm/nouveau: fix reference count leak in
nouveau_debugfs_strap_peek"
Revert "drm/nouveau: fix reference count leak in
nv50_disp_atomic_commit"
Revert "drm/nouveau: fix multiple instances of reference count leaks" Revert "drm/nouveau/drm/noveau: fix reference count leak in

Quoted 8 lines

nouveau_fbcon_open"
Revert "PCI: Fix pci_create_slot() reference count leak" Revert "omapfb: fix multiple reference count leaks due to
pm_runtime_get_sync"
Revert "drm/radeon: Fix reference count leaks caused by
pm_runtime_get_sync"
Revert "drm/radeon: fix multiple reference count leak" Revert "drm/amdkfd: Fix reference count leaks."

I didn't review these carefully, but from a quick look they all seem rather inconsequental. Either error paths that are very unlikely, or drivers which are very dead (looking at the entire list, not just what you reverted here).

Also adding drm maintainers/lists, those aren't all on your cc it seems. I will also forward this to fd.o sitewranglers as abuse of our infrastructure, it's for community collaboration, not for inflicting experiments on unconsenting subjects.

I'me dropping non-drm people here so not everyone gets spammed too badly. -Daniel

Quoted 407 lines

Revert "platform/chrome: cros_ec_ishtp: Fix a double-unlock issue" Revert "usb: dwc3: pci: Fix reference count leak in
dwc3_pci_resume_work"
Revert "ASoC: rockchip: Fix a reference count leak." Revert "RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq" Revert "EDAC: Fix reference count leaks"
Revert "ASoC: tegra: Fix reference count leaks."
Revert "test_objagg: Fix potential memory leak in error handling" Revert "ASoC: img-parallel-out: Fix a reference count leak" Revert "ASoC: img: Fix a reference count leak in img_i2s_in_set_fmt" Revert "efi/esrt: Fix reference count leak in
esre_create_sysfs_entry."
Revert "scsi: iscsi: Fix reference count leak in
iscsi_boot_create_kobj"
Revert "vfio/mdev: Fix reference count leak in
add_mdev_supported_type"
Revert "RDMA/core: Fix several reference count leaks." Revert "cpuidle: Fix three reference count leaks"
Revert "iommu: Fix reference count leak in iommu_group_alloc." Revert "ACPI: CPPC: Fix reference count leak in
acpi_cppc_processor_probe()"
Revert "ACPI: sysfs: Fix reference count leak in
acpi_sysfs_add_hotplug_profile()"
Revert "ASoC: fix incomplete error-handling in img_i2s_in_probe." Revert "qlcnic: fix missing release in qlcnic_83xx_interrupt_test." Revert "RDMA/pvrdma: Fix missing pci disable in pvrdma_pci_probe()" Revert "usb: gadget: fix potential double-free in m66592_probe." Revert "net/mlx4_core: fix a memory leak bug."
Revert "rxrpc: Fix a memory leak in rxkad_verify_response()" Revert "net: sun: fix missing release regions in cas_init_one()." Revert "agp/intel: Fix a memory leak on module initialisation failure" Revert "nfp: abm: fix a memory leak bug"
Revert "power: supply: core: fix memory leak in HWMON error path" Revert "media: media/saa7146: fix incorrect assertion in

    saa7146_buffer_finish"
  Revert "ecryptfs: replace BUG_ON with error handling code"
  Revert "clk: samsung: Remove redundant check in
    samsung_cmu_register_one"
  Revert "fs: ocfs: remove unnecessary assertion in dlm_migrate_lockres"
  Revert "media: davinci/vpfe_capture.c: Avoid BUG_ON for register
    failure"
  Revert "media: saa7146: Avoid using BUG_ON as an assertion"
  Revert "media: cx231xx: replace BUG_ON with recovery code"
  Revert "RDMA/srpt: Remove unnecessary assertion in
    srpt_queue_response"
  Revert "staging: kpc2000: remove unnecessary assertions in
    kpc_dma_transfer"
  Revert "xen/grant-table: remove multiple BUG_ON on gnttab_interface"
  Revert "scsi: libfc: remove unnecessary assertion on ep variable"
  Revert "hdlcdrv: replace unnecessary assertion in hdlcdrv_register"
  Revert "nfc: s3fwrn5: replace the assertion with a WARN_ON"
  Revert "nfsd: remove unnecessary assertion in nfsd4_encode_replay"
  Revert "bpf: Remove unnecessary assertion on fp_old"
  Revert "net: caif: replace BUG_ON with recovery code"
  Revert "fore200e: Fix incorrect checks of NULL pointer dereference"
  Revert "mac80211: Remove redundant assertion"
  Revert "rfkill: Fix incorrect check to avoid NULL pointer dereference"
  Revert "pppoe: remove redundant BUG_ON() check in pppoe_pernet"
  Revert "net: atm: Reduce the severity of logging in unlink_clip_vcc"
  Revert "media: rcar_drif: fix a memory disclosure"
  Revert "drm/gma500: fix memory disclosures due to uninitialized bytes"
  Revert "gma/gma500: fix a memory disclosure bug due to uninitialized
    bytes"
  Revert "net: ixgbevf: fix a missing check of
    ixgbevf_write_msg_read_ack"
  Revert "rapidio: fix a NULL pointer dereference when
    create_workqueue() fails"
  Revert "ASoC: cs43130: fix a NULL pointer dereference"
  Revert "ASoC: rt5645: fix a NULL pointer dereference"
  Revert "ALSA: usx2y: fix a double free bug"
  Revert "tracing: Fix a memory leak by early error exit in
    trace_pid_write()"
  Revert "rsi: Fix NULL pointer dereference in kmalloc"
  Revert "net: cw1200: fix a NULL pointer dereference"
  Revert "net: ieee802154: fix missing checks for regmap_update_bits"
  Revert "audit: fix a memory leak bug"
  Revert "x86/PCI: Fix PCI IRQ routing table memory leak"
  Revert "udf: fix an uninitialized read bug and remove dead code"
  Revert "mmc_spi: add a status check for spi_sync_locked"
  Revert "PCI: endpoint: Fix a potential NULL pointer dereference"
  Revert "net/smc: fix a NULL pointer dereference"
  Revert "pinctrl: axp209: Fix NULL pointer dereference after
    allocation"
  Revert "power: charger-manager: fix a potential NULL pointer
    dereference"
  Revert "iio: hmc5843: fix potential NULL pointer dereferences"
  Revert "iio: adc: fix a potential NULL pointer dereference"
  Revert "rtlwifi: fix a potential NULL pointer dereference"
  Revert "net: mwifiex: fix a NULL pointer dereference"
  Revert "video: imsttfb: fix potential NULL pointer dereferences"
  Revert "video: hgafb: fix potential NULL pointer dereference"
  Revert "omapfb: Fix potential NULL pointer dereference in kmalloc"
  Revert "staging: greybus: audio_manager: fix a missing check of
    ida_simple_get"
  Revert "PCI: xilinx: Check for __get_free_pages() failure"
  Revert "media: video-mux: fix null pointer dereferences"
  Revert "thunderbolt: property: Fix a missing check of kzalloc"
  Revert "char: hpet: fix a missing check of ioremap"
  Revert "libnvdimm/btt: Fix a kmemdup failure check"
  Revert "tty: ipwireless: fix missing checks for ioremap"
  Revert "RDMA/i40iw: Handle workqueue allocation failure"
  Revert "usb: u132-hcd: fix potential NULL pointer dereference"
  Revert "usb: sierra: fix a missing check of device_create_file"
  Revert "scsi: qla4xxx: fix a potential NULL pointer dereference"
  Revert "gpio: aspeed: fix a potential NULL pointer dereference"
  Revert "libnvdimm/namespace: Fix a potential NULL pointer dereference"
  Revert "x86/hpet: Prevent potential NULL pointer dereference"
  Revert "staging: rtl8188eu: Fix potential NULL pointer dereference of
    kcalloc"
  Revert "thunderbolt: Fix a missing check of kmemdup"
  Revert "thunderbolt: property: Fix a NULL pointer dereference"
  Revert "media: si2165: fix a missing check of return value"
  Revert "scsi: ufs: fix a missing check of devm_reset_control_get"
  Revert "tty: mxs-auart: fix a potential NULL pointer dereference"
  Revert "tty: atmel_serial: fix a potential NULL pointer dereference"
  Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer
    dereference"
  Revert "HID: logitech: check the return value of
    create_singlethread_workqueue"
  Revert "netfilter: ip6t_srh: fix NULL pointer dereferences"
  Revert "spi : spi-topcliff-pch: Fix to handle empty DMA buffers"
  Revert "net: tipc: fix a missing check of nla_nest_start"
  Revert "net: openvswitch: fix a NULL pointer dereference"
  Revert "ALSA: sb8: add a check for request_region"
  Revert "net: strparser: fix a missing check for
    create_singlethread_workqueue"
  Revert "qlcnic: Avoid potential NULL pointer dereference"
  Revert "ALSA: usx2y: Fix potential NULL pointer dereference"
  Revert "net: 8390: fix potential NULL pointer dereferences"
  Revert "net: fujitsu: fix a potential NULL pointer dereference"
  Revert "net: qlogic: fix a potential NULL pointer dereference"
  Revert "md: Fix failed allocation of md_register_thread"
  Revert "net: rocker: fix a potential NULL pointer dereference"
  Revert "net: thunder: fix a potential NULL pointer dereference"
  Revert "net: lio_core: fix two NULL pointer dereferences"
  Revert "net: liquidio: fix a NULL pointer dereference"
  Revert "isdn: mISDNinfineon: fix potential NULL pointer dereference"
  Revert "isdn: mISDN: Fix potential NULL pointer dereference of
    kzalloc"
  Revert "libertas: add checks for the return value of
    sysfs_create_group"
  Revert "rtc: hym8563: fix a missing check of block data read"
  Revert "power: twl4030: fix a missing check of return value"
  Revert "misc/ics932s401: Add a missing check to
    i2c_smbus_read_word_data"
  Revert "leds: lp5523: fix a missing check of return value of
    lp55xx_read"

Revert "media: dvb: Add check on sp8870_readreg"
Revert "media: dvb: add return value check on Write16" Revert "media: mt312: fix a missing check of mt312 reset" Revert "media: lgdt3306a: fix a missing check of return value" Revert "media: gspca: mt9m111: Check write_bridge for timeout" Revert "media: gspca: Check the return value of write_bridge for
timeout"
Revert "media: usb: gspca: add a missed check for goto_low_power" Revert "media: usb: gspca: add a missed return-value check for
do_command"
Revert "ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()" Revert "brcmfmac: add a check for the status of usb_register" Revert "serial: max310x: pass return value of spi_register_driver" Revert "Input: ad7879 - add check for read errors in interrupt" Revert "ALSA: sb: fix a missing check of snd_ctl_add" Revert "ALSA: gus: add a check of the status of snd_ctl_add" Revert "Staging: rts5208: Fix error handling on rtsx_send_cmd" Revert "staging: rts5208: Add a check for ms_read_extra_data" Revert "dmaengine: qcom_hidma: Check for driver register failure" Revert "dmaengine: mv_xor: Fix a missing check in mv_xor_channel_add" Revert "iio: ad9523: fix a missing check of return value" Revert "mfd: mc13xxx: Fix a missing check of a register-read failure" Revert "infiniband: bnxt_re: qplib: Check the return value of
send_message"
Revert "gdrom: fix a memory leak bug"
Revert "net: marvell: fix a missing check of acpi_match_device" Revert "atl1e: checking the status of atl1e_write_phy_reg" Revert "net: dsa: bcm_sf2: Propagate error value from mdio_write" Revert "net: stmicro: fix a missing check of clk_prepare" Revert "net: (cpts) fix a missing check of clk_prepare" Revert "niu: fix missing checks of niu_pci_eeprom_read" Revert "net: chelsio: Add a missing check on cudg_get_buffer" Revert "ipv6/route: Add a missing check on proc_dointvec" Revert "net/net_namespace: Check the return value of
register_pernet_subsys()"
Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe" Revert "net: netxen: fix a missing check and an uninitialized use" Revert "drivers/regulator: fix a missing check of return value" Revert "net: socket: fix a missing-check bug"
Revert "dm ioctl: harden copy_params()'s copy_from_user() from
malicious users"
Revert "ethtool: fix a missing-check bug"
Revert "media: isif: fix a NULL pointer dereference bug" Revert "yam: fix a missing-check bug"
Revert "net: cxgb3_main: fix a missing-check bug"
Revert "virt: vbox: Only copy_from_user the request-header once" Revert "ALSA: control: fix a redundant-copy issue"
Revert "scsi: 3w-xxxx: fix a missing-check bug"
Revert "scsi: 3w-9xxx: fix a missing-check bug"
Revert "ethtool: fix a potential missing-check bug"

 arch/x86/kernel/hpet.c                        |  2 --
 arch/x86/pci/irq.c                            | 10 ++----
 drivers/acpi/cppc_acpi.c                      |  1 -
 drivers/acpi/sysfs.c                          |  4 +--
 drivers/atm/fore200e.c                        | 25 +++++----------
 drivers/cdrom/gdrom.c                         |  1 -
 drivers/char/agp/intel-gtt.c                  |  4 +--
 drivers/char/hpet.c                           |  2 --
 drivers/clk/samsung/clk.c                     |  4 +++
 drivers/cpuidle/sysfs.c                       |  6 ++--
 drivers/dma/mv_xor.c                          |  5 +--
 drivers/dma/qcom/hidma_mgmt.c                 |  3 +-
 drivers/edac/edac_device_sysfs.c              |  1 -
 drivers/edac/edac_pci_sysfs.c                 |  2 +-
 drivers/firmware/efi/esrt.c                   |  2 +-
 drivers/firmware/qemu_fw_cfg.c                |  7 ++---
 drivers/gpio/gpio-aspeed.c                    |  2 --
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c     | 20 +++---------
 drivers/gpu/drm/gma500/cdv_intel_display.c    |  2 --
 drivers/gpu/drm/gma500/oaktrail_crtc.c        |  2 --
 drivers/gpu/drm/nouveau/dispnv50/disp.c       |  4 +--
 drivers/gpu/drm/nouveau/nouveau_debugfs.c     |  4 +--
 drivers/gpu/drm/nouveau/nouveau_drm.c         |  8 ++---
 drivers/gpu/drm/nouveau/nouveau_fbcon.c       |  4 +--
 drivers/gpu/drm/nouveau/nouveau_gem.c         |  4 +--
 drivers/gpu/drm/radeon/radeon_connectors.c    | 20 +++---------
 drivers/gpu/drm/radeon/radeon_display.c       |  4 +--
 drivers/gpu/drm/radeon/radeon_drv.c           |  4 +--
 drivers/gpu/drm/radeon/radeon_kms.c           |  4 +--
 drivers/hid/hid-logitech-hidpp.c              |  8 +----
 drivers/hwmon/lm80.c                          | 11 ++-----
 drivers/iio/adc/mxs-lradc-adc.c               |  2 --
 drivers/iio/frequency/ad9523.c                |  7 ++---
 drivers/iio/magnetometer/hmc5843_i2c.c        |  7 +----
 drivers/iio/magnetometer/hmc5843_spi.c        |  7 +----
 drivers/infiniband/core/sysfs.c               | 10 +++---
 drivers/infiniband/hw/bnxt_re/qplib_sp.c      |  5 +--
 drivers/infiniband/hw/i40iw/i40iw.h           |  2 +-
 drivers/infiniband/hw/i40iw/i40iw_cm.c        | 18 ++---------
 drivers/infiniband/hw/i40iw/i40iw_main.c      |  5 +--
 .../infiniband/hw/vmw_pvrdma/pvrdma_main.c    |  2 +-
 drivers/infiniband/sw/rdmavt/qp.c             |  6 ++--
 drivers/infiniband/ulp/srpt/ib_srpt.c         |  2 ++
 drivers/input/touchscreen/ad7879.c            | 11 +++----
 drivers/iommu/iommu.c                         |  2 +-
 drivers/isdn/hardware/mISDN/hfcsusb.c         |  3 --
 drivers/isdn/hardware/mISDN/mISDNinfineon.c   |  5 +--
 drivers/leds/leds-lp5523.c                    |  4 +--
 drivers/md/dm-ioctl.c                         | 18 +++++++----
 drivers/md/raid10.c                           |  2 --
 drivers/md/raid5.c                            |  2 --
 drivers/media/common/saa7146/saa7146_fops.c   |  2 ++
 drivers/media/common/saa7146/saa7146_video.c  |  6 ++--
 drivers/media/dvb-frontends/drxd_hard.c       | 30 +++++++-----------
 drivers/media/dvb-frontends/lgdt3306a.c       |  5 +--
 drivers/media/dvb-frontends/mt312.c           |  4 +--
 drivers/media/dvb-frontends/si2165.c          |  8 ++---
 drivers/media/dvb-frontends/sp8870.c          |  4 +--
 drivers/media/platform/davinci/isif.c         |  3 +-
 drivers/media/platform/davinci/vpfe_capture.c | 31 +++++++++----------
 drivers/media/platform/exynos4-is/fimc-isp.c  |  4 +--
 drivers/media/platform/exynos4-is/fimc-lite.c |  2 +-
 drivers/media/platform/exynos4-is/media-dev.c |  4 +--
 drivers/media/platform/exynos4-is/mipi-csis.c |  4 +--
 .../media/platform/qcom/camss/camss-csiphy.c  |  4 +--
 drivers/media/platform/rcar-fcp.c             |  4 +--
 drivers/media/platform/rcar-vin/rcar-dma.c    |  4 +--
 drivers/media/platform/rcar-vin/rcar-v4l2.c   |  4 +--
 drivers/media/platform/rcar_drif.c            |  1 -
 drivers/media/platform/rockchip/rga/rga-buf.c |  1 -
 drivers/media/platform/s5p-mfc/s5p_mfc_pm.c   |  4 +--
 drivers/media/platform/sti/delta/delta-v4l2.c |  4 +--
 drivers/media/platform/sti/hva/hva-hw.c       |  2 --
 drivers/media/platform/stm32/stm32-dcmi.c     |  4 ++-
 drivers/media/platform/ti-vpe/vpe.c           |  2 --
 drivers/media/platform/video-mux.c            |  5 ---
 drivers/media/usb/cx231xx/cx231xx-i2c.c       |  3 +-
 drivers/media/usb/gspca/cpia1.c               | 14 ++-------
 drivers/media/usb/gspca/m5602/m5602_mt9m111.c |  8 ++---
 drivers/media/usb/gspca/m5602/m5602_po1030.c  |  8 ++---
 drivers/mfd/mc13xxx-core.c                    |  4 +--
 drivers/misc/ics932s401.c                     |  2 --
 drivers/mmc/host/mmc_spi.c                    |  4 ---
 drivers/net/caif/caif_serial.c                |  4 +--
 drivers/net/dsa/bcm_sf2.c                     |  7 +++--
 drivers/net/ethernet/8390/pcnet_cs.c          | 10 ------
 .../net/ethernet/atheros/atl1e/atl1e_main.c   |  4 +--
 .../net/ethernet/cavium/liquidio/lio_core.c   | 10 ------
 .../net/ethernet/cavium/liquidio/lio_main.c   |  5 ---
 .../net/ethernet/cavium/thunder/nicvf_main.c  |  6 ----
 .../net/ethernet/chelsio/cxgb3/cxgb3_main.c   | 17 ----------
 .../net/ethernet/chelsio/cxgb4/cudbg_lib.c    |  4 ---
 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     |  5 ---
 drivers/net/ethernet/intel/ixgbevf/vf.c       |  5 +--
 .../net/ethernet/marvell/mvpp2/mvpp2_main.c   |  2 --
 drivers/net/ethernet/mellanox/mlx4/fw.c       |  2 +-
 drivers/net/ethernet/netronome/nfp/abm/main.c |  1 -
 .../ethernet/qlogic/netxen/netxen_nic_init.c  |  3 +-
 drivers/net/ethernet/qlogic/qla3xxx.c         |  6 ----
 .../ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c   |  4 +--
 .../ethernet/qlogic/qlcnic/qlcnic_ethtool.c   |  2 --
 drivers/net/ethernet/rocker/rocker_main.c     |  5 ---
 .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c |  4 +--
 drivers/net/ethernet/sun/cassini.c            |  3 +-
 drivers/net/ethernet/sun/niu.c                | 10 ++----
 drivers/net/ethernet/ti/cpts.c                |  4 +--
 drivers/net/hamradio/hdlcdrv.c                |  2 ++
 drivers/net/hamradio/yam.c                    |  4 ---
 drivers/net/ieee802154/mcr20a.c               |  6 ----
 drivers/net/ppp/pppoe.c                       |  2 ++
 drivers/net/wireless/ath/ath6kl/wmi.c         |  4 ++-
 .../broadcom/brcm80211/brcmfmac/usb.c         |  6 +---
 drivers/net/wireless/marvell/libertas/mesh.c  |  5 ---
 drivers/net/wireless/marvell/mwifiex/cmdevt.c |  6 ----
 drivers/net/wireless/realtek/rtlwifi/base.c   |  5 ---
 drivers/net/wireless/rsi/rsi_91x_mac80211.c   | 30 +++++++-----------
 drivers/net/wireless/st/cw1200/main.c         |  5 ---
 drivers/nfc/s3fwrn5/firmware.c                |  5 +--
 drivers/nvdimm/btt_devs.c                     | 18 +++--------
 drivers/nvdimm/namespace_devs.c               |  5 +--
 drivers/pci/controller/pcie-xilinx.c          | 12 ++-----
 drivers/pci/endpoint/functions/pci-epf-test.c |  5 ---
 drivers/pci/slot.c                            |  6 ++--
 drivers/pinctrl/pinctrl-axp209.c              |  2 --
 drivers/platform/chrome/cros_ec_ishtp.c       |  4 +--
 drivers/power/supply/charger-manager.c        |  3 --
 drivers/power/supply/power_supply_hwmon.c     |  2 +-
 drivers/power/supply/twl4030_charger.c        |  4 +--
 drivers/rapidio/rio_cm.c                      |  8 -----
 drivers/regulator/palmas-regulator.c          |  5 +--
 drivers/rtc/rtc-hym8563.c                     |  2 --
 drivers/scsi/3w-9xxx.c                        |  5 ---
 drivers/scsi/3w-xxxx.c                        |  3 --
 drivers/scsi/iscsi_boot_sysfs.c               |  2 +-
 drivers/scsi/qla4xxx/ql4_os.c                 |  2 --
 drivers/scsi/ufs/ufs-hisi.c                   |  4 ---
 drivers/spi/spi-topcliff-pch.c                | 15 ++-------
 drivers/staging/greybus/audio_manager.c       |  3 --
 drivers/staging/kpc2000/kpc_dma/fileops.c     |  2 ++
 drivers/staging/rtl8188eu/core/rtw_xmit.c     |  9 ++----
 drivers/staging/rtl8188eu/include/rtw_xmit.h  |  2 +-
 drivers/staging/rtl8723bs/core/rtw_xmit.c     | 14 ++++-----
 drivers/staging/rtl8723bs/include/rtw_xmit.h  |  2 +-
 drivers/staging/rts5208/ms.c                  |  5 +--
 drivers/staging/rts5208/sd.c                  |  7 +----
 drivers/target/tcm_fc/tfc_io.c                |  1 +
 drivers/thunderbolt/property.c                | 16 +---------
 drivers/tty/ipwireless/main.c                 |  8 -----
 drivers/tty/serial/atmel_serial.c             |  4 ---
 drivers/tty/serial/max310x.c                  |  4 +--
 drivers/tty/serial/mvebu-uart.c               |  3 --
 drivers/tty/serial/mxs-auart.c                |  4 ---
 drivers/usb/dwc3/dwc3-pci.c                   |  4 +--
 drivers/usb/gadget/udc/m66592-udc.c           |  2 +-
 drivers/usb/host/u132-hcd.c                   |  2 --
 drivers/usb/storage/sierra_ms.c               |  4 ++-
 drivers/vfio/mdev/mdev_sysfs.c                |  2 +-
 drivers/video/fbdev/hgafb.c                   |  2 --
 drivers/video/fbdev/imsttfb.c                 |  5 ---
 drivers/video/fbdev/omap2/omapfb/dss/dispc.c  |  7 ++---
 drivers/video/fbdev/omap2/omapfb/dss/dsi.c    |  7 ++---
 drivers/video/fbdev/omap2/omapfb/dss/dss.c    |  7 ++---
 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c  |  5 ++-
 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c  |  5 ++-
 .../omap2/omapfb/dss/omapdss-boot-init.c      |  2 --
 drivers/video/fbdev/omap2/omapfb/dss/venc.c   |  7 ++---
 drivers/virt/vboxguest/vboxguest_linux.c      |  4 +--
 drivers/xen/grant-table.c                     |  4 +++
 fs/ecryptfs/crypto.c                          |  6 ++--
 fs/nfsd/nfs4xdr.c                             |  2 ++
 fs/ocfs2/dlm/dlmmaster.c                      |  2 ++
 fs/udf/namei.c                                | 15 +++++++++
 kernel/auditfilter.c                          | 12 +++----
 kernel/bpf/core.c                             |  2 ++
 kernel/trace/trace.c                          |  5 +--
 lib/test_objagg.c                             |  4 +--
 net/atm/clip.c                                |  6 ++--
 net/core/net_namespace.c                      |  3 +-
 net/ethtool/ioctl.c                           |  8 -----
 net/ipv6/netfilter/ip6t_srh.c                 |  6 ----
 net/ipv6/route.c                              |  6 +---
 net/mac80211/util.c                           |  1 +
 net/openvswitch/datapath.c                    |  4 ---
 net/rds/message.c                             |  1 -
 net/rds/send.c                                |  2 +-
 net/rfkill/core.c                             |  7 ++---
 net/rxrpc/rxkad.c                             |  2 +-
 net/smc/smc_ism.c                             |  5 ---
 net/socket.c                                  | 11 ++-----
 net/strparser/strparser.c                     |  2 --
 net/tipc/group.c                              |  3 --
 sound/core/control_compat.c                   |  3 +-
 sound/isa/gus/gus_main.c                      | 13 ++------
 sound/isa/sb/sb16_main.c                      | 10 ++----
 sound/isa/sb/sb8.c                            |  4 ---
 sound/soc/codecs/cs43130.c                    |  2 --
 sound/soc/codecs/rt5645.c                     |  3 --
 sound/soc/img/img-i2s-in.c                    |  5 +--
 sound/soc/img/img-parallel-out.c              |  4 +--
 sound/soc/rockchip/rockchip_pdm.c             |  4 +--
 sound/soc/tegra/tegra30_ahub.c                |  4 +--
 sound/soc/tegra/tegra30_i2s.c                 |  4 +--
 sound/usb/usx2y/usb_stream.c                  |  5 ---
 sound/usb/usx2y/usbusx2y.c                    |  4 ++-
 204 files changed, 306 insertions(+), 826 deletions(-)

--
2.31.1

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author maintainer
#570 lore raw
Quoted 20 lines · Daniel Vetter
Quoted 18 lines · Greg Kroah-Hartman

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Quoted 7 lines
Quoted 5 lines

This patchset has the "easy" reverts, there are 68 remaining ones that need to be manually reviewed. Some of them are not able to be reverted as they already have been reverted, or fixed up with follow-on patches as they were determined to be invalid. Proof that these submissions were almost universally wrong.

Will you take care of these remaining ones in subsequent patches too?

Yes I will.

Quoted 49 lines
Quoted 40 lines

I will be working with some other kernel developers to determine if any of these reverts were actually valid changes, were actually valid, and if so, will resubmit them properly later. For now, it's better to be safe.

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from anyone with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

thanks,

greg k-h

Greg Kroah-Hartman (190):
Revert "net/rds: Avoid potential use after free in
rds_send_remove_from_sock"
Revert "media: st-delta: Fix reference count leak in delta_run_work" Revert "media: sti: Fix reference count leaks"
Revert "media: exynos4-is: Fix several reference count leaks due to
pm_runtime_get_sync"
Revert "media: exynos4-is: Fix a reference count leak due to
pm_runtime_get_sync"
Revert "media: exynos4-is: Fix a reference count leak" Revert "media: ti-vpe: Fix a missing check and reference count leak" Revert "media: stm32-dcmi: Fix a reference count leak" Revert "media: s5p-mfc: Fix a reference count leak"
Revert "media: camss: Fix a reference count leak."
Revert "media: platform: fcp: Fix a reference count leak." Revert "media: rockchip/rga: Fix a reference count leak." Revert "media: rcar-vin: Fix a reference count leak." Revert "media: rcar-vin: Fix a reference count leak." Revert "firmware: Fix a reference count leak."
Revert "drm/nouveau: fix reference count leak in
nouveau_debugfs_strap_peek"
Revert "drm/nouveau: fix reference count leak in
nv50_disp_atomic_commit"
Revert "drm/nouveau: fix multiple instances of reference count leaks" Revert "drm/nouveau/drm/noveau: fix reference count leak in

Quoted 8 lines

nouveau_fbcon_open"
Revert "PCI: Fix pci_create_slot() reference count leak" Revert "omapfb: fix multiple reference count leaks due to
pm_runtime_get_sync"
Revert "drm/radeon: Fix reference count leaks caused by
pm_runtime_get_sync"
Revert "drm/radeon: fix multiple reference count leak" Revert "drm/amdkfd: Fix reference count leaks."

Quoted 6 lines

I didn't review these carefully, but from a quick look they all seem rather inconsequental. Either error paths that are very unlikely, or drivers which are very dead (looking at the entire list, not just what you reverted here).

Thanks for the quick review, I'm now going over them all again to see if they are valid or not, some of the pm reference count stuff all looks correct. Others not at all.

Quoted 4 lines

Also adding drm maintainers/lists, those aren't all on your cc it seems. I will also forward this to fd.o sitewranglers as abuse of our infrastructure, it's for community collaboration, not for inflicting experiments on unconsenting subjects.

Much appreciated.

greg k-h
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#571 lore raw
In reply to Daniel Vetter

Hi!

Quoted 11 lines
Quoted 4 lines

Revert "drm/radeon: Fix reference count leaks caused by
pm_runtime_get_sync"
Revert "drm/radeon: fix multiple reference count leak" Revert "drm/amdkfd: Fix reference count leaks."

I didn't review these carefully, but from a quick look they all seem rather inconsequental. Either error paths that are very unlikely, or drivers which are very dead (looking at the entire list, not just what you reverted here).

So you are knowingly acking patch re-introducing bugs into kernel, because the bugs are minor? I don't believe that's an okay thing to do.

Maybe something needs reverting, but lets not introduce bugs into kernel because they are "minor".

Best regards,
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
maintainer
#572 lore raw
In reply to Greg Kroah-Hartman
Quoted 10 lines · Greg Kroah-Hartman

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

I noted in the paper it says:

A. Ethical Considerations

Ensuring the safety of the experiment. In the experiment, we aim to demonstrate the practicality of stealthily introducing vulnerabilities through hypocrite commits. Our goal is not to introduce vulnerabilities to harm OSS. Therefore, we safely conduct the experiment to make sure that the introduced UAF bugs will not be merged into the actual Linux code

So, this revert is based on not trusting the authors to carry out their work in the manner they explained?

From what I've reviewed, and general sentiment of other people's reviews I've read, I am concerned this giant revert will degrade kernel quality more than the experimenters did - especially if they followed their stated methodology.

Jason

#573 lore raw
Quoted 28 lines · Jason Gunthorpe
Quoted 14 lines · Greg Kroah-Hartman

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad
faith" to try to test the kernel community's ability to review "known
malicious" changes.  The result of these submissions can be found in a
paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University
of Minnesota) and Kangjie Lu (University of Minnesota).

I noted in the paper it says:

  A. Ethical Considerations

  Ensuring the safety of the experiment. In the experiment, we aim to demonstrate the practicality of stealthily introducing vulnerabilities
  through hypocrite commits. Our goal is not to introduce vulnerabilities to harm OSS. Therefore, we safely conduct the experiment to make sure that the introduced UAF bugs will not be merged into the actual Linux code

Quoted 7 lines

So, this revert is based on not trusting the authors to carry out their work in the manner they explained?

From what I've reviewed, and general sentiment of other people's reviews I've read, I am concerned this giant revert will degrade kernel quality more than the experimenters did - especially if they followed their stated methodology.

I have to agree with Jason. This seems like trying to push a thumbtack into a bulletin board using a pyle driver. Unless the researchers are lying (which I've not seen a clear indication of), the 190 patches you have selected here are nothing more than collateral damage while you are completely missing the supposed patch submission addresses from which the malicious patches were sent!

This all really sounds like a knee-jerk reaction to thier posting. I have to say, I think it's the wrong reaction to have. Remember, these guys are the ones explaining how things can be done and exposing the tricks. That puts them in the white-hat hacker camp, not the black-hat hacker camp. You shouldn't be banning them, you should be listening to them and seeing if they found any constructive ways to improve and harden the maintenance process against these sorts of things.

Signature · 3 lines
Doug Ledford <[email protected]>
    GPG KeyID: B826A3330E572FDD
    Fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD
#574 lore raw
Quoted 2 lines · Doug Ledford

This all really sounds like a knee-jerk reaction to thier posting. I have to say, I think it's the wrong reaction to have.

Agreed, however...

Quoted 3 lines

Remember, these
guys are the ones explaining how things can be done and exposing the tricks.

... these guys are the one who provide summarized stats (as opposed to the raw data and experimental protocol) illustrating their thesis, along with some advocacy towards their prefered "solutions".

Quoted 4 lines

That puts them in the white-hat hacker camp, not the black-hat hacker camp. You shouldn't be banning them, you should be listening to them and seeing if they found any constructive ways to improve and harden the maintenance process against these sorts of things.

I'm sorry, but what they are doing is no science - it's advocacy. The data would certainly be useful - how the submission attempts went, what correlated with successful ones - timing relative to -rc, lists involved, etc.; I can think of a bunch of possible factors, but there's no way to test any of that against their data. Examining the threads around individual submissions would also be interesting and might bring useful information. Except that we can't do that, since they have not even bothered to publish the list of SHA1 of commits they got in, nevermind the Message-Id of the relevant emails.

I don't like the circus with blanket reverts either, for a lot of reasons. And ethics questions aside, their raw data might very well be worth looking into, but as for the trust in their conclusions... I've seen xenobiology papers done better than that.

#575 lore raw
In reply to Doug Ledford
Quoted 6 lines · Doug Ledford

I have to agree with Jason. This seems like trying to push a thumbtack into a bulletin board using a pyle driver. Unless the researchers are lying (which I've not seen a clear indication of), the 190 patches you have selected here are nothing more than collateral damage while you are completely missing the supposed patch submission addresses from which the malicious patches were sent!

The 190 reverts are going through the standard review process. Quite a few of those patches are getting a "this looks good, please don't revert". And these reverts aren't going to be going in for 5.12, but rather for the next merge window. So we have plenty of time to review them and either (a) drop the revert, or (b) if it does get reverted, we can always re-apply it after it gets proper review.

Given that some of the 190 patches have been found to contain bugs, regardless of whether they were submitted in good faith or not, it may be that some of these buggy patches may point out opportunities for us to improve our patch review processes. So as a random sampling of "trivial" (or maybe not-so-trivial) patches sent from a university since 2018, doing a more careful patch review is precisely a way to, as you put it:

Quoted 7 lines

harden the maintenance process against these sorts of things.

This all really sounds like a knee-jerk reaction to thier posting. I have to say, I think it's the wrong reaction to have. Remember, these guys are the ones explaining how things can be done and exposing the tricks. That puts them in the white-hat hacker camp, not the black-hat hacker camp.

The idea of turning some students loose on trying to get evil patches past some kernel maintainers that had worried me didn't appear to be doing adequate review is something that had crossed my mind over 10 or 15 years ago. I just didn't do it because, (a) the obvious ethics concerns, and (b) it wouldn't actually tell us anything new.

Also, even the assistant department head of the UMN CS department has admitted that this was clearly an IRB failure, and that what they did was clearly Human Subject Research that should have been stopped cold at the "get permission from the IRB" stage. So that puts them in the gray-hat category at best.

Quoted 3 lines

You shouldn't be banning them, you should be listening to them and seeing if they found any constructive ways to improve and harden the maintenance process against these sorts of things.

Well, the paper is available. Aside from the obvious, "be more careful with code reviews", they had the advice of adding to our Code of Conduct, "don't do this unethical thing we just did". Which might or might not work in terms of preventing academics who submitted patches in bad faith, but I very much would prevent someone working for the Ministry of State Security.

So you could consider doing an in-depth review of the patches sent from umn.edu to be a step towards doing more careful review. Let's see what we learn from that analysis.

- Ted

maintainer
#576 lore raw
Quoted 3 lines · Theodore Ts'o

So you could consider doing an in-depth review of the patches sent from umn.edu to be a step towards doing more careful review. Let's see what we learn from that analysis.

My take is this is "as expected" from people operating static analyzers and other tools. At best they are good at pointing to potential problems, but typicaly lack the kernel specific knowledge to be fully relied on to make a fix independently. Further, it is very rare that people doing this work would be able to test their patches.

At least I always check this stuff no matter who sends it.

Even well reputed people like Nick and Dan make errors and need their work checked.

I'm interested to see the measured error rate of these 190 patches - excluding the "not-useful but not wrong" determination.

Based on some Fixes: data mining I did recently it would be hard to get excited below about 10% errors.

Jason

#577 lore raw
In reply to Doug Ledford
Quoted 44 lines · Doug Ledford
Quoted 28 lines · Jason Gunthorpe
Quoted 14 lines · Greg Kroah-Hartman

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad
faith" to try to test the kernel community's ability to review "known
malicious" changes.  The result of these submissions can be found in a
paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University
of Minnesota) and Kangjie Lu (University of Minnesota).

I noted in the paper it says:

  A. Ethical Considerations

  Ensuring the safety of the experiment. In the experiment, we aim to demonstrate the practicality of stealthily introducing vulnerabilities
  through hypocrite commits. Our goal is not to introduce vulnerabilities to harm OSS. Therefore, we safely conduct the experiment to make sure that the introduced UAF bugs will not be merged into the actual Linux code

Quoted 7 lines

So, this revert is based on not trusting the authors to carry out their work in the manner they explained?

From what I've reviewed, and general sentiment of other people's reviews I've read, I am concerned this giant revert will degrade kernel quality more than the experimenters did - especially if they followed their stated methodology.

I have to agree with Jason. This seems like trying to push a thumbtack into a bulletin board using a pyle driver. Unless the researchers are lying (which I've not seen a clear indication of), the 190 patches you have selected here are nothing more than collateral damage while you are completely missing the supposed patch submission addresses from which the malicious patches were sent!

Quoted 2 lines

This all really sounds like a knee-jerk reaction to thier posting. I have to say, I think it's the wrong reaction to have.

Nothing stops you from participating in the review of this revert-series, if you think these are valuable commits. Patches getting the review, won't be reverted (as I understood).

Best regards,
Krzysztof

author maintainer
#578 lore raw
Quoted 45 lines · Krzysztof Kozlowski
Quoted 44 lines · Doug Ledford
Quoted 28 lines · Jason Gunthorpe
Quoted 14 lines · Greg Kroah-Hartman

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad
faith" to try to test the kernel community's ability to review "known
malicious" changes.  The result of these submissions can be found in a
paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University
of Minnesota) and Kangjie Lu (University of Minnesota).

I noted in the paper it says:

  A. Ethical Considerations

  Ensuring the safety of the experiment. In the experiment, we aim to demonstrate the practicality of stealthily introducing vulnerabilities
  through hypocrite commits. Our goal is not to introduce vulnerabilities to harm OSS. Therefore, we safely conduct the experiment to make sure that the introduced UAF bugs will not be merged into the actual Linux code

Quoted 7 lines

So, this revert is based on not trusting the authors to carry out their work in the manner they explained?

From what I've reviewed, and general sentiment of other people's reviews I've read, I am concerned this giant revert will degrade kernel quality more than the experimenters did - especially if they followed their stated methodology.

I have to agree with Jason. This seems like trying to push a thumbtack into a bulletin board using a pyle driver. Unless the researchers are lying (which I've not seen a clear indication of), the 190 patches you have selected here are nothing more than collateral damage while you are completely missing the supposed patch submission addresses from which the malicious patches were sent!

Quoted 6 lines
Quoted 2 lines

This all really sounds like a knee-jerk reaction to thier posting. I have to say, I think it's the wrong reaction to have.

Nothing stops you from participating in the review of this revert-series, if you think these are valuable commits. Patches getting the review, won't be reverted (as I understood).

You understand correctly :)

#579 lore raw
In reply to Greg Kroah-Hartman
Quoted 2 lines · Greg Kroah-Hartman

Revert "pinctrl: axp209: Fix NULL pointer dereference after
allocation"

There is nothing wrong with this patch that I can see. It's pretty trivial to inspect.

Quoted 1 line

Revert "gpio: aspeed: fix a potential NULL pointer dereference"

I don't see the problem with this either.

There seem to be legit code coming out of umn.edu as well. To me it seems like students getting assigned to fix random NULL pointer dereferences, seems unfair that their first contributions should be punished for what some researcher did.

But I would personally like to discuss the ethics of this study with the headmaster of this university.

Yours,
Linus Walleij

author maintainer
#580 lore raw
Quoted 8 lines · Linus Walleij
Quoted 2 lines · Greg Kroah-Hartman

Revert "pinctrl: axp209: Fix NULL pointer dereference after
allocation"

There is nothing wrong with this patch that I can see. It's pretty trivial to inspect.

Now dropped.

Quoted 4 lines
Quoted 2 lines

Revert "gpio: aspeed: fix a potential NULL pointer dereference"

I don't see the problem with this either.

Also now dropped from my tree, thanks for the review!

greg k-h

#581 lore raw
In reply to Greg Kroah-Hartman
Quoted 5 lines · Greg Kroah-Hartman

I'll take this through my tree, so no need for any maintainer to worry about this, but they should be aware that future submissions from anyone with a umn.edu address should be by default-rejected unless otherwise determined to actually be a valid fix (i.e. they provide proof and you can verify it, but really, why waste your time doing that extra work?)

Frankly, the last bit is nonsense. If nothing else, consider the situation when somebody from UMN (which is a lot bigger than the group in question, but hell with it - somebody really from that group) posts an analysis of a real bug, along with a correct fix. With valid proof of correctness. What should we do? Leave the bug in place? Unattractive, to put it mildly. Write a fix and try to make it different from theirs? Not always feasible. Write a fix without looking at theirs and commit it? And if it happens to coincide with theirs, then what?

FWIW, I do believe their claims that they tried to avoid introducing bugs and creating problems in general. So did RT[F]M, for that matter. However, the very nature of their "experiment"[1] required deflecting review. With obvious effects...

[1] I won't go into its value, relevance of threat model, etc. at the moment - proper comments on that paper will take more time than I'm likely to have during the next couple of weeks.

#582 lore raw
In reply to Greg Kroah-Hartman

Hi!

I don't believe doing huge revert is good idea.

Quoted 10 lines

I have been meaning to do this for a while, but recent events have finally forced me to do so.

Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).

Do you have examples of those "bad faith" commits? Because that's not what the paper says. While I identified one unneccessary commit during stable review, I don't believe it was done in bad faith. According to the paper, there are just three (3) (!!) bad faith commits, and were done from gmail addresses, and steps were taken so to prevent them from entering git.

I do believe we have problem with -stable kernel getting way too many changes that are not really fixing anything, or are fixing stuff like "16 bytes memory leak once per boot" or printk log levels. I tried pushing back with little success. Stable kernel rules are not consistent with patches actually accepted into stable. Plus, it is quicker to get patch to stable release than to mainline release, which I believe is additional problem.

For the reference, the paper seems to be available here:

https://github.com/QiushiWu/QiushiWu.github.io/blob/main/papers/OpenSourceInsecurity.pdf

Quoting the paper:

Experiment overview. In this experiment, we leverage program-analysis techniques to prepare three minor hypocrite commits that introduce UAF bugs in the Linux kernel. The three cases represent three different kinds of hypocrite commits:
(1) a coding-improvement change that simply prints an error message, (2) a patch for fixing a memory-leak bug, and (3) a patch for fixing a refcount bug. We submit the three patches using a random Gmail account to the Linux community and seek their feedback—whether the patches look good to them. The experiment is to demonstrate the practicality of hypocrite commits, and it will not introduce or intend to introduce actual UAF or any other bug in the Linux kernel.
A. Ethical Considerations
Ensuring the safety of the experiment. In the experiment, we aim to demonstrate the practicality of stealthily introducing vulnerabilities through hypocrite commits. Our goal is not to introduce vulnerabilities to harm OSS. Therefore, we safely conduct the experiment to make sure that the introduced UAF bugs will not be merged into the actual Linux code. In addition to the minor patches that introduce UAF conditions, we also prepare the correct patches for fixing the minor issues. We send the minor patches to the Linux community through email to seek their feedback. Fortunately, there is a time window between the confirmation of a patch and the merging of the patch. Once a maintainer confirmed our patches, e.g., an email reply indicating “looks good”, we immediately notify the maintainers of the introduced UAF and request them to not go ahead to apply the patch. At the same time, we point out the correct fixing of the bug and provide our correct patch. In all the three cases, maintainers explicitly acknowledged and confirmed to not move forward with the incorrect patches
...

Best regards,
Pavel

Signature · 1 line
http://www.livejournal.com/~pavelmachek
#583 lore raw
In reply to Greg Kroah-Hartman
Quoted 5 lines · Greg Kroah-Hartman

Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.

Hi,

The LF Technical Advisory Board is taking a look at the history of UMN's contributions and their associated research projects. At present, it seems the vast majority of patches have been in good faith, but we're continuing to review the work. Several public conversations have already started around our expectations of contributors[1].

- Kees, speaking on behalf of the TAB

[1] https://lore.kernel.org/ksummit/a72a13e56ee5f19b0dee9ae8c1928b020e8809c2.camel@HansenPartnership.com/

Signature · 1 line
Kees Cook