* Re: [LTP] [PATCH 6.6 000/396] 6.6.24-rc1 review
[not found] <20240401152547.867452742@linuxfoundation.org>
@ 2024-04-01 19:01 ` Naresh Kamboju
2024-04-01 19:22 ` Alexander Wetzel via ltp
0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2024-04-01 19:01 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: lkft-triage, patches, Alexander Wetzel, stable, shuah,
Dan Carpenter, f.fainelli, Bart Van Assche, jonathanh, patches,
linux, Arnd Bergmann, srw, broonie, LTP List, Martin K. Petersen,
rwarsow, pavel, allen.lkml, conor, linux-kernel, akpm, torvalds,
sudipm.mukherjee
On Mon, 1 Apr 2024 at 22:06, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> This is the start of the stable review cycle for the 6.6.24 release.
> There are 396 patches in this series, all will be posted as a response
> to this one. If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Wed, 03 Apr 2024 15:24:46 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
> https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.24-rc1.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.6.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h
Following kernel warnings have been noticed on qemu-x86_64 while running LTP
cve ioctl_sg01 tests the kernel with stable-rc 6.6.24-rc1, 6.7.12-rc1 and
6.8.3-rc1.
We have started bi-secting this issue.
Always reproduced.
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg0
------------[ cut here ]------------
[ 36.606841] WARNING: CPU: 0 PID: 8 at drivers/scsi/sg.c:2237
sg_remove_sfp_usercontext+0x145/0x150
[ 36.609445] Modules linked in:
[ 36.610793] CPU: 0 PID: 8 Comm: kworker/0:0 Not tainted 6.6.24-rc1 #1
[ 36.611568] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009),
BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
[ 36.612872] Workqueue: events sg_remove_sfp_usercontext
[ 36.613691] RIP: 0010:sg_remove_sfp_usercontext+0x145/0x150
<trim>
[ 36.621539] Call Trace:
[ 36.621953] <TASK>
[ 36.622444] ? show_regs+0x69/0x80
[ 36.622819] ? __warn+0x8d/0x150
[ 36.623078] ? sg_remove_sfp_usercontext+0x145/0x150
[ 36.623558] ? report_bug+0x171/0x1a0
[ 36.623881] ? handle_bug+0x42/0x80
[ 36.624070] ? exc_invalid_op+0x1c/0x70
[ 36.624491] ? asm_exc_invalid_op+0x1f/0x30
[ 36.624897] ? sg_remove_sfp_usercontext+0x145/0x150
[ 36.625408] process_one_work+0x141/0x300
[ 36.625769] worker_thread+0x2f6/0x430
[ 36.626073] ? __pfx_worker_thread+0x10/0x10
[ 36.626529] kthread+0x105/0x140
[ 36.626778] ? __pfx_kthread+0x10/0x10
[ 36.627059] ret_from_fork+0x41/0x60
[ 36.627441] ? __pfx_kthread+0x10/0x10
[ 36.627735] ret_from_fork_asm+0x1b/0x30
[ 36.628293] </TASK>
[ 36.628604] ---[ end trace 0000000000000000 ]---
ioctl_sg01.c:122: TPASS: Output buffer is empty, no data leaked
Suspecting commit:
-----
scsi: sg: Avoid sg device teardown race
commit 27f58c04a8f438078583041468ec60597841284d upstream.
+ WARN_ON_ONCE(kref_read(&sdp->d_ref) != 1);
Steps to reproduce:
- https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2eVWFlAeOUepfeFVkrOXFYNNAqI/reproducer
Links:
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.6.y/build/v6.6.23-397-g75a2533b74d0/testrun/23255318/suite/log-parser-test/tests/
- https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2eVTitwVMagaiWhs5T2iKH390D5
--
Linaro LKFT
https://lkft.linaro.org
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH 6.6 000/396] 6.6.24-rc1 review
2024-04-01 19:01 ` [LTP] [PATCH 6.6 000/396] 6.6.24-rc1 review Naresh Kamboju
@ 2024-04-01 19:22 ` Alexander Wetzel via ltp
2024-04-02 7:51 ` Greg Kroah-Hartman
2024-04-02 10:37 ` Dan Carpenter
0 siblings, 2 replies; 5+ messages in thread
From: Alexander Wetzel via ltp @ 2024-04-01 19:22 UTC (permalink / raw)
To: Naresh Kamboju, Greg Kroah-Hartman
Cc: lkft-triage, patches, stable, shuah, Dan Carpenter, f.fainelli,
Bart Van Assche, jonathanh, patches, linux, Arnd Bergmann, srw,
broonie, LTP List, Martin K. Petersen, rwarsow, pavel, allen.lkml,
conor, linux-kernel, akpm, torvalds, sudipm.mukherjee
> Following kernel warnings have been noticed on qemu-x86_64 while running LTP
> cve ioctl_sg01 tests the kernel with stable-rc 6.6.24-rc1, 6.7.12-rc1 and
> 6.8.3-rc1.
>
> We have started bi-secting this issue.
> Always reproduced.
>
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>
> ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg0
> ------------[ cut here ]------------
> [ 36.606841] WARNING: CPU: 0 PID: 8 at drivers/scsi/sg.c:2237
> sg_remove_sfp_usercontext+0x145/0x150
> [ 36.609445] Modules linked in:
> [ 36.610793] CPU: 0 PID: 8 Comm: kworker/0:0 Not tainted 6.6.24-rc1 #1
> [ 36.611568] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009),
> BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
> [ 36.612872] Workqueue: events sg_remove_sfp_usercontext
> [ 36.613691] RIP: 0010:sg_remove_sfp_usercontext+0x145/0x150
>
> <trim>
>
> [ 36.621539] Call Trace:
> [ 36.621953] <TASK>
> [ 36.622444] ? show_regs+0x69/0x80
> [ 36.622819] ? __warn+0x8d/0x150
> [ 36.623078] ? sg_remove_sfp_usercontext+0x145/0x150
> [ 36.623558] ? report_bug+0x171/0x1a0
> [ 36.623881] ? handle_bug+0x42/0x80
> [ 36.624070] ? exc_invalid_op+0x1c/0x70
> [ 36.624491] ? asm_exc_invalid_op+0x1f/0x30
> [ 36.624897] ? sg_remove_sfp_usercontext+0x145/0x150
> [ 36.625408] process_one_work+0x141/0x300
> [ 36.625769] worker_thread+0x2f6/0x430
> [ 36.626073] ? __pfx_worker_thread+0x10/0x10
> [ 36.626529] kthread+0x105/0x140
> [ 36.626778] ? __pfx_kthread+0x10/0x10
> [ 36.627059] ret_from_fork+0x41/0x60
> [ 36.627441] ? __pfx_kthread+0x10/0x10
> [ 36.627735] ret_from_fork_asm+0x1b/0x30
> [ 36.628293] </TASK>
> [ 36.628604] ---[ end trace 0000000000000000 ]---
> ioctl_sg01.c:122: TPASS: Output buffer is empty, no data leaked
>
> Suspecting commit:
> -----
> scsi: sg: Avoid sg device teardown race
> commit 27f58c04a8f438078583041468ec60597841284d upstream.
>
Correct. The issue is already been worked on.
commit 27f58c04a8f4 ("scsi: sg: Avoid sg device teardown race") fixed a
real issue. But also added an incorrect WARN_ON_ONCE(). Thus the scary -
but otherwise harmless - error message.
Current patch fixing the broken commit is proposed here:
https://lore.kernel.org/all/20240401191038.18359-1-Alexander@wetzel-home.de/
Sorry for the trouble,
Alexander
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH 6.6 000/396] 6.6.24-rc1 review
2024-04-01 19:22 ` Alexander Wetzel via ltp
@ 2024-04-02 7:51 ` Greg Kroah-Hartman
2024-04-02 10:37 ` Dan Carpenter
1 sibling, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2024-04-02 7:51 UTC (permalink / raw)
To: Alexander Wetzel
Cc: lkft-triage, patches, stable, shuah, Dan Carpenter, f.fainelli,
Bart Van Assche, jonathanh, patches, linux, Arnd Bergmann, srw,
broonie, LTP List, Martin K. Petersen, rwarsow, pavel, allen.lkml,
conor, linux-kernel, akpm, torvalds, sudipm.mukherjee
On Mon, Apr 01, 2024 at 09:22:52PM +0200, Alexander Wetzel wrote:
>
> > Following kernel warnings have been noticed on qemu-x86_64 while running LTP
> > cve ioctl_sg01 tests the kernel with stable-rc 6.6.24-rc1, 6.7.12-rc1 and
> > 6.8.3-rc1.
> >
> > We have started bi-secting this issue.
> > Always reproduced.
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> >
> > ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg0
> > ------------[ cut here ]------------
> > [ 36.606841] WARNING: CPU: 0 PID: 8 at drivers/scsi/sg.c:2237
> > sg_remove_sfp_usercontext+0x145/0x150
> > [ 36.609445] Modules linked in:
> > [ 36.610793] CPU: 0 PID: 8 Comm: kworker/0:0 Not tainted 6.6.24-rc1 #1
> > [ 36.611568] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009),
> > BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
> > [ 36.612872] Workqueue: events sg_remove_sfp_usercontext
> > [ 36.613691] RIP: 0010:sg_remove_sfp_usercontext+0x145/0x150
> >
> > <trim>
> >
> > [ 36.621539] Call Trace:
> > [ 36.621953] <TASK>
> > [ 36.622444] ? show_regs+0x69/0x80
> > [ 36.622819] ? __warn+0x8d/0x150
> > [ 36.623078] ? sg_remove_sfp_usercontext+0x145/0x150
> > [ 36.623558] ? report_bug+0x171/0x1a0
> > [ 36.623881] ? handle_bug+0x42/0x80
> > [ 36.624070] ? exc_invalid_op+0x1c/0x70
> > [ 36.624491] ? asm_exc_invalid_op+0x1f/0x30
> > [ 36.624897] ? sg_remove_sfp_usercontext+0x145/0x150
> > [ 36.625408] process_one_work+0x141/0x300
> > [ 36.625769] worker_thread+0x2f6/0x430
> > [ 36.626073] ? __pfx_worker_thread+0x10/0x10
> > [ 36.626529] kthread+0x105/0x140
> > [ 36.626778] ? __pfx_kthread+0x10/0x10
> > [ 36.627059] ret_from_fork+0x41/0x60
> > [ 36.627441] ? __pfx_kthread+0x10/0x10
> > [ 36.627735] ret_from_fork_asm+0x1b/0x30
> > [ 36.628293] </TASK>
> > [ 36.628604] ---[ end trace 0000000000000000 ]---
> > ioctl_sg01.c:122: TPASS: Output buffer is empty, no data leaked
> >
> > Suspecting commit:
> > -----
> > scsi: sg: Avoid sg device teardown race
> > commit 27f58c04a8f438078583041468ec60597841284d upstream.
> >
>
> Correct. The issue is already been worked on.
>
> commit 27f58c04a8f4 ("scsi: sg: Avoid sg device teardown race") fixed a real
> issue. But also added an incorrect WARN_ON_ONCE(). Thus the scary - but
> otherwise harmless - error message.
>
> Current patch fixing the broken commit is proposed here:
> https://lore.kernel.org/all/20240401191038.18359-1-Alexander@wetzel-home.de/
I will drop the offending commit from all queues now, thanks.
greg k-h
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH 6.6 000/396] 6.6.24-rc1 review
2024-04-01 19:22 ` Alexander Wetzel via ltp
2024-04-02 7:51 ` Greg Kroah-Hartman
@ 2024-04-02 10:37 ` Dan Carpenter
2024-04-02 11:44 ` Greg Kroah-Hartman
1 sibling, 1 reply; 5+ messages in thread
From: Dan Carpenter @ 2024-04-02 10:37 UTC (permalink / raw)
To: Alexander Wetzel
Cc: lkft-triage, patches, stable, shuah, f.fainelli, Bart Van Assche,
jonathanh, patches, linux, Arnd Bergmann, srw, broonie, LTP List,
Martin K. Petersen, rwarsow, pavel, allen.lkml, conor,
linux-kernel, Greg Kroah-Hartman, akpm, torvalds,
sudipm.mukherjee
On Mon, Apr 01, 2024 at 09:22:52PM +0200, Alexander Wetzel wrote:
>
> > Following kernel warnings have been noticed on qemu-x86_64 while running LTP
> > cve ioctl_sg01 tests the kernel with stable-rc 6.6.24-rc1, 6.7.12-rc1 and
> > 6.8.3-rc1.
> >
> > We have started bi-secting this issue.
> > Always reproduced.
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> >
> > ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg0
> > ------------[ cut here ]------------
> > [ 36.606841] WARNING: CPU: 0 PID: 8 at drivers/scsi/sg.c:2237
> > sg_remove_sfp_usercontext+0x145/0x150
> > [ 36.609445] Modules linked in:
> > [ 36.610793] CPU: 0 PID: 8 Comm: kworker/0:0 Not tainted 6.6.24-rc1 #1
> > [ 36.611568] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009),
> > BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
> > [ 36.612872] Workqueue: events sg_remove_sfp_usercontext
> > [ 36.613691] RIP: 0010:sg_remove_sfp_usercontext+0x145/0x150
> >
> > <trim>
> >
> > [ 36.621539] Call Trace:
> > [ 36.621953] <TASK>
> > [ 36.622444] ? show_regs+0x69/0x80
> > [ 36.622819] ? __warn+0x8d/0x150
> > [ 36.623078] ? sg_remove_sfp_usercontext+0x145/0x150
> > [ 36.623558] ? report_bug+0x171/0x1a0
> > [ 36.623881] ? handle_bug+0x42/0x80
> > [ 36.624070] ? exc_invalid_op+0x1c/0x70
> > [ 36.624491] ? asm_exc_invalid_op+0x1f/0x30
> > [ 36.624897] ? sg_remove_sfp_usercontext+0x145/0x150
> > [ 36.625408] process_one_work+0x141/0x300
> > [ 36.625769] worker_thread+0x2f6/0x430
> > [ 36.626073] ? __pfx_worker_thread+0x10/0x10
> > [ 36.626529] kthread+0x105/0x140
> > [ 36.626778] ? __pfx_kthread+0x10/0x10
> > [ 36.627059] ret_from_fork+0x41/0x60
> > [ 36.627441] ? __pfx_kthread+0x10/0x10
> > [ 36.627735] ret_from_fork_asm+0x1b/0x30
> > [ 36.628293] </TASK>
> > [ 36.628604] ---[ end trace 0000000000000000 ]---
> > ioctl_sg01.c:122: TPASS: Output buffer is empty, no data leaked
> >
> > Suspecting commit:
> > -----
> > scsi: sg: Avoid sg device teardown race
> > commit 27f58c04a8f438078583041468ec60597841284d upstream.
> >
>
> Correct. The issue is already been worked on.
>
> commit 27f58c04a8f4 ("scsi: sg: Avoid sg device teardown race") fixed a real
> issue. But also added an incorrect WARN_ON_ONCE(). Thus the scary - but
> otherwise harmless - error message.
If you have Reboot on Oops turned on (apparently Android enables this)
then WARN() will reboot the system so it can be pretty annoying.
regards,
dan carpenter
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH 6.6 000/396] 6.6.24-rc1 review
2024-04-02 10:37 ` Dan Carpenter
@ 2024-04-02 11:44 ` Greg Kroah-Hartman
0 siblings, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2024-04-02 11:44 UTC (permalink / raw)
To: Dan Carpenter
Cc: lkft-triage, patches, Alexander Wetzel, stable, shuah, f.fainelli,
Bart Van Assche, jonathanh, patches, linux, Arnd Bergmann, srw,
broonie, LTP List, Martin K. Petersen, rwarsow, pavel, allen.lkml,
conor, linux-kernel, akpm, torvalds, sudipm.mukherjee
On Tue, Apr 02, 2024 at 01:37:50PM +0300, Dan Carpenter wrote:
> On Mon, Apr 01, 2024 at 09:22:52PM +0200, Alexander Wetzel wrote:
> >
> > > Following kernel warnings have been noticed on qemu-x86_64 while running LTP
> > > cve ioctl_sg01 tests the kernel with stable-rc 6.6.24-rc1, 6.7.12-rc1 and
> > > 6.8.3-rc1.
> > >
> > > We have started bi-secting this issue.
> > > Always reproduced.
> > >
> > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > >
> > > ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg0
> > > ------------[ cut here ]------------
> > > [ 36.606841] WARNING: CPU: 0 PID: 8 at drivers/scsi/sg.c:2237
> > > sg_remove_sfp_usercontext+0x145/0x150
> > > [ 36.609445] Modules linked in:
> > > [ 36.610793] CPU: 0 PID: 8 Comm: kworker/0:0 Not tainted 6.6.24-rc1 #1
> > > [ 36.611568] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009),
> > > BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
> > > [ 36.612872] Workqueue: events sg_remove_sfp_usercontext
> > > [ 36.613691] RIP: 0010:sg_remove_sfp_usercontext+0x145/0x150
> > >
> > > <trim>
> > >
> > > [ 36.621539] Call Trace:
> > > [ 36.621953] <TASK>
> > > [ 36.622444] ? show_regs+0x69/0x80
> > > [ 36.622819] ? __warn+0x8d/0x150
> > > [ 36.623078] ? sg_remove_sfp_usercontext+0x145/0x150
> > > [ 36.623558] ? report_bug+0x171/0x1a0
> > > [ 36.623881] ? handle_bug+0x42/0x80
> > > [ 36.624070] ? exc_invalid_op+0x1c/0x70
> > > [ 36.624491] ? asm_exc_invalid_op+0x1f/0x30
> > > [ 36.624897] ? sg_remove_sfp_usercontext+0x145/0x150
> > > [ 36.625408] process_one_work+0x141/0x300
> > > [ 36.625769] worker_thread+0x2f6/0x430
> > > [ 36.626073] ? __pfx_worker_thread+0x10/0x10
> > > [ 36.626529] kthread+0x105/0x140
> > > [ 36.626778] ? __pfx_kthread+0x10/0x10
> > > [ 36.627059] ret_from_fork+0x41/0x60
> > > [ 36.627441] ? __pfx_kthread+0x10/0x10
> > > [ 36.627735] ret_from_fork_asm+0x1b/0x30
> > > [ 36.628293] </TASK>
> > > [ 36.628604] ---[ end trace 0000000000000000 ]---
> > > ioctl_sg01.c:122: TPASS: Output buffer is empty, no data leaked
> > >
> > > Suspecting commit:
> > > -----
> > > scsi: sg: Avoid sg device teardown race
> > > commit 27f58c04a8f438078583041468ec60597841284d upstream.
> > >
> >
> > Correct. The issue is already been worked on.
> >
> > commit 27f58c04a8f4 ("scsi: sg: Avoid sg device teardown race") fixed a real
> > issue. But also added an incorrect WARN_ON_ONCE(). Thus the scary - but
> > otherwise harmless - error message.
>
> If you have Reboot on Oops turned on (apparently Android enables this)
> then WARN() will reboot the system so it can be pretty annoying.
Agreed, I've dropped this stable change for now because of this.
greg k-h
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-02 12:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240401152547.867452742@linuxfoundation.org>
2024-04-01 19:01 ` [LTP] [PATCH 6.6 000/396] 6.6.24-rc1 review Naresh Kamboju
2024-04-01 19:22 ` Alexander Wetzel via ltp
2024-04-02 7:51 ` Greg Kroah-Hartman
2024-04-02 10:37 ` Dan Carpenter
2024-04-02 11:44 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox