2020-09-24 09:29:38

by syzbot

[permalink] [raw]
Subject: WARNING in reiserfs_put_super

Hello,

syzbot found the following issue on:

HEAD commit: 98477740 Merge branch 'rcu/urgent' of git://git.kernel.org..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=154f348d900000
kernel config: https://syzkaller.appspot.com/x/.config?x=5f4c828c9e3cef97
dashboard link: https://syzkaller.appspot.com/bug?extid=fcdd69a8426baab36109
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

------------[ cut here ]------------
WARNING: CPU: 1 PID: 6884 at kernel/workqueue.c:4393 destroy_workqueue.cold+0x5/0x76 kernel/workqueue.c:4393
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 6884 Comm: syz-executor.3 Not tainted 5.9.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x198/0x1fd lib/dump_stack.c:118
panic+0x382/0x7fb kernel/panic.c:231
__warn.cold+0x20/0x4b kernel/panic.c:600
report_bug+0x1bd/0x210 lib/bug.c:198
handle_bug+0x38/0x90 arch/x86/kernel/traps.c:234
exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:254
asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536
RIP: 0010:destroy_workqueue.cold+0x5/0x76 kernel/workqueue.c:4393
Code: 00 0b 8b 88 f7 f1 89 c6 e8 1d f3 10 00 c6 44 24 37 01 e9 af ae ff ff 48 c7 c7 80 e1 e0 89 e8 88 b9 68 00 eb c2 e8 01 ea 27 00 <0f> 0b 48 c7 c6 00 10 8b 88 48 c7 c7 40 0b 8b 88 49 8d 96 60 01 00
RSP: 0018:ffffc90005687cd0 EFLAGS: 00010093
RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffffff814e0963
RDX: ffff888059c70380 RSI: ffffffff814e543f RDI: 0000000000000005
RBP: 000000000000000f R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000001 R11: 0000000000000000 R12: dffffc0000000000
R13: ffffe8ffffcdc000 R14: ffff8880a6506000 R15: 0000000000000000
reiserfs_put_super+0x234/0x5c0 fs/reiserfs/super.c:631
generic_shutdown_super+0x144/0x370 fs/super.c:464
kill_block_super+0x97/0xf0 fs/super.c:1444
deactivate_locked_super+0x94/0x160 fs/super.c:335
deactivate_super+0xad/0xd0 fs/super.c:366
cleanup_mnt+0x3a3/0x530 fs/namespace.c:1118
task_work_run+0xdd/0x190 kernel/task_work.c:141
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_user_mode_loop kernel/entry/common.c:165 [inline]
exit_to_user_mode_prepare+0x1e1/0x200 kernel/entry/common.c:192
syscall_exit_to_user_mode+0x7e/0x2e0 kernel/entry/common.c:267
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x460ba7
Code: 64 89 04 25 d0 02 00 00 58 5f ff d0 48 89 c7 e8 2f be ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 dd 87 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc99c1e078 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000460ba7
RDX: 00000000004031b8 RSI: 0000000000000002 RDI: 00007ffc99c1e120
RBP: 00000000000006e1 R08: 0000000000000000 R09: 000000000000000b
R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffc99c1f1b0
R13: 000000000215fa60 R14: 0000000000000000 R15: 00007ffc99c1f1b0

======================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at [email protected].

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.


2021-07-25 13:46:23

by syzbot

[permalink] [raw]
Subject: Re: [syzbot] WARNING in reiserfs_put_super

syzbot has found a reproducer for the following issue on:

HEAD commit: 90d856e71443 Add linux-next specific files for 20210723
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=140c92b6300000
kernel config: https://syzkaller.appspot.com/x/.config?x=298516715f6ad5cd
dashboard link: https://syzkaller.appspot.com/bug?extid=fcdd69a8426baab36109
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=146b2066300000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

------------[ cut here ]------------
WARNING: CPU: 1 PID: 8499 at kernel/workqueue.c:4413 destroy_workqueue.cold+0x5/0x71 kernel/workqueue.c:4413
Modules linked in:
CPU: 1 PID: 8499 Comm: syz-executor.5 Not tainted 5.14.0-rc2-next-20210723-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:destroy_workqueue.cold+0x5/0x71 kernel/workqueue.c:4413
Code: c5 3d 7a f8 b9 e8 03 00 00 31 d2 48 c7 c7 e0 ff 8a 89 f7 f1 89 c6 e8 fc 87 00 00 c6 44 24 2f 01 e9 e7 56 62 f8 e8 6f c4 8b f8 <0f> 0b 48 c7 c6 e0 04 8b 89 48 c7 c7 20 00 8b 89 49 8d 96 60 01 00
RSP: 0018:ffffc90001b3fcd0 EFLAGS: 00010093
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: ffff88801bedd580 RSI: ffffffff88e9fd31 RDI: 0000000000000003
RBP: 000000000000000f R08: 0000000000000001 R09: 0000000000000003
R10: ffffffff814c5ab3 R11: 0000000000000000 R12: dffffc0000000000
R13: ffffe8ffffd91a00 R14: ffff88802a9d2400 R15: 0000000000000000
FS: 000000000290e400(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffef18ce720 CR3: 00000000370a3000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
reiserfs_put_super+0x234/0x5c0 fs/reiserfs/super.c:631
generic_shutdown_super+0x14c/0x370 fs/super.c:465
kill_block_super+0x97/0xf0 fs/super.c:1395
deactivate_locked_super+0x94/0x160 fs/super.c:335
deactivate_super+0xad/0xd0 fs/super.c:366
cleanup_mnt+0x3a2/0x540 fs/namespace.c:1136
task_work_run+0xdd/0x1a0 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:209
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302
do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x467a47
Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffca786e4d8 EFLAGS: 00000246
ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000467a47
RDX: 00007ffca786e5a9 RSI: 0000000000000002 RDI: 00007ffca786e5a0
RBP: 00007ffca786e5a0 R08: 00000000ffffffff R09: 00007ffca786e370
R10: 000000000290f8e3 R11: 0000000000000246 R12: 00000000004bee90
R13: 00007ffca786f670 R14: 000000000290f810 R15: 00007ffca786f6b0

2021-07-25 19:54:11

by syzbot

[permalink] [raw]
Subject: Re: [syzbot] WARNING in reiserfs_put_super

syzbot has bisected this issue to:

commit f902b02600028dfc0c9df811eb711ac7d7fca09f
Author: Christoph Hellwig <[email protected]>
Date: Thu Nov 14 14:34:32 2019 +0000

block: refactor rescan_partitions

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=166889b2300000
start commit: 90d856e71443 Add linux-next specific files for 20210723
git tree: linux-next
final oops: https://syzkaller.appspot.com/x/report.txt?x=156889b2300000
console output: https://syzkaller.appspot.com/x/log.txt?x=116889b2300000
kernel config: https://syzkaller.appspot.com/x/.config?x=298516715f6ad5cd
dashboard link: https://syzkaller.appspot.com/bug?extid=fcdd69a8426baab36109
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=146b2066300000

Reported-by: [email protected]
Fixes: f902b0260002 ("block: refactor rescan_partitions")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

2021-07-26 18:22:50

by Jan Kara

[permalink] [raw]
Subject: Re: [syzbot] WARNING in reiserfs_put_super

On Sun 25-07-21 12:50:09, syzbot wrote:
> syzbot has bisected this issue to:
>
> commit f902b02600028dfc0c9df811eb711ac7d7fca09f
> Author: Christoph Hellwig <[email protected]>
> Date: Thu Nov 14 14:34:32 2019 +0000
>
> block: refactor rescan_partitions

Looks unlikely. Also because the first report of this problem was 307 days
ago - i.e., before this commit landed. I rather think the reproducer isn't
quite reliable...

Honza

>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=166889b2300000
> start commit: 90d856e71443 Add linux-next specific files for 20210723
> git tree: linux-next
> final oops: https://syzkaller.appspot.com/x/report.txt?x=156889b2300000
> console output: https://syzkaller.appspot.com/x/log.txt?x=116889b2300000
> kernel config: https://syzkaller.appspot.com/x/.config?x=298516715f6ad5cd
> dashboard link: https://syzkaller.appspot.com/bug?extid=fcdd69a8426baab36109
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=146b2066300000
>
> Reported-by: [email protected]
> Fixes: f902b0260002 ("block: refactor rescan_partitions")
>
> For information about bisection process see: https://goo.gl/tpsmEJ#bisection
--
Jan Kara <[email protected]>
SUSE Labs, CR