Revertion of all of the umn.edu commits
Subsystems (158)
Greg Kroah-Hartman
maintainerRe: [PATCH 072/190] Revert "net: atm: Reduce the severity of logging in unlink_clip_vcc"
In reply to Greg Kroah-HartmanQuoted 52 lines · Greg Kroah-Hartman
This reverts commit
60f5c4aaae452ae9252128ef7f9ae222aa70c569.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- net/atm/clip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)net/atm/clip.c +3
-3@@ -89,7 +89,7 @@ static void unlink_clip_vcc(struct clip_vcc *clip_vcc)struct clip_vcc **walk;if (!entry) { -pr_err ("!clip_vcc->entry (clip_vcc %p)\n" , clip_vcc); +pr_crit ("!clip_vcc->entry (clip_vcc %p)\n" , clip_vcc);return ; }netif_tx_lock_bh (entry->neigh->dev);/* block clip_start_xmit() */ @@ -109,10 +109,10 @@ static void unlink_clip_vcc(struct clip_vcc *clip_vcc) error =neigh_update (entry->neigh,NULL ,NUD_NONE ,NEIGH_UPDATE_F_ADMIN ,0 );if (error) -pr_err ("neigh_update failed with %d\n" , error); +pr_crit ("neigh_update failed with %d\n" , error); goto out; } -pr_err ("ATMARP: failed (entry %p, vcc 0x%p)\n" , entry, clip_vcc); +pr_crit ("ATMARP: failed (entry %p, vcc 0x%p)\n" , entry, clip_vcc); out:netif_tx_unlock_bh (entry->neigh->dev); }Signature · 1 line
2.31.1
The original here was pointless, but did not cause a problem, so I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 73/190 Revert "media: rcar_drif: fix a memory disclosure"
In reply to Greg Kroah-HartmanThis reverts commit d39083234c60519724c6ed59509a2129fd2aed41.
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/media/platform/rcar_drif.c | 1 - 1 file changed, 1 deletion(-)
drivers/media/platform/rcar_drif.c +0 -1
@@ -915,7 +915,6 @@ static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, {struct rcar_drif_sdr *sdr =video_drvdata (file); -memset (f->fmt.sdr.reserved,0 ,sizeof (f->fmt.sdr.reserved)); f->fmt.sdr.pixelformat = sdr->fmt->pixelformat; f->fmt.sdr.buffersize = sdr->fmt->buffersize;
Signature · 1 line
2.31.1
Re: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure"
Hi Greg,
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
d39083234c60519724c6ed59509a2129fd2aed41.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
Cc Kangjie Lu <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Upon a second look, I still see nothing wrong with the original commit. However, as I'm no v4l expert, I'd like to defer to the experts for final judgement.
drivers/media/platform/rcar_drif.c static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, · line 920
Quoted 10 lines
drivers/media/platform/rcar_drif.c +0
-1@@ -915,7 +915,6 @@ static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, {struct rcar_drif_sdr *sdr =video_drvdata (file); -memset (f->fmt.sdr.reserved,0 ,sizeof (f->fmt.sdr.reserved)); f->fmt.sdr.pixelformat = sdr->fmt->pixelformat; f->fmt.sdr.buffersize = sdr->fmt->buffersize;
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure"
Hi Geert,
Quoted 23 lines · Geert Uytterhoeven
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
d39083234c60519724c6ed59509a2129fd2aed41.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
Cc Kangjie Lu <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 3 lines
Upon a second look, I still see nothing wrong with the original commit. However, as I'm no v4l expert, I'd like to defer to the experts for final judgement.
It seems fine to me, but it also seems unneeded, as the V4L2 core clears the whole f->fmt union before calling this operation. The revert will this improve performance very slightly.
Quoted 10 lines
Quoted 10 lines
drivers/media/platform/rcar_drif.c +0
-1@@ -915,7 +915,6 @@ static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, {struct rcar_drif_sdr *sdr =video_drvdata (file); -memset (f->fmt.sdr.reserved,0 ,sizeof (f->fmt.sdr.reserved)); f->fmt.sdr.pixelformat = sdr->fmt->pixelformat; f->fmt.sdr.buffersize = sdr->fmt->buffersize;
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure"
Hi Laurent,
Quoted 24 lines · Laurent Pinchart
Quoted 23 lines · Geert Uytterhoeven
Quoted 21 lines · Greg Kroah-Hartman
This reverts commit
d39083234c60519724c6ed59509a2129fd2aed41.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 Geert Uytterhoeven <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 7 lines
Quoted 3 lines
Upon a second look, I still see nothing wrong with the original commit. However, as I'm no v4l expert, I'd like to defer to the experts for final judgement.
It seems fine to me, but it also seems unneeded, as the V4L2 core clears the whole
f->fmtunion before calling this operation. The revert will this improve performance very slightly.
Hmm, that means very recent commit f12b81e47f48940a ("media: core
headers: fix kernel-doc warnings") is not fully correct, as it added kerneldoc stating this is the responsibility of the driver:
+ * @reserved: drivers and applications must zero this array
Anyway, it doesn't look like this umn.edu patch introduced a bug.
Quoted 9 lines
Quoted 9 lines
drivers/media/platform/rcar_drif.c static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, · line 919
Quoted 9 lines
drivers/media/platform/rcar_drif.c +0
-1@@ -915,7 +915,6 @@ static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, {struct rcar_drif_sdr *sdr =video_drvdata (file); -memset (f->fmt.sdr.reserved,0 ,sizeof (f->fmt.sdr.reserved)); f->fmt.sdr.pixelformat = sdr->fmt->pixelformat; f->fmt.sdr.buffersize = sdr->fmt->buffersize;
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure"
Quoted 36 lines · Geert Uytterhoeven
Hi Laurent,
Quoted 24 lines · Laurent Pinchart
Quoted 23 lines · Geert Uytterhoeven
Quoted 21 lines · Greg Kroah-Hartman
This reverts commit
d39083234c60519724c6ed59509a2129fd2aed41.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 Geert Uytterhoeven <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Quoted 7 lines
Quoted 3 lines
Upon a second look, I still see nothing wrong with the original commit. However, as I'm no v4l expert, I'd like to defer to the experts for final judgement.
It seems fine to me, but it also seems unneeded, as the V4L2 core clears the whole
f->fmtunion before calling this operation. The revert will this improve performance very slightly.
Quoted 5 lines
Hmm, that means very recent commit
f12b81e47f48940a("media: core
headers: fix kernel-doc warnings") is not fully correct, as it added kerneldoc stating this is the responsibility of the driver:+ * @reserved: drivers and applications must zero this array
Actually, it is the V4L2 core used by the driver that zeroes this. So drivers don't need to do this, it's done for them. It used to be the responsibility of the driver itself, but this was all moved to the core framework a long time ago since, duh!, drivers always forgot this :-)
Quoted 2 lines
Anyway, it doesn't look like this umn.edu patch introduced a bug.
I haven't seen any bugs introduced by the media patches from umn.edu.
Regards,
Hans
Quoted 15 lines
Quoted 10 lines
Quoted 10 lines
drivers/media/platform/rcar_drif.c static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, · line 919
Quoted 10 lines
drivers/media/platform/rcar_drif.c +0
-1@@ -915,7 +915,6 @@ static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, {struct rcar_drif_sdr *sdr =video_drvdata (file); -memset (f->fmt.sdr.reserved,0 ,sizeof (f->fmt.sdr.reserved)); f->fmt.sdr.pixelformat = sdr->fmt->pixelformat; f->fmt.sdr.buffersize = sdr->fmt->buffersize;Gr{oetje,eeting}s,
Geert
Mauro Carvalho Chehab
Reviewed-byRe: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure"
Em Thu, 22 Apr 2021 09:29:36 +0200
Hans Verkuil <[email protected]> escreveu:
Quoted 49 lines · Geert Uytterhoeven
Quoted 36 lines
Hi Laurent,
Quoted 24 lines · Laurent Pinchart
Quoted 23 lines · Geert Uytterhoeven
Quoted 21 lines · Greg Kroah-Hartman
This reverts commit
d39083234c60519724c6ed59509a2129fd2aed41.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 Geert Uytterhoeven <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Quoted 7 lines
Quoted 3 lines
Upon a second look, I still see nothing wrong with the original commit. However, as I'm no v4l expert, I'd like to defer to the experts for final judgement.
It seems fine to me, but it also seems unneeded, as the V4L2 core clears the whole
f->fmtunion before calling this operation. The revert will this improve performance very slightly.Quoted 5 lines
Hmm, that means very recent commit
f12b81e47f48940a("media: core
headers: fix kernel-doc warnings") is not fully correct, as it added kerneldoc stating this is the responsibility of the driver:+ * @reserved: drivers and applications must zero this array
Actually, it is the V4L2 core used by the driver that zeroes this. So drivers don't need to do this, it's done for them. It used to be the responsibility of the driver itself, but this was all moved to the core framework a long time ago since, duh!, drivers always forgot this :-)
Quoted 1 line
Quoted 3 lines
Quoted 1 line
Anyway, it doesn't look like this umn.edu patch introduced a bug.
I haven't seen any bugs introduced by the media patches from umn.edu.
Hi Greg,
I also double-checked all media revert patches from:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git umn.edu-reverts
currently on this patch:
6f4747a872ad Revert "ethtool: fix a potential missing-check bug"
That's a summary of what I found:
All of those should be dropped from your tree:
84fdb5856edd Revert "media: si2165: fix a missing check of return value"
867043f2206e Revert "media: video-mux: fix null pointer dereferences"
78ae4b621297 Revert "media: cx231xx: replace BUG_ON with recovery code"
5be328a55817 Revert "media: saa7146: Avoid using BUG_ON as an assertion"
81ce83158d22 Revert "media: davinci/vpfe_capture.c: Avoid BUG_ON for register failure"
3319b39504b8 Revert "media: media/saa7146: fix incorrect assertion in saa7146_buffer_finish"
b393f7cb29a2 Revert "media: rcar-vin: Fix a reference count leak."
197bc5d03682 Revert "media: rcar-vin: Fix a reference count leak."
2fd9cf68bbb6 Revert "media: rockchip/rga: Fix a reference count leak."
d1e4614eca24 Revert "media: platform: fcp: Fix a reference count leak."
416e8a6ae07f Revert "media: camss: Fix a reference count leak."
06b793ae497b Revert "media: s5p-mfc: Fix a reference count leak"
8f9fc14a7cc9 Revert "media: stm32-dcmi: Fix a reference count leak"
556e1f86ba24 Revert "media: ti-vpe: Fix a missing check and reference count leak"
5f5b1722ad0d Revert "media: exynos4-is: Fix a reference count leak"
f4c758c6c1cb Revert "media: exynos4-is: Fix a reference count leak due to pm_runtime_get_sync"
beb717878c73 Revert "media: exynos4-is: Fix several reference count leaks due to pm_runtime_get_sync
7066ec748bfd Revert "media: sti: Fix reference count leaks"
cdd117093b19 Revert "media: st-delta: Fix reference count leak in delta_run_work"
As, after my re-check, they all seem to be addressing real issues. So, NACK on those.
This patch (073/190):
899ab4671bc0 Revert "media: rcar_drif: fix a memory disclosure"
While it doesn't hurt, it is useless, as the media core already prevents memory disclosure. So, it should be reverted.
So, for patch 073/190:
Thanks,
Mauro
Fabrizio Castro
Reviewed-byRE: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure"
Dear All,
Quoted 127 lines
From: Mauro Carvalho Chehab <[email protected]>
Sent: 22 April 2021 10:04
Subject: Re: [PATCH 073/190] Revert "media:rcar_drif: fix a memory disclosure"Em Thu, 22 Apr 2021 09:29:36 +0200
Hans Verkuil <[email protected]> escreveu:Quoted 10 lines · Geert Uytterhoeven
Quoted 9 lines
Hi Laurent,
Quoted 5 lines · Laurent Pinchart
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Greg Kroah-Hartman
This reverts commit
d39083234c60519724c6ed59509a2129fd2aed41.Commits from @umn.edu addresses have been found to be submitted in
"bad
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
faith" to try to test the kernel community's ability to review
"known
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
malicious" changes. The result of these submissions can be found
in a
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
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
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
of Minnesota) and Kangjie Lu (University of Minnesota).
Because of this, all submissions from this group must be reverted
from
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
the kernel tree and will need to be re-reviewed again to determine
if
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
they actually are a valid fix. Until that work is complete, remove
this
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
change to ensure that no problems are being introduced into the codebase.
Cc Kangjie Lu <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Upon a second look, I still see nothing wrong with the original
commit.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
However, as I'm no v4l expert, I'd like to defer to the experts for
final
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
judgement.
It seems fine to me, but it also seems unneeded, as the V4L2 core
clears
Quoted 15 lines
Quoted 8 lines
Quoted 2 lines
the whole
f->fmtunion before calling this operation. The revert will this improve performance very slightly.Hmm, that means very recent commit
f12b81e47f48940a("media: core
headers: fix kernel-doc warnings") is not fully correct, as it added kerneldoc stating this is the responsibility of the driver:+ * @reserved: drivers and applications must zero this array
Actually, it is the V4L2 core used by the driver that zeroes this. So drivers don't need to do this, it's done for them. It used to be the responsibility of the driver itself, but this was all moved to the core framework a long time ago since, duh!, drivers always forgot this :-)
Quoted 1 line
Quoted 3 lines
Quoted 1 line
Anyway, it doesn't look like this umn.edu patch introduced a bug.
I haven't seen any bugs introduced by the media patches from umn.edu.
Hi Greg,
I also double-checked all media revert patches from:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
umn.edu-revertscurrently on this patch:
6f4747a872adRevert "ethtool: fix a potential missing-check bug"That's a summary of what I found:
All of those should be dropped from your tree:
84fdb5856eddRevert "media: si2165: fix a missing check of
return value"867043f2206e Revert "media: video-mux: fix null pointer dereferences" 78ae4b621297 Revert "media: cx231xx: replace BUG_ON with recovery code" 5be328a55817 Revert "media: saa7146: Avoid using BUG_ON as an assertion" 81ce83158d22 Revert "media: davinci/vpfe_capture.c: Avoid BUG_ON for register failure" 3319b39504b8 Revert "media: media/saa7146: fix incorrectassertion in
saa7146_buffer_finish"
b393f7cb29a2Revert "media: rcar-vin: Fix a reference count
leak."
197bc5d03682Revert "media: rcar-vin: Fix a reference count
leak."
2fd9cf68bbb6Revert "media: rockchip/rga: Fix a reference count
leak."
d1e4614eca24Revert "media: platform: fcp: Fix a reference
count leak."
416e8a6ae07fRevert "media: camss: Fix a reference count leak."
06b793ae497bRevert "media: s5p-mfc: Fix a reference count
leak"
8f9fc14a7cc9Revert "media: stm32-dcmi: Fix a reference count
leak"
556e1f86ba24Revert "media: ti-vpe: Fix a missing check and
reference count leak"
5f5b1722ad0dRevert "media: exynos4-is: Fix a reference count
leak"
f4c758c6c1cbRevert "media: exynos4-is: Fix a reference count
leak due topm_runtime_get_sync"
beb717878c73Revert "media: exynos4-is: Fix several reference
count leaks due topm_runtime_get_sync
7066ec748bfdRevert "media: sti: Fix reference count leaks"
cdd117093b19Revert "media: st-delta: Fix reference count leak
indelta_run_work"As, after my re-check, they all seem to be addressing real issues. So, NACK on those.
This patch (073/190):
Quoted 8 lines
899ab4671bc0Revert "media:rcar_drif: fix a memory disclosure"While it doesn't hurt, it is useless, as the media core already prevents memory disclosure. So, it should be reverted.
So, for patch 073/190:
Reviewed-by Mauro Carvalho Chehab <[email protected]>
I agree, this patch should be reverted.
Quoted 3 lines
Thanks,
Mauro
Greg Kroah-Hartman
maintainerRe: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure"
Quoted 134 lines · Fabrizio Castro
Dear All,
Quoted 132 lines
From: Mauro Carvalho Chehab <[email protected]>
Sent: 22 April 2021 10:04
Subject: Re: [PATCH 073/190] Revert "media:rcar_drif: fix a memory disclosure"Em Thu, 22 Apr 2021 09:29:36 +0200
Hans Verkuil <[email protected]> escreveu:Quoted 10 lines · Geert Uytterhoeven
Quoted 9 lines
Hi Laurent,
Quoted 5 lines · Laurent Pinchart
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Greg Kroah-Hartman
This reverts commit
d39083234c60519724c6ed59509a2129fd2aed41.Commits from @umn.edu addresses have been found to be submitted in
"bad
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
faith" to try to test the kernel community's ability to review
"known
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
malicious" changes. The result of these submissions can be found
in a
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
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
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
of Minnesota) and Kangjie Lu (University of Minnesota).
Because of this, all submissions from this group must be reverted
from
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
the kernel tree and will need to be re-reviewed again to determine
if
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
they actually are a valid fix. Until that work is complete, remove
this
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
change to ensure that no problems are being introduced into the codebase.
Cc Kangjie Lu <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Upon a second look, I still see nothing wrong with the original
commit.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
However, as I'm no v4l expert, I'd like to defer to the experts for
final
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
judgement.
It seems fine to me, but it also seems unneeded, as the V4L2 core
clears
Quoted 15 lines
Quoted 8 lines
Quoted 2 lines
the whole
f->fmtunion before calling this operation. The revert will this improve performance very slightly.Hmm, that means very recent commit
f12b81e47f48940a("media: core
headers: fix kernel-doc warnings") is not fully correct, as it added kerneldoc stating this is the responsibility of the driver:+ * @reserved: drivers and applications must zero this array
Actually, it is the V4L2 core used by the driver that zeroes this. So drivers don't need to do this, it's done for them. It used to be the responsibility of the driver itself, but this was all moved to the core framework a long time ago since, duh!, drivers always forgot this :-)
Quoted 1 line
Quoted 3 lines
Quoted 1 line
Anyway, it doesn't look like this umn.edu patch introduced a bug.
I haven't seen any bugs introduced by the media patches from umn.edu.
Hi Greg,
I also double-checked all media revert patches from:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
umn.edu-revertscurrently on this patch:
6f4747a872adRevert "ethtool: fix a potential missing-check bug"That's a summary of what I found:
All of those should be dropped from your tree:
84fdb5856eddRevert "media: si2165: fix a missing check of
return value"867043f2206e Revert "media: video-mux: fix null pointer dereferences" 78ae4b621297 Revert "media: cx231xx: replace BUG_ON with recovery code" 5be328a55817 Revert "media: saa7146: Avoid using BUG_ON as an assertion" 81ce83158d22 Revert "media: davinci/vpfe_capture.c: Avoid BUG_ON for register failure" 3319b39504b8 Revert "media: media/saa7146: fix incorrectassertion in
saa7146_buffer_finish"
b393f7cb29a2Revert "media: rcar-vin: Fix a reference count
leak."
197bc5d03682Revert "media: rcar-vin: Fix a reference count
leak."
2fd9cf68bbb6Revert "media: rockchip/rga: Fix a reference count
leak."
d1e4614eca24Revert "media: platform: fcp: Fix a reference
count leak."
416e8a6ae07fRevert "media: camss: Fix a reference count leak."
06b793ae497bRevert "media: s5p-mfc: Fix a reference count
leak"
8f9fc14a7cc9Revert "media: stm32-dcmi: Fix a reference count
leak"
556e1f86ba24Revert "media: ti-vpe: Fix a missing check and
reference count leak"
5f5b1722ad0dRevert "media: exynos4-is: Fix a reference count
leak"
f4c758c6c1cbRevert "media: exynos4-is: Fix a reference count
leak due topm_runtime_get_sync"
beb717878c73Revert "media: exynos4-is: Fix several reference
count leaks due topm_runtime_get_sync
7066ec748bfdRevert "media: sti: Fix reference count leaks"
cdd117093b19Revert "media: st-delta: Fix reference count leak
indelta_run_work"As, after my re-check, they all seem to be addressing real issues. So, NACK on those.
This patch (073/190):
899ab4671bc0Revert "media:rcar_drif: fix a memory disclosure"While it doesn't hurt, it is useless, as the media core already prevents memory disclosure. So, it should be reverted.
Quoted 7 lines
Quoted 3 lines
So, for patch 073/190:
Reviewed-by Mauro Carvalho Chehab <[email protected]>I agree, this patch should be reverted.
Reviewed-by Fabrizio Castro <[email protected]>
Thanks for the review, I've now dropped the media patches listed above, and kept this one and added both of your r-b to it.
greg k-h
Greg Kroah-Hartman
maintainerRe: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure"
In reply to Mauro Carvalho ChehabQuoted 94 lines · Mauro Carvalho Chehab
Em Thu, 22 Apr 2021 09:29:36 +0200
Hans Verkuil <[email protected]> escreveu:Quoted 49 lines · Geert Uytterhoeven
Quoted 36 lines
Hi Laurent,
Quoted 24 lines · Laurent Pinchart
Quoted 23 lines · Geert Uytterhoeven
Quoted 21 lines · Greg Kroah-Hartman
This reverts commit
d39083234c60519724c6ed59509a2129fd2aed41.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 Geert Uytterhoeven <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Quoted 7 lines
Quoted 3 lines
Upon a second look, I still see nothing wrong with the original commit. However, as I'm no v4l expert, I'd like to defer to the experts for final judgement.
It seems fine to me, but it also seems unneeded, as the V4L2 core clears the whole
f->fmtunion before calling this operation. The revert will this improve performance very slightly.Quoted 5 lines
Hmm, that means very recent commit
f12b81e47f48940a("media: core
headers: fix kernel-doc warnings") is not fully correct, as it added kerneldoc stating this is the responsibility of the driver:+ * @reserved: drivers and applications must zero this array
Actually, it is the V4L2 core used by the driver that zeroes this. So drivers don't need to do this, it's done for them. It used to be the responsibility of the driver itself, but this was all moved to the core framework a long time ago since, duh!, drivers always forgot this :-)
Quoted 1 line
Quoted 3 lines
Quoted 1 line
Anyway, it doesn't look like this umn.edu patch introduced a bug.
I haven't seen any bugs introduced by the media patches from umn.edu.
Hi Greg,
I also double-checked all media revert patches from:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.gitumn.edu-revertscurrently on this patch:
6f4747a872adRevert "ethtool: fix a potential missing-check bug"That's a summary of what I found:
All of those should be dropped from your tree:
84fdb5856eddRevert "media: si2165: fix a missing check of return value"
867043f2206eRevert "media: video-mux: fix null pointer dereferences"
78ae4b621297Revert "media: cx231xx: replaceBUG_ONwith recovery code"
5be328a55817Revert "media: saa7146: Avoid usingBUG_ONas an assertion"
81ce83158d22Revert "media:davinci/vpfe_capture.c: AvoidBUG_ONfor register failure"
3319b39504b8Revert "media: media/saa7146: fix incorrect assertion insaa7146_buffer_finish"
b393f7cb29a2Revert "media: rcar-vin: Fix a reference count leak."
197bc5d03682Revert "media: rcar-vin: Fix a reference count leak."
2fd9cf68bbb6Revert "media: rockchip/rga: Fix a reference count leak."
d1e4614eca24Revert "media: platform: fcp: Fix a reference count leak."
416e8a6ae07fRevert "media: camss: Fix a reference count leak."
06b793ae497bRevert "media: s5p-mfc: Fix a reference count leak"
8f9fc14a7cc9Revert "media: stm32-dcmi: Fix a reference count leak"
556e1f86ba24Revert "media: ti-vpe: Fix a missing check and reference count leak"
5f5b1722ad0dRevert "media: exynos4-is: Fix a reference count leak"
f4c758c6c1cbRevert "media: exynos4-is: Fix a reference count leak due topm_runtime_get_sync"
beb717878c73Revert "media: exynos4-is: Fix several reference count leaks due topm_runtime_get_sync
7066ec748bfdRevert "media: sti: Fix reference count leaks"
cdd117093b19Revert "media: st-delta: Fix reference count leak indelta_run_work"As, after my re-check, they all seem to be addressing real issues. So, NACK on those.
This patch (073/190):
Quoted 8 lines
899ab4671bc0Revert "media:rcar_drif: fix a memory disclosure"While it doesn't hurt, it is useless, as the media core already prevents memory disclosure. So, it should be reverted.
So, for patch 073/190:
Reviewed-by Mauro Carvalho Chehab <[email protected]>
Wonderful, thank you so much for doing this review and letting me know. I'll drop the ones you mention here.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 74/190 Revert "drm/gma500: fix memory disclosures due to uninitialized bytes"
In reply to Greg Kroah-HartmanThis reverts commit ec3b7b6eb8c90b52f61adff11b6db7a8db34de19.
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/gpu/drm/gma500/oaktrail_crtc.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/gma500/oaktrail_crtc.c +0 -2
@@ -129,7 +129,6 @@ static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,s32 freq_error, min_error =100000 ;memset (best_clock,0 ,sizeof (*best_clock)); -memset (&clock,0 ,sizeof (clock));for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { for (clock.n = limit->n.min; clock.n <= limit->n.max;
@@ -186,7 +185,6 @@ static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,int err = target;memset (best_clock,0 ,sizeof (*best_clock)); -memset (&clock,0 ,sizeof (clock));for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { for (clock.p1 = limit->p1.min; clock.p1 <= limit->p1.max;
Signature · 1 line
2.31.1
Re: [PATCH 074/190] Revert "drm/gma500: fix memory disclosures due to uninitialized bytes"
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
ec3b7b6eb8c90b52f61adff11b6db7a8db34de19.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 Daniel Vetter <[email protected]>Cc httpsSigned-off-by Greg Kroah-Hartman <[email protected]>
gma500 is dead enough I'm not going to spend a single cycle thinking whether this fixes anything or not and hence whether the revert is ok or not.
-Daniel
Quoted 25 lines
--- drivers/gpu/drm/gma500/oaktrail_crtc.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/gma500/oaktrail_crtc.c +0
-3@@ -129,7 +129,6 @@ static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,s32 freq_error, min_error =100000 ;memset (best_clock,0 ,sizeof (*best_clock)); -memset (&clock,0 ,sizeof (clock));for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { for (clock.n = limit->n.min; clock.n <= limit->n.max;@@ -186,7 +185,6 @@ static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,int err = target;memset (best_clock,0 ,sizeof (*best_clock)); -memset (&clock,0 ,sizeof (clock));for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { for (clock.p1 = limit->p1.min; clock.p1 <= limit->p1.max; --
Quoted 2 lines
2.31.1
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Greg Kroah-Hartman
maintainerRe: [PATCH 074/190] Revert "drm/gma500: fix memory disclosures due to uninitialized bytes"
Quoted 24 lines · Daniel Vetter
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
ec3b7b6eb8c90b52f61adff11b6db7a8db34de19.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 Daniel Vetter <[email protected]>Cc httpsSigned-off-by Greg Kroah-Hartman <[email protected]>
Quoted 5 lines
Acked-by Daniel Vetter <[email protected]>gma500 is dead enough I'm not going to spend a single cycle thinking whether this fixes anything or not and hence whether the revert is ok or not.
Sounds good to me, I'll keep the reverts.
greg k-h
Greg Kroah-Hartman
maintainerRe: [PATCH 074/190] Revert "drm/gma500: fix memory disclosures due to uninitialized bytes"
Quoted 25 lines · Greg Kroah-Hartman
Quoted 24 lines · Daniel Vetter
Quoted 21 lines · Greg Kroah-Hartman
This reverts commit
ec3b7b6eb8c90b52f61adff11b6db7a8db34de19.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 Daniel Vetter <[email protected]>Cc httpsSigned-off-by Greg Kroah-Hartman <[email protected]>
Quoted 7 lines
Quoted 5 lines
Acked-by Daniel Vetter <[email protected]>gma500 is dead enough I'm not going to spend a single cycle thinking whether this fixes anything or not and hence whether the revert is ok or not.
Sounds good to me, I'll keep the reverts.
I've re-reviewed this one, and it seems sane, so I'll drop the revert.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 75/190 Revert "gma/gma500: fix a memory disclosure bug due to uninitialized bytes"
In reply to Greg Kroah-HartmanThis reverts commit 57a25a5f754ce27da2cfa6f413cfd366f878db76.
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/gpu/drm/gma500/cdv_intel_display.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/gma500/cdv_intel_display.c +0 -2
@@ -405,8 +405,6 @@ static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit,struct gma_crtc *gma_crtc =to_gma_crtc (crtc);struct gma_clock_t clock; -memset (&clock,0 ,sizeof (clock)); -switch (refclk) {case 27000 :if (target <200000 ) {
Signature · 1 line
2.31.1
Re: [PATCH 075/190] Revert "gma/gma500: fix a memory disclosure bug due to uninitialized bytes"
Hi!
Quoted 8 lines
drivers/gpu/drm/gma500/cdv_intel_display.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/gma500/cdv_intel_display.c +0
-0
drivers/gpu/drm/gma500/cdv_intel_display.c static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit, · line 410
Quoted 8 lines
drivers/gpu/drm/gma500/cdv_intel_display.c +0
-2@@ -405,8 +405,6 @@ static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit,struct gma_crtc *gma_crtc =to_gma_crtc (crtc);struct gma_clock_t clock; -memset (&clock,0 ,sizeof (clock)); -switch (refclk) {case 27000 :if (target <200000 ) {
Original description is correct, we are returning with .vco and .dot unitialized which is at least very very ugly, so we should keep the memset and not revert this.
Best regards,
Pavel
Signature · 1 line
http://www.livejournal.com/~pavelmachek
Greg Kroah-Hartman
maintainerRe: [PATCH 075/190] Revert "gma/gma500: fix a memory disclosure bug due to uninitialized bytes"
Quoted 13 lines · Pavel Machek
Hi!
Quoted 11 lines
drivers/gpu/drm/gma500/cdv_intel_display.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/gma500/cdv_intel_display.c +0
-0@@ -405,8 +405,6 @@ static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit,struct gma_crtc *gma_crtc =to_gma_crtc (crtc);struct gma_clock_t clock;
Quoted 9 lines
drivers/gpu/drm/gma500/cdv_intel_display.c static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit, · line 410
Quoted 5 lines
drivers/gpu/drm/gma500/cdv_intel_display.c +0
-2-memset (&clock,0 ,sizeof (clock)); -switch (refclk) {case 27000 :if (target <200000 ) {Original description is correct, we are returning with .vco and .dot unitialized which is at least very very ugly, so we should keep the memset and not revert this.
Good point, revert now dropped, thanks.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 76/190 Revert "net: ixgbevf: fix a missing check of ixgbevf_write_msg_read_ack"
In reply to Greg Kroah-HartmanThis reverts commit 20d437ee8f4899573e6ea76c06ef0206e98bccb6.
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/ethernet/intel/ixgbevf/vf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/ixgbevf/vf.c +3 -2
@@ -508,8 +508,9 @@ static s32 ixgbevf_update_mc_addr_list_vf(struct ixgbe_hw *hw, vector_list[i++] =ixgbevf_mta_vector (hw, ha->addr); } -return ixgbevf_write_msg_read_ack (hw, msgbuf, msgbuf, -IXGBE_VFMAILBOX_SIZE ); +ixgbevf_write_msg_read_ack (hw, msgbuf, msgbuf,IXGBE_VFMAILBOX_SIZE ); + +return 0 ; }/**
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 076/190] Revert "net: ixgbevf: fix a missing check of ixgbevf_write_msg_read_ack"
Quoted 44 lines · Greg Kroah-Hartman
This reverts commit
20d437ee8f4899573e6ea76c06ef0206e98bccb6.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 Andrew Bowers <[email protected]>Cc Mukesh Ojha <[email protected]>Cc Jeff Kirsher <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/intel/ixgbevf/vf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/ixgbevf/vf.c +3
-2@@ -508,8 +508,9 @@ static s32 ixgbevf_update_mc_addr_list_vf(struct ixgbe_hw *hw, vector_list[i++] =ixgbevf_mta_vector (hw, ha->addr); } -return ixgbevf_write_msg_read_ack (hw, msgbuf, msgbuf, -IXGBE_VFMAILBOX_SIZE ); +ixgbevf_write_msg_read_ack (hw, msgbuf, msgbuf,IXGBE_VFMAILBOX_SIZE ); + +return 0 ; }/** Signature · 1 line
2.31.1
This commit is fine, I'll drop the revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 77/190 Revert "rapidio: fix a NULL pointer dereference when create_workqueue() fails"
In reply to Greg Kroah-HartmanThis reverts commit 23015b22e47c5409620b1726a677d69e5cd032ba.
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/rapidio/rio_cm.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/rapidio/rio_cm.c +0 -8
@@ -2138,14 +2138,6 @@ static int riocm_add_mport(struct device *dev,mutex_init (&cm->rx_lock);riocm_rx_fill (cm,RIOCM_RX_RING_SIZE ); cm->rx_wq =create_workqueue (DRV_NAME "/rxq" ); -if (!cm->rx_wq) { -riocm_error ("failed to allocate IBMBOX_%d on %s" , - cmbox, mport->name); -rio_release_outb_mbox (mport, cmbox); -kfree (cm); -return -ENOMEM ; - } -INIT_WORK (&cm->rx_work, rio_ibmsg_handler); cm->tx_slot =0 ;
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 077/190] Revert "rapidio: fix a NULL pointer dereference when create_workqueue() fails"
Quoted 48 lines · Greg Kroah-Hartman
This reverts commit
23015b22e47c5409620b1726a677d69e5cd032ba.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 Bounine <[email protected]>Cc Matt Porter <[email protected]>Cc Andrew Morton <[email protected]>Cc Linus Torvalds <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/rapidio/rio_cm.c | 8 -------- 1 file changed, 8 deletions(-)drivers/rapidio/rio_cm.c +0
-8@@ -2138,14 +2138,6 @@ static int riocm_add_mport(struct device *dev,mutex_init (&cm->rx_lock);riocm_rx_fill (cm,RIOCM_RX_RING_SIZE ); cm->rx_wq =create_workqueue (DRV_NAME "/rxq" ); -if (!cm->rx_wq) { -riocm_error ("failed to allocate IBMBOX_%d on %s" , - cmbox, mport->name); -rio_release_outb_mbox (mport, cmbox); -kfree (cm); -return -ENOMEM ; - } -INIT_WORK (&cm->rx_work, rio_ibmsg_handler); cm->tx_slot =0 ;Signature · 1 line
2.31.1
This patch has a memory leak on the error path here, it does not clean up everything properly. So I'll keep the revert and fix it up properly in a follow-on patch.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 78/190 Revert "ASoC: cs43130: fix a NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit a2be42f18d409213bb7e7a736e3ef6ba005115bb.
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/soc/codecs/cs43130.c | 2 -- 1 file changed, 2 deletions(-)
sound/soc/codecs/cs43130.c +0 -2
@@ -2319,8 +2319,6 @@ static int cs43130_probe(struct snd_soc_component *component)return ret; cs43130->wq =create_singlethread_workqueue ("cs43130_hp" ); -if (!cs43130->wq) -return -ENOMEM ;INIT_WORK (&cs43130->work, cs43130_imp_meas); }
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 078/190] Revert "ASoC: cs43130: fix a NULL pointer dereference"
Quoted 39 lines · Greg Kroah-Hartman
This reverts commit
a2be42f18d409213bb7e7a736e3ef6ba005115bb.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 Mark Brown <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- sound/soc/codecs/cs43130.c | 2 -- 1 file changed, 2 deletions(-)sound/soc/codecs/cs43130.c +0
-2@@ -2319,8 +2319,6 @@ static int cs43130_probe(struct snd_soc_component *component)return ret; cs43130->wq =create_singlethread_workqueue ("cs43130_hp" ); -if (!cs43130->wq) -return -ENOMEM ;INIT_WORK (&cs43130->work, cs43130_imp_meas); }Signature · 1 line
2.31.1
The original patch here is not correct, lots of resources are allocated and files created that are not unwound. I will keep this revert and fix it up "properly".
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 79/190 Revert "ASoC: rt5645: fix a NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 51dd97d1df5fb9ac58b9b358e63e67b530f6ae21.
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/soc/codecs/rt5645.c | 3 --- 1 file changed, 3 deletions(-)
sound/soc/codecs/rt5645.c +0 -3
@@ -3407,9 +3407,6 @@ static int rt5645_probe(struct snd_soc_component *component)RT5645_HWEQ_NUM ,sizeof (struct rt5645_eq_param_s ), GFP_KERNEL); -if (!rt5645->eq_param) -return -ENOMEM ; -return 0 ; }
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 079/190] Revert "ASoC: rt5645: fix a NULL pointer dereference"
Quoted 40 lines · Greg Kroah-Hartman
This reverts commit
51dd97d1df5fb9ac58b9b358e63e67b530f6ae21.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 Mark Brown <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- sound/soc/codecs/rt5645.c | 3 --- 1 file changed, 3 deletions(-)sound/soc/codecs/rt5645.c +0
-3@@ -3407,9 +3407,6 @@ static int rt5645_probe(struct snd_soc_component *component)RT5645_HWEQ_NUM ,sizeof (struct rt5645_eq_param_s ), GFP_KERNEL); -if (!rt5645->eq_param) -return -ENOMEM ; -return 0 ; }Signature · 1 line
2.31.1
Lots of things seem to be still allocated here, when this returns, so I'm going to keep this revert and go back to it later and try to fix it up properly...
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 80/190 Revert "ALSA: usx2y: fix a double free bug"
In reply to Greg Kroah-HartmanThis reverts commit cbb88db76a1536e02e93e5bd37ebbfbb6c4043a9.
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/usb/usx2y/usbusx2y.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
sound/usb/usx2y/usbusx2y.c +3 -1
@@ -279,8 +279,10 @@ int usX2Y_In04_init(struct usX2Ydev *usX2Y)if (! (usX2Y->In04urb =usb_alloc_urb (0 ,GFP_KERNEL )))return -ENOMEM ; -if (! (usX2Y->In04Buf =kmalloc (21 ,GFP_KERNEL ))) +if (! (usX2Y->In04Buf =kmalloc (21 ,GFP_KERNEL ))) { +usb_free_urb (usX2Y->In04urb);return -ENOMEM ; + }init_waitqueue_head (&usX2Y->In04WaitQueue); usb_fill_int_urb(usX2Y->In04urb, usX2Y->dev, usb_rcvintpipe(usX2Y->dev, 0x4),
Signature · 1 line
2.31.1
Re: [PATCH 080/190] Revert "ALSA: usx2y: fix a double free bug"
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
cbb88db76a1536e02e93e5bd37ebbfbb6c4043a9.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 Takashi Iwai <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
I examined the change again, and confirmed that this code change itself is correct, so it's not necessary to revert.
OTOH, it's just a tip of iceberg in this driver, and maybe it's better to cover all in a better way. So it's fine to revert this, either.
thanks,
Takashi
Quoted 23 lines
--- sound/usb/usx2y/usbusx2y.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)sound/usb/usx2y/usbusx2y.c +3
-1@@ -279,8 +279,10 @@ int usX2Y_In04_init(struct usX2Ydev *usX2Y)if (! (usX2Y->In04urb =usb_alloc_urb (0 ,GFP_KERNEL )))return -ENOMEM ; -if (! (usX2Y->In04Buf =kmalloc (21 ,GFP_KERNEL ))) +if (! (usX2Y->In04Buf =kmalloc (21 ,GFP_KERNEL ))) { +usb_free_urb (usX2Y->In04urb);return -ENOMEM ; + }init_waitqueue_head (&usX2Y->In04WaitQueue); usb_fill_int_urb(usX2Y->In04urb, usX2Y->dev, usb_rcvintpipe(usX2Y->dev, 0x4),Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 080/190] Revert "ALSA: usx2y: fix a double free bug"
Quoted 23 lines · Takashi Iwai
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
cbb88db76a1536e02e93e5bd37ebbfbb6c4043a9.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 Takashi Iwai <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 5 lines
I examined the change again, and confirmed that this code change itself is correct, so it's not necessary to revert.
OTOH, it's just a tip of iceberg in this driver, and maybe it's better to cover all in a better way. So it's fine to revert this, either.
I'll drop the revert, many thanks for the review.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 81/190 Revert "tracing: Fix a memory leak by early error exit in trace_pid_write()"
In reply to Greg Kroah-HartmanThis reverts commit 91862cc7867bba4ee5c8fcf0ca2f1d30427b6129.
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.
--- kernel/trace/trace.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
kernel/trace/trace.c +1 -4
@@ -691,10 +691,8 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,* not modified. */ pid_list =kmalloc (sizeof (*pid_list),GFP_KERNEL ); -if (!pid_list) { -trace_parser_put (&parser); +if (!pid_list)return -ENOMEM ; - } pid_list->pid_max =READ_ONCE (pid_max);
@@ -704,7 +702,6 @@ int trace_pid_write(struct trace_pid_list *filtered_pids, pid_list->pids =vzalloc ((pid_list->pid_max +7 ) >>3 );if (!pid_list->pids) { -trace_parser_put (&parser);kfree (pid_list);return -ENOMEM ; }
Signature · 1 line
2.31.1
Re: [PATCH 081/190] Revert "tracing: Fix a memory leak by early error exit in trace_pid_write()"
Quoted 10 lines · On Wed, 21 Apr 2021 14:59:16 +0200 Greg Kroah-Hartman…
This reverts commit
91862cc7867bba4ee5c8fcf0ca2f1d30427b6129.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.
I have reviewed this change, and this is a valid fix and does not need to be reverted.
The code before the change is:
if (trace_parser_get_init(&parser, PID_BUF_SIZE + 1)) return -ENOMEM;
Where that does:
int trace_parser_get_init(struct trace_parser *parser, int size)
{
memset(parser, 0, sizeof(*parser));
parser->buffer = kmalloc(size, GFP_KERNEL);
if (!parser->buffer)
return 1;
parser->size = size;
return 0;
}And the trace_parser_put() does:
void trace_parser_put(struct trace_parser *parser)
{
kfree(parser->buffer);
parser->buffer = NULL;
}Hence, exiting the function without calling trace_parser_put() will indeed leak memory.
Please do not revert this patch.
-- Steve
Quoted 33 lines
Cc httpCc Wenwen Wang <[email protected]>Cc Steven Rostedt (VMware) <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- kernel/trace/trace.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)kernel/trace/trace.c +1
-4@@ -691,10 +691,8 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,* not modified. */ pid_list =kmalloc (sizeof (*pid_list),GFP_KERNEL ); -if (!pid_list) { -trace_parser_put (&parser); +if (!pid_list)return -ENOMEM ; - } pid_list->pid_max =READ_ONCE (pid_max);@@ -704,7 +702,6 @@ int trace_pid_write(struct trace_pid_list *filtered_pids, pid_list->pids =vzalloc ((pid_list->pid_max +7 ) >>3 );if (!pid_list->pids) { -trace_parser_put (&parser);kfree (pid_list);return -ENOMEM ; }
Steven Rostedt
maintainerRe: [PATCH 081/190] Revert "tracing: Fix a memory leak by early error exit in trace_pid_write()"
Quoted 1 line · On Wed, 21 Apr 2021 09:29:19 -0400 Steven Rostedt <[email protected]> wrote:
Reviewed-by Steven Rostedt (VMware) <[email protected]>
Just to clear up any confusion about my tag above. It was a second review of the original patch, not for the revert.
-- Steve
Greg Kroah-Hartman
maintainerRe: [PATCH 081/190] Revert "tracing: Fix a memory leak by early error exit in trace_pid_write()"
Quoted 7 lines · Steven Rostedt
Quoted 1 line · On Wed, 21 Apr 2021 09:29:19 -0400 Steven Rostedt <[email protected]> wrote:
Reviewed-by Steven Rostedt (VMware) <[email protected]>Just to clear up any confusion about my tag above. It was a second review of the original patch, not for the revert.
Fair enough, I'll handle it, thanks!
greg k-h
Greg Kroah-Hartman
maintainerRe: [PATCH 081/190] Revert "tracing: Fix a memory leak by early error exit in trace_pid_write()"
Quoted 10 lines · Greg Kroah-Hartman
Quoted 7 lines · Steven Rostedt
Quoted 1 line · On Wed, 21 Apr 2021 09:29:19 -0400 Steven Rostedt <[email protected]> wrote:
Reviewed-by Steven Rostedt (VMware) <[email protected]>Just to clear up any confusion about my tag above. It was a second review of the original patch, not for the revert.
Fair enough, I'll handle it, thanks!
Revert is now dropped from my tree, thanks for the review.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 82/190 Revert "rsi: Fix NULL pointer dereference in kmalloc"
In reply to Greg Kroah-HartmanThis reverts commit d5414c2355b20ea8201156d2e874265f1cb0d775.
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/rsi/rsi_91x_mac80211.c | 30 +++++++++------------ 1 file changed, 12 insertions(+), 18 deletions(-)
drivers/net/wireless/rsi/rsi_91x_mac80211.c +12 -18
@@ -188,27 +188,27 @@ bool rsi_is_cipher_wep(struct rsi_common *common)* @adapter: Pointer to the adapter structure. * @band: Operating band to be set. * -* Return: int - 0 on success, negative error on failure. +* Return: None. */ -static int rsi_register_rates_channels (struct rsi_hw *adapter,int band) +static void rsi_register_rates_channels (struct rsi_hw *adapter,int band) {struct ieee80211_supported_band *sbands = &adapter->sbands[band];void *channels =NULL ;if (band ==NL80211_BAND_2GHZ ) { - channels =kmemdup (rsi_2ghz_channels,sizeof (rsi_2ghz_channels), -GFP_KERNEL ); -if (!channels) -return -ENOMEM ; + channels =kmalloc (sizeof (rsi_2ghz_channels),GFP_KERNEL ); +memcpy (channels, + rsi_2ghz_channels, +sizeof (rsi_2ghz_channels)); sbands->band =NL80211_BAND_2GHZ ; sbands->n_channels =ARRAY_SIZE (rsi_2ghz_channels); sbands->bitrates = rsi_rates; sbands->n_bitrates =ARRAY_SIZE (rsi_rates); }else { - channels =kmemdup (rsi_5ghz_channels,sizeof (rsi_5ghz_channels), -GFP_KERNEL ); -if (!channels) -return -ENOMEM ; + channels =kmalloc (sizeof (rsi_5ghz_channels),GFP_KERNEL ); +memcpy (channels, + rsi_5ghz_channels, +sizeof (rsi_5ghz_channels)); sbands->band =NL80211_BAND_5GHZ ; sbands->n_channels =ARRAY_SIZE (rsi_5ghz_channels); sbands->bitrates = &rsi_rates[4 ];
@@ -227,7 +227,6 @@ static int rsi_register_rates_channels(struct rsi_hw *adapter, int band) sbands->ht_cap.mcs.rx_mask[0 ] =0xff ; sbands->ht_cap.mcs.tx_params =IEEE80211_HT_MCS_TX_DEFINED ;/* sbands->ht_cap.mcs.rx_highest = 0x82; */ -return 0 ; } static int rsi_mac80211_hw_scan_start(struct ieee80211_hw *hw,
@@ -2067,16 +2066,11 @@ int rsi_mac80211_attach(struct rsi_common *common) wiphy->available_antennas_rx =1 ; wiphy->available_antennas_tx =1 ; - status =rsi_register_rates_channels (adapter,NL80211_BAND_2GHZ ); -if (status) -return status; +rsi_register_rates_channels (adapter,NL80211_BAND_2GHZ ); wiphy->bands[NL80211_BAND_2GHZ ] = &adapter->sbands[NL80211_BAND_2GHZ ];if (common->num_supp_bands >1 ) { - status =rsi_register_rates_channels (adapter, -NL80211_BAND_5GHZ ); -if (status) -return status; +rsi_register_rates_channels (adapter,NL80211_BAND_5GHZ ); wiphy->bands[NL80211_BAND_5GHZ ] = &adapter->sbands[NL80211_BAND_5GHZ ]; }
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 082/190] Revert "rsi: Fix NULL pointer dereference in kmalloc"
Quoted 95 lines · Greg Kroah-Hartman
This reverts commit
d5414c2355b20ea8201156d2e874265f1cb0d775.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 Kalle Valo <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/wireless/rsi/rsi_91x_mac80211.c | 30 +++++++++------------ 1 file changed, 12 insertions(+), 18 deletions(-)drivers/net/wireless/rsi/rsi_91x_mac80211.c +12
-18@@ -188,27 +188,27 @@ bool rsi_is_cipher_wep(struct rsi_common *common)* @adapter: Pointer to the adapter structure. * @band: Operating band to be set. * -* Return: int - 0 on success, negative error on failure. +* Return: None. */ -static int rsi_register_rates_channels (struct rsi_hw *adapter,int band) +static void rsi_register_rates_channels (struct rsi_hw *adapter,int band) {struct ieee80211_supported_band *sbands = &adapter->sbands[band];void *channels =NULL ;if (band ==NL80211_BAND_2GHZ ) { - channels =kmemdup (rsi_2ghz_channels,sizeof (rsi_2ghz_channels), -GFP_KERNEL ); -if (!channels) -return -ENOMEM ; + channels =kmalloc (sizeof (rsi_2ghz_channels),GFP_KERNEL ); +memcpy (channels, + rsi_2ghz_channels, +sizeof (rsi_2ghz_channels)); sbands->band =NL80211_BAND_2GHZ ; sbands->n_channels =ARRAY_SIZE (rsi_2ghz_channels); sbands->bitrates = rsi_rates; sbands->n_bitrates =ARRAY_SIZE (rsi_rates); }else { - channels =kmemdup (rsi_5ghz_channels,sizeof (rsi_5ghz_channels), -GFP_KERNEL ); -if (!channels) -return -ENOMEM ; + channels =kmalloc (sizeof (rsi_5ghz_channels),GFP_KERNEL ); +memcpy (channels, + rsi_5ghz_channels, +sizeof (rsi_5ghz_channels)); sbands->band =NL80211_BAND_5GHZ ; sbands->n_channels =ARRAY_SIZE (rsi_5ghz_channels); sbands->bitrates = &rsi_rates[4 ];@@ -227,7 +227,6 @@ static int rsi_register_rates_channels(struct rsi_hw *adapter, int band) sbands->ht_cap.mcs.rx_mask[0 ] =0xff ; sbands->ht_cap.mcs.tx_params =IEEE80211_HT_MCS_TX_DEFINED ;/* sbands->ht_cap.mcs.rx_highest = 0x82; */ -return 0 ; } static int rsi_mac80211_hw_scan_start(struct ieee80211_hw *hw,@@ -2067,16 +2066,11 @@ int rsi_mac80211_attach(struct rsi_common *common) wiphy->available_antennas_rx =1 ; wiphy->available_antennas_tx =1 ; - status =rsi_register_rates_channels (adapter,NL80211_BAND_2GHZ ); -if (status) -return status; +rsi_register_rates_channels (adapter,NL80211_BAND_2GHZ ); wiphy->bands[NL80211_BAND_2GHZ ] = &adapter->sbands[NL80211_BAND_2GHZ ];if (common->num_supp_bands >1 ) { - status =rsi_register_rates_channels (adapter, -NL80211_BAND_5GHZ ); -if (status) -return status; +rsi_register_rates_channels (adapter,NL80211_BAND_5GHZ ); wiphy->bands[NL80211_BAND_5GHZ ] = &adapter->sbands[NL80211_BAND_5GHZ ]; }Signature · 1 line
2.31.1
This looks correct, will drop the revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 83/190 Revert "net: cw1200: fix a NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 0ed2a005347400500a39ea7c7318f1fea57fb3ca.
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/st/cw1200/main.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/net/wireless/st/cw1200/main.c +0 -5
@@ -342,11 +342,6 @@ static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr,mutex_init (&priv->wsm_cmd_mux);mutex_init (&priv->conf_mutex); priv->workqueue =create_singlethread_workqueue ("cw1200_wq" ); -if (!priv->workqueue) { -ieee80211_free_hw (hw); -return NULL ; - } -sema_init (&priv->scan.lock,1 );INIT_WORK (&priv->scan.work, cw1200_scan_work);INIT_DELAYED_WORK (&priv->scan.probe_work, cw1200_probe_work);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 083/190] Revert "net: cw1200: fix a NULL pointer dereference"
Quoted 42 lines · Greg Kroah-Hartman
This reverts commit
0ed2a005347400500a39ea7c7318f1fea57fb3ca.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 Kalle Valo <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/wireless/st/cw1200/main.c | 5 ----- 1 file changed, 5 deletions(-)drivers/net/wireless/st/cw1200/main.c +0
-5@@ -342,11 +342,6 @@ static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr,mutex_init (&priv->wsm_cmd_mux);mutex_init (&priv->conf_mutex); priv->workqueue =create_singlethread_workqueue ("cw1200_wq" ); -if (!priv->workqueue) { -ieee80211_free_hw (hw); -return NULL ; - } -sema_init (&priv->scan.lock,1 );INIT_WORK (&priv->scan.work, cw1200_scan_work);INIT_DELAYED_WORK (&priv->scan.probe_work, cw1200_probe_work);Signature · 1 line
2.31.1
The original here looks correct, dropping this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 84/190 Revert "net: ieee802154: fix missing checks for regmap_update_bits"
In reply to Greg Kroah-HartmanThis reverts commit 22e8860cf8f777fbf6a83f2fb7127f682a8e9de4.
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/ieee802154/mcr20a.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/ieee802154/mcr20a.c +0 -6
@@ -524,8 +524,6 @@ mcr20a_start(struct ieee802154_hw *hw)dev_dbg (printdev (lp),"no slotted operation\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_SLOTTED ,0x0 ); -if (ret <0 ) -return ret;/* enable irq */ enable_irq (lp->spi->irq);
@@ -533,15 +531,11 @@ mcr20a_start(struct ieee802154_hw *hw)/* Unmask SEQ interrupt */ ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL2 ,DAR_PHY_CTRL2_SEQMSK ,0x0 ); -if (ret <0 ) -return ret;/* Start the RX sequence */ dev_dbg (printdev (lp),"start the RX sequence\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_XCVSEQ_MASK ,MCR20A_XCVSEQ_RX ); -if (ret <0 ) -return ret;return 0 ; }
Signature · 1 line
2.31.1
Re: [PATCH 084/190] Revert "net: ieee802154: fix missing checks for regmap_update_bits"
Hello.
Quoted 44 lines · Greg Kroah-Hartman
This reverts commit
22e8860cf8f777fbf6a83f2fb7127f682a8e9de4.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 Mukesh Ojha <[email protected]>Cc Stefan Schmidt <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ieee802154/mcr20a.c | 6 ------ 1 file changed, 6 deletions(-)drivers/net/ieee802154/mcr20a.c +0
-4@@ -524,8 +524,6 @@ mcr20a_start(struct ieee802154_hw *hw)dev_dbg (printdev (lp),"no slotted operation\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_SLOTTED ,0x0 ); -if (ret <0 ) -return ret;/* enable irq */ enable_irq (lp->spi->irq);@@ -533,15 +531,11 @@ mcr20a_start(struct ieee802154_hw *hw)/* Unmask SEQ interrupt */ ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL2 ,DAR_PHY_CTRL2_SEQMSK ,0x0 ); -if (ret <0 ) -return ret;
drivers/net/ieee802154/mcr20a.c mcr20a_start(struct ieee802154_hw *hw) · line 541
Quoted 10 lines
drivers/net/ieee802154/mcr20a.c +0
-2/* Start the RX sequence */ dev_dbg (printdev (lp),"start the RX sequence\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_XCVSEQ_MASK ,MCR20A_XCVSEQ_RX ); -if (ret <0 ) -return ret;return 0 ; }
regards
Stefan Schmidt
Greg Kroah-Hartman
maintainerRe: [PATCH 084/190] Revert "net: ieee802154: fix missing checks for regmap_update_bits"
Quoted 49 lines · Stefan Schmidt
Hello.
Quoted 46 lines · Greg Kroah-Hartman
This reverts commit
22e8860cf8f777fbf6a83f2fb7127f682a8e9de4.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 Mukesh Ojha <[email protected]>Cc Stefan Schmidt <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ieee802154/mcr20a.c | 6 ------ 1 file changed, 6 deletions(-)drivers/net/ieee802154/mcr20a.c +0
-4@@ -524,8 +524,6 @@ mcr20a_start(struct ieee802154_hw *hw)dev_dbg (printdev (lp),"no slotted operation\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_SLOTTED ,0x0 ); -if (ret <0 ) -return ret;/* enable irq */ enable_irq (lp->spi->irq);@@ -533,15 +531,11 @@ mcr20a_start(struct ieee802154_hw *hw)/* Unmask SEQ interrupt */ ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL2 ,DAR_PHY_CTRL2_SEQMSK ,0x0 ); -if (ret <0 ) -return ret;/* Start the RX sequence */ dev_dbg (printdev (lp),"start the RX sequence\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_XCVSEQ_MASK ,MCR20A_XCVSEQ_RX );
Quoted 8 lines
drivers/net/ieee802154/mcr20a.c mcr20a_start(struct ieee802154_hw *hw)
Quoted 5 lines
drivers/net/ieee802154/mcr20a.c +0
-2-if (ret <0 ) -return ret;return 0 ; }Acked-by Stefan Schmidt <[email protected]>
Thanks for the review, but in re-reviewing this, I'll drop the revert as it looks correct to me.
thanks,
greg k-h
Stefan Schmidt
maintainerRe: [PATCH 084/190] Revert "net: ieee802154: fix missing checks for regmap_update_bits"
Hello Greg.
Quoted 59 lines · Greg Kroah-Hartman
Quoted 49 lines · Stefan Schmidt
Hello.
Quoted 46 lines · Greg Kroah-Hartman
This reverts commit
22e8860cf8f777fbf6a83f2fb7127f682a8e9de4.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 Mukesh Ojha <[email protected]>Cc Stefan Schmidt <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ieee802154/mcr20a.c | 6 ------ 1 file changed, 6 deletions(-)drivers/net/ieee802154/mcr20a.c +0
-4@@ -524,8 +524,6 @@ mcr20a_start(struct ieee802154_hw *hw)dev_dbg (printdev (lp),"no slotted operation\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_SLOTTED ,0x0 ); -if (ret <0 ) -return ret;/* enable irq */ enable_irq (lp->spi->irq);@@ -533,15 +531,11 @@ mcr20a_start(struct ieee802154_hw *hw)/* Unmask SEQ interrupt */ ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL2 ,DAR_PHY_CTRL2_SEQMSK ,0x0 ); -if (ret <0 ) -return ret;/* Start the RX sequence */ dev_dbg (printdev (lp),"start the RX sequence\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_XCVSEQ_MASK ,MCR20A_XCVSEQ_RX );Quoted 8 lines
drivers/net/ieee802154/mcr20a.c mcr20a_start(struct ieee802154_hw *hw)
Quoted 5 lines
drivers/net/ieee802154/mcr20a.c +0
-2-if (ret <0 ) -return ret;return 0 ; }Acked-by Stefan Schmidt <[email protected]>
Quoted 2 lines
Thanks for the review, but in re-reviewing this, I'll drop the revert as it looks correct to me.
It is correct. We missed the return checking when the driver came in initially.
My Acked-by was really not about if the reverted patch was a security risk, but about the fact that you wanted to sort them out individually due to the Hypocrite Commits paper before getting them back in.
If you are happy to change the approach to only revert patches you are in doubt (this one is really not one of them) I am happy to keep this patch in.
regards
Stefan Schmidt
Greg Kroah-Hartman
maintainerRe: [PATCH 084/190] Revert "net: ieee802154: fix missing checks for regmap_update_bits"
Quoted 68 lines · Stefan Schmidt
Hello Greg.
Quoted 59 lines · Greg Kroah-Hartman
Quoted 49 lines · Stefan Schmidt
Hello.
Quoted 46 lines · Greg Kroah-Hartman
This reverts commit
22e8860cf8f777fbf6a83f2fb7127f682a8e9de4.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 Mukesh Ojha <[email protected]>Cc Stefan Schmidt <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ieee802154/mcr20a.c | 6 ------ 1 file changed, 6 deletions(-)drivers/net/ieee802154/mcr20a.c +0
-4@@ -524,8 +524,6 @@ mcr20a_start(struct ieee802154_hw *hw)dev_dbg (printdev (lp),"no slotted operation\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_SLOTTED ,0x0 ); -if (ret <0 ) -return ret;/* enable irq */ enable_irq (lp->spi->irq);@@ -533,15 +531,11 @@ mcr20a_start(struct ieee802154_hw *hw)/* Unmask SEQ interrupt */ ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL2 ,DAR_PHY_CTRL2_SEQMSK ,0x0 ); -if (ret <0 ) -return ret;/* Start the RX sequence */ dev_dbg (printdev (lp),"start the RX sequence\n" ); ret =regmap_update_bits (lp->regmap_dar,DAR_PHY_CTRL1 ,DAR_PHY_CTRL1_XCVSEQ_MASK ,MCR20A_XCVSEQ_RX );Quoted 8 lines
drivers/net/ieee802154/mcr20a.c mcr20a_start(struct ieee802154_hw *hw)
Quoted 5 lines
drivers/net/ieee802154/mcr20a.c +0
-2-if (ret <0 ) -return ret;return 0 ; }Acked-by Stefan Schmidt <[email protected]>Quoted 2 lines
Thanks for the review, but in re-reviewing this, I'll drop the revert as it looks correct to me.
It is correct. We missed the return checking when the driver came in initially.
Quoted 6 lines
My Acked-by was really not about if the reverted patch was a security risk, but about the fact that you wanted to sort them out individually due to the Hypocrite Commits paper before getting them back in.
If you are happy to change the approach to only revert patches you are in doubt (this one is really not one of them) I am happy to keep this patch in.
My first step was "revert them all so we know what to review", and now I'm going back and reviewing them all (and taking the review comments from everyone else who was nice enough to help out)"
So it's easy for me to drop this from the series now, thanks!
greg k-h
Greg Kroah-Hartman
maintainerPATCH 85/190 Revert "audit: fix a memory leak bug"
In reply to Greg Kroah-HartmanThis reverts commit 70c4cf17e445264453bc5323db3e50aa0ac9e81f.
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.
--- kernel/auditfilter.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
kernel/auditfilter.c +5 -7
@@ -1125,24 +1125,22 @@ int audit_rule_change(int type, int seq, void *data, size_t datasz)int err =0 ;struct audit_entry *entry; + entry =audit_data_to_entry (data, datasz); +if (IS_ERR (entry)) +return PTR_ERR (entry); +switch (type) {case AUDIT_ADD_RULE : - entry =audit_data_to_entry (data, datasz); -if (IS_ERR (entry)) -return PTR_ERR (entry); err =audit_add_rule (entry);audit_log_rule_change ("add_rule" , &entry->rule, !err);break ;case AUDIT_DEL_RULE : - entry =audit_data_to_entry (data, datasz); -if (IS_ERR (entry)) -return PTR_ERR (entry); err =audit_del_rule (entry);audit_log_rule_change ("remove_rule" , &entry->rule, !err);break ;default : + err = -EINVAL ;WARN_ON (1 ); -return -EINVAL ; }if (err || type ==AUDIT_DEL_RULE ) {
Signature · 1 line
2.31.1
Paul Moore
maintainerRe: [PATCH 085/190] Revert "audit: fix a memory leak bug"
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
70c4cf17e445264453bc5323db3e50aa0ac9e81f.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 Wenwen Wang <[email protected]>Cc Richard Guy Briggs <[email protected]>Cc Paul Moore <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- kernel/auditfilter.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
NACK on this revert. I've looked at the original patch again this morning, and the original patch still looks correct and doesn't appear to introduce any new faults to the best of my understanding.
Quoted 36 lines
kernel/auditfilter.c +5
-8@@ -1125,24 +1125,22 @@ int audit_rule_change(int type, int seq, void *data, size_t datasz)int err =0 ;struct audit_entry *entry; + entry =audit_data_to_entry (data, datasz); +if (IS_ERR (entry)) +return PTR_ERR (entry); +switch (type) {case AUDIT_ADD_RULE : - entry =audit_data_to_entry (data, datasz); -if (IS_ERR (entry)) -return PTR_ERR (entry); err =audit_add_rule (entry);audit_log_rule_change ("add_rule" , &entry->rule, !err);break ;case AUDIT_DEL_RULE : - entry =audit_data_to_entry (data, datasz); -if (IS_ERR (entry)) -return PTR_ERR (entry); err =audit_del_rule (entry);audit_log_rule_change ("remove_rule" , &entry->rule, !err);break ;default : + err = -EINVAL ;WARN_ON (1 ); -return -EINVAL ; }if (err || type ==AUDIT_DEL_RULE ) { --2.31.1
Signature · 2 lines
paul moore www.paul-moore.com
Greg Kroah-Hartman
maintainerRe: [PATCH 085/190] Revert "audit: fix a memory leak bug"
Quoted 27 lines · Paul Moore
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
70c4cf17e445264453bc5323db3e50aa0ac9e81f.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 Wenwen Wang <[email protected]>Cc Richard Guy Briggs <[email protected]>Cc Paul Moore <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- kernel/auditfilter.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
Quoted 4 lines
NACK on this revert. I've looked at the original patch again this morning, and the original patch still looks correct and doesn't appear to introduce any new faults to the best of my understanding.
Thanks for the review, much appreciate it, I'll drop it.
greg k-h
Greg Kroah-Hartman
maintainerRe: [PATCH 085/190] Revert "audit: fix a memory leak bug"
Quoted 28 lines · Greg Kroah-Hartman
Quoted 27 lines · Paul Moore
Quoted 24 lines · Greg Kroah-Hartman
This reverts commit
70c4cf17e445264453bc5323db3e50aa0ac9e81f.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 Richard Guy Briggs <[email protected]>Cc Paul Moore <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- kernel/auditfilter.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
Quoted 6 lines
Quoted 4 lines
NACK on this revert. I've looked at the original patch again this morning, and the original patch still looks correct and doesn't appear to introduce any new faults to the best of my understanding.
Thanks for the review, much appreciate it, I'll drop it.
Now dropped.
Re: [PATCH 085/190] Revert "audit: fix a memory leak bug"
In reply to Paul MooreQuoted 27 lines · Paul Moore
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
70c4cf17e445264453bc5323db3e50aa0ac9e81f.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 Wenwen Wang <[email protected]>Cc Richard Guy Briggs <[email protected]>Cc Paul Moore <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- kernel/auditfilter.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
Quoted 3 lines
NACK on this revert. I've looked at the original patch again this morning, and the original patch still looks correct and doesn't appear to introduce any new faults to the best of my understanding.
Agreed. Though on review, a much simpler fix to my original patch that caused this problem requiring this fix
e85322d21cfebeac64f58a204e9adc0bc5c1e46f rgb 2014-10-02 ("audit: cull redundancy in audit_rule_change")would have been the two-liner in the error path similar to the pattern in audit_data_to_entry() error path would have been:
if (entry->rule.tree) audit_put_tree(entry->rule.tree); /* that's the temporary one */
Quoted 33 lines
Quoted 33 lines
kernel/auditfilter.c +5
-7@@ -1125,24 +1125,22 @@ int audit_rule_change(int type, int seq, void *data, size_t datasz)int err =0 ;struct audit_entry *entry; + entry =audit_data_to_entry (data, datasz); +if (IS_ERR (entry)) +return PTR_ERR (entry); +switch (type) {case AUDIT_ADD_RULE : - entry =audit_data_to_entry (data, datasz); -if (IS_ERR (entry)) -return PTR_ERR (entry); err =audit_add_rule (entry);audit_log_rule_change ("add_rule" , &entry->rule, !err);break ;case AUDIT_DEL_RULE : - entry =audit_data_to_entry (data, datasz); -if (IS_ERR (entry)) -return PTR_ERR (entry); err =audit_del_rule (entry);audit_log_rule_change ("remove_rule" , &entry->rule, !err);break ;default : + err = -EINVAL ;WARN_ON (1 ); -return -EINVAL ; }
Quoted 8 lines
Quoted 3 lines
kernel/auditfilter.c +0
-1if (err || type ==AUDIT_DEL_RULE ) { --2.31.1
Signature · 2 lines
paul moore www.paul-moore.com
- RGB
--
Richard Guy Briggs <[email protected]>
Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada
IRC: rgb, SunRaycer
Voice: +1.647.777.2635, Internal: (81) 32635
Paul Moore
maintainerRe: [PATCH 085/190] Revert "audit: fix a memory leak bug"
Quoted 32 lines · Richard Guy Briggs
Quoted 27 lines · Paul Moore
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
70c4cf17e445264453bc5323db3e50aa0ac9e81f.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 Wenwen Wang <[email protected]>Cc Richard Guy Briggs <[email protected]>Cc Paul Moore <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- kernel/auditfilter.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)Quoted 3 lines
NACK on this revert. I've looked at the original patch again this morning, and the original patch still looks correct and doesn't appear to introduce any new faults to the best of my understanding.
Quoted 8 lines
Agreed. Though on review, a much simpler fix to my original patch that caused this problem requiring this fix
e85322d21cfebeac64f58a204e9adc0bc5c1e46f rgb 2014-10-02 ("audit: cull redundancy in audit_rule_change")would have been the two-liner in the error path similar to the pattern in
audit_data_to_entry()error path would have been:if (entry->rule.tree) audit_put_tree(entry->rule.tree); /* that's the temporary one */
Given the situation this morning I think it is best to limit discussion on this thread to just the safety of the patches in question and the necessity of the reverts Greg is proposing here. If you have suggestions about how to clean-up or otherwise improve the code relating to these patches I think it is better to have that discussion in the appropriate subsystem list/forum/etc (as one would do normally).
Signature · 2 lines
paul moore www.paul-moore.com
Re: [PATCH 085/190] Revert "audit: fix a memory leak bug"
Quoted 42 lines · Paul Moore
Quoted 32 lines · Richard Guy Briggs
Quoted 27 lines · Paul Moore
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
70c4cf17e445264453bc5323db3e50aa0ac9e81f.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 Wenwen Wang <[email protected]>Cc Richard Guy Briggs <[email protected]>Cc Paul Moore <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- kernel/auditfilter.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)Quoted 3 lines
NACK on this revert. I've looked at the original patch again this morning, and the original patch still looks correct and doesn't appear to introduce any new faults to the best of my understanding.
Quoted 8 lines
Agreed. Though on review, a much simpler fix to my original patch that caused this problem requiring this fix
e85322d21cfebeac64f58a204e9adc0bc5c1e46f rgb 2014-10-02 ("audit: cull redundancy in audit_rule_change")would have been the two-liner in the error path similar to the pattern in
audit_data_to_entry()error path would have been:if (entry->rule.tree) audit_put_tree(entry->rule.tree); /* that's the temporary one */
Quoted 7 lines
Given the situation this morning I think it is best to limit discussion on this thread to just the safety of the patches in question and the necessity of the reverts Greg is proposing here. If you have suggestions about how to clean-up or otherwise improve the code relating to these patches I think it is better to have that discussion in the appropriate subsystem list/forum/etc (as one would do normally).
My original patch wasn't exploitable anyways since both cases that call audit_rule_change() from audit_receive_msg() were covered, there was no fallthrough, and for extra precaution there was a BUG_ON() added.
I'd say it was harmless, essentially a revert of my redundancy cull patch. This seems to be the consensus about many of the patches in this set.
Wenwen's address bounces, almost certainly because they moved to cs.uga.edu in between April and July 2019.
Quoted 1 line
paul moore
- RGB
--
Richard Guy Briggs <[email protected]>
Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada
IRC: rgb, SunRaycer
Voice: +1.647.777.2635, Internal: (81) 32635
--
Linux-audit mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-audit
Greg Kroah-Hartman
maintainerPATCH 86/190 Revert "x86/PCI: Fix PCI IRQ routing table memory leak"
In reply to Greg Kroah-HartmanThis reverts commit ea094d53580f40c2124cef3d072b73b2425e7bfd.
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.
--- arch/x86/pci/irq.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
arch/x86/pci/irq.c +2 -8
@@ -1119,8 +1119,6 @@ static const struct dmi_system_id pciirq_dmi_table[] __initconst = {void __init pcibios_irq_init (void ) { -struct irq_routing_table *rtable =NULL ; -DBG (KERN_DEBUG "PCI: IRQ init\n" );if (raw_pci_ops ==NULL )
@@ -1131,10 +1129,8 @@ void __init pcibios_irq_init(void) pirq_table =pirq_find_routing_table ();#ifdef CONFIG_PCI_BIOS -if (!pirq_table && (pci_probe &PCI_BIOS_IRQ_SCAN )) { +if (!pirq_table && (pci_probe &PCI_BIOS_IRQ_SCAN )) pirq_table =pcibios_get_irq_routing_table (); - rtable = pirq_table; - }#endif if (pirq_table) {pirq_peer_trick ();
@@ -1149,10 +1145,8 @@ void __init pcibios_irq_init(void)* If we're using the I/O APIC, avoid using the PCI IRQ * routing table */ -if (io_apic_assign_pci_irqs) { -kfree (rtable); +if (io_apic_assign_pci_irqs) pirq_table =NULL ; - } } x86_init.pci.fixup_irqs ();
Signature · 1 line
2.31.1
Re: [PATCH 086/190] Revert "x86/PCI: Fix PCI IRQ routing table memory leak"
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
ea094d53580f40c2124cef3d072b73b2425e7bfd.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
Cc Wenwen Wang <[email protected]>Cc Bjorn Helgaas <[email protected]>Cc Ingo Molnar <[email protected]>Cc Thomas Gleixner <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
I would prefer that you not apply this revert.
Prior to ea094d53580f ("x86/PCI: Fix PCI IRQ routing table memory leak"), we had essentially this:
pcibios_irq_init()
pirq_table = pcibios_get_irq_routing_table(); # kmallocs
if (pirq_table) {
if (io_apic_assign_pci_irqs)
pirq_table = NULL;
}So if we called pcibios_get_irq_routing_table(), we kmalloced some space and then (if io_apic_assign_pci_irqs) threw away the pointer, which leaks the pointer as the commit log says.
After ea094d53580f, we have:
pcibios_irq_init()
rtable = NULL;
pirq_table = pcibios_get_irq_routing_table(); # kmallocs
rtable = pirq_table;
if (pirq_table) {
if (io_apic_assign_pci_irqs) {
kfree(rtable);
pirq_table = NULL;
}
}which seems right to me.
Bjorn
Quoted 44 lines
--- arch/x86/pci/irq.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)arch/x86/pci/irq.c +2
-8@@ -1119,8 +1119,6 @@ static const struct dmi_system_id pciirq_dmi_table[] __initconst = {void __init pcibios_irq_init (void ) { -struct irq_routing_table *rtable =NULL ; -DBG (KERN_DEBUG "PCI: IRQ init\n" );if (raw_pci_ops ==NULL )@@ -1131,10 +1129,8 @@ void __init pcibios_irq_init(void) pirq_table =pirq_find_routing_table ();#ifdef CONFIG_PCI_BIOS -if (!pirq_table && (pci_probe &PCI_BIOS_IRQ_SCAN )) { +if (!pirq_table && (pci_probe &PCI_BIOS_IRQ_SCAN )) pirq_table =pcibios_get_irq_routing_table (); - rtable = pirq_table; - }#endif if (pirq_table) {pirq_peer_trick ();@@ -1149,10 +1145,8 @@ void __init pcibios_irq_init(void)* If we're using the I/O APIC, avoid using the PCI IRQ * routing table */ -if (io_apic_assign_pci_irqs) { -kfree (rtable); +if (io_apic_assign_pci_irqs) pirq_table =NULL ; - } } x86_init.pci.fixup_irqs ();Signature · 1 line
2.31.1
Re: [PATCH 086/190] Revert "x86/PCI: Fix PCI IRQ routing table memory leak"
Quoted 30 lines · Bjorn Helgaas
On Wed, Apr 21, 2021 at 02:59:21PM +0200, Greg Kroah-Hartman wrote:
I would prefer that you not apply this revert.Prior to
ea094d53580f("x86/PCI: Fix PCI IRQ routing table memory leak"), we had essentially this:
pcibios_irq_init()pirq_table = pcibios_get_irq_routing_table(); # kmallocs if (pirq_table) { if (io_apic_assign_pci_irqs) pirq_table = NULL; }So if we called
pcibios_get_irq_routing_table(), we kmalloced some space and then (ifio_apic_assign_pci_irqs) threw away the pointer, which leaks the pointer as the commit log says.After
ea094d53580f, we have:
pcibios_irq_init()rtable = NULL; pirq_table = pcibios_get_irq_routing_table(); # kmallocs rtable = pirq_table; if (pirq_table) { if (io_apic_assign_pci_irqs) { kfree(rtable); pirq_table = NULL; } }
Quoted 1 line
which seems right to me.
It is correct.
Though looking at it again, the question is why this invokes pcibios_get_irq_routing_table() at all if io_apic_assign_pci_irqs is true?
Thanks,
tglx
Greg Kroah-Hartman
maintainerRe: [PATCH 086/190] Revert "x86/PCI: Fix PCI IRQ routing table memory leak"
Quoted 31 lines · Thomas Gleixner
Quoted 30 lines · Bjorn Helgaas
On Wed, Apr 21, 2021 at 02:59:21PM +0200, Greg Kroah-Hartman wrote:
I would prefer that you not apply this revert.Prior to
ea094d53580f("x86/PCI: Fix PCI IRQ routing table memory leak"), we had essentially this:
pcibios_irq_init()pirq_table = pcibios_get_irq_routing_table(); # kmallocs if (pirq_table) { if (io_apic_assign_pci_irqs) pirq_table = NULL; }So if we called
pcibios_get_irq_routing_table(), we kmalloced some space and then (ifio_apic_assign_pci_irqs) threw away the pointer, which leaks the pointer as the commit log says.After
ea094d53580f, we have:
pcibios_irq_init()rtable = NULL; pirq_table = pcibios_get_irq_routing_table(); # kmallocs rtable = pirq_table; if (pirq_table) { if (io_apic_assign_pci_irqs) { kfree(rtable); pirq_table = NULL; } }
Quoted 3 lines
Quoted 1 line
which seems right to me.
It is correct.
Thanks for the review, I'll go drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 87/190 Revert "udf: fix an uninitialized read bug and remove dead code"
In reply to Greg Kroah-HartmanThis reverts commit 39416c5872db69859e867fa250b9cbb3f1e0d185.
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.
--- fs/udf/namei.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
fs/udf/namei.c +15 -0
@@ -304,6 +304,21 @@ static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry,if (dentry->d_name.len >UDF_NAME_LEN )return ERR_PTR (-ENAMETOOLONG ); +#ifdef UDF_RECOVERY +/* temporary shorthand for specifying files by inode number */ +if (!strncmp (dentry->d_name.name,".B=" ,3 )) { +struct kernel_lb_addr lb = { + .logicalBlockNum =0 , + .partitionReferenceNum = +simple_strtoul (dentry->d_name.name +3 , +NULL ,0 ), + }; + inode =udf_iget (dir->i_sb, lb); +if (IS_ERR (inode)) +return inode; + } else +#endif /* UDF_RECOVERY */ + fi =udf_find_entry (dir, &dentry->d_name, &fibh, &cfi);if (IS_ERR (fi))return ERR_CAST (fi);
Signature · 1 line
2.31.1
Re: [PATCH 087/190] Revert "udf: fix an uninitialized read bug and remove dead code"
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
39416c5872db69859e867fa250b9cbb3f1e0d185.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 Jan Kara <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Hi Greg!
I'm pretty confident this particular report & fix was valid (in fact it was me who suggested the particular change). So I don't see point in reverting it...
Honza
Quoted 33 lines
--- fs/udf/namei.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)fs/udf/namei.c +15
-0@@ -304,6 +304,21 @@ static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry,if (dentry->d_name.len >UDF_NAME_LEN )return ERR_PTR (-ENAMETOOLONG ); +#ifdef UDF_RECOVERY +/* temporary shorthand for specifying files by inode number */ +if (!strncmp (dentry->d_name.name,".B=" ,3 )) { +struct kernel_lb_addr lb = { + .logicalBlockNum =0 , + .partitionReferenceNum = +simple_strtoul (dentry->d_name.name +3 , +NULL ,0 ), + }; + inode =udf_iget (dir->i_sb, lb); +if (IS_ERR (inode)) +return inode; + } else +#endif /* UDF_RECOVERY */ + fi =udf_find_entry (dir, &dentry->d_name, &fibh, &cfi);if (IS_ERR (fi))return ERR_CAST (fi);Signature · 1 line
2.31.1
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Greg Kroah-Hartman
maintainerRe: [PATCH 087/190] Revert "udf: fix an uninitialized read bug and remove dead code"
Quoted 21 lines · Jan Kara
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
39416c5872db69859e867fa250b9cbb3f1e0d185.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 Jan Kara <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 5 lines
Hi Greg!
I'm pretty confident this particular report & fix was valid (in fact it was me who suggested the particular change). So I don't see point in reverting it...
Thanks for letting me know, now dropped.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 88/190 Revert "mmc_spi: add a status check for spi_sync_locked"
In reply to Greg Kroah-HartmanThis reverts commit 611025983b7976df0183390a63a2166411d177f1.
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/mmc/host/mmc_spi.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/mmc/host/mmc_spi.c +0 -4
@@ -800,10 +800,6 @@ mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, } status =spi_sync_locked (spi, &host->m); -if (status <0 ) { -dev_dbg (&spi->dev,"read error %d\n" , status); -return status; - }if (host->dma_dev) { dma_sync_single_for_cpu(host->dma_dev,
Signature · 1 line
2.31.1
Re: [PATCH 088/190] Revert "mmc_spi: add a status check for spi_sync_locked"
Hi Greg,
Thank you for the patch.
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
611025983b7976df0183390a63a2166411d177f1.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 Laurent Pinchart <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
I don't spot an obvious issue with the original patch though.
Quoted 19 lines
--- drivers/mmc/host/mmc_spi.c | 4 ---- 1 file changed, 4 deletions(-)drivers/mmc/host/mmc_spi.c +0
-4@@ -800,10 +800,6 @@ mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, } status =spi_sync_locked (spi, &host->m); -if (status <0 ) { -dev_dbg (&spi->dev,"read error %d\n" , status); -return status; - }if (host->dma_dev) { dma_sync_single_for_cpu(host->dma_dev,
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 088/190] Revert "mmc_spi: add a status check for spi_sync_locked"
Quoted 42 lines · Laurent Pinchart
Hi Greg,
Thank you for the patch.
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
611025983b7976df0183390a63a2166411d177f1.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 Laurent Pinchart <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Acked-by Laurent Pinchart <[email protected]>I don't spot an obvious issue with the original patch though.
Quoted 11 lines
--- drivers/mmc/host/mmc_spi.c | 4 ---- 1 file changed, 4 deletions(-)drivers/mmc/host/mmc_spi.c +0
-0@@ -800,10 +800,6 @@ mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, }
Quoted 5 lines
drivers/mmc/host/mmc_spi.c mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, · line 806
Quoted 5 lines
drivers/mmc/host/mmc_spi.c +0
-4status =spi_sync_locked (spi, &host->m); -if (status <0 ) { -dev_dbg (&spi->dev,"read error %d\n" , status); -return status; - }
Returning here means we never give back the ownership of the buffer to the CPU. Can that be considered as vulnerability?
If that is that a problem, I can point out that there is already one more case in this file, where this pattern is repeated. See mmc_spi_writeblock(). This code has been there since 2007.
Quoted 8 lines
drivers/mmc/host/mmc_spi.c mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, · line 805
Quoted 3 lines
drivers/mmc/host/mmc_spi.c +0
-0if (host->dma_dev) { dma_sync_single_for_cpu(host->dma_dev,--
Regards,Laurent Pinchart
Kind regards
Uffe
Greg Kroah-Hartman
maintainerRe: [PATCH 088/190] Revert "mmc_spi: add a status check for spi_sync_locked"
Quoted 44 lines · Ulf Hansson
Quoted 42 lines · Laurent Pinchart
Hi Greg,
Thank you for the patch.
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
611025983b7976df0183390a63a2166411d177f1.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 Laurent Pinchart <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Acked-by Laurent Pinchart <[email protected]>I don't spot an obvious issue with the original patch though.
Quoted 11 lines
--- drivers/mmc/host/mmc_spi.c | 4 ---- 1 file changed, 4 deletions(-)drivers/mmc/host/mmc_spi.c +0
-0@@ -800,10 +800,6 @@ mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, }
Quoted 8 lines
Quoted 5 lines
drivers/mmc/host/mmc_spi.c mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, · line 806
Quoted 5 lines
drivers/mmc/host/mmc_spi.c +0
-4status =spi_sync_locked (spi, &host->m); -if (status <0 ) { -dev_dbg (&spi->dev,"read error %d\n" , status); -return status; - }Returning here means we never give back the ownership of the buffer to the CPU. Can that be considered as vulnerability?
It's a "resource leak", which is a bug. If you want to declare that as a "vulnerability" or not, I do not know. Personally I do not think it is...
Quoted 3 lines
If that is that a problem, I can point out that there is already one more case in this file, where this pattern is repeated. See
mmc_spi_writeblock(). This code has been there since 2007.
Yeah, these error paths are impossible to hit anyway.
I'll go drop this patch as it is not correct and will create a "correct" patch for this as well.
thanks,
greg k-h
Re: [PATCH 088/190] Revert "mmc_spi: add a status check for spi_sync_locked"
Hi Greg,
Quoted 48 lines · Greg Kroah-Hartman
Quoted 38 lines · Ulf Hansson
Quoted 37 lines · Laurent Pinchart
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
611025983b7976df0183390a63a2166411d177f1.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 Laurent Pinchart <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Acked-by Laurent Pinchart <[email protected]>I don't spot an obvious issue with the original patch though.
Quoted 11 lines
--- drivers/mmc/host/mmc_spi.c | 4 ---- 1 file changed, 4 deletions(-)drivers/mmc/host/mmc_spi.c +0
-0@@ -800,10 +800,6 @@ mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, }Quoted 8 lines
Quoted 5 lines
drivers/mmc/host/mmc_spi.c mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, · line 806
Quoted 5 lines
drivers/mmc/host/mmc_spi.c +0
-4status =spi_sync_locked (spi, &host->m); -if (status <0 ) { -dev_dbg (&spi->dev,"read error %d\n" , status); -return status; - }Returning here means we never give back the ownership of the buffer to the CPU. Can that be considered as vulnerability?
Quoted 3 lines
It's a "resource leak", which is a bug. If you want to declare that as a "vulnerability" or not, I do not know. Personally I do not think it is...
How is that a resource leak ? The dma_sync_single_for_device() calls above this block don't take the buffer ownership away from the CPU in a way that leaks it.
Quoted 8 lines
Quoted 3 lines
If that is that a problem, I can point out that there is already one more case in this file, where this pattern is repeated. See
mmc_spi_writeblock(). This code has been there since 2007.Yeah, these error paths are impossible to hit anyway.
I'll go drop this patch as it is not correct and will create a "correct" patch for this as well.
Signature · 3 lines
Regards, Laurent Pinchart
Greg Kroah-Hartman
maintainerRe: [PATCH 088/190] Revert "mmc_spi: add a status check for spi_sync_locked"
Quoted 51 lines · Laurent Pinchart
Hi Greg,
Quoted 48 lines · Greg Kroah-Hartman
Quoted 46 lines · Ulf Hansson
Quoted 37 lines · Laurent Pinchart
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
611025983b7976df0183390a63a2166411d177f1.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 Laurent Pinchart <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Acked-by Laurent Pinchart <[email protected]>I don't spot an obvious issue with the original patch though.
Quoted 11 lines
--- drivers/mmc/host/mmc_spi.c | 4 ---- 1 file changed, 4 deletions(-)drivers/mmc/host/mmc_spi.c +0
-0@@ -800,10 +800,6 @@ mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, }Quoted 5 lines
drivers/mmc/host/mmc_spi.c mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t, · line 806
Quoted 5 lines
drivers/mmc/host/mmc_spi.c +0
-4status =spi_sync_locked (spi, &host->m); -if (status <0 ) { -dev_dbg (&spi->dev,"read error %d\n" , status); -return status; - }Returning here means we never give back the ownership of the buffer to the CPU. Can that be considered as vulnerability?
Quoted 7 lines
Quoted 3 lines
It's a "resource leak", which is a bug. If you want to declare that as a "vulnerability" or not, I do not know. Personally I do not think it is...
How is that a resource leak ? The
dma_sync_single_for_device()calls above this block don't take the buffer ownership away from the CPU in a way that leaks it.
Ick, this is really twisty.
The calls to dma_sync_single_for_device() call down to dma_direct_sync_single_for_device() for when you can directly talk to the hardware, or to the platform sync_single_for_device() callback for arches that can not.
Those are messy, but the worst they all seem to do is invalidate or flush some caches, no type of resource allocation that I could determine here.
So I'll trust you, and drop the revert and mark this one as "good patch" :)
Thanks again for the review, much appreciated.
greg k-h
Greg Kroah-Hartman
maintainerRe: [PATCH 088/190] Revert "mmc_spi: add a status check for spi_sync_locked"
In reply to Laurent PinchartQuoted 21 lines · Laurent Pinchart
Hi Greg,
Thank you for the patch.
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
611025983b7976df0183390a63a2166411d177f1.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 4 lines
Cc Kangjie Lu <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Acked-by Laurent Pinchart <[email protected]>
Thanks for the review!
Quoted 1 line
I don't spot an obvious issue with the original patch though.
Ulf did :)
Re: [PATCH 088/190] Revert "mmc_spi: add a status check for spi_sync_locked"
Hi Greg,
Quoted 23 lines · Greg Kroah-Hartman
Quoted 22 lines · Laurent Pinchart
Quoted 20 lines · Greg Kroah-Hartman
This reverts commit
611025983b7976df0183390a63a2166411d177f1.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 Laurent Pinchart <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 7 lines
Quoted 1 line
Acked-by Laurent Pinchart <[email protected]>Thanks for the review!
Quoted 1 line
I don't spot an obvious issue with the original patch though.
Ulf did :)
I've replied separately, I still think it's not an issue :-)
Signature · 3 lines
Regards, Laurent Pinchart
Greg Kroah-Hartman
maintainerPATCH 89/190 Revert "PCI: endpoint: Fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 507b820009a457afa78202da337bcb56791fbb12.
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/pci/endpoint/functions/pci-epf-test.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/pci/endpoint/functions/pci-epf-test.c +0 -5
@@ -915,11 +915,6 @@ static int __init pci_epf_test_init(void) kpcitest_workqueue =alloc_workqueue ("kpcitest" ,WQ_MEM_RECLAIM |WQ_HIGHPRI ,0 ); -if (!kpcitest_workqueue) { -pr_err ("Failed to allocate the kpcitest work queue\n" ); -return -ENOMEM ; - } - ret =pci_epf_register_driver (&test_driver);if (ret) {pr_err ("Failed to register pci epf test driver --> %d\n" , ret);
Signature · 1 line
2.31.1
Re: [PATCH 089/190] Revert "PCI: endpoint: Fix a potential NULL pointer dereference"
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
507b820009a457afa78202da337bcb56791fbb12.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
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 commit log and code update]
Hi Greg,
first off, thank you for doing this.
This Cc should be fixed up if we go ahead with the revert (I can take the revert via the PCI tree and fix it up myself).
I totally understand your concern (and the nuisance it is causing), the commit we are reverting looked and looks legit - just let me know how it is best to handle this please.
Thanks,
Lorenzo
Quoted 25 lines
Cc Lorenzo Pieralisi <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/pci/endpoint/functions/pci-epf-test.c | 5 ----- 1 file changed, 5 deletions(-)drivers/pci/endpoint/functions/pci-epf-test.c +0
-5@@ -915,11 +915,6 @@ static int __init pci_epf_test_init(void) kpcitest_workqueue =alloc_workqueue ("kpcitest" ,WQ_MEM_RECLAIM |WQ_HIGHPRI ,0 ); -if (!kpcitest_workqueue) { -pr_err ("Failed to allocate the kpcitest work queue\n" ); -return -ENOMEM ; - } - ret =pci_epf_register_driver (&test_driver);if (ret) {pr_err ("Failed to register pci epf test driver --> %d\n" , ret);Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 089/190] Revert "PCI: endpoint: Fix a potential NULL pointer dereference"
Quoted 22 lines · Lorenzo Pieralisi
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
507b820009a457afa78202da337bcb56791fbb12.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
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 commit log and code update]Hi Greg,
Quoted 8 lines
first off, thank you for doing this.
This Cc should be fixed up if we go ahead with the revert (I can take the revert via the PCI tree and fix it up myself).
I totally understand your concern (and the nuisance it is causing), the commit we are reverting looked and looks legit - just let me know how it is best to handle this please.
I'll fix up all improper Cc: lines, that was my dumb script trying to catch who was on the reverted patch, when I apply these.
I can take this through my tree, but as you said, if the original commit here really is fine, that's great, I'll drop this.
Thanks for the review!
greg k-h
Greg Kroah-Hartman
maintainerRe: [PATCH 089/190] Revert "PCI: endpoint: Fix a potential NULL pointer dereference"
Quoted 32 lines · Greg Kroah-Hartman
Quoted 22 lines · Lorenzo Pieralisi
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
507b820009a457afa78202da337bcb56791fbb12.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
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 commit log and code update]Hi Greg,
Quoted 8 lines
first off, thank you for doing this.
This Cc should be fixed up if we go ahead with the revert (I can take the revert via the PCI tree and fix it up myself).
I totally understand your concern (and the nuisance it is causing), the commit we are reverting looked and looks legit - just let me know how it is best to handle this please.
Quoted 5 lines
I'll fix up all improper Cc: lines, that was my dumb script trying to catch who was on the reverted patch, when I apply these.
I can take this through my tree, but as you said, if the original commit here really is fine, that's great, I'll drop this.
Now dropped from my tree.
greg k-
Greg Kroah-Hartman
maintainerPATCH 90/190 Revert "net/smc: fix a NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit e183d4e414b64711baf7a04e214b61969ca08dfa.
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.
--- net/smc/smc_ism.c | 5 ----- 1 file changed, 5 deletions(-)
net/smc/smc_ism.c +0 -5
@@ -417,11 +417,6 @@ struct smcd_dev *smcd_alloc_dev(struct device *parent, const char *name,init_waitqueue_head (&smcd->lgrs_deleted); smcd->event_wq =alloc_ordered_workqueue ("ism_evt_wq-%s)" ,WQ_MEM_RECLAIM , name); -if (!smcd->event_wq) { -kfree (smcd->conn); -kfree (smcd); -return NULL ; - }return smcd; }EXPORT_SYMBOL_GPL (smcd_alloc_dev);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 090/190] Revert "net/smc: fix a NULL pointer dereference"
Quoted 43 lines · Greg Kroah-Hartman
This reverts commit
e183d4e414b64711baf7a04e214b61969ca08dfa.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 Ursula Braun <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- net/smc/smc_ism.c | 5 ----- 1 file changed, 5 deletions(-)net/smc/smc_ism.c +0
-5@@ -417,11 +417,6 @@ struct smcd_dev *smcd_alloc_dev(struct device *parent, const char *name,init_waitqueue_head (&smcd->lgrs_deleted); smcd->event_wq =alloc_ordered_workqueue ("ism_evt_wq-%s)" ,WQ_MEM_RECLAIM , name); -if (!smcd->event_wq) { -kfree (smcd->conn); -kfree (smcd); -return NULL ; - }return smcd; }EXPORT_SYMBOL_GPL (smcd_alloc_dev);Signature · 1 line
2.31.1
The original is incorrect and causes a memory leak. I will keep this revert and fix it up properly with a follow-on patch.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 91/190 Revert "pinctrl: axp209: Fix NULL pointer dereference after allocation"
In reply to Greg Kroah-HartmanThis reverts commit 1adc90c7395742827d754a5f02f446818a77c379.
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/pinctrl/pinctrl-axp209.c | 2 -- 1 file changed, 2 deletions(-)
drivers/pinctrl/pinctrl-axp209.c +0 -2
@@ -365,8 +365,6 @@ static int axp20x_build_funcs_groups(struct platform_device *pdev) pctl->funcs[i].groups =devm_kcalloc (&pdev->dev, npins,sizeof (char *),GFP_KERNEL ); -if (!pctl->funcs[i].groups) -return -ENOMEM ;for (pin =0 ; pin < npins; pin++) pctl->funcs[i].groups[pin] = pctl->desc->pins[pin].name; }
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 091/190] Revert "pinctrl: axp209: Fix NULL pointer dereference after allocation"
Quoted 39 lines · Greg Kroah-Hartman
This reverts commit
1adc90c7395742827d754a5f02f446818a77c379.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 Linus Walleij <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/pinctrl/pinctrl-axp209.c | 2 -- 1 file changed, 2 deletions(-)drivers/pinctrl/pinctrl-axp209.c +0
-2@@ -365,8 +365,6 @@ static int axp20x_build_funcs_groups(struct platform_device *pdev) pctl->funcs[i].groups =devm_kcalloc (&pdev->dev, npins,sizeof (char *),GFP_KERNEL ); -if (!pctl->funcs[i].groups) -return -ENOMEM ;for (pin =0 ; pin < npins; pin++) pctl->funcs[i].groups[pin] = pctl->desc->pins[pin].name; }Signature · 1 line
2.31.1
This change looks correct, dropping the revert from my tree.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 92/190 Revert "power: charger-manager: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 75cf4f5aa903604e1bd7bec2c0988d643c6fb946.
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/power/supply/charger-manager.c | 3 --- 1 file changed, 3 deletions(-)
drivers/power/supply/charger-manager.c +0 -3
@@ -1749,9 +1749,6 @@ static struct platform_driver charger_manager_driver = {static int __init charger_manager_init (void ) { cm_wq =create_freezable_workqueue ("charger_manager" ); -if (unlikely (!cm_wq)) -return -ENOMEM ; -INIT_DELAYED_WORK (&cm_monitor_work, cm_monitor_poller);return platform_driver_register (&charger_manager_driver);
Signature · 1 line
2.31.1
Re: [PATCH 092/190] Revert "power: charger-manager: fix a potential NULL pointer dereference"
Hi,
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
75cf4f5aa903604e1bd7bec2c0988d643c6fb946.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
Doing another review:
create_freezable_workqueue can return NULL when allocations fails and it is the first call in late init call, so it's fine to just exit with -ENOMEM.
I suggest to drop the revert.
-- Sebastian
Quoted 20 lines
drivers/power/supply/charger-manager.c | 3 --- 1 file changed, 3 deletions(-)drivers/power/supply/charger-manager.c +0
-3@@ -1749,9 +1749,6 @@ static struct platform_driver charger_manager_driver = {static int __init charger_manager_init (void ) { cm_wq =create_freezable_workqueue ("charger_manager" ); -if (unlikely (!cm_wq)) -return -ENOMEM ; -INIT_DELAYED_WORK (&cm_monitor_work, cm_monitor_poller);return platform_driver_register (&charger_manager_driver);Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 092/190] Revert "power: charger-manager: fix a potential NULL pointer dereference"
Quoted 24 lines · Sebastian Reichel
Hi,
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
75cf4f5aa903604e1bd7bec2c0988d643c6fb946.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
Quoted 7 lines
Doing another review:
create_freezable_workqueuecan return NULL when allocations fails and it is the first call in late init call, so it's fine to just exit with-ENOMEM.I suggest to drop the revert.
Many thanks for doing the review, I have now dropped it.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 93/190 Revert "iio: hmc5843: fix potential NULL pointer dereferences"
In reply to Greg Kroah-HartmanThis reverts commit 536cc27deade8f1ec3c1beefa60d5fbe0f6fcb28.
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/iio/magnetometer/hmc5843_i2c.c | 7 +------ drivers/iio/magnetometer/hmc5843_spi.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-)
drivers/iio/magnetometer/hmc5843_i2c.c +1 -6
@@ -55,13 +55,8 @@ static const struct regmap_config hmc5843_i2c_regmap_config = {static int hmc5843_i2c_probe (struct i2c_client *cli,const struct i2c_device_id *id) { -struct regmap *regmap =devm_regmap_init_i2c (cli, - &hmc5843_i2c_regmap_config); -if (IS_ERR (regmap)) -return PTR_ERR (regmap); -return hmc5843_common_probe (&cli->dev, - regmap, +devm_regmap_init_i2c (cli, &hmc5843_i2c_regmap_config), id->driver_data, id->name); }
drivers/iio/magnetometer/hmc5843_spi.c +1 -6
@@ -55,7 +55,6 @@ static const struct regmap_config hmc5843_spi_regmap_config = {static int hmc5843_spi_probe (struct spi_device *spi) {int ret; -struct regmap *regmap;const struct spi_device_id *id =spi_get_device_id (spi); spi->mode =SPI_MODE_3 ;
@@ -65,12 +64,8 @@ static int hmc5843_spi_probe(struct spi_device *spi)if (ret)return ret; - regmap =devm_regmap_init_spi (spi, &hmc5843_spi_regmap_config); -if (IS_ERR (regmap)) -return PTR_ERR (regmap); -return hmc5843_common_probe (&spi->dev, - regmap, +devm_regmap_init_spi (spi, &hmc5843_spi_regmap_config), id->driver_data, id->name); }
Signature · 1 line
2.31.1
Re: [PATCH 093/190] Revert "iio: hmc5843: fix potential NULL pointer dereferences"
Quoted 16 lines · On Wed, 21 Apr 2021 14:59:28 +0200 Greg Kroah-Hartman…
This reverts commit
536cc27deade8f1ec3c1beefa60d5fbe0f6fcb28.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Hi Greg,
Checked this one. As far as I can tell it was a valid cleanup of error handling. Far from critical though and unlikely to be seen in practice.
So either leave it in place, or we can bring it back later. I don't mind which.
Quoted 50 lines
--- drivers/iio/magnetometer/hmc5843_i2c.c | 7 +------ drivers/iio/magnetometer/hmc5843_spi.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-)drivers/iio/magnetometer/hmc5843_i2c.c +1
-6@@ -55,13 +55,8 @@ static const struct regmap_config hmc5843_i2c_regmap_config = {static int hmc5843_i2c_probe (struct i2c_client *cli,const struct i2c_device_id *id) { -struct regmap *regmap =devm_regmap_init_i2c (cli, - &hmc5843_i2c_regmap_config); -if (IS_ERR (regmap)) -return PTR_ERR (regmap); -return hmc5843_common_probe (&cli->dev, - regmap, +devm_regmap_init_i2c (cli, &hmc5843_i2c_regmap_config), id->driver_data, id->name); }drivers/iio/magnetometer/hmc5843_spi.c +1
-6@@ -55,7 +55,6 @@ static const struct regmap_config hmc5843_spi_regmap_config = {static int hmc5843_spi_probe (struct spi_device *spi) {int ret; -struct regmap *regmap;const struct spi_device_id *id =spi_get_device_id (spi); spi->mode =SPI_MODE_3 ;@@ -65,12 +64,8 @@ static int hmc5843_spi_probe(struct spi_device *spi)if (ret)return ret; - regmap =devm_regmap_init_spi (spi, &hmc5843_spi_regmap_config); -if (IS_ERR (regmap)) -return PTR_ERR (regmap); -return hmc5843_common_probe (&spi->dev, - regmap, +devm_regmap_init_spi (spi, &hmc5843_spi_regmap_config), id->driver_data, id->name); }
Greg Kroah-Hartman
maintainerRe: [PATCH 093/190] Revert "iio: hmc5843: fix potential NULL pointer dereferences"
Quoted 22 lines · Jonathan Cameron
Quoted 16 lines · On Wed, 21 Apr 2021 14:59:28 +0200 Greg Kroah-Hartman…
This reverts commit
536cc27deade8f1ec3c1beefa60d5fbe0f6fcb28.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 7 lines
Hi Greg,
Checked this one. As far as I can tell it was a valid cleanup of error handling. Far from critical though and unlikely to be seen in practice.
So either leave it in place, or we can bring it back later. I don't mind which.
Now dropped, thanks.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 94/190 Revert "iio: adc: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 13814627c9658cf8382dd052bc251ee415670a55.
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/iio/adc/mxs-lradc-adc.c | 2 -- 1 file changed, 2 deletions(-)
drivers/iio/adc/mxs-lradc-adc.c +0 -2
@@ -456,8 +456,6 @@ static int mxs_lradc_adc_trigger_init(struct iio_dev *iio) trig =devm_iio_trigger_alloc (&iio->dev,"%s-dev%i" , iio->name, iio->id); -if (!trig) -return -ENOMEM ; trig->dev.parent = adc->dev;iio_trigger_set_drvdata (trig, iio);
Signature · 1 line
2.31.1
Re: [PATCH 094/190] Revert "iio: adc: fix a potential NULL pointer dereference"
Quoted 16 lines · On Wed, 21 Apr 2021 14:59:29 +0200 Greg Kroah-Hartman…
This reverts commit
13814627c9658cf8382dd052bc251ee415670a55.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Checked. Original patch was valid. Don't mind how we handle it though. Can bring back later if it's dropped for now.
Thanks,
Jonathan
Quoted 17 lines
--- drivers/iio/adc/mxs-lradc-adc.c | 2 -- 1 file changed, 2 deletions(-)drivers/iio/adc/mxs-lradc-adc.c +0
-2@@ -456,8 +456,6 @@ static int mxs_lradc_adc_trigger_init(struct iio_dev *iio) trig =devm_iio_trigger_alloc (&iio->dev,"%s-dev%i" , iio->name, iio->id); -if (!trig) -return -ENOMEM ; trig->dev.parent = adc->dev;iio_trigger_set_drvdata (trig, iio);
Greg Kroah-Hartman
maintainerRe: [PATCH 094/190] Revert "iio: adc: fix a potential NULL pointer dereference"
Quoted 19 lines · Jonathan Cameron
Quoted 16 lines · On Wed, 21 Apr 2021 14:59:29 +0200 Greg Kroah-Hartman…
This reverts commit
13814627c9658cf8382dd052bc251ee415670a55.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>Checked. Original patch was valid. Don't mind how we handle it though. Can bring back later if it's dropped for now.
Now dropped, thanks.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 95/190 Revert "rtlwifi: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 765976285a8c8db3f0eb7f033829a899d0c2786e.
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/realtek/rtlwifi/base.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/net/wireless/realtek/rtlwifi/base.c +0 -5
@@ -452,11 +452,6 @@ static void _rtl_init_deferred_work(struct ieee80211_hw *hw)/* <2> work queue */ rtlpriv->works.hw = hw; rtlpriv->works.rtl_wq =alloc_workqueue ("%s" ,0 ,0 , rtlpriv->cfg->name); -if (unlikely (!rtlpriv->works.rtl_wq)) { -pr_err ("Failed to allocate work queue\n" ); -return ; - } -INIT_DELAYED_WORK (&rtlpriv->works.watchdog_wq, rtl_watchdog_wq_callback); INIT_DELAYED_WORK(&rtlpriv->works.ips_nic_off_wq,
Signature · 1 line
2.31.1
Re: [PATCH 095/190] Revert "rtlwifi: fix a potential NULL pointer dereference"
Quoted 29 lines · Greg Kroah-Hartman
This reverts commit
765976285a8c8db3f0eb7f033829a899d0c2786e.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 Kalle Valo <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
drivers/net/wireless/realtek/rtlwifi/base.c| 5 -----1 file changed, 5 deletions(-)drivers/net/wireless/realtek/rtlwifi/base.c +0
-0
drivers/net/wireless/realtek/rtlwifi/base.c static void _rtl_init_deferred_work(struct ieee80211_hw *hw) · line 455
Quoted 9 lines
drivers/net/wireless/realtek/rtlwifi/base.c +0
-5@@ -452,11 +452,6 @@ static void _rtl_init_deferred_work(struct ieee80211_hw *hw)/* <2> work queue */ rtlpriv->works.hw = hw; rtlpriv->works.rtl_wq =alloc_workqueue ("%s" ,0 ,0 , rtlpriv->cfg->name); -if (unlikely (!rtlpriv->works.rtl_wq)) { -pr_err ("Failed to allocate work queue\n" ); -return ; - } -
Hey Greg!
If you're still working on this series, this patch looks to be a legitimate fix for the potential NULL pointer.
However we should probably inform 'rtw_init_core()' of this failure in addition to printing about it.
Do you want to apply this revert and I send a fix after this has made its way through?
--
~Bryan
Quoted 7 lines
drivers/net/wireless/realtek/rtlwifi/base.c +0
-0INIT_DELAYED_WORK (&rtlpriv->works.watchdog_wq, rtl_watchdog_wq_callback);INIT_DELAYED_WORK(&rtlpriv->works.ips_nic_off_wq,--
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 095/190] Revert "rtlwifi: fix a potential NULL pointer dereference"
Quoted 42 lines · Bryan Brattlof
Quoted 29 lines · Greg Kroah-Hartman
This reverts commit
765976285a8c8db3f0eb7f033829a899d0c2786e.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 Kalle Valo <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
drivers/net/wireless/realtek/rtlwifi/base.c| 5 -----1 file changed, 5 deletions(-)drivers/net/wireless/realtek/rtlwifi/base.c +0
-0drivers/net/wireless/realtek/rtlwifi/base.c static void _rtl_init_deferred_work(struct ieee80211_hw *hw) · line 455
Quoted 9 lines
drivers/net/wireless/realtek/rtlwifi/base.c +0
-5@@ -452,11 +452,6 @@ static void _rtl_init_deferred_work(struct ieee80211_hw *hw)/* <2> work queue */ rtlpriv->works.hw = hw; rtlpriv->works.rtl_wq =alloc_workqueue ("%s" ,0 ,0 , rtlpriv->cfg->name); -if (unlikely (!rtlpriv->works.rtl_wq)) { -pr_err ("Failed to allocate work queue\n" ); -return ; - } -Hey Greg!
Quoted 8 lines
If you're still working on this series, this patch looks to be a legitimate fix for the potential NULL pointer.
However we should probably inform '
rtw_init_core()' of this failure in addition to printing about it.Do you want to apply this revert and I send a fix after this has made its way through?
I'll keep this revert as the "unlikely()" should never be used for something trivial like this (the compiler and CPU does a better job), and printing an error message also doesn't help much.
I'll fix this up with a "simpler" version that does this properly by propagating the error backwards...
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 96/190 Revert "net: mwifiex: fix a NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit e5b9b206f3f6376b9a1406b67eafe4e7bb9f123c.
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/mwifiex/cmdevt.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/wireless/marvell/mwifiex/cmdevt.c +0 -6
@@ -339,12 +339,6 @@ static int mwifiex_dnld_sleep_confirm_cmd(struct mwifiex_adapter *adapter) sleep_cfm_tmp =dev_alloc_skb (sizeof (struct mwifiex_opt_sleep_confirm ) +MWIFIEX_TYPE_LEN ); -if (!sleep_cfm_tmp) { -mwifiex_dbg (adapter,ERROR , -"SLEEP_CFM: dev_alloc_skb failed\n" ); -return -ENOMEM ; - } -skb_put (sleep_cfm_tmp,sizeof (struct mwifiex_opt_sleep_confirm ) +MWIFIEX_TYPE_LEN );put_unaligned_le32 (MWIFIEX_USB_TYPE_CMD , sleep_cfm_tmp->data);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 096/190] Revert "net: mwifiex: fix a NULL pointer dereference"
Quoted 43 lines · Greg Kroah-Hartman
This reverts commit
e5b9b206f3f6376b9a1406b67eafe4e7bb9f123c.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 Kalle Valo <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/wireless/marvell/mwifiex/cmdevt.c | 6 ------ 1 file changed, 6 deletions(-)drivers/net/wireless/marvell/mwifiex/cmdevt.c +0
-6@@ -339,12 +339,6 @@ static int mwifiex_dnld_sleep_confirm_cmd(struct mwifiex_adapter *adapter) sleep_cfm_tmp =dev_alloc_skb (sizeof (struct mwifiex_opt_sleep_confirm ) +MWIFIEX_TYPE_LEN ); -if (!sleep_cfm_tmp) { -mwifiex_dbg (adapter,ERROR , -"SLEEP_CFM: dev_alloc_skb failed\n" ); -return -ENOMEM ; - } -skb_put (sleep_cfm_tmp,sizeof (struct mwifiex_opt_sleep_confirm ) +MWIFIEX_TYPE_LEN );put_unaligned_le32 (MWIFIEX_USB_TYPE_CMD , sleep_cfm_tmp->data);Signature · 1 line
2.31.1
This looks fine, I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 97/190 Revert "video: imsttfb: fix potential NULL pointer dereferences"
In reply to Greg Kroah-HartmanThis reverts commit 1d84353d205a953e2381044953b7fa31c8c9702d.
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/video/fbdev/imsttfb.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/video/fbdev/imsttfb.c +0 -5
@@ -1512,11 +1512,6 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) info->fix.smem_start = addr; info->screen_base = (__u8 *)ioremap (addr, par->ramdac ==IBM ?0x400000 :0x800000 ); -if (!info->screen_base) { -release_mem_region (addr, size); -framebuffer_release (info); -return -ENOMEM ; - } info->fix.mmio_start = addr +0x800000 ; par->dc_regs =ioremap (addr +0x800000 ,0x1000 ); par->cmap_regs_phys = addr +0x840000 ;
Signature · 1 line
2.31.1
Rob Herring
reviewerRe: [PATCH 097/190] Revert "video: imsttfb: fix potential NULL pointer dereferences"
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
1d84353d205a953e2381044953b7fa31c8c9702d.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 Aditya Pakki <[email protected]>Cc Finn Thain <[email protected]>Cc Rob Herring <[email protected]>
Sigh, get_maintainers.pl likes to punish people for treewide clean-ups...
Quoted 12 lines
Cc Greg Kroah-Hartman <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/video/fbdev/imsttfb.c | 5 ----- 1 file changed, 5 deletions(-)drivers/video/fbdev/imsttfb.c +0
-0
drivers/video/fbdev/imsttfb.c static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) · line 1519
Quoted 8 lines
drivers/video/fbdev/imsttfb.c +0
-5@@ -1512,11 +1512,6 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) info->fix.smem_start = addr; info->screen_base = (__u8 *)ioremap (addr, par->ramdac ==IBM ?0x400000 :0x800000 ); -if (!info->screen_base) { -release_mem_region (addr, size); -framebuffer_release (info); -return -ENOMEM ; - }
The original change appears to be valid, but incomplete...
drivers/video/fbdev/imsttfb.c static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) · line 1516
Quoted 2 lines
drivers/video/fbdev/imsttfb.c +0
-0info->fix.mmio_start = addr +0x800000 ; par->dc_regs =ioremap (addr +0x800000 ,0x1000 );
...because what about cleanup when this ioremap fails.
drivers/video/fbdev/imsttfb.c static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) · line 1517
Quoted 1 line
drivers/video/fbdev/imsttfb.c +0
-0par->cmap_regs_phys = addr +0x840000 ;
Then again, if anyone really cared about this driver and h/w (a PowerMac era PCI display card), it would not still be using fbdev and would use devm_* apis.
Rob
Greg Kroah-Hartman
maintainerRe: [PATCH 097/190] Revert "video: imsttfb: fix potential NULL pointer dereferences"
Quoted 52 lines · Rob Herring
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
1d84353d205a953e2381044953b7fa31c8c9702d.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 Aditya Pakki <[email protected]>Cc Finn Thain <[email protected]>Cc Rob Herring <[email protected]>Sigh, get_maintainers.pl likes to punish people for treewide clean-ups...
Quoted 12 lines
Cc Greg Kroah-Hartman <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/video/fbdev/imsttfb.c | 5 ----- 1 file changed, 5 deletions(-)drivers/video/fbdev/imsttfb.c +0
-0drivers/video/fbdev/imsttfb.c static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) · line 1519
Quoted 8 lines
drivers/video/fbdev/imsttfb.c +0
-5@@ -1512,11 +1512,6 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) info->fix.smem_start = addr; info->screen_base = (__u8 *)ioremap (addr, par->ramdac ==IBM ?0x400000 :0x800000 ); -if (!info->screen_base) { -release_mem_region (addr, size); -framebuffer_release (info); -return -ENOMEM ; - }The original change appears to be valid, but incomplete...
drivers/video/fbdev/imsttfb.c static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) · line 1516
Quoted 2 lines
drivers/video/fbdev/imsttfb.c +0
-0info->fix.mmio_start = addr +0x800000 ; par->dc_regs =ioremap (addr +0x800000 ,0x1000 );
Quoted 7 lines
...because what about cleanup when this ioremap fails.
drivers/video/fbdev/imsttfb.c static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) · line 1517
Quoted 1 line
drivers/video/fbdev/imsttfb.c +0
-0par->cmap_regs_phys = addr +0x840000 ;Then again, if anyone really cared about this driver and h/w (a PowerMac era PCI display card), it would not still be using fbdev and would use devm_* apis.
Thanks for the review, I've updated the changelog to reflect this mess :)
greg k-h
Greg Kroah-Hartman
maintainerPATCH 98/190 Revert "video: hgafb: fix potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit ec7f6aad57ad29e4e66cc2e18e1e1599ddb02542.
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/video/fbdev/hgafb.c | 2 -- 1 file changed, 2 deletions(-)
drivers/video/fbdev/hgafb.c +0 -2
@@ -285,8 +285,6 @@ static int hga_card_detect(void) hga_vram_len =0x08000 ; hga_vram =ioremap (0xb0000 , hga_vram_len); -if (!hga_vram) - goto error;if (request_region (0x3b0 ,12 ,"hgafb" )) release_io_ports =1 ;
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 098/190] Revert "video: hgafb: fix potential NULL pointer dereference"
Quoted 41 lines · Greg Kroah-Hartman
This reverts commit
ec7f6aad57ad29e4e66cc2e18e1e1599ddb02542.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 Aditya Pakki <[email protected]>Cc Ferenc Bakonyi <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/video/fbdev/hgafb.c | 2 -- 1 file changed, 2 deletions(-)drivers/video/fbdev/hgafb.c +0
-2@@ -285,8 +285,6 @@ static int hga_card_detect(void) hga_vram_len =0x08000 ; hga_vram =ioremap (0xb0000 , hga_vram_len); -if (!hga_vram) - goto error;if (request_region (0x3b0 ,12 ,"hgafb" )) release_io_ports =1 ;Signature · 1 line
2.31.1
This patch "looks" correct, but the driver keeps on running and will fail horribly right afterward if this error condition ever trips.
So points for trying to resolve an issue, but a huge NEGATIVE value for providing a "fake" fix for the problem as nothing actually got resolved at all. I'll go fix this up properly...
{sigh}
greg k-h
Greg Kroah-Hartman
maintainerPATCH 99/190 Revert "omapfb: Fix potential NULL pointer dereference in kmalloc"
In reply to Greg Kroah-HartmanThis reverts commit 31fa6e2ae65feed0de10823c5d1eea21a93086c9.
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/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 2 -- 1 file changed, 2 deletions(-)
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c +0 -2
@@ -100,8 +100,6 @@ static void __init omapdss_omapify_node(struct device_node *node) new_len = prop->length +strlen (prefix) * num_strs; new_compat =kmalloc (new_len,GFP_KERNEL ); -if (!new_compat) -return ;omapdss_prefix_strcpy (new_compat, new_len, prop->value, prop->length);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 099/190] Revert "omapfb: Fix potential NULL pointer dereference in kmalloc"
Quoted 40 lines · Greg Kroah-Hartman
This reverts commit
31fa6e2ae65feed0de10823c5d1eea21a93086c9.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 Kangjie Lu <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 2 -- 1 file changed, 2 deletions(-)drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c +0
-2@@ -100,8 +100,6 @@ static void __init omapdss_omapify_node(struct device_node *node) new_len = prop->length +strlen (prefix) * num_strs; new_compat =kmalloc (new_len,GFP_KERNEL ); -if (!new_compat) -return ;omapdss_prefix_strcpy (new_compat, new_len, prop->value, prop->length);Signature · 1 line
2.31.1
Original looks correct, I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 100/190 Revert "staging: greybus: audio_manager: fix a missing check of ida_simple_get"
In reply to Greg Kroah-HartmanThis reverts commit b5af36e3e5aa074605a4d90a89dd8f714b30909b.
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/staging/greybus/audio_manager.c | 3 --- 1 file changed, 3 deletions(-)
drivers/staging/greybus/audio_manager.c +0 -3
@@ -45,9 +45,6 @@ int gb_audio_manager_add(struct gb_audio_manager_module_descriptor *desc)int err; id =ida_simple_get (&module_id,0 ,0 ,GFP_KERNEL ); -if (id <0 ) -return id; - err =gb_audio_manager_module_create (&module, manager_kset, id, desc);if (err) {
Signature · 1 line
2.31.1
Re: [PATCH 100/190] Revert "staging: greybus: audio_manager: fix a missing check of ida_simple_get"
Quoted 30 lines · Greg Kroah-Hartman
This reverts commit
b5af36e3e5aa074605a4d90a89dd8f714b30909b.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 Vaibhav Agarwal <[email protected]>Cc Viresh Kumar <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/staging/greybus/audio_manager.c | 3 --- 1 file changed, 3 deletions(-)drivers/staging/greybus/audio_manager.c +0
-0
drivers/staging/greybus/audio_manager.c int gb_audio_manager_add(struct gb_audio_manager_module_descriptor *desc) · line 50
Quoted 9 lines
drivers/staging/greybus/audio_manager.c +0
-3@@ -45,9 +45,6 @@ int gb_audio_manager_add(struct gb_audio_manager_module_descriptor *desc)int err; id =ida_simple_get (&module_id,0 ,0 ,GFP_KERNEL ); -if (id <0 ) -return id; - err =gb_audio_manager_module_create (&module, manager_kset, id, desc);if (err) {
FWIW, this patch was doing the right thing IMO. So we may not want to revert it.
Signature · 1 line
viresh
Greg Kroah-Hartman
maintainerRe: [PATCH 100/190] Revert "staging: greybus: audio_manager: fix a missing check of ida_simple_get"
Quoted 33 lines · Viresh Kumar
Quoted 32 lines · Greg Kroah-Hartman
This reverts commit
b5af36e3e5aa074605a4d90a89dd8f714b30909b.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 Vaibhav Agarwal <[email protected]>Cc Viresh Kumar <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/staging/greybus/audio_manager.c | 3 --- 1 file changed, 3 deletions(-)drivers/staging/greybus/audio_manager.c +0
-0@@ -45,9 +45,6 @@ int gb_audio_manager_add(struct gb_audio_manager_module_descriptor *desc)int err;
Quoted 10 lines
drivers/staging/greybus/audio_manager.c int gb_audio_manager_add(struct gb_audio_manager_module_descriptor *desc) · line 50
Quoted 7 lines
drivers/staging/greybus/audio_manager.c +0
-3id =ida_simple_get (&module_id,0 ,0 ,GFP_KERNEL ); -if (id <0 ) -return id; - err =gb_audio_manager_module_create (&module, manager_kset, id, desc);if (err) {FWIW, this patch was doing the right thing IMO. So we may not want to revert it.
Thanks for the review, I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 101/190 Revert "PCI: xilinx: Check for __get_free_pages() failure"
In reply to Greg Kroah-HartmanThis reverts commit 699ca30162686bf305cdf94861be02eb0cf9bda2.
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/pci/controller/pcie-xilinx.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
drivers/pci/controller/pcie-xilinx.c +2 -10
@@ -326,19 +326,14 @@ static const struct irq_domain_ops msi_domain_ops = {* xilinx_pcie_enable_msi - Enable MSI support * @port: PCIe port information */ -static int xilinx_pcie_enable_msi (struct xilinx_pcie_port *port) +static void xilinx_pcie_enable_msi (struct xilinx_pcie_port *port) {phys_addr_t msg_addr; port->msi_pages =__get_free_pages (GFP_KERNEL ,0 ); -if (!port->msi_pages) -return -ENOMEM ; - msg_addr =virt_to_phys ((void *)port->msi_pages);pcie_write (port,0x0 ,XILINX_PCIE_REG_MSIBASE1 );pcie_write (port, msg_addr,XILINX_PCIE_REG_MSIBASE2 ); - -return 0 ; }/* INTx Functions */
@@ -493,7 +488,6 @@ static int xilinx_pcie_init_irq_domain(struct xilinx_pcie_port *port)struct device *dev = port->dev;struct device_node *node = dev->of_node;struct device_node *pcie_intc_node; -int ret;/* Setup INTx */ pcie_intc_node =of_get_next_child (node,NULL );
@@ -522,9 +516,7 @@ static int xilinx_pcie_init_irq_domain(struct xilinx_pcie_port *port)return -ENODEV ; } - ret =xilinx_pcie_enable_msi (port); -if (ret) -return ret; +xilinx_pcie_enable_msi (port); }return 0 ;
Signature · 1 line
2.31.1
Re: [PATCH 101/190] Revert "PCI: xilinx: Check for __get_free_pages() failure"
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
699ca30162686bf305cdf94861be02eb0cf9bda2.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
Cc Kangjie Lu <[email protected]>Cc Lorenzo Pieralisi <[email protected]>Cc Steven Price <[email protected]>Cc Mukesh Ojha <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/pci/controller/pcie-xilinx.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
Hi Greg,
For this revert - the commit we are reverting looked and looks OK to me even though honestly I'd revert it just on principle given the nuisance it is causing.
Actually, we have code in -next that is removing the reverted content anyway (but not because it is bogus, code in -next is a nice clean-up for all PCI drivers from Marc):
https://git.kernel.org/lpieralisi/pci/c/161260e7f7bc
Again, happy to go ahead with the revert and rework the queued code on top of it, just let me know please.
Thanks,
Lorenzo
Quoted 47 lines
drivers/pci/controller/pcie-xilinx.c +2
-10@@ -326,19 +326,14 @@ static const struct irq_domain_ops msi_domain_ops = {* xilinx_pcie_enable_msi - Enable MSI support * @port: PCIe port information */ -static int xilinx_pcie_enable_msi (struct xilinx_pcie_port *port) +static void xilinx_pcie_enable_msi (struct xilinx_pcie_port *port) {phys_addr_t msg_addr; port->msi_pages =__get_free_pages (GFP_KERNEL ,0 ); -if (!port->msi_pages) -return -ENOMEM ; - msg_addr =virt_to_phys ((void *)port->msi_pages);pcie_write (port,0x0 ,XILINX_PCIE_REG_MSIBASE1 );pcie_write (port, msg_addr,XILINX_PCIE_REG_MSIBASE2 ); - -return 0 ; }/* INTx Functions */ @@ -493,7 +488,6 @@ static int xilinx_pcie_init_irq_domain(struct xilinx_pcie_port *port)struct device *dev = port->dev;struct device_node *node = dev->of_node;struct device_node *pcie_intc_node; -int ret;/* Setup INTx */ pcie_intc_node =of_get_next_child (node,NULL );@@ -522,9 +516,7 @@ static int xilinx_pcie_init_irq_domain(struct xilinx_pcie_port *port)return -ENODEV ; } - ret =xilinx_pcie_enable_msi (port); -if (ret) -return ret; +xilinx_pcie_enable_msi (port); }return 0 ;Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 101/190] Revert "PCI: xilinx: Check for __get_free_pages() failure"
Quoted 32 lines · Lorenzo Pieralisi
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
699ca30162686bf305cdf94861be02eb0cf9bda2.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
Cc Kangjie Lu <[email protected]>Cc Lorenzo Pieralisi <[email protected]>Cc Steven Price <[email protected]>Cc Mukesh Ojha <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/pci/controller/pcie-xilinx.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)Hi Greg,
For this revert - the commit we are reverting looked and looks OK to me even though honestly I'd revert it just on principle given the nuisance it is causing.
Quoted 8 lines
Actually, we have code in -next that is removing the reverted content anyway (but not because it is bogus, code in -next is a nice clean-up for all PCI drivers from Marc):
https://git.kernel.org/lpieralisi/pci/c/161260e7f7bc
Again, happy to go ahead with the revert and rework the queued code on top of it, just let me know please.
I'll just drop this revert from my tree so as to not mess up your follow-up cleanups, thanks for the review!
greg k-h
Greg Kroah-Hartman
maintainerPATCH 102/190 Revert "media: video-mux: fix null pointer dereferences"
In reply to Greg Kroah-HartmanThis reverts commit aeb0d0f581e2079868e64a2e5ee346d340376eae.
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/media/platform/video-mux.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/media/platform/video-mux.c +0 -5
@@ -442,14 +442,9 @@ static int video_mux_probe(struct platform_device *pdev) vmux->active =-1 ; vmux->pads =devm_kcalloc (dev, num_pads,sizeof (*vmux->pads),GFP_KERNEL ); -if (!vmux->pads) -return -ENOMEM ; - vmux->format_mbus =devm_kcalloc (dev, num_pads,sizeof (*vmux->format_mbus),GFP_KERNEL ); -if (!vmux->format_mbus) -return -ENOMEM ;for (i =0 ; i < num_pads; i++) { vmux->pads[i].flags = (i < num_pads - 1) ? MEDIA_PAD_FL_SINK
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 102/190] Revert "media: video-mux: fix null pointer dereferences"
Quoted 47 lines · Greg Kroah-Hartman
This reverts commit
aeb0d0f581e2079868e64a2e5ee346d340376eae.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 Philipp Zabel <[email protected]>Cc Hans Verkuil <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/media/platform/video-mux.c | 5 ----- 1 file changed, 5 deletions(-)drivers/media/platform/video-mux.c +0
-5@@ -442,14 +442,9 @@ static int video_mux_probe(struct platform_device *pdev) vmux->active =-1 ; vmux->pads =devm_kcalloc (dev, num_pads,sizeof (*vmux->pads),GFP_KERNEL ); -if (!vmux->pads) -return -ENOMEM ; - vmux->format_mbus =devm_kcalloc (dev, num_pads,sizeof (*vmux->format_mbus),GFP_KERNEL ); -if (!vmux->format_mbus) -return -ENOMEM ;for (i =0 ; i < num_pads; i++) { vmux->pads[i].flags = (i < num_pads - 1) ? MEDIA_PAD_FL_SINKSignature · 1 line
2.31.1
This looks correct, dropping from revert list.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 103/190 Revert "thunderbolt: property: Fix a missing check of kzalloc"
In reply to Greg Kroah-HartmanThis reverts commit 6183d5a51866f3acdeeb66b75e87d44025b01a55.
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/thunderbolt/property.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/thunderbolt/property.c +1 -6
@@ -587,12 +587,7 @@ int tb_property_add_text(struct tb_property_dir *parent, const char *key,return -ENOMEM ; property->length = size /4 ; - property->value.text =kzalloc (size,GFP_KERNEL ); -if (!property->value.text) { -kfree (property); -return -ENOMEM ; - } - + property->value.data =kzalloc (size,GFP_KERNEL );strcpy (property->value.text, text);list_add_tail (&property->list, &parent->properties);
Signature · 1 line
2.31.1
Re: [PATCH 103/190] Revert "thunderbolt: property: Fix a missing check of kzalloc"
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
6183d5a51866f3acdeeb66b75e87d44025b01a55.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 is a valid, although minor, fix.
Quoted 28 lines
Cc Kangjie Lu <[email protected]>Cc Mukesh Ojha <[email protected]>Cc Mika Westerberg <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/thunderbolt/property.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)drivers/thunderbolt/property.c +1
-6@@ -587,12 +587,7 @@ int tb_property_add_text(struct tb_property_dir *parent, const char *key,return -ENOMEM ; property->length = size /4 ; - property->value.text =kzalloc (size,GFP_KERNEL ); -if (!property->value.text) { -kfree (property); -return -ENOMEM ; - } - + property->value.data =kzalloc (size,GFP_KERNEL );strcpy (property->value.text, text);list_add_tail (&property->list, &parent->properties);Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 103/190] Revert "thunderbolt: property: Fix a missing check of kzalloc"
Quoted 11 lines · Mika Westerberg
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
6183d5a51866f3acdeeb66b75e87d44025b01a55.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 7 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 is a valid, although minor, fix.
Now dropped, thanks.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 104/190 Revert "char: hpet: fix a missing check of ioremap"
In reply to Greg Kroah-HartmanThis reverts commit 13bd14a41ce3105d5b1f3cd8b4d1e249d17b6d9b.
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/char/hpet.c | 2 -- 1 file changed, 2 deletions(-)
drivers/char/hpet.c +0 -2
@@ -969,8 +969,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)if (ACPI_SUCCESS (status)) { hdp->hd_phys_address = addr.address.minimum; hdp->hd_address =ioremap (addr.address.minimum, addr.address.address_length); -if (!hdp->hd_address) -return AE_ERROR ;if (hpet_is_known (hdp)) {iounmap (hdp->hd_address);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 104/190] Revert "char: hpet: fix a missing check of ioremap"
Quoted 39 lines · Greg Kroah-Hartman
This reverts commit
13bd14a41ce3105d5b1f3cd8b4d1e249d17b6d9b.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/char/hpet.c | 2 -- 1 file changed, 2 deletions(-)drivers/char/hpet.c +0
-2@@ -969,8 +969,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)if (ACPI_SUCCESS (status)) { hdp->hd_phys_address = addr.address.minimum; hdp->hd_address =ioremap (addr.address.minimum, addr.address.address_length); -if (!hdp->hd_address) -return AE_ERROR ;if (hpet_is_known (hdp)) {iounmap (hdp->hd_address);Signature · 1 line
2.31.1
While this is technically correct, it is only fixing ONE of these errors in this function, so the patch is not fully correct. I'll leave this revert and provide a fix for this later that resolves this same "problem" everywhere in this function.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 105/190 Revert "libnvdimm/btt: Fix a kmemdup failure check"
In reply to Greg Kroah-HartmanThis reverts commit 486fa92df4707b5df58d6508728bdb9321a59766.
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/nvdimm/btt_devs.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-)
drivers/nvdimm/btt_devs.c +5 -13
@@ -191,15 +191,14 @@ static struct device *__nd_btt_create(struct nd_region *nd_region,return NULL ; nd_btt->id =ida_simple_get (&nd_region->btt_ida,0 ,0 ,GFP_KERNEL ); -if (nd_btt->id <0 ) - goto out_nd_btt; +if (nd_btt->id <0 ) { +kfree (nd_btt); +return NULL ; + } nd_btt->lbasize = lbasize; -if (uuid) { +if (uuid) uuid =kmemdup (uuid,16 ,GFP_KERNEL ); -if (!uuid) - goto out_put_id; - } nd_btt->uuid = uuid; dev = &nd_btt->dev;dev_set_name (dev,"btt%d.%d" , nd_region->id, nd_btt->id);
@@ -213,13 +212,6 @@ static struct device *__nd_btt_create(struct nd_region *nd_region,return NULL ; }return dev; - -out_put_id: -ida_simple_remove (&nd_region->btt_ida, nd_btt->id); - -out_nd_btt: -kfree (nd_btt); -return NULL ; }struct device *nd_btt_create (struct nd_region *nd_region)
Signature · 1 line
2.31.1
Re: [PATCH 105/190] Revert "libnvdimm/btt: Fix a kmemdup failure check"
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
486fa92df4707b5df58d6508728bdb9321a59766.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 Dan Williams <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Upon re-review, this fix still looks good to me, revert is not necessary.
Quoted 46 lines
--- drivers/nvdimm/btt_devs.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-)drivers/nvdimm/btt_devs.c +5
-14@@ -191,15 +191,14 @@ static struct device *__nd_btt_create(struct nd_region *nd_region,return NULL ; nd_btt->id =ida_simple_get (&nd_region->btt_ida,0 ,0 ,GFP_KERNEL ); -if (nd_btt->id <0 ) - goto out_nd_btt; +if (nd_btt->id <0 ) { +kfree (nd_btt); +return NULL ; + } nd_btt->lbasize = lbasize; -if (uuid) { +if (uuid) uuid =kmemdup (uuid,16 ,GFP_KERNEL ); -if (!uuid) - goto out_put_id; - } nd_btt->uuid = uuid; dev = &nd_btt->dev;dev_set_name (dev,"btt%d.%d" , nd_region->id, nd_btt->id);@@ -213,13 +212,6 @@ static struct device *__nd_btt_create(struct nd_region *nd_region,return NULL ; }return dev; - -out_put_id: -ida_simple_remove (&nd_region->btt_ida, nd_btt->id); - -out_nd_btt: -kfree (nd_btt); -return NULL ; }struct device *nd_btt_create (struct nd_region *nd_region) --2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 105/190] Revert "libnvdimm/btt: Fix a kmemdup failure check"
Quoted 19 lines · Dan Williams
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
486fa92df4707b5df58d6508728bdb9321a59766.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 Aditya Pakki <[email protected]>Cc Dan Williams <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Upon re-review, this fix still looks good to me, revert is not necessary.
Thanks for the review, I'll drop the revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 106/190 Revert "tty: ipwireless: fix missing checks for ioremap"
In reply to Greg Kroah-HartmanThis reverts commit 1bbb1c318cd8a3a39e8c3e2e83d5e90542d6c3e3.
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/tty/ipwireless/main.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/tty/ipwireless/main.c +0 -8
@@ -114,10 +114,6 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, void *priv_data) ipw->common_memory =ioremap (p_dev->resource[2 ]->start,resource_size (p_dev->resource[2 ])); -if (!ipw->common_memory) { - ret = -ENOMEM ; - goto exit1; - }if (!request_mem_region (p_dev->resource[2 ]->start,resource_size (p_dev->resource[2 ]),IPWIRELESS_PCCARD_NAME )) {
@@ -138,10 +134,6 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, void *priv_data) ipw->attr_memory =ioremap (p_dev->resource[3 ]->start,resource_size (p_dev->resource[3 ])); -if (!ipw->attr_memory) { - ret = -ENOMEM ; - goto exit3; - }if (!request_mem_region (p_dev->resource[3 ]->start,resource_size (p_dev->resource[3 ]),IPWIRELESS_PCCARD_NAME )) {
Signature · 1 line
2.31.1
Re: [PATCH 106/190] Revert "tty: ipwireless: fix missing checks for ioremap"
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
1bbb1c318cd8a3a39e8c3e2e83d5e90542d6c3e3.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.
I've reviewed the patch at the time and now again with fresh eyes, but it's IMO a valid fix that would have to be done the same way after revert.
Jiri Slaby
maintainerRe: [PATCH 106/190] Revert "tty: ipwireless: fix missing checks for ioremap"
Quoted 17 lines · David Sterba
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
1bbb1c318cd8a3a39e8c3e2e83d5e90542d6c3e3.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.
Quoted 3 lines
I've reviewed the patch at the time and now again with fresh eyes, but it's IMO a valid fix that would have to be done the same way after revert.
ACK -- the same opinion here.
Signature · 2 lines
js suse labs
Greg Kroah-Hartman
maintainerRe: [PATCH 106/190] Revert "tty: ipwireless: fix missing checks for ioremap"
Quoted 18 lines · Jiri Slaby
Quoted 17 lines · David Sterba
Quoted 15 lines · Greg Kroah-Hartman
This reverts commit
1bbb1c318cd8a3a39e8c3e2e83d5e90542d6c3e3.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
I've reviewed the patch at the time and now again with fresh eyes, but it's IMO a valid fix that would have to be done the same way after revert.
ACK -- the same opinion here.
Thanks for the review from both of you, now dropped.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 107/190 Revert "RDMA/i40iw: Handle workqueue allocation failure"
In reply to Greg Kroah-HartmanThis reverts commit e2a438bd7116889af36304903b92e56d0f347228.
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/infiniband/hw/i40iw/i40iw.h | 2 +- drivers/infiniband/hw/i40iw/i40iw_cm.c | 18 +++--------------- drivers/infiniband/hw/i40iw/i40iw_main.c | 5 +---- 3 files changed, 5 insertions(+), 20 deletions(-)
drivers/infiniband/hw/i40iw/i40iw.h +1 -1
@@ -561,7 +561,7 @@ enum i40iw_status_code i40iw_obj_aligned_mem(struct i40iw_device *iwdev,void i40iw_request_reset (struct i40iw_device *iwdev);void i40iw_destroy_rdma_device (struct i40iw_ib_device *iwibdev); -int i40iw_setup_cm_core (struct i40iw_device *iwdev); +void i40iw_setup_cm_core (struct i40iw_device *iwdev);void i40iw_cleanup_cm_core (struct i40iw_cm_core *cm_core);void i40iw_process_ceq (struct i40iw_device *,struct i40iw_ceq *iwceq);void i40iw_process_aeq (struct i40iw_device *);
drivers/infiniband/hw/i40iw/i40iw_cm.c +3 -15
@@ -3236,7 +3236,7 @@ void i40iw_receive_ilq(struct i40iw_sc_vsi *vsi, struct i40iw_puda_buf *rbuf)* core * @iwdev: iwarp device structure */ -int i40iw_setup_cm_core (struct i40iw_device *iwdev) +void i40iw_setup_cm_core (struct i40iw_device *iwdev) {struct i40iw_cm_core *cm_core = &iwdev->cm_core;
@@ -3255,19 +3255,9 @@ int i40iw_setup_cm_core(struct i40iw_device *iwdev) cm_core->event_wq =alloc_ordered_workqueue ("iwewq" ,WQ_MEM_RECLAIM ); -if (!cm_core->event_wq) - goto error; cm_core->disconn_wq =alloc_ordered_workqueue ("iwdwq" ,WQ_MEM_RECLAIM ); -if (!cm_core->disconn_wq) - goto error; - -return 0 ; -error: -i40iw_cleanup_cm_core (&iwdev->cm_core); - -return -ENOMEM ; }/**
@@ -3287,10 +3277,8 @@ void i40iw_cleanup_cm_core(struct i40iw_cm_core *cm_core)del_timer_sync (&cm_core->tcp_timer);spin_unlock_irqrestore (&cm_core->ht_lock, flags); -if (cm_core->event_wq) -destroy_workqueue (cm_core->event_wq); -if (cm_core->disconn_wq) -destroy_workqueue (cm_core->disconn_wq); +destroy_workqueue (cm_core->event_wq); +destroy_workqueue (cm_core->disconn_wq); }/**
drivers/infiniband/hw/i40iw/i40iw_main.c +1 -4
@@ -1634,10 +1634,7 @@ static int i40iw_open(struct i40e_info *ldev, struct i40e_client *client) iwdev = &hdl->device; iwdev->hdl = hdl; dev = &iwdev->sc_dev; -if (i40iw_setup_cm_core (iwdev)) { -kfree (iwdev->hdl); -return -ENOMEM ; - } +i40iw_setup_cm_core (iwdev); dev->back_dev = (void *)iwdev; iwdev->ldev = &hdl->ldev;
Signature · 1 line
2.31.1
Jason Gunthorpe
maintainerRe: [PATCH 107/190] Revert "RDMA/i40iw: Handle workqueue allocation failure"
Quoted 20 lines · Greg Kroah-Hartman
This reverts commit
e2a438bd7116889af36304903b92e56d0f347228.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 Shiraz, Saleem <[email protected]>Cc Jason Gunthorpe <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 5 lines
--- drivers/infiniband/hw/i40iw/i40iw.h | 2 +- drivers/infiniband/hw/i40iw/i40iw_cm.c | 18 +++--------------- drivers/infiniband/hw/i40iw/i40iw_main.c | 5 +---- 3 files changed, 5 insertions(+), 20 deletions(-)
I don't see a reason to revert this one, the new code structure appears OK
Jason
Greg Kroah-Hartman
maintainerRe: [PATCH 107/190] Revert "RDMA/i40iw: Handle workqueue allocation failure"
Quoted 27 lines · Jason Gunthorpe
Quoted 20 lines · Greg Kroah-Hartman
This reverts commit
e2a438bd7116889af36304903b92e56d0f347228.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 Shiraz, Saleem <[email protected]>Cc Jason Gunthorpe <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Quoted 5 lines
--- drivers/infiniband/hw/i40iw/i40iw.h | 2 +- drivers/infiniband/hw/i40iw/i40iw_cm.c | 18 +++--------------- drivers/infiniband/hw/i40iw/i40iw_main.c | 5 +---- 3 files changed, 5 insertions(+), 20 deletions(-)
Quoted 2 lines
I don't see a reason to revert this one, the new code structure appears OK
Thanks, now dropped.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 108/190 Revert "usb: u132-hcd: fix potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 3de3dbe7c13210171ba8411e36b409a2c29c7415.
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/usb/host/u132-hcd.c | 2 -- 1 file changed, 2 deletions(-)
drivers/usb/host/u132-hcd.c +0 -2
@@ -3195,8 +3195,6 @@ static int __init u132_hcd_init(void)return -ENODEV ;printk (KERN_INFO "driver %s\n" , hcd_name); workqueue =create_singlethread_workqueue ("u132" ); -if (!workqueue) -return -ENOMEM ; retval =platform_driver_register (&u132_platform_driver);if (retval)destroy_workqueue (workqueue);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 108/190] Revert "usb: u132-hcd: fix potential NULL pointer dereference"
Quoted 39 lines · Greg Kroah-Hartman
This reverts commit
3de3dbe7c13210171ba8411e36b409a2c29c7415.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/usb/host/u132-hcd.c | 2 -- 1 file changed, 2 deletions(-)drivers/usb/host/u132-hcd.c +0
-2@@ -3195,8 +3195,6 @@ static int __init u132_hcd_init(void)return -ENODEV ;printk (KERN_INFO "driver %s\n" , hcd_name); workqueue =create_singlethread_workqueue ("u132" ); -if (!workqueue) -return -ENOMEM ; retval =platform_driver_register (&u132_platform_driver);if (retval)destroy_workqueue (workqueue);Signature · 1 line
2.31.1
This commit was correct, will drop this.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 109/190 Revert "usb: sierra: fix a missing check of device_create_file"
In reply to Greg Kroah-HartmanThis reverts commit 1a137b47ce6bd4f4b14662d2f5ace913ea7ffbf8.
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/usb/storage/sierra_ms.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/usb/storage/sierra_ms.c +3 -1
@@ -190,6 +190,8 @@ int sierra_ms_init(struct us_data *us)kfree (swocInfo); } complete: -return device_create_file (&us->pusb_intf->dev, &dev_attr_truinst); + result =device_create_file (&us->pusb_intf->dev, &dev_attr_truinst); + +return 0 ; }
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 109/190] Revert "usb: sierra: fix a missing check of device_create_file"
Quoted 40 lines · Greg Kroah-Hartman
This reverts commit
1a137b47ce6bd4f4b14662d2f5ace913ea7ffbf8.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 Alan Stern <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/usb/storage/sierra_ms.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/usb/storage/sierra_ms.c +3
-1@@ -190,6 +190,8 @@ int sierra_ms_init(struct us_data *us)kfree (swocInfo); } complete: -return device_create_file (&us->pusb_intf->dev, &dev_attr_truinst); + result =device_create_file (&us->pusb_intf->dev, &dev_attr_truinst); + +return 0 ; }Signature · 1 line
2.31.1
The original change here was correct, now dropping this patch.
greg k-h
Quoted 1 line
Greg Kroah-Hartman
maintainerPATCH 110/190 Revert "scsi: qla4xxx: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit fba1bdd2a9a93f3e2181ec1936a3c2f6b37e7ed6.
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/scsi/qla4xxx/ql4_os.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/qla4xxx/ql4_os.c +0 -2
@@ -3229,8 +3229,6 @@ static int qla4xxx_conn_bind(struct iscsi_cls_session *cls_session,if (iscsi_conn_bind (cls_session, cls_conn, is_leading))return -EINVAL ; ep =iscsi_lookup_endpoint (transport_fd); -if (!ep) -return -EINVAL ; conn = cls_conn->dd_data; qla_conn = conn->dd_data; qla_conn->qla_ep = ep->dd_data;
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 110/190] Revert "scsi: qla4xxx: fix a potential NULL pointer dereference"
Quoted 41 lines · Greg Kroah-Hartman
This reverts commit
fba1bdd2a9a93f3e2181ec1936a3c2f6b37e7ed6.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 Manish Rangankar <[email protected]>Cc Mukesh Ojha <[email protected]>Cc Martin K. Petersen <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/scsi/qla4xxx/ql4_os.c | 2 -- 1 file changed, 2 deletions(-)drivers/scsi/qla4xxx/ql4_os.c +0
-2@@ -3229,8 +3229,6 @@ static int qla4xxx_conn_bind(struct iscsi_cls_session *cls_session,if (iscsi_conn_bind (cls_session, cls_conn, is_leading))return -EINVAL ; ep =iscsi_lookup_endpoint (transport_fd); -if (!ep) -return -EINVAL ; conn = cls_conn->dd_data; qla_conn = conn->dd_data; qla_conn->qla_ep = ep->dd_data;Signature · 1 line
2.31.1
Looks to be correct. Odd that you do not have to "unbind" after calling iscsi_conn_bind(), but hey, it's scsi functions, they are always odd :)
I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 111/190 Revert "gpio: aspeed: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 6cf4511e9729c00a7306cf94085f9cc3c52ee723.
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/gpio/gpio-aspeed.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpio/gpio-aspeed.c +0 -2
@@ -1231,8 +1231,6 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev) gpio->offset_timer =devm_kzalloc (&pdev->dev, gpio->chip.ngpio,GFP_KERNEL ); -if (!gpio->offset_timer) -return -ENOMEM ; rc =devm_gpiochip_add_data (&pdev->dev, &gpio->chip, gpio);if (rc <0 )
Signature · 1 line
2.31.1
Re: [PATCH 111/190] Revert "gpio: aspeed: fix a potential NULL pointer dereference"
Quoted 39 lines · Greg Kroah-Hartman
This reverts commit
6cf4511e9729c00a7306cf94085f9cc3c52ee723.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 Andrew Jeffery <[email protected]>Cc Bartosz Golaszewski <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/gpio/gpio-aspeed.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpio/gpio-aspeed.c +0
-3@@ -1231,8 +1231,6 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev) gpio->offset_timer =devm_kzalloc (&pdev->dev, gpio->chip.ngpio,GFP_KERNEL ); -if (!gpio->offset_timer) -return -ENOMEM ; rc =devm_gpiochip_add_data (&pdev->dev, &gpio->chip, gpio);if (rc <0 ) --
Quoted 2 lines
2.31.1
Hi Greg,
I'm sorry you need to waste your time on this cr*p.
This patch wasn't wrong though, so I'd recommend it's left in the tree.
Best regards,
Bartosz Golaszewski
Greg Kroah-Hartman
maintainerRe: [PATCH 111/190] Revert "gpio: aspeed: fix a potential NULL pointer dereference"
Quoted 46 lines · Bartosz Golaszewski
Quoted 39 lines · Greg Kroah-Hartman
This reverts commit
6cf4511e9729c00a7306cf94085f9cc3c52ee723.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 Andrew Jeffery <[email protected]>Cc Bartosz Golaszewski <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/gpio/gpio-aspeed.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpio/gpio-aspeed.c +0
-3@@ -1231,8 +1231,6 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev) gpio->offset_timer =devm_kzalloc (&pdev->dev, gpio->chip.ngpio,GFP_KERNEL ); -if (!gpio->offset_timer) -return -ENOMEM ; rc =devm_gpiochip_add_data (&pdev->dev, &gpio->chip, gpio);if (rc <0 ) --Quoted 2 lines
2.31.1
Hi Greg,
Quoted 1 line
I'm sorry you need to waste your time on this cr*p.
Thanks, me too :(
Quoted 1 line
This patch wasn't wrong though, so I'd recommend it's left in the tree.
Now dropped from my queue, thanks for the review!
greg k-h
Greg Kroah-Hartman
maintainerPATCH 112/190 Revert "libnvdimm/namespace: Fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 55c1fc0af29a6c1b92f217b7eb7581a882e0c07c.
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/nvdimm/namespace_devs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/nvdimm/namespace_devs.c +1 -4
@@ -2297,12 +2297,9 @@ static struct device *create_namespace_blk(struct nd_region *nd_region,if (!nsblk->uuid) goto blk_err;memcpy (name, nd_label->name,NSLABEL_NAME_LEN ); -if (name[0 ]) { +if (name[0 ]) nsblk->alt_name =kmemdup (name,NSLABEL_NAME_LEN ,GFP_KERNEL ); -if (!nsblk->alt_name) - goto blk_err; - } res =nsblk_add_resource (nd_region, ndd, nsblk,__le64_to_cpu (nd_label->dpa));if (!res)
Signature · 1 line
2.31.1
Re: [PATCH 112/190] Revert "libnvdimm/namespace: Fix a potential NULL pointer dereference"
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
55c1fc0af29a6c1b92f217b7eb7581a882e0c07c.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 Dan Williams <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Upon re-review this change still looks correct, no need for a revert.
Quoted 25 lines
--- drivers/nvdimm/namespace_devs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/nvdimm/namespace_devs.c +1
-5@@ -2297,12 +2297,9 @@ static struct device *create_namespace_blk(struct nd_region *nd_region,if (!nsblk->uuid) goto blk_err;memcpy (name, nd_label->name,NSLABEL_NAME_LEN ); -if (name[0 ]) { +if (name[0 ]) nsblk->alt_name =kmemdup (name,NSLABEL_NAME_LEN ,GFP_KERNEL ); -if (!nsblk->alt_name) - goto blk_err; - } res =nsblk_add_resource (nd_region, ndd, nsblk,__le64_to_cpu (nd_label->dpa));if (!res) --2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 112/190] Revert "libnvdimm/namespace: Fix a potential NULL pointer dereference"
Quoted 19 lines · Dan Williams
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
55c1fc0af29a6c1b92f217b7eb7581a882e0c07c.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 Kangjie Lu <[email protected]>Cc Dan Williams <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Upon re-review this change still looks correct, no need for a revert.
Revert is dropped, thanks for the review.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 113/190 Revert "x86/hpet: Prevent potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 2e84f116afca3719c9d0a1a78b47b48f75fd5724.
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.
--- arch/x86/kernel/hpet.c | 2 -- 1 file changed, 2 deletions(-)
arch/x86/kernel/hpet.c +0 -2
@@ -930,8 +930,6 @@ int __init hpet_enable(void)return 0 ;hpet_set_mapping (); -if (!hpet_virt_address) -return 0 ;/* Validate that the config register is working */ if (!hpet_cfg_working ())
Signature · 1 line
2.31.1
Re: [PATCH 113/190] Revert "x86/hpet: Prevent potential NULL pointer dereference"
Quoted 36 lines · Greg Kroah-Hartman
This reverts commit
2e84f116afca3719c9d0a1a78b47b48f75fd5724.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 Thomas Gleixner <[email protected]>Cc Borislav Petkov <[email protected]>Cc "H. Peter Anvin" <[email protected]>Cc Kees Cook <[email protected]>Cc Joe Perches <[email protected]>Cc Nicolai Stange <[email protected]>Cc Roland Dreier <[email protected]>Cc httpsSigned-off-by Greg Kroah-Hartman <[email protected]>--- arch/x86/kernel/hpet.c | 2 -- 1 file changed, 2 deletions(-)arch/x86/kernel/hpet.c +0
-0
arch/x86/kernel/hpet.c int __init hpet_enable(void) · line 935
Quoted 8 lines
arch/x86/kernel/hpet.c +0
-2@@ -930,8 +930,6 @@ int __init hpet_enable(void)return 0 ;hpet_set_mapping (); -if (!hpet_virt_address) -return 0 ;/* Validate that the config register is working */ if (!hpet_cfg_working ())
FWIW, this patch looks harmless. It is checking for a failure in hpet_set_mapping(), and avoids the following code from performing 0-offset reads. hpet_set_mapping() is likely to never fail in real-world situations. *shrug*
I think it would make more sense for the check to live in hpet_cfg_working(), though.
Signature · 1 line
Kees Cook
Re: [PATCH 113/190] Revert "x86/hpet: Prevent potential NULL pointer dereference"
Quoted 12 lines · Kees Cook
Quoted 11 lines · Greg Kroah-Hartman
arch/x86/kernel/hpet.c +0
-2@@ -930,8 +930,6 @@ int __init hpet_enable(void)return 0 ;hpet_set_mapping (); -if (!hpet_virt_address) -return 0 ;
Quoted 7 lines
arch/x86/kernel/hpet.c int __init hpet_enable(void) · line 935
Quoted 2 lines
arch/x86/kernel/hpet.c +0
-0/* Validate that the config register is working */ if (!hpet_cfg_working ())FWIW, this patch looks harmless. It is checking for a failure in
hpet_set_mapping(), and avoids the following code from performing 0-offset reads.hpet_set_mapping()is likely to never fail in real-world situations. *shrug*
'likely never to fail' is clearly a receipe for disaster and you should know that.
Quoted 2 lines
I think it would make more sense for the check to live in
hpet_cfg_working(), though.
No. That does not make any sense at all.
The proper change would have been to make hpet_set_mapping() return an error/success code and act on that.
But that does _NOT_ make the patch invalid.
I'm pretty sure that I looked at it and thought about the proper solution (see above) and then shrugged it off because of overload...
Thanks,
tglx
Re: [PATCH 113/190] Revert "x86/hpet: Prevent potential NULL pointer dereference"
Quoted 21 lines · Thomas Gleixner
Quoted 12 lines · Kees Cook
Quoted 11 lines · Greg Kroah-Hartman
arch/x86/kernel/hpet.c +0
-2@@ -930,8 +930,6 @@ int __init hpet_enable(void)return 0 ;hpet_set_mapping (); -if (!hpet_virt_address) -return 0 ;Quoted 7 lines
arch/x86/kernel/hpet.c int __init hpet_enable(void) · line 935
Quoted 2 lines
arch/x86/kernel/hpet.c +0
-0/* Validate that the config register is working */ if (!hpet_cfg_working ())FWIW, this patch looks harmless. It is checking for a failure in
hpet_set_mapping(), and avoids the following code from performing 0-offset reads.hpet_set_mapping()is likely to never fail in real-world situations. *shrug*
Quoted 2 lines
'likely never to fail' is clearly a receipe for disaster and you should know that.
Of course -- I prefer to keep the sanity check. It just wasn't as good as it could have been: it's not clear just by looking at the patch how hpet_virt_address and hpet_set_mapping() are related.
Quoted 6 lines
Quoted 3 lines
I think it would make more sense for the check to live in
hpet_cfg_working(), though.No. That does not make any sense at all.
Quoted 7 lines
The proper change would have been to make
hpet_set_mapping()return an error/success code and act on that.But that does _NOT_ make the patch invalid.
I'm pretty sure that I looked at it and thought about the proper solution (see above) and then shrugged it off because of overload...
Right, no, I was saying the original patch should stay. It shouldn't be reverted.
Greg, please drop this patch from the revert list.
Signature · 1 line
Kees Cook
Greg Kroah-Hartman
maintainerRe: [PATCH 113/190] Revert "x86/hpet: Prevent potential NULL pointer dereference"
Quoted 40 lines · Kees Cook
Quoted 21 lines · Thomas Gleixner
Quoted 12 lines · Kees Cook
Quoted 11 lines · Greg Kroah-Hartman
arch/x86/kernel/hpet.c +0
-2@@ -930,8 +930,6 @@ int __init hpet_enable(void)return 0 ;hpet_set_mapping (); -if (!hpet_virt_address) -return 0 ;Quoted 7 lines
arch/x86/kernel/hpet.c int __init hpet_enable(void) · line 935
Quoted 2 lines
arch/x86/kernel/hpet.c +0
-0/* Validate that the config register is working */ if (!hpet_cfg_working ())FWIW, this patch looks harmless. It is checking for a failure in
hpet_set_mapping(), and avoids the following code from performing 0-offset reads.hpet_set_mapping()is likely to never fail in real-world situations. *shrug*Quoted 2 lines
'likely never to fail' is clearly a receipe for disaster and you should know that.
Of course -- I prefer to keep the sanity check. It just wasn't as good as it could have been: it's not clear just by looking at the patch how
hpet_virt_addressandhpet_set_mapping()are related.Quoted 11 lines
Quoted 3 lines
I think it would make more sense for the check to live in
hpet_cfg_working(), though.No. That does not make any sense at all.
The proper change would have been to make
hpet_set_mapping()return an error/success code and act on that.But that does _NOT_ make the patch invalid.
Quoted 7 lines
Quoted 2 lines
I'm pretty sure that I looked at it and thought about the proper solution (see above) and then shrugged it off because of overload...
Right, no, I was saying the original patch should stay. It shouldn't be reverted.
Greg, please drop this patch from the revert list.
Now dropped, thanks for the review.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 114/190 Revert "staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc"
In reply to Greg Kroah-HartmanThis reverts commit 7671ce0d92933762f469266daf43bd34d422d58c.
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/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 +- 4 files changed, 11 insertions(+), 16 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +2 -7
@@ -174,9 +174,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) pxmitpriv->free_xmit_extbuf_cnt = num_xmit_extbuf; - res =rtw_alloc_hwxmits (padapter); -if (res == _FAIL) - goto exit; +rtw_alloc_hwxmits (padapter);rtw_init_hwxmits (pxmitpriv->hwxmits, pxmitpriv->hwxmit_entry);for (i =0 ; i <4 ; i++)
@@ -1505,7 +1503,7 @@ s32 rtw_xmit_classifier(struct adapter *padapter, struct xmit_frame *pxmitframe)return res; } -s32 rtw_alloc_hwxmits (struct adapter *padapter) +void rtw_alloc_hwxmits (struct adapter *padapter) {struct hw_xmit *hwxmits;struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
@@ -1514,8 +1512,6 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) pxmitpriv->hwxmits =kcalloc (pxmitpriv->hwxmit_entry,sizeof (struct hw_xmit ),GFP_KERNEL ); -if (!pxmitpriv->hwxmits) -return _FAIL; hwxmits = pxmitpriv->hwxmits;
@@ -1523,7 +1519,6 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) hwxmits[1 ] .sta_queue = &pxmitpriv->vi_pending; hwxmits[2 ] .sta_queue = &pxmitpriv->be_pending; hwxmits[3 ] .sta_queue = &pxmitpriv->bk_pending; -return _SUCCESS; }void rtw_free_hwxmits (struct adapter *padapter)
drivers/staging/rtl8188eu/include/rtw_xmit.h +1 -1
@@ -330,7 +330,7 @@ s32 rtw_txframes_sta_ac_pending(struct adapter *padapter,void rtw_init_hwxmits (struct hw_xmit *phwxmit,int entry);s32 _rtw_init_xmit_priv (struct xmit_priv *pxmitpriv,struct adapter *padapter);void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv); -s32 rtw_alloc_hwxmits (struct adapter *padapter); +void rtw_alloc_hwxmits (struct adapter *padapter);void rtw_free_hwxmits (struct adapter *padapter);s32 rtw_xmit (struct adapter *padapter,struct sk_buff **pkt);
drivers/staging/rtl8723bs/core/rtw_xmit.c +7 -7
@@ -248,9 +248,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) } } - res =rtw_alloc_hwxmits (padapter); -if (res == _FAIL) - goto exit; +rtw_alloc_hwxmits (padapter);rtw_init_hwxmits (pxmitpriv->hwxmits, pxmitpriv->hwxmit_entry);for (i =0 ; i <4 ; i++)
@@ -1990,7 +1988,7 @@ s32 rtw_xmit_classifier(struct adapter *padapter, struct xmit_frame *pxmitframe)return res; } -s32 rtw_alloc_hwxmits (struct adapter *padapter) +void rtw_alloc_hwxmits (struct adapter *padapter) {struct hw_xmit *hwxmits;struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
@@ -2001,8 +1999,10 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) pxmitpriv->hwxmits =rtw_zmalloc (sizeof (struct hw_xmit ) * pxmitpriv->hwxmit_entry); -if (!pxmitpriv->hwxmits) -return _FAIL; +if (pxmitpriv->hwxmits ==NULL ) { +DBG_871X ("alloc hwxmits fail!...\n" ); +return ; + } hwxmits = pxmitpriv->hwxmits;
@@ -2027,7 +2027,7 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) }else { } -return _SUCCESS; + }void rtw_free_hwxmits (struct adapter *padapter)
drivers/staging/rtl8723bs/include/rtw_xmit.h +1 -1
@@ -483,7 +483,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter);void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv); -s32 rtw_alloc_hwxmits (struct adapter *padapter); +void rtw_alloc_hwxmits (struct adapter *padapter);void rtw_free_hwxmits (struct adapter *padapter);
Signature · 1 line
2.31.1
Re: [PATCH 114/190] Revert "staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc"
Hi,
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
7671ce0d92933762f469266daf43bd34d422d58c.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
Cc Aditya Pakki <[email protected]>Cc Mukesh Ojha <[email protected]>Cc Hans de Goede <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
FWIW the original commit seems fine here. So if that is an option please drop this revert from the set.
Regards,
Hans
Quoted 121 lines
--- 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 +- 4 files changed, 11 insertions(+), 16 deletions(-)drivers/staging/rtl8188eu/core/rtw_xmit.c +2
-7@@ -174,9 +174,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) pxmitpriv->free_xmit_extbuf_cnt = num_xmit_extbuf; - res =rtw_alloc_hwxmits (padapter); -if (res == _FAIL) - goto exit; +rtw_alloc_hwxmits (padapter);rtw_init_hwxmits (pxmitpriv->hwxmits, pxmitpriv->hwxmit_entry);for (i =0 ; i <4 ; i++)@@ -1505,7 +1503,7 @@ s32 rtw_xmit_classifier(struct adapter *padapter, struct xmit_frame *pxmitframe)return res; } -s32 rtw_alloc_hwxmits (struct adapter *padapter) +void rtw_alloc_hwxmits (struct adapter *padapter) {struct hw_xmit *hwxmits;struct xmit_priv *pxmitpriv = &padapter->xmitpriv;@@ -1514,8 +1512,6 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) pxmitpriv->hwxmits =kcalloc (pxmitpriv->hwxmit_entry,sizeof (struct hw_xmit ),GFP_KERNEL ); -if (!pxmitpriv->hwxmits) -return _FAIL; hwxmits = pxmitpriv->hwxmits;@@ -1523,7 +1519,6 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) hwxmits[1 ] .sta_queue = &pxmitpriv->vi_pending; hwxmits[2 ] .sta_queue = &pxmitpriv->be_pending; hwxmits[3 ] .sta_queue = &pxmitpriv->bk_pending; -return _SUCCESS; }void rtw_free_hwxmits (struct adapter *padapter)drivers/staging/rtl8188eu/include/rtw_xmit.h +1
-1@@ -330,7 +330,7 @@ s32 rtw_txframes_sta_ac_pending(struct adapter *padapter,void rtw_init_hwxmits (struct hw_xmit *phwxmit,int entry);s32 _rtw_init_xmit_priv (struct xmit_priv *pxmitpriv,struct adapter *padapter);void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv); -s32 rtw_alloc_hwxmits (struct adapter *padapter); +void rtw_alloc_hwxmits (struct adapter *padapter);void rtw_free_hwxmits (struct adapter *padapter);s32 rtw_xmit (struct adapter *padapter,struct sk_buff **pkt);drivers/staging/rtl8723bs/core/rtw_xmit.c +7
-7@@ -248,9 +248,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) } } - res =rtw_alloc_hwxmits (padapter); -if (res == _FAIL) - goto exit; +rtw_alloc_hwxmits (padapter);rtw_init_hwxmits (pxmitpriv->hwxmits, pxmitpriv->hwxmit_entry);for (i =0 ; i <4 ; i++)@@ -1990,7 +1988,7 @@ s32 rtw_xmit_classifier(struct adapter *padapter, struct xmit_frame *pxmitframe)return res; } -s32 rtw_alloc_hwxmits (struct adapter *padapter) +void rtw_alloc_hwxmits (struct adapter *padapter) {struct hw_xmit *hwxmits;struct xmit_priv *pxmitpriv = &padapter->xmitpriv;@@ -2001,8 +1999,10 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) pxmitpriv->hwxmits =rtw_zmalloc (sizeof (struct hw_xmit ) * pxmitpriv->hwxmit_entry); -if (!pxmitpriv->hwxmits) -return _FAIL; +if (pxmitpriv->hwxmits ==NULL ) { +DBG_871X ("alloc hwxmits fail!...\n" ); +return ; + } hwxmits = pxmitpriv->hwxmits;@@ -2027,7 +2027,7 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) }else { } -return _SUCCESS; + }void rtw_free_hwxmits (struct adapter *padapter)drivers/staging/rtl8723bs/include/rtw_xmit.h +1
-1@@ -483,7 +483,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter);void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv); -s32 rtw_alloc_hwxmits (struct adapter *padapter); +void rtw_alloc_hwxmits (struct adapter *padapter);void rtw_free_hwxmits (struct adapter *padapter);
Greg Kroah-Hartman
maintainerRe: [PATCH 114/190] Revert "staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc"
Quoted 19 lines · Hans de Goede
Hi,
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
7671ce0d92933762f469266daf43bd34d422d58c.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 5 lines
Cc Aditya Pakki <[email protected]>Cc Mukesh Ojha <[email protected]>Cc Hans de Goede <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>FWIW the original commit seems fine here. So if that is an option please drop this revert from the set.
Revert is now dropped, thanks for looking at it.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 115/190 Revert "thunderbolt: Fix a missing check of kmemdup"
In reply to Greg Kroah-HartmanThis reverts commit e4dfdd5804cce1255f99c5dd033526a18135a616.
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/thunderbolt/property.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/thunderbolt/property.c +0 -4
@@ -176,10 +176,6 @@ static struct tb_property_dir *__tb_property_parse_dir(const u32 *block, }else { dir->uuid =kmemdup (&block[dir_offset],sizeof (*dir->uuid),GFP_KERNEL ); -if (!dir->uuid) { -tb_property_free_dir (dir); -return NULL ; - } content_offset = dir_offset +4 ; content_len = dir_len -4 ;/* Length includes UUID */ }
Signature · 1 line
2.31.1
Re: [PATCH 115/190] Revert "thunderbolt: Fix a missing check of kmemdup"
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
e4dfdd5804cce1255f99c5dd033526a18135a616.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 too is valid.
Quoted 24 lines
Cc Kangjie Lu <[email protected]>Cc Mika Westerberg <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/thunderbolt/property.c | 4 ---- 1 file changed, 4 deletions(-)drivers/thunderbolt/property.c +0
-4@@ -176,10 +176,6 @@ static struct tb_property_dir *__tb_property_parse_dir(const u32 *block, }else { dir->uuid =kmemdup (&block[dir_offset],sizeof (*dir->uuid),GFP_KERNEL ); -if (!dir->uuid) { -tb_property_free_dir (dir); -return NULL ; - } content_offset = dir_offset +4 ; content_len = dir_len -4 ;/* Length includes UUID */ }Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 115/190] Revert "thunderbolt: Fix a missing check of kmemdup"
Quoted 11 lines · Mika Westerberg
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
e4dfdd5804cce1255f99c5dd033526a18135a616.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 7 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 too is valid.
Now dropped, thanks.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 116/190 Revert "thunderbolt: property: Fix a NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 106204b56f60abf1bead7dceb88f2be3e34433da.
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/thunderbolt/property.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/thunderbolt/property.c +0 -5
@@ -548,11 +548,6 @@ int tb_property_add_data(struct tb_property_dir *parent, const char *key, property->length = size /4 ; property->value.data =kzalloc (size,GFP_KERNEL ); -if (!property->value.data) { -kfree (property); -return -ENOMEM ; - } -memcpy (property->value.data, buf, buflen);list_add_tail (&property->list, &parent->properties);
Signature · 1 line
2.31.1
Re: [PATCH 116/190] Revert "thunderbolt: property: Fix a NULL pointer dereference"
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
106204b56f60abf1bead7dceb88f2be3e34433da.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 Kangjie Lu <[email protected]>Cc Mika Westerberg <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/thunderbolt/property.c | 5 ----- 1 file changed, 5 deletions(-)
The original patch looks correct.
Quoted 20 lines
drivers/thunderbolt/property.c +0
-5@@ -548,11 +548,6 @@ int tb_property_add_data(struct tb_property_dir *parent, const char *key, property->length = size /4 ; property->value.data =kzalloc (size,GFP_KERNEL ); -if (!property->value.data) { -kfree (property); -return -ENOMEM ; - } -memcpy (property->value.data, buf, buflen);list_add_tail (&property->list, &parent->properties);Signature · 1 line
2.31.1
Signature · 2 lines
James Morris <[email protected]>
Greg Kroah-Hartman
maintainerRe: [PATCH 116/190] Revert "thunderbolt: property: Fix a NULL pointer dereference"
Quoted 25 lines · James Morris
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
106204b56f60abf1bead7dceb88f2be3e34433da.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 Kangjie Lu <[email protected]>Cc Mika Westerberg <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/thunderbolt/property.c | 5 ----- 1 file changed, 5 deletions(-)
Quoted 4 lines
The original patch looks correct.
Reviewed-by James Morris <[email protected]>
Thanks for the review, now dropping this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 117/190 Revert "media: si2165: fix a missing check of return value"
In reply to Greg Kroah-HartmanThis reverts commit 0ab34a08812a3334350dbaf69a018ee0ab3d2ddd.
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/media/dvb-frontends/si2165.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/media/dvb-frontends/si2165.c +3 -5
@@ -266,20 +266,18 @@ static u32 si2165_get_fe_clk(struct si2165_state *state)static int si2165_wait_init_done (struct si2165_state *state) { -int ret; +int ret = -EINVAL ;u8 val =0 ;int i;for (i =0 ; i <3 ; ++i) { - ret =si2165_readreg8 (state,REG_INIT_DONE , &val); -if (ret <0 ) -return ret; +si2165_readreg8 (state,REG_INIT_DONE , &val);if (val ==0x01 )return 0 ;usleep_range (1000 ,50000 ); }dev_err (&state->client->dev,"init_done was not set\n" ); -return -EINVAL ; +return ret; } static int si2165_upload_firmware_block(struct si2165_state *state,
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerPATCH 118/190 Revert "scsi: ufs: fix a missing check of devm_reset_control_get"
In reply to Greg Kroah-HartmanThis reverts commit 63a06181d7ce169d09843645c50fea1901bc9f0a.
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/scsi/ufs/ufs-hisi.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/scsi/ufs/ufs-hisi.c +0 -4
@@ -468,10 +468,6 @@ static int ufs_hisi_init_common(struct ufs_hba *hba)ufshcd_set_variant (hba, host); host->rst =devm_reset_control_get (dev,"rst" ); -if (IS_ERR (host->rst)) { -dev_err (dev,"%s: failed to get reset control\n" , __func__); -return PTR_ERR (host->rst); - }ufs_hisi_set_pm_lvl (hba);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 118/190] Revert "scsi: ufs: fix a missing check of devm_reset_control_get"
Quoted 42 lines · Greg Kroah-Hartman
This reverts commit
63a06181d7ce169d09843645c50fea1901bc9f0a.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 Avri Altman <[email protected]>Cc Martin K. Petersen <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/scsi/ufs/ufs-hisi.c | 4 ---- 1 file changed, 4 deletions(-)drivers/scsi/ufs/ufs-hisi.c +0
-4@@ -468,10 +468,6 @@ static int ufs_hisi_init_common(struct ufs_hba *hba)ufshcd_set_variant (hba, host); host->rst =devm_reset_control_get (dev,"rst" ); -if (IS_ERR (host->rst)) { -dev_err (dev,"%s: failed to get reset control\n" , __func__); -return PTR_ERR (host->rst); - }ufs_hisi_set_pm_lvl (hba);Signature · 1 line
2.31.1
This commit is incorrect, it does not properly clean up on the error path, so I'll keep the revert and fix it up properly.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 119/190 Revert "tty: mxs-auart: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 6734330654dac550f12e932996b868c6d0dcb421.
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/tty/serial/mxs-auart.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/tty/serial/mxs-auart.c +0 -4
@@ -1644,10 +1644,6 @@ static int mxs_auart_probe(struct platform_device *pdev) s->port.mapbase = r->start; s->port.membase =ioremap (r->start,resource_size (r)); -if (!s->port.membase) { - ret = -ENOMEM ; - goto out_disable_clks; - } s->port.ops = &mxs_auart_ops; s->port.iotype =UPIO_MEM ; s->port.fifosize =MXS_AUART_FIFO_SIZE ;
Signature · 1 line
2.31.1
Jiri Slaby
maintainerRe: [PATCH 119/190] Revert "tty: mxs-auart: fix a potential NULL pointer dereference"
Quoted 29 lines · Greg Kroah-Hartman
This reverts commit
6734330654dac550f12e932996b868c6d0dcb421.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 stable <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/tty/serial/mxs-auart.c | 4 ---- 1 file changed, 4 deletions(-)drivers/tty/serial/mxs-auart.c +0
-0
drivers/tty/serial/mxs-auart.c static int mxs_auart_probe(struct platform_device *pdev) · line 1650
Quoted 7 lines
drivers/tty/serial/mxs-auart.c +0
-4@@ -1644,10 +1644,6 @@ static int mxs_auart_probe(struct platform_device *pdev) s->port.mapbase = r->start; s->port.membase =ioremap (r->start,resource_size (r)); -if (!s->port.membase) { - ret = -ENOMEM ; - goto out_disable_clks; - }
I don't think this needs to be reverted -- the original fix is correct.
Quoted 4 lines
drivers/tty/serial/mxs-auart.c +0
-0s->port.ops = &mxs_auart_ops; s->port.iotype =UPIO_MEM ; s->port.fifosize =MXS_AUART_FIFO_SIZE ;
Signature · 2 lines
js suse labs
Greg Kroah-Hartman
maintainerRe: [PATCH 119/190] Revert "tty: mxs-auart: fix a potential NULL pointer dereference"
Quoted 25 lines · Jiri Slaby
Quoted 24 lines · Greg Kroah-Hartman
This reverts commit
6734330654dac550f12e932996b868c6d0dcb421.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 stable <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/tty/serial/mxs-auart.c | 4 ---- 1 file changed, 4 deletions(-)
Quoted 14 lines
drivers/tty/serial/mxs-auart.c static int mxs_auart_probe(struct platform_device *pdev) · line 1649
Quoted 11 lines
drivers/tty/serial/mxs-auart.c +0
-4@@ -1644,10 +1644,6 @@ static int mxs_auart_probe(struct platform_device *pdev) s->port.mapbase = r->start; s->port.membase =ioremap (r->start,resource_size (r)); -if (!s->port.membase) { - ret = -ENOMEM ; - goto out_disable_clks; - }I don't think this needs to be reverted -- the original fix is correct.
Now dropped, thanks for the review!
greg k-h
Greg Kroah-Hartman
maintainerPATCH 120/190 Revert "tty: atmel_serial: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit c85be041065c0be8bc48eda4c45e0319caf1d0e5.
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/tty/serial/atmel_serial.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/tty/serial/atmel_serial.c +0 -4
@@ -1256,10 +1256,6 @@ static int atmel_prepare_rx_dma(struct uart_port *port)sg_dma_len (&atmel_port->sg_rx)/2 ,DMA_DEV_TO_MEM , DMA_PREP_INTERRUPT); -if (!desc) { -dev_err (port->dev,"Preparing DMA cyclic failed\n" ); - goto chan_err; - } desc->callback = atmel_complete_rx_dma; desc->callback_param = port; atmel_port->desc_rx = desc;
Signature · 1 line
2.31.1
Jiri Slaby
maintainerRe: [PATCH 120/190] Revert "tty: atmel_serial: fix a potential NULL pointer dereference"
Quoted 30 lines · Greg Kroah-Hartman
This reverts commit
c85be041065c0be8bc48eda4c45e0319caf1d0e5.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 Richard Genoud <[email protected]>Cc stable <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/tty/serial/atmel_serial.c | 4 ---- 1 file changed, 4 deletions(-)drivers/tty/serial/atmel_serial.c +0
-0
drivers/tty/serial/atmel_serial.c static int atmel_prepare_rx_dma(struct uart_port *port) · line 1262
Quoted 7 lines
drivers/tty/serial/atmel_serial.c +0
-4@@ -1256,10 +1256,6 @@ static int atmel_prepare_rx_dma(struct uart_port *port)sg_dma_len (&atmel_port->sg_rx)/2 ,DMA_DEV_TO_MEM , DMA_PREP_INTERRUPT); -if (!desc) { -dev_err (port->dev,"Preparing DMA cyclic failed\n" ); - goto chan_err; - }
I cannot find anything malicious in the original fix:
* port->dev is valid for dev_err
* dmaengine_prep_dma_cyclic returns NULL in case of error
* chan_err invokes atmel_release_rx_dma which undoes the previous initialization code.
Hence a NACK from me for the revert.
Quoted 4 lines
drivers/tty/serial/atmel_serial.c +0
-0desc->callback = atmel_complete_rx_dma; desc->callback_param = port; atmel_port->desc_rx = desc;
Signature · 2 lines
js suse labs
Re: [PATCH 120/190] Revert "tty: atmel_serial: fix a potential NULL pointer dereference"
Le 22/04/2021 à 07:18, Jiri Slaby a écrit :
Quoted 44 lines · Greg Kroah-Hartman
Quoted 30 lines
This reverts commit
c85be041065c0be8bc48eda4c45e0319caf1d0e5.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 Richard Genoud <[email protected]>Cc stable <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
drivers/tty/serial/atmel_serial.c| 4 ----1 file changed, 4 deletions(-)drivers/tty/serial/atmel_serial.c +0
-0drivers/tty/serial/atmel_serial.c static int atmel_prepare_rx_dma(struct uart_port *port) · line 1262
Quoted 7 lines
drivers/tty/serial/atmel_serial.c +0
-4@@ -1256,10 +1256,6 @@ static int atmel_prepare_rx_dma(struct uart_port *port) sg_dma_len(&atmel_port->sg_rx)/2, DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT); - if (!desc) { - dev_err(port->dev, "Preparing DMA cyclic failed\n"); - goto chan_err; - }I cannot find anything malicious in the original fix:
*port->devis valid fordev_err
*dmaengine_prep_dma_cyclicreturns NULL in case of error
*chan_errinvokesatmel_release_rx_dmawhich undoes the previous initialization code.
Quoted 1 line
Hence a NACK from me for the revert.
I agree with your NACK.
Back at the time (march 2019), I reviewed the changed and asked for a 2nd version and I didn't found anything suspicious.
But the more eyes, the better.
cf http://lkml.iu.edu/hypermail/linux/kernel/1903.1/05858.html
Quoted 7 lines
Quoted 5 lines
drivers/tty/serial/atmel_serial.c +0
-0desc->callback = atmel_complete_rx_dma; desc->callback_param = port; atmel_port->desc_rx = desc;
Greg Kroah-Hartman
maintainerRe: [PATCH 120/190] Revert "tty: atmel_serial: fix a potential NULL pointer dereference"
Quoted 47 lines · Richard Genoud
Le 22/04/2021 à 07:18, Jiri Slaby a écrit :
Quoted 44 lines · Greg Kroah-Hartman
Quoted 30 lines
This reverts commit
c85be041065c0be8bc48eda4c45e0319caf1d0e5.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 Richard Genoud <[email protected]>Cc stable <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
drivers/tty/serial/atmel_serial.c| 4 ----1 file changed, 4 deletions(-)drivers/tty/serial/atmel_serial.c +0
-0drivers/tty/serial/atmel_serial.c static int atmel_prepare_rx_dma(struct uart_port *port) · line 1262
Quoted 7 lines
drivers/tty/serial/atmel_serial.c +0
-4@@ -1256,10 +1256,6 @@ static int atmel_prepare_rx_dma(struct uart_port *port) sg_dma_len(&atmel_port->sg_rx)/2, DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT); - if (!desc) { - dev_err(port->dev, "Preparing DMA cyclic failed\n"); - goto chan_err; - }I cannot find anything malicious in the original fix:
*port->devis valid fordev_err
*dmaengine_prep_dma_cyclicreturns NULL in case of error
*chan_errinvokesatmel_release_rx_dmawhich undoes the previous initialization code.
Quoted 8 lines
Quoted 1 line
Hence a NACK from me for the revert.
I agree with your NACK.
Back at the time (march 2019), I reviewed the changed and asked for a 2nd version and I didn't found anything suspicious.
But the more eyes, the better.cf http://lkml.iu.edu/hypermail/linux/kernel/1903.1/05858.html
Thanks for the review, now dropped.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 121/190 Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 32f47179833b63de72427131169809065db6745e.
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/tty/serial/mvebu-uart.c | 3 --- 1 file changed, 3 deletions(-)
drivers/tty/serial/mvebu-uart.c +0 -3
@@ -818,9 +818,6 @@ static int mvebu_uart_probe(struct platform_device *pdev)return -EINVAL ; } -if (!match) -return -ENODEV ; -/* Assume that all UART ports have a DT alias or none has */ id =of_alias_get_id (pdev->dev.of_node,"serial" );if (!pdev->dev.of_node || id <0 )
Signature · 1 line
2.31.1
Jiri Slaby
maintainerRe: [PATCH 121/190] Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference"
Quoted 29 lines · Greg Kroah-Hartman
This reverts commit
32f47179833b63de72427131169809065db6745e.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 stable <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/tty/serial/mvebu-uart.c | 3 --- 1 file changed, 3 deletions(-)drivers/tty/serial/mvebu-uart.c +0
-0
drivers/tty/serial/mvebu-uart.c static int mvebu_uart_probe(struct platform_device *pdev) · line 822
Quoted 5 lines
drivers/tty/serial/mvebu-uart.c +0
-2@@ -818,9 +818,6 @@ static int mvebu_uart_probe(struct platform_device *pdev)return -EINVAL ; } -if (!match) -return -ENODEV ;
The original fix doesn't hurt, but is useless. ->probe is called when of_match_device matched.
So the revert is OK.
Quoted 4 lines
drivers/tty/serial/mvebu-uart.c +0
-0/* Assume that all UART ports have a DT alias or none has */ id =of_alias_get_id (pdev->dev.of_node,"serial" );if (!pdev->dev.of_node || id <0 )
Signature · 2 lines
js suse labs
Greg Kroah-Hartman
maintainerPATCH 122/190 Revert "HID: logitech: check the return value of create_singlethread_workqueue"
In reply to Greg Kroah-HartmanThis reverts commit 6c44b15e1c9076d925d5236ddadf1318b0a25ce2.
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/hid/hid-logitech-hidpp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/hid/hid-logitech-hidpp.c +1 -7
@@ -2547,13 +2547,6 @@ static int hidpp_ff_init(struct hidpp_device *hidpp,kfree (data);return -ENOMEM ; } - data->wq =create_singlethread_workqueue ("hidpp-ff-sendqueue" ); -if (!data->wq) { -kfree (data->effect_ids); -kfree (data); -return -ENOMEM ; - } - data->hidpp = hidpp; data->version = version;for (j =0 ; j < num_slots; j++)
@@ -2575,6 +2568,7 @@ static int hidpp_ff_init(struct hidpp_device *hidpp,hid_warn (hidpp->hid_dev,"Unable to create sysfs interface for \"range\", errno %d!\n" , error);/* init the hardware command queue */ + data->wq =create_singlethread_workqueue ("hidpp-ff-sendqueue" );atomic_set (&data->workqueue_size,0 ); hid_info(hid, "Force feedback support loaded (firmware release %d).\n",
Signature · 1 line
2.31.1
Jiri Kosina
maintainerRe: [PATCH 122/190] Revert "HID: logitech: check the return value of create_singlethread_workqueue"
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
6c44b15e1c9076d925d5236ddadf1318b0a25ce2.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 Jiri Kosina <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
This particular one doesn't have to be reverted, I have reviewed it again and it does fix an actual bug.
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs
Greg Kroah-Hartman
maintainerRe: [PATCH 122/190] Revert "HID: logitech: check the return value of create_singlethread_workqueue"
Quoted 18 lines · Jiri Kosina
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
6c44b15e1c9076d925d5236ddadf1318b0a25ce2.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 Jiri Kosina <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>This particular one doesn't have to be reverted, I have reviewed it again and it does fix an actual bug.
Thanks, I will drop the revert from my tree.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 123/190 Revert "netfilter: ip6t_srh: fix NULL pointer dereferences"
In reply to Greg Kroah-HartmanThis reverts commit 6d65561f3d5ec933151939c543d006b79044e7a6.
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.
--- net/ipv6/netfilter/ip6t_srh.c | 6 ------ 1 file changed, 6 deletions(-)
net/ipv6/netfilter/ip6t_srh.c +0 -6
@@ -206,8 +206,6 @@ static bool srh1_mt6(const struct sk_buff *skb, struct xt_action_param *par) psidoff = srhoff +sizeof (struct ipv6_sr_hdr ) + ((srh->segments_left +1 ) *sizeof (struct in6_addr )); psid =skb_header_pointer (skb, psidoff,sizeof (_psid), &_psid); -if (!psid) -return false;if (NF_SRH_INVF (srhinfo,IP6T_SRH_INV_PSID ,ipv6_masked_addr_cmp (psid, &srhinfo->psid_msk, &srhinfo->psid_addr)))
@@ -221,8 +219,6 @@ static bool srh1_mt6(const struct sk_buff *skb, struct xt_action_param *par) nsidoff = srhoff +sizeof (struct ipv6_sr_hdr ) + ((srh->segments_left -1 ) *sizeof (struct in6_addr )); nsid =skb_header_pointer (skb, nsidoff,sizeof (_nsid), &_nsid); -if (!nsid) -return false;if (NF_SRH_INVF (srhinfo,IP6T_SRH_INV_NSID ,ipv6_masked_addr_cmp (nsid, &srhinfo->nsid_msk, &srhinfo->nsid_addr)))
@@ -233,8 +229,6 @@ static bool srh1_mt6(const struct sk_buff *skb, struct xt_action_param *par)if (srhinfo->mt_flags &IP6T_SRH_LSID ) { lsidoff = srhoff +sizeof (struct ipv6_sr_hdr ); lsid =skb_header_pointer (skb, lsidoff,sizeof (_lsid), &_lsid); -if (!lsid) -return false;if (NF_SRH_INVF (srhinfo,IP6T_SRH_INV_LSID ,ipv6_masked_addr_cmp (lsid, &srhinfo->lsid_msk, &srhinfo->lsid_addr)))
Signature · 1 line
2.31.1
Pablo Neira Ayuso
maintainerRe: [PATCH 123/190] Revert "netfilter: ip6t_srh: fix NULL pointer dereferences"
Hi Greg,
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
6d65561f3d5ec933151939c543d006b79044e7a6.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 patch looks correct, no need to revert.
If you still prefer to revert it, no problem, I'll recover this fix via the netfilter tree later on.
Thanks.
Greg Kroah-Hartman
maintainerRe: [PATCH 123/190] Revert "netfilter: ip6t_srh: fix NULL pointer dereferences"
Quoted 13 lines · Pablo Neira Ayuso
Hi Greg,
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
6d65561f3d5ec933151939c543d006b79044e7a6.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 7 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 patch looks correct, no need to revert.
Wonderful, thanks for the review.
Quoted 2 lines
If you still prefer to revert it, no problem, I'll recover this fix via the netfilter tree later on.
Nah, I'm dropping anything that reviewers point out is "ok" from this patch series.
thanks again,
greg k-h
Greg Kroah-Hartman
maintainerRe: [PATCH 123/190] Revert "netfilter: ip6t_srh: fix NULL pointer dereferences"
In reply to Pablo Neira AyusoQuoted 19 lines · Pablo Neira Ayuso
Hi Greg,
Quoted 10 lines · Greg Kroah-Hartman
This reverts commit
6d65561f3d5ec933151939c543d006b79044e7a6.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.
Quoted 4 lines
This patch looks correct, no need to revert.
If you still prefer to revert it, no problem, I'll recover this fix via the netfilter tree later on.
Now dropped from my tree, thanks.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 124/190 Revert "spi : spi-topcliff-pch: Fix to handle empty DMA buffers"
In reply to Greg Kroah-HartmanThis reverts commit f37d8e67f39e6d3eaf4cc5471e8a3d21209843c6.
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/spi/spi-topcliff-pch.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-)
drivers/spi/spi-topcliff-pch.c +2 -13
@@ -1290,27 +1290,18 @@ static void pch_free_dma_buf(struct pch_spi_board_data *board_dat, dma->rx_buf_virt, dma->rx_buf_dma); } -static int pch_alloc_dma_buf (struct pch_spi_board_data *board_dat, +static void pch_alloc_dma_buf (struct pch_spi_board_data *board_dat,struct pch_spi_data *data) {struct pch_spi_dma_ctrl *dma; -int ret; dma = &data->dma; - ret =0 ;/* Get Consistent memory for Tx DMA */ dma->tx_buf_virt =dma_alloc_coherent (&board_dat->pdev->dev,PCH_BUF_SIZE , &dma->tx_buf_dma,GFP_KERNEL ); -if (!dma->tx_buf_virt) - ret = -ENOMEM ; -/* Get Consistent memory for Rx DMA */ dma->rx_buf_virt =dma_alloc_coherent (&board_dat->pdev->dev,PCH_BUF_SIZE , &dma->rx_buf_dma,GFP_KERNEL ); -if (!dma->rx_buf_virt) - ret = -ENOMEM ; - -return ret; }static int pch_spi_pd_probe (struct platform_device *plat_dev)
@@ -1387,9 +1378,7 @@ static int pch_spi_pd_probe(struct platform_device *plat_dev)if (use_dma) {dev_info (&plat_dev->dev,"Use DMA for data transfers\n" ); - ret =pch_alloc_dma_buf (board_dat, data); -if (ret) - goto err_spi_register_master; +pch_alloc_dma_buf (board_dat, data); } ret =spi_register_master (master);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 124/190] Revert "spi : spi-topcliff-pch: Fix to handle empty DMA buffers"
Quoted 70 lines · Greg Kroah-Hartman
This reverts commit
f37d8e67f39e6d3eaf4cc5471e8a3d21209843c6.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 Mark Brown <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/spi/spi-topcliff-pch.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-)drivers/spi/spi-topcliff-pch.c +2
-13@@ -1290,27 +1290,18 @@ static void pch_free_dma_buf(struct pch_spi_board_data *board_dat, dma->rx_buf_virt, dma->rx_buf_dma); } -static int pch_alloc_dma_buf (struct pch_spi_board_data *board_dat, +static void pch_alloc_dma_buf (struct pch_spi_board_data *board_dat,struct pch_spi_data *data) {struct pch_spi_dma_ctrl *dma; -int ret; dma = &data->dma; - ret =0 ;/* Get Consistent memory for Tx DMA */ dma->tx_buf_virt =dma_alloc_coherent (&board_dat->pdev->dev,PCH_BUF_SIZE , &dma->tx_buf_dma,GFP_KERNEL ); -if (!dma->tx_buf_virt) - ret = -ENOMEM ; -/* Get Consistent memory for Rx DMA */ dma->rx_buf_virt =dma_alloc_coherent (&board_dat->pdev->dev,PCH_BUF_SIZE , &dma->rx_buf_dma,GFP_KERNEL ); -if (!dma->rx_buf_virt) - ret = -ENOMEM ; - -return ret; }static int pch_spi_pd_probe (struct platform_device *plat_dev)@@ -1387,9 +1378,7 @@ static int pch_spi_pd_probe(struct platform_device *plat_dev)if (use_dma) {dev_info (&plat_dev->dev,"Use DMA for data transfers\n" ); - ret =pch_alloc_dma_buf (board_dat, data); -if (ret) - goto err_spi_register_master; +pch_alloc_dma_buf (board_dat, data); } ret =spi_register_master (master);Signature · 1 line
2.31.1
THis looks correct, so I'll drop the revert.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 125/190 Revert "net: tipc: fix a missing check of nla_nest_start"
In reply to Greg Kroah-HartmanThis reverts commit 4589e28db46ee4961edfd794c5bb43887d38c8e5.
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.
--- net/tipc/group.c | 3 --- 1 file changed, 3 deletions(-)
net/tipc/group.c +0 -3
@@ -927,9 +927,6 @@ int tipc_group_fill_sock_diag(struct tipc_group *grp, struct sk_buff *skb) { struct nlattr *group = nla_nest_start_noflag(skb, TIPC_NLA_SOCK_GROUP); - if (!group) - return -EMSGSIZE; - if (nla_put_u32(skb, TIPC_NLA_SOCK_GROUP_ID, grp->type) || nla_put_u32(skb, TIPC_NLA_SOCK_GROUP_INSTANCE,
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 125/190] Revert "net: tipc: fix a missing check of nla_nest_start"
Quoted 40 lines · Greg Kroah-Hartman
This reverts commit
4589e28db46ee4961edfd794c5bb43887d38c8e5.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- net/tipc/group.c | 3 --- 1 file changed, 3 deletions(-)net/tipc/group.c +0
-3@@ -927,9 +927,6 @@ int tipc_group_fill_sock_diag(struct tipc_group *grp, struct sk_buff *skb) { struct nlattr *group = nla_nest_start_noflag(skb, TIPC_NLA_SOCK_GROUP); - if (!group) - return -EMSGSIZE; - if (nla_put_u32(skb, TIPC_NLA_SOCK_GROUP_ID, grp->type) || nla_put_u32(skb, TIPC_NLA_SOCK_GROUP_INSTANCE,Signature · 1 line
2.31.1
The original commit here was fine, I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 126/190 Revert "net: openvswitch: fix a NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 6f19893b644a9454d85e593b5e90914e7a72b7dd.
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.
--- net/openvswitch/datapath.c | 4 ---- 1 file changed, 4 deletions(-)
net/openvswitch/datapath.c +0 -4
@@ -443,10 +443,6 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb, upcall =genlmsg_put (user_skb,0 ,0 , &dp_packet_genl_family,0 , upcall_info->cmd); -if (!upcall) { - err = -EINVAL ; - goto out; - } upcall->dp_ifindex = dp_ifindex; err =ovs_nla_put_key (key, key,OVS_PACKET_ATTR_KEY , false, user_skb);
Signature · 1 line
2.31.1
Re: [PATCH 126/190] Revert "net: openvswitch: fix a NULL pointer dereference"
Quoted 38 lines · On Wed, 21 Apr 2021 15:00:01 +0200 Greg Kroah-Hartman…
This reverts commit
6f19893b644a9454d85e593b5e90914e7a72b7dd.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- net/openvswitch/datapath.c | 4 ---- 1 file changed, 4 deletions(-)net/openvswitch/datapath.c +0
-4@@ -443,10 +443,6 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb, upcall =genlmsg_put (user_skb,0 ,0 , &dp_packet_genl_family,0 , upcall_info->cmd); -if (!upcall) { - err = -EINVAL ; - goto out; - } upcall->dp_ifindex = dp_ifindex; err = ovs_nla_put_key(key, key, OVS_PACKET_ATTR_KEY, false,
Quoted 1 line
user_skb);
This patch seems good to me, but given the situation I'd like another pair of eyes on it, at least.
Regards,
Signature · 1 line
per aspera ad upstream
Re: [PATCH 126/190] Revert "net: openvswitch: fix a NULL pointer dereference"
Quoted 41 lines · Matteo Croce
Quoted 37 lines · On Wed, 21 Apr 2021 15:00:01 +0200 Greg Kroah-Hartman…
This reverts commit
6f19893b644a9454d85e593b5e90914e7a72b7dd.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- net/openvswitch/datapath.c | 4 ---- 1 file changed, 4 deletions(-)net/openvswitch/datapath.c +0
-4@@ -443,10 +443,6 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb, upcall =genlmsg_put (user_skb,0 ,0 , &dp_packet_genl_family,0 , upcall_info->cmd); -if (!upcall) { - err = -EINVAL ; - goto out; - } upcall->dp_ifindex = dp_ifindex;
Quoted 5 lines
Quoted 2 lines
net/openvswitch/datapath.c +0
-0err = ovs_nla_put_key(key, key, OVS_PACKET_ATTR_KEY, false,
user_skb);This patch seems good to me, but given the situation I'd like another pair of eyes on it, at least.
The revert LGTM.
A few lines above:
len = upcall_msg_size(upcall_info, hlen - cutlen,
OVS_CB(skb)->acts_origlen);
user_skb = genlmsg_new(len, GFP_ATOMIC);
if (!user_skb) {
err = -ENOMEM;
goto out;
}upcall_msg_size() calculates the expected size of the buffer, including at the very least a nlmsg-aligned sizeof(struct ovs_header), plus other constants and also potential (likely) variable lengths based on the current flow context.
genlmsg_new() adds the (nlmsg-aligned) nlmsg header length to the calculated length when allocating the buffer, and if the memory allocation fails here then the error is already returned.
I don't then see a way for genlmsg_put() to fail per the hunk in the commit here given that its buffer reservation is calculated based on:
nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN +
family->hdrsize, flags);Where family->hdrsize would be sizeof(struct ovs_header) since dp_packet_genl_family is the family passed into the genlmsg_put() call:
static struct genl_family dp_packet_genl_family __ro_after_init = {
.hdrsize = sizeof(struct ovs_header),
Even if there were some allocation bug here to be fixed (due to miscalculating the buffer size in the first place), I don't see how the extra error path in the included patch could catch such an error. The original patch doesn't seem necessarily problematic, but it doesn't seem like it adds anything of value either (or at least, nothing a comment couldn't clearly explain).
Cheers,
Joe
Greg Kroah-Hartman
maintainerRe: [PATCH 126/190] Revert "net: openvswitch: fix a NULL pointer dereference"
Quoted 89 lines · Joe Stringer
Quoted 41 lines · Matteo Croce
Quoted 37 lines · On Wed, 21 Apr 2021 15:00:01 +0200 Greg Kroah-Hartman…
This reverts commit
6f19893b644a9454d85e593b5e90914e7a72b7dd.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- net/openvswitch/datapath.c | 4 ---- 1 file changed, 4 deletions(-)net/openvswitch/datapath.c +0
-4@@ -443,10 +443,6 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb, upcall =genlmsg_put (user_skb,0 ,0 , &dp_packet_genl_family,0 , upcall_info->cmd); -if (!upcall) { - err = -EINVAL ; - goto out; - } upcall->dp_ifindex = dp_ifindex;Quoted 5 lines
Quoted 2 lines
net/openvswitch/datapath.c +0
-0err = ovs_nla_put_key(key, key, OVS_PACKET_ATTR_KEY, false,
user_skb);This patch seems good to me, but given the situation I'd like another pair of eyes on it, at least.
The revert LGTM.
A few lines above:
len = upcall_msg_size(upcall_info, hlen - cutlen, OVS_CB(skb)->acts_origlen); user_skb = genlmsg_new(len, GFP_ATOMIC); if (!user_skb) { err = -ENOMEM; goto out; }
upcall_msg_size()calculates the expected size of the buffer, including at the very least a nlmsg-alignedsizeof(struct ovs_header), plus other constants and also potential (likely) variable lengths based on the current flow context.
genlmsg_new()adds the (nlmsg-aligned) nlmsg header length to the calculated length when allocating the buffer, and if the memory allocation fails here then the error is already returned.I don't then see a way for
genlmsg_put()to fail per the hunk in the commit here given that its buffer reservation is calculated based on:nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN + family->hdrsize, flags);Where
family->hdrsizewould besizeof(struct ovs_header)sincedp_packet_genl_familyis the family passed into thegenlmsg_put()call:static struct
genl_familydp_packet_genl_family__ro_after_init= {
.hdrsize =sizeof(struct ovs_header),Even if there were some allocation bug here to be fixed (due to miscalculating the buffer size in the first place), I don't see how the extra error path in the included patch could catch such an error. The original patch doesn't seem necessarily problematic, but it doesn't seem like it adds anything of value either (or at least, nothing a comment couldn't clearly explain).
Quoted 2 lines
Cheers,
Joe
Many thanks for the review, now dropping this revert from my tree.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 127/190 Revert "ALSA: sb8: add a check for request_region"
In reply to Greg Kroah-HartmanThis reverts commit dcd0feac9bab901d5739de51b3f69840851f8919.
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/sb/sb8.c | 4 ---- 1 file changed, 4 deletions(-)
sound/isa/sb/sb8.c +0 -4
@@ -95,10 +95,6 @@ static int snd_sb8_probe(struct device *pdev, unsigned int dev)/* block the 0x388 port to avoid PnP conflicts */ acard->fm_res =request_region (0x388 ,4 ,"SoundBlaster FM" ); -if (!acard->fm_res) { - err = -EBUSY ; - goto _err; - } if (port[dev] != SNDRV_AUTO_PORT) { if ((err = snd_sbdsp_create(card, port[dev], irq[dev],
Signature · 1 line
2.31.1
Re: [PATCH 127/190] Revert "ALSA: sb8: add a check for request_region"
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
dcd0feac9bab901d5739de51b3f69840851f8919.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 Takashi Iwai <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
This code change itself looks OK, OTOH, the original commit message is slightly wrong: the code path can never result in NULL deference in this case, as it's just an optional resource reservation. So, it's safe to revert this.
thanks,
Takashi
Quoted 22 lines
--- sound/isa/sb/sb8.c | 4 ---- 1 file changed, 4 deletions(-)sound/isa/sb/sb8.c +0
-4@@ -95,10 +95,6 @@ static int snd_sb8_probe(struct device *pdev, unsigned int dev)/* block the 0x388 port to avoid PnP conflicts */ acard->fm_res =request_region (0x388 ,4 ,"SoundBlaster FM" ); -if (!acard->fm_res) { - err = -EBUSY ; - goto _err; - } if (port[dev] != SNDRV_AUTO_PORT) { if ((err = snd_sbdsp_create(card, port[dev], irq[dev],Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 127/190] Revert "ALSA: sb8: add a check for request_region"
Quoted 19 lines · Takashi Iwai
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
dcd0feac9bab901d5739de51b3f69840851f8919.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 Kangjie Lu <[email protected]>Cc Takashi Iwai <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>This code change itself looks OK, OTOH, the original commit message is slightly wrong: the code path can never result in NULL deference in this case, as it's just an optional resource reservation. So, it's safe to revert this.
Thanks for the review!
greg k-h
Greg Kroah-Hartman
maintainerPATCH 128/190 Revert "net: strparser: fix a missing check for create_singlethread_workqueue"
In reply to Greg Kroah-HartmanThis reverts commit 228cd2dba27cee9956c1af97e6445be056881e41.
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.
--- net/strparser/strparser.c | 2 -- 1 file changed, 2 deletions(-)
net/strparser/strparser.c +0 -2
@@ -542,8 +542,6 @@ EXPORT_SYMBOL_GPL(strp_check_rcv);static int __init strp_dev_init (void ) { strp_wq =create_singlethread_workqueue ("kstrp" ); -if (unlikely (!strp_wq)) -return -ENOMEM ;return 0 ; }
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 128/190] Revert "net: strparser: fix a missing check for create_singlethread_workqueue"
Quoted 39 lines · Greg Kroah-Hartman
This reverts commit
228cd2dba27cee9956c1af97e6445be056881e41.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- net/strparser/strparser.c | 2 -- 1 file changed, 2 deletions(-)net/strparser/strparser.c +0
-2@@ -542,8 +542,6 @@ EXPORT_SYMBOL_GPL(strp_check_rcv);static int __init strp_dev_init (void ) { strp_wq =create_singlethread_workqueue ("kstrp" ); -if (unlikely (!strp_wq)) -return -ENOMEM ;return 0 ; }Signature · 1 line
2.31.1
In the original commit "unlikely" should not have been used as it is not needed at all (the compiler and CPU already know this), but the commit is correct so I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 129/190 Revert "qlcnic: Avoid potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 5bf7295fe34a5251b1d241b9736af4697b590670.
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/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c +0 -2
@@ -1047,8 +1047,6 @@ int qlcnic_do_lb_test(struct qlcnic_adapter *adapter, u8 mode)for (i =0 ; i <QLCNIC_NUM_ILB_PKT ; i++) { skb =netdev_alloc_skb (adapter->netdev,QLCNIC_ILB_PKT_SIZE ); -if (!skb) -break ;qlcnic_create_loopback_buff (skb->data, adapter->mac_addr);skb_put (skb,QLCNIC_ILB_PKT_SIZE ); adapter->ahw->diag_cnt =0 ;
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 129/190] Revert "qlcnic: Avoid potential NULL pointer dereference"
Quoted 39 lines · Greg Kroah-Hartman
This reverts commit
5bf7295fe34a5251b1d241b9736af4697b590670.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 2 -- 1 file changed, 2 deletions(-)drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c +0
-2@@ -1047,8 +1047,6 @@ int qlcnic_do_lb_test(struct qlcnic_adapter *adapter, u8 mode)for (i =0 ; i <QLCNIC_NUM_ILB_PKT ; i++) { skb =netdev_alloc_skb (adapter->netdev,QLCNIC_ILB_PKT_SIZE ); -if (!skb) -break ;qlcnic_create_loopback_buff (skb->data, adapter->mac_addr);skb_put (skb,QLCNIC_ILB_PKT_SIZE ); adapter->ahw->diag_cnt =0 ;Signature · 1 line
2.31.1
This commit does not properly detect if an error happens because the logic after this loop will not detect that there was a failed allocation. I will keep this revert and fix it up properly later.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 130/190 Revert "ALSA: usx2y: Fix potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit a2c6433ee5a35a8de6d563f6512a26f87835ea0f.
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/usb/usx2y/usb_stream.c | 5 ----- 1 file changed, 5 deletions(-)
sound/usb/usx2y/usb_stream.c +0 -5
@@ -91,12 +91,7 @@ static int init_urbs(struct usb_stream_kernel *sk, unsigned use_packsize,for (u =0 ; u <USB_STREAM_NURBS ; ++u) { sk->inurb[u] =usb_alloc_urb (sk->n_o_ps,GFP_KERNEL ); -if (!sk->inurb[u]) -return -ENOMEM ; - sk->outurb[u] =usb_alloc_urb (sk->n_o_ps,GFP_KERNEL ); -if (!sk->outurb[u]) -return -ENOMEM ; } if (init_pipe_urbs(sk, use_packsize, sk->inurb, indata, dev, in_pipe) ||
Signature · 1 line
2.31.1
Re: [PATCH 130/190] Revert "ALSA: usx2y: Fix potential NULL pointer dereference"
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
a2c6433ee5a35a8de6d563f6512a26f87835ea0f.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>
This is same like the revert#80, the code change itself seems correct, but it's a pretty minor error path, probably no one would hit. So, feel free to revert if it's in doubt.
thanks,
Takashi
Quoted 24 lines
--- sound/usb/usx2y/usb_stream.c | 5 ----- 1 file changed, 5 deletions(-)sound/usb/usx2y/usb_stream.c +0
-5@@ -91,12 +91,7 @@ static int init_urbs(struct usb_stream_kernel *sk, unsigned use_packsize,for (u =0 ; u <USB_STREAM_NURBS ; ++u) { sk->inurb[u] =usb_alloc_urb (sk->n_o_ps,GFP_KERNEL ); -if (!sk->inurb[u]) -return -ENOMEM ; - sk->outurb[u] =usb_alloc_urb (sk->n_o_ps,GFP_KERNEL ); -if (!sk->outurb[u]) -return -ENOMEM ; } if (init_pipe_urbs(sk, use_packsize, sk->inurb, indata, dev, in_pipe) ||Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 130/190] Revert "ALSA: usx2y: Fix potential NULL pointer dereference"
Quoted 42 lines · Takashi Iwai
Quoted 17 lines · Greg Kroah-Hartman
This reverts commit
a2c6433ee5a35a8de6d563f6512a26f87835ea0f.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>This is same like the revert#80, the code change itself seems correct, but it's a pretty minor error path, probably no one would hit. So, feel free to revert if it's in doubt.
thanks,
Takashi
Quoted 10 lines
--- sound/usb/usx2y/usb_stream.c | 5 ----- 1 file changed, 5 deletions(-)sound/usb/usx2y/usb_stream.c +0
-0@@ -91,12 +91,7 @@ static int init_urbs(struct usb_stream_kernel *sk, unsigned use_packsize,
Quoted 8 lines
sound/usb/usx2y/usb_stream.c static int init_urbs(struct usb_stream_kernel *sk, unsigned use_packsize, · line 99
Quoted 8 lines
sound/usb/usx2y/usb_stream.c +0
-5for (u =0 ; u <USB_STREAM_NURBS ; ++u) { sk->inurb[u] =usb_alloc_urb (sk->n_o_ps,GFP_KERNEL ); -if (!sk->inurb[u]) -return -ENOMEM ; - sk->outurb[u] =usb_alloc_urb (sk->n_o_ps,GFP_KERNEL ); -if (!sk->outurb[u]) -return -ENOMEM ;
This leaks memory if the error path is hit, so I'm going to keep this revert as it it needs to be handled properly. And really, this code path is impossible to hit...
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 131/190 Revert "net: 8390: fix potential NULL pointer dereferences"
In reply to Greg Kroah-HartmanThis reverts commit c7cbc3e937b885c9394bf9d0ca21ceb75c2ac262.
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/ethernet/8390/pcnet_cs.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/net/ethernet/8390/pcnet_cs.c +0 -10
@@ -289,11 +289,6 @@ static struct hw_info *get_hwinfo(struct pcmcia_device *link) virt =ioremap (link->resource[2 ]->start,resource_size (link->resource[2 ])); -if (unlikely (!virt)) { -pcmcia_release_window (link, link->resource[2 ]); -return NULL ; - } -for (i =0 ; i <NR_INFO ; i++) {pcmcia_map_mem_page (link, link->resource[2 ], hw_info[i].offset & ~(resource_size (link->resource[2 ])-1 ));
@@ -1430,11 +1425,6 @@ static int setup_shmem_window(struct pcmcia_device *link, int start_pg,/* Try scribbling on the buffer */ info->base =ioremap (link->resource[3 ]->start,resource_size (link->resource[3 ])); -if (unlikely (!info->base)) { - ret = -ENOMEM ; - goto failed; - } -for (i =0 ; i < (TX_PAGES <<8 ); i +=2 )__raw_writew ((i>>1 ), info->base+offset+i);udelay (100 );
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 131/190] Revert "net: 8390: fix potential NULL pointer dereferences"
Quoted 54 lines · Greg Kroah-Hartman
This reverts commit
c7cbc3e937b885c9394bf9d0ca21ceb75c2ac262.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/8390/pcnet_cs.c | 10 ---------- 1 file changed, 10 deletions(-)drivers/net/ethernet/8390/pcnet_cs.c +0
-10@@ -289,11 +289,6 @@ static struct hw_info *get_hwinfo(struct pcmcia_device *link) virt =ioremap (link->resource[2 ]->start,resource_size (link->resource[2 ])); -if (unlikely (!virt)) { -pcmcia_release_window (link, link->resource[2 ]); -return NULL ; - } -for (i =0 ; i <NR_INFO ; i++) {pcmcia_map_mem_page (link, link->resource[2 ], hw_info[i].offset & ~(resource_size (link->resource[2 ])-1 ));@@ -1430,11 +1425,6 @@ static int setup_shmem_window(struct pcmcia_device *link, int start_pg,/* Try scribbling on the buffer */ info->base =ioremap (link->resource[3 ]->start,resource_size (link->resource[3 ])); -if (unlikely (!info->base)) { - ret = -ENOMEM ; - goto failed; - } -for (i =0 ; i < (TX_PAGES <<8 ); i +=2 )__raw_writew ((i>>1 ), info->base+offset+i);udelay (100 );Signature · 1 line
2.31.1
This change causes a memory leak on the error path, so I will keep the revert.
But really, a pcmcia card with a failed ioremap() call? That can never happen here, so I'll just keep it reverted, it's not worth touching again.
thanks,
greg k-h
Russell King - ARM Linux admin
maintainerRe: [PATCH 131/190] Revert "net: 8390: fix potential NULL pointer dereferences"
Quoted 59 lines · Greg Kroah-Hartman
Quoted 54 lines · Greg Kroah-Hartman
This reverts commit
c7cbc3e937b885c9394bf9d0ca21ceb75c2ac262.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/8390/pcnet_cs.c | 10 ---------- 1 file changed, 10 deletions(-)drivers/net/ethernet/8390/pcnet_cs.c +0
-10@@ -289,11 +289,6 @@ static struct hw_info *get_hwinfo(struct pcmcia_device *link) virt =ioremap (link->resource[2 ]->start,resource_size (link->resource[2 ])); -if (unlikely (!virt)) { -pcmcia_release_window (link, link->resource[2 ]); -return NULL ; - } -for (i =0 ; i <NR_INFO ; i++) {pcmcia_map_mem_page (link, link->resource[2 ], hw_info[i].offset & ~(resource_size (link->resource[2 ])-1 ));@@ -1430,11 +1425,6 @@ static int setup_shmem_window(struct pcmcia_device *link, int start_pg,/* Try scribbling on the buffer */ info->base =ioremap (link->resource[3 ]->start,resource_size (link->resource[3 ])); -if (unlikely (!info->base)) { - ret = -ENOMEM ; - goto failed; - } -for (i =0 ; i < (TX_PAGES <<8 ); i +=2 )__raw_writew ((i>>1 ), info->base+offset+i);udelay (100 );Signature · 1 line
2.31.1This change causes a memory leak on the error path, so I will keep the revert.
Quoted 3 lines
But really, a pcmcia card with a failed
ioremap()call? That can never happen here, so I'll just keep it reverted, it's not worth touching again.
I'm afraid that I have to disagree with your analysis.
However, first thing is, it would help immensely if you actually said where the memory leak is, rather than using this boiler plate and rushing through the changes.
On IRC, you mentioned it was due to the change in setup_shmem_window(), specifically "no call to pcmcia_release_window()". This seems to imply that you have no problem with the change to get_hwinfo(), and indeed that part of the original change looks fully correct to me. So, concentrating on the setup_shmem_window() change in this patch:
First, let's analyse pcmcia_request_window() and pcmcia_release_window(). pcmcia_request_window() allocates some memory for a struct resource, which pcmcia_release_window() releases. So, on the face of it, calling the former without a subsequent call to the latter looks like a memory leak, unless one gets a deeper understanding first.
When pcmcia_request_window() is called and is successful, the resource is marked with the window number that has been allocated to it, which is always non-zero:
#define WIN_FLAGS_REQ 0x1c
/* Configure the socket controller */
win->map = w+1;
...
res->flags &= ~WIN_FLAGS_REQ;
res->flags |= (win->map << 2) | IORESOURCE_MEM;When a window is released, this is checked:
w = ((res->flags & IORESOURCE_BITS & WIN_FLAGS_REQ) >> 2) - 1;
if (w >= MAX_WIN)
return -EINVAL;However, there is another path where a driver's resources are released, which is if the driver makes a call to pcmcia_disable_device():
for (i = 0; i < MAX_WIN; i++) {
struct resource *res = p_dev->resource[MAX_IO_WIN + i];
if (res->flags & WIN_FLAGS_REQ)
pcmcia_release_window(p_dev, res);
}This walks all the memory resources for the card, releasing any that are currently requested (have non-zero WIN_FLAGS_REQ bits) at the time of this call.
pcnet_cs makes a call to pcmcia_disable_device() from pcnet_release() which is called in two cases: firstly on any probe failure, and secondly on device removal in pcnet_detach().
Consequently, the best that can be said about the setup_shmem_window() memory leak is that it is a temporary leak - the allocated memory will be freed if either the probe eventually fails, or the driver is unbound.
Second point. setup_shmem_window() "failure" itself does not lead to probe failure. The function returns a value that indicates whether shmem can be used by the driver or not - it needs a subsequent call to fail. setup_shmem_window() merely returns a value to indicate whether shmem should be configured or not.
Third point. setup_shmem_window() can already "leak" this window allocation. If pcmcia_map_mem_page() fails, then the window is not released in a timely fashion. So, the "leak" is pre-existing in this driver, and the "leak" introduced by this patch already exists in other paths.
Fourth point. If setup_shmem_window() is successful, which means we use shmem, and we then fail to register the netdev in the subsequent register_netdev() call, we are reliant on pcmcia_disable_device() to clean up that allocation. We are also reliant on pcmcia_disable_device() to clean that up when the driver is unbound. So, this is an entirely normal state of affairs to rely on the action of this call to clean up these resources.
Fifth point. The effect of reverting the original patch will be a kernel oops should this ioremap() fail:
info->base = ioremap(link->resource[3]->start,
resource_size(link->resource[3]));- if (unlikely(!info->base)) {
- ret = -ENOMEM;
- goto failed;
- }
-
for (i = 0; i < (TX_PAGES<<8); i += 2)
__raw_writew((i>>1), info->base+offset+i);
^^^^^^^^^^^^^^^^^^^^So, is the patch of net benefit or net harm?
1) it does not introduce any new issue that doesn't already exist. The driver has a short-term memory leak in certain circumstances already that is cleaned up via the normal action of other pcmcia_* calls.
2) it removes an opportunity for a NULL or close-to-NULL pointer dereference.
Therefore, the original patch is of net _benefit_ and should not be reverted.
It would have been nice to have had a patch that addresses the temporary leak in the driver, but I really don't see that as any justification for reverting this patch. Therefore, I NAK your revert of this change as that will result in more harm than good.
You said on IRC early this morning when you thought there was still a leak in the probe path: "the leak happens from probe, that is where it needs to be cleaned up properly, the patch was incorrect. You owe me a bottle of wine for even debating this crap..."
I think you now owe me more than just a bottle of wine... and I think you need to realise that your attitude also needs to be altered. Yes, I fully understand _why_ you made that comment - it's because you're swamped. However, we *need* to review and debate your reverts, and that is something you should DEFINITELY NOT be discouraging with such comments. If we discourage review and debate in the way you seem to be doing when someone raises a concern, we're yet again proving that our approach to review is broken.
It really concerns me that there seems to be a slap-dash attitude here, and push-back when one of your fellow kernel developers disagrees with your abbreviated unexplained analysis.
Are you sure you aren't causing harm?
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!
Greg Kroah-Hartman
maintainerRe: [PATCH 131/190] Revert "net: 8390: fix potential NULL pointer dereferences"
Quoted 70 lines · Russell King - ARM Linux admin
Quoted 59 lines · Greg Kroah-Hartman
Quoted 54 lines · Greg Kroah-Hartman
This reverts commit
c7cbc3e937b885c9394bf9d0ca21ceb75c2ac262.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/8390/pcnet_cs.c | 10 ---------- 1 file changed, 10 deletions(-)drivers/net/ethernet/8390/pcnet_cs.c +0
-10@@ -289,11 +289,6 @@ static struct hw_info *get_hwinfo(struct pcmcia_device *link) virt =ioremap (link->resource[2 ]->start,resource_size (link->resource[2 ])); -if (unlikely (!virt)) { -pcmcia_release_window (link, link->resource[2 ]); -return NULL ; - } -for (i =0 ; i <NR_INFO ; i++) {pcmcia_map_mem_page (link, link->resource[2 ], hw_info[i].offset & ~(resource_size (link->resource[2 ])-1 ));@@ -1430,11 +1425,6 @@ static int setup_shmem_window(struct pcmcia_device *link, int start_pg,/* Try scribbling on the buffer */ info->base =ioremap (link->resource[3 ]->start,resource_size (link->resource[3 ])); -if (unlikely (!info->base)) { - ret = -ENOMEM ; - goto failed; - } -for (i =0 ; i < (TX_PAGES <<8 ); i +=2 )__raw_writew ((i>>1 ), info->base+offset+i);udelay (100 );Signature · 1 line
2.31.1This change causes a memory leak on the error path, so I will keep the revert.
Quoted 3 lines
But really, a pcmcia card with a failed
ioremap()call? That can never happen here, so I'll just keep it reverted, it's not worth touching again.I'm afraid that I have to disagree with your analysis.
However, first thing is, it would help immensely if you actually said where the memory leak is, rather than using this boiler plate and rushing through the changes.
Quoted 5 lines
On IRC, you mentioned it was due to the change in
setup_shmem_window(), specifically "no call topcmcia_release_window()". This seems to imply that you have no problem with the change toget_hwinfo(), and indeed that part of the original change looks fully correct to me. So, concentrating on thesetup_shmem_window()change in this patch:
<snip>
Fair enough, I'll drop this revert from my tree as you feel the original commit was correct.
thanks for the review.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 132/190 Revert "net: fujitsu: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 9f4d6358e11bbc7b839f9419636188e4151fb6e4.
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/ethernet/fujitsu/fmvj18x_cs.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/net/ethernet/fujitsu/fmvj18x_cs.c +0 -5
@@ -547,11 +547,6 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id)return -1 ; base =ioremap (link->resource[2 ]->start,resource_size (link->resource[2 ])); -if (!base) { -pcmcia_release_window (link, link->resource[2 ]); -return -ENOMEM ; - } -pcmcia_map_mem_page (link, link->resource[2 ],0 );/*
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 132/190] Revert "net: fujitsu: fix a potential NULL pointer dereference"
Quoted 42 lines · Greg Kroah-Hartman
This reverts commit
9f4d6358e11bbc7b839f9419636188e4151fb6e4.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/fujitsu/fmvj18x_cs.c | 5 ----- 1 file changed, 5 deletions(-)drivers/net/ethernet/fujitsu/fmvj18x_cs.c +0
-5@@ -547,11 +547,6 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id)return -1 ; base =ioremap (link->resource[2 ]->start,resource_size (link->resource[2 ])); -if (!base) { -pcmcia_release_window (link, link->resource[2 ]); -return -ENOMEM ; - } -pcmcia_map_mem_page (link, link->resource[2 ],0 );/* Signature · 1 line
2.31.1
Original commit looks correct here, I'll drop the revert.
greg k-h
Dominik Brodowski
maintainerRe: [PATCH 132/190] Revert "net: fujitsu: fix a potential NULL pointer dereference"
Am Wed, Apr 28, 2021 at 07:40:49AM +0200 schrieb Greg Kroah-Hartman:
Quoted 39 lines · Greg Kroah-Hartman
Quoted 38 lines
This reverts commit
9f4d6358e11bbc7b839f9419636188e4151fb6e4.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/fujitsu/fmvj18x_cs.c | 5 ----- 1 file changed, 5 deletions(-)drivers/net/ethernet/fujitsu/fmvj18x_cs.c +0
-5@@ -547,11 +547,6 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id)return -1 ; base =ioremap (link->resource[2 ]->start,resource_size (link->resource[2 ])); -if (!base) { -pcmcia_release_window (link, link->resource[2 ]); -return -ENOMEM ; - } -pcmcia_map_mem_page (link, link->resource[2 ],0 );
Quoted 6 lines
Quoted 4 lines
drivers/net/ethernet/fujitsu/fmvj18x_cs.c +0
-0/* Signature · 1 line
2.31.1Original commit looks correct here, I'll drop the revert.
NAK. The only caller of that function checks only for "== -1" as error condition, so this error is not handled correctly. So this patch was/is obviously broken.
Thanks,
Dominik
Greg Kroah-Hartman
maintainerRe: [PATCH 132/190] Revert "net: fujitsu: fix a potential NULL pointer dereference"
Quoted 47 lines · Dominik Brodowski
Am Wed, Apr 28, 2021 at 07:40:49AM +0200 schrieb Greg Kroah-Hartman:
Quoted 39 lines · Greg Kroah-Hartman
Quoted 38 lines
This reverts commit
9f4d6358e11bbc7b839f9419636188e4151fb6e4.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/fujitsu/fmvj18x_cs.c | 5 ----- 1 file changed, 5 deletions(-)drivers/net/ethernet/fujitsu/fmvj18x_cs.c +0
-5@@ -547,11 +547,6 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id)return -1 ; base =ioremap (link->resource[2 ]->start,resource_size (link->resource[2 ])); -if (!base) { -pcmcia_release_window (link, link->resource[2 ]); -return -ENOMEM ; - } -pcmcia_map_mem_page (link, link->resource[2 ],0 );Quoted 6 lines
Quoted 4 lines
drivers/net/ethernet/fujitsu/fmvj18x_cs.c +0
-0/* Signature · 1 line
2.31.1Original commit looks correct here, I'll drop the revert.
Quoted 3 lines
NAK. The only caller of that function checks only for "== -1" as error condition, so this error is not handled correctly. So this patch was/is obviously broken.
Ah, missed that, thanks! I'll keep the revert and then submit a fix for this properly.
Many thanks for the re-review.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 133/190 Revert "net: qlogic: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit eb32cfcdef2305dc0e44a65d42801315669bb27e.
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/ethernet/qlogic/qla3xxx.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/ethernet/qlogic/qla3xxx.c +0 -6
@@ -3863,12 +3863,6 @@ static int ql3xxx_probe(struct pci_dev *pdev,netif_stop_queue (ndev); qdev->workqueue =create_singlethread_workqueue (ndev->name); -if (!qdev->workqueue) { -unregister_netdev (ndev); - err = -ENOMEM ; - goto err_out_iounmap; - } -INIT_DELAYED_WORK (&qdev->reset_work, ql_reset_work);INIT_DELAYED_WORK (&qdev->tx_timeout_work, ql_tx_timeout_work);INIT_DELAYED_WORK (&qdev->link_state_work, ql_link_state_machine_work);
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 133/190] Revert "net: qlogic: fix a potential NULL pointer dereference"
Quoted 43 lines · Greg Kroah-Hartman
This reverts commit
eb32cfcdef2305dc0e44a65d42801315669bb27e.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/qlogic/qla3xxx.c | 6 ------ 1 file changed, 6 deletions(-)drivers/net/ethernet/qlogic/qla3xxx.c +0
-6@@ -3863,12 +3863,6 @@ static int ql3xxx_probe(struct pci_dev *pdev,netif_stop_queue (ndev); qdev->workqueue =create_singlethread_workqueue (ndev->name); -if (!qdev->workqueue) { -unregister_netdev (ndev); - err = -ENOMEM ; - goto err_out_iounmap; - } -INIT_DELAYED_WORK (&qdev->reset_work, ql_reset_work);INIT_DELAYED_WORK (&qdev->tx_timeout_work, ql_tx_timeout_work);INIT_DELAYED_WORK (&qdev->link_state_work, ql_link_state_machine_work);Signature · 1 line
2.31.1
Ideally you would have added a new goto tag and put the unregister_netdev() call in that, but the logic here still seems to be correct, so I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 134/190 Revert "md: Fix failed allocation of md_register_thread"
In reply to Greg Kroah-HartmanThis reverts commit e406f12dde1a8375d77ea02d91f313fb1a9c6aec.
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/raid10.c | 2 -- drivers/md/raid5.c | 2 -- 2 files changed, 4 deletions(-)
drivers/md/raid10.c +0 -2
@@ -3896,8 +3896,6 @@ static int raid10_run(struct mddev *mddev)set_bit (MD_RECOVERY_RUNNING , &mddev->recovery); mddev->sync_thread =md_register_thread (md_do_sync, mddev,"reshape" ); -if (!mddev->sync_thread) - goto out_free_conf; }return 0 ;
drivers/md/raid5.c +0 -2
@@ -7677,8 +7677,6 @@ static int raid5_run(struct mddev *mddev)set_bit (MD_RECOVERY_RUNNING , &mddev->recovery); mddev->sync_thread =md_register_thread (md_do_sync, mddev,"reshape" ); -if (!mddev->sync_thread) - goto abort; }/* Ok, everything is just fine now */
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 134/190] Revert "md: Fix failed allocation of md_register_thread"
Quoted 55 lines · Greg Kroah-Hartman
This reverts commit
e406f12dde1a8375d77ea02d91f313fb1a9c6aec.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 [email protected] # v3.16+Cc Guoqing Jiang <[email protected]>Cc Aditya Pakki <[email protected]>Cc Song Liu <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/md/raid10.c | 2 -- drivers/md/raid5.c | 2 -- 2 files changed, 4 deletions(-)drivers/md/raid10.c +0
-2@@ -3896,8 +3896,6 @@ static int raid10_run(struct mddev *mddev)set_bit (MD_RECOVERY_RUNNING , &mddev->recovery); mddev->sync_thread =md_register_thread (md_do_sync, mddev,"reshape" ); -if (!mddev->sync_thread) - goto out_free_conf; }return 0 ;drivers/md/raid5.c +0
-2@@ -7677,8 +7677,6 @@ static int raid5_run(struct mddev *mddev)set_bit (MD_RECOVERY_RUNNING , &mddev->recovery); mddev->sync_thread =md_register_thread (md_do_sync, mddev,"reshape" ); -if (!mddev->sync_thread) - goto abort; }/* Ok, everything is just fine now */ Signature · 1 line
2.31.1
These changes look ok, but the error handling logic seems to be freeing the incorrect thread, not the one that these functions create. That's independant of this change, but seems odd. If someone cares about it, it should probably be looked at, or if correct, a comment would be nice as it's really confusing.
Dropping this revert.
greg k-h
Re: [PATCH 134/190] Revert "md: Fix failed allocation of md_register_thread"
Quoted 56 lines · Greg Kroah-Hartman
Quoted 51 lines · Greg Kroah-Hartman
This reverts commit
e406f12dde1a8375d77ea02d91f313fb1a9c6aec.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 [email protected] # v3.16+Cc Guoqing Jiang <[email protected]>Cc Aditya Pakki <[email protected]>Cc Song Liu <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
drivers/md/raid10.c| 2 --drivers/md/raid5.c| 2 --2 files changed, 4 deletions(-)drivers/md/raid10.c +0
-2@@ -3896,8 +3896,6 @@ static int raid10_run(struct mddev *mddev)set_bit (MD_RECOVERY_RUNNING , &mddev->recovery); mddev->sync_thread =md_register_thread (md_do_sync, mddev,"reshape" ); -if (!mddev->sync_thread) - goto out_free_conf; }return 0 ;drivers/md/raid5.c +0
-2@@ -7677,8 +7677,6 @@ static int raid5_run(struct mddev *mddev)set_bit (MD_RECOVERY_RUNNING , &mddev->recovery); mddev->sync_thread =md_register_thread (md_do_sync, mddev,"reshape" ); -if (!mddev->sync_thread) - goto abort; }
Quoted 10 lines
Quoted 4 lines
drivers/md/raid5.c +0
-0/* Ok, everything is just fine now */ Signature · 1 line
2.31.1These changes look ok, but the error handling logic seems to be freeing the incorrect thread, not the one that these functions create. That's independant of this change, but seems odd. If someone cares about it, it should probably be looked at, or if correct, a comment would be nice as it's really confusing.
I don't think this is confusing. raid[5|10]_run() creates two threads:
first mddev->thread, then mddev->sync_thread. If we fail to create the second thread (sync_thread), we free the first thread (mddev->thread) in the error handling logic.
Thanks,
Song
Greg Kroah-Hartman
maintainerRe: [PATCH 134/190] Revert "md: Fix failed allocation of md_register_thread"
Quoted 67 lines · Song Liu
Quoted 56 lines · Greg Kroah-Hartman
Quoted 51 lines · Greg Kroah-Hartman
This reverts commit
e406f12dde1a8375d77ea02d91f313fb1a9c6aec.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 [email protected] # v3.16+Cc Guoqing Jiang <[email protected]>Cc Aditya Pakki <[email protected]>Cc Song Liu <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
drivers/md/raid10.c| 2 --drivers/md/raid5.c| 2 --2 files changed, 4 deletions(-)drivers/md/raid10.c +0
-2@@ -3896,8 +3896,6 @@ static int raid10_run(struct mddev *mddev)set_bit (MD_RECOVERY_RUNNING , &mddev->recovery); mddev->sync_thread =md_register_thread (md_do_sync, mddev,"reshape" ); -if (!mddev->sync_thread) - goto out_free_conf; }return 0 ;drivers/md/raid5.c +0
-2@@ -7677,8 +7677,6 @@ static int raid5_run(struct mddev *mddev)set_bit (MD_RECOVERY_RUNNING , &mddev->recovery); mddev->sync_thread =md_register_thread (md_do_sync, mddev,"reshape" ); -if (!mddev->sync_thread) - goto abort; }Quoted 10 lines
Quoted 4 lines
drivers/md/raid5.c +0
-0/* Ok, everything is just fine now */ Signature · 1 line
2.31.1These changes look ok, but the error handling logic seems to be freeing the incorrect thread, not the one that these functions create. That's independant of this change, but seems odd. If someone cares about it, it should probably be looked at, or if correct, a comment would be nice as it's really confusing.
Quoted 4 lines
I don't think this is confusing. raid[5|10]_run() creates two threads:
firstmddev->thread, thenmddev->sync_thread. If we fail to create the second thread (sync_thread), we free the first thread (mddev->thread) in the error handling logic.
Look a bit lower, in "abort:" you do clean up "->thread", but never "->sync_thread" You can get to "abort:" after sync_thread is properly registered.
That is what I was trying to say above, as it's not obvious because "->thread" was created in a different function, setup_conf(), to see it be freed here in the error path of raid[5|10]_run() wasn't all that clear to me.
Anyway, these are code paths that are obviously never hit, so it's probably not a big deal.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 135/190 Revert "net: rocker: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 5c149314d91876f743ee43efd75b6287ec55480e.
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/ethernet/rocker/rocker_main.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/net/ethernet/rocker/rocker_main.c +0 -5
@@ -2791,11 +2791,6 @@ static int rocker_switchdev_event(struct notifier_block *unused,memcpy (&switchdev_work->fdb_info, ptr,sizeof (switchdev_work->fdb_info)); switchdev_work->fdb_info.addr =kzalloc (ETH_ALEN ,GFP_ATOMIC ); -if (unlikely (!switchdev_work->fdb_info.addr)) { -kfree (switchdev_work); -return NOTIFY_BAD ; - } -ether_addr_copy ((u8 *)switchdev_work->fdb_info.addr, fdb_info->addr);/* Take a reference on the rocker device */
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 135/190] Revert "net: rocker: fix a potential NULL pointer dereference"
Quoted 42 lines · Greg Kroah-Hartman
This reverts commit
5c149314d91876f743ee43efd75b6287ec55480e.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/rocker/rocker_main.c | 5 ----- 1 file changed, 5 deletions(-)drivers/net/ethernet/rocker/rocker_main.c +0
-5@@ -2791,11 +2791,6 @@ static int rocker_switchdev_event(struct notifier_block *unused,memcpy (&switchdev_work->fdb_info, ptr,sizeof (switchdev_work->fdb_info)); switchdev_work->fdb_info.addr =kzalloc (ETH_ALEN ,GFP_ATOMIC ); -if (unlikely (!switchdev_work->fdb_info.addr)) { -kfree (switchdev_work); -return NOTIFY_BAD ; - } -ether_addr_copy ((u8 *)switchdev_work->fdb_info.addr, fdb_info->addr);/* Take a reference on the rocker device */ Signature · 1 line
2.31.1
The unlikely() here is not needed at all, but the logic in the cleanup looks correct so I'll drop this revert.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 136/190 Revert "net: thunder: fix a potential NULL pointer dereference"
In reply to Greg Kroah-HartmanThis reverts commit 0b31d98d90f09868dce71319615e19cd1f146fb6.
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/ethernet/cavium/thunder/nicvf_main.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/ethernet/cavium/thunder/nicvf_main.c +0 -6
@@ -2246,12 +2246,6 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) nic->nicvf_rx_mode_wq =alloc_ordered_workqueue ("nicvf_rx_mode_wq_VF%d" ,WQ_MEM_RECLAIM , nic->vf_id); -if (!nic->nicvf_rx_mode_wq) { - err = -ENOMEM ; -dev_err (dev,"Failed to allocate work queue\n" ); - goto err_unregister_interrupts; - } -INIT_WORK (&nic->rx_mode_work.work, nicvf_set_rx_mode_task);spin_lock_init (&nic->rx_mode_wq_lock);
Signature · 1 line
2.31.1
Re: [PATCH 136/190] Revert "net: thunder: fix a potential NULL pointer dereference"
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
0b31d98d90f09868dce71319615e19cd1f146fb6.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>
+Cc: Sunil Goutham <[email protected]>
The original patch looks correct to me.
Quoted 24 lines
--- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 6 ------ 1 file changed, 6 deletions(-)drivers/net/ethernet/cavium/thunder/nicvf_main.c +0
-6@@ -2246,12 +2246,6 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) nic->nicvf_rx_mode_wq =alloc_ordered_workqueue ("nicvf_rx_mode_wq_VF%d" ,WQ_MEM_RECLAIM , nic->vf_id); -if (!nic->nicvf_rx_mode_wq) { - err = -ENOMEM ; -dev_err (dev,"Failed to allocate work queue\n" ); - goto err_unregister_interrupts; - } -INIT_WORK (&nic->rx_mode_work.work, nicvf_set_rx_mode_task);spin_lock_init (&nic->rx_mode_wq_lock);Signature · 1 line
2.31.1
Signature · 1 line
Josh
Greg Kroah-Hartman
maintainerRe: [PATCH 136/190] Revert "net: thunder: fix a potential NULL pointer dereference"
Quoted 17 lines · Josh Poimboeuf
Quoted 16 lines · Greg Kroah-Hartman
This reverts commit
0b31d98d90f09868dce71319615e19cd1f146fb6.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>+Cc: Sunil Goutham <[email protected]>
The original patch looks correct to me.
Now dropped, thanks for the review.
greg k-h
Greg Kroah-Hartman
maintainerPATCH 137/190 Revert "net: lio_core: fix two NULL pointer dereferences"
In reply to Greg Kroah-HartmanThis reverts commit 41af8b3a097c6fd17a4867efa25966927094f57c.
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/ethernet/cavium/liquidio/lio_core.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_core.c +0 -10
@@ -1211,11 +1211,6 @@ int liquidio_change_mtu(struct net_device *netdev, int new_mtu) 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 soft command\n" ); -return -ENOMEM ; - } ncmd = (union octnet_cmd *)sc->virtdptr;
@@ -1689,11 +1684,6 @@ int liquidio_set_fec(struct lio *lio, int on_off) sc =octeon_alloc_soft_command (oct,OCTNET_CMD_SIZE ,sizeof (struct oct_nic_seapi_resp ),0 ); -if (!sc) { -dev_err (&oct->pci_dev->dev, -"Failed to allocate soft command\n" ); -return -ENOMEM ; - } ncmd = sc->virtdptr; resp = sc->virtrptr;
Signature · 1 line
2.31.1
Greg Kroah-Hartman
maintainerRe: [PATCH 137/190] Revert "net: lio_core: fix two NULL pointer dereferences"
Quoted 54 lines · Greg Kroah-Hartman
This reverts commit
41af8b3a097c6fd17a4867efa25966927094f57c.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]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/net/ethernet/cavium/liquidio/lio_core.c | 10 ---------- 1 file changed, 10 deletions(-)drivers/net/ethernet/cavium/liquidio/lio_core.c +0
-10@@ -1211,11 +1211,6 @@ int liquidio_change_mtu(struct net_device *netdev, int new_mtu) 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 soft command\n" ); -return -ENOMEM ; - } ncmd = (union octnet_cmd *)sc->virtdptr;@@ -1689,11 +1684,6 @@ int liquidio_set_fec(struct lio *lio, int on_off) sc =octeon_alloc_soft_command (oct,OCTNET_CMD_SIZE ,sizeof (struct oct_nic_seapi_resp ),0 ); -if (!sc) { -dev_err (&oct->pci_dev->dev, -"Failed to allocate soft command\n" ); -return -ENOMEM ; - } ncmd = sc->virtdptr; resp = sc->virtrptr;Signature · 1 line
2.31.1
Original here looks correct, I'll drop my revert.
greg k-h