syzbot


WARNING in pppol2tp_release

Status: fixed on 2024/10/22 11:57
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+0e85b10481d2f5478053@syzkaller.appspotmail.com
Fix commit: c1b2e36b8776 l2tp: flush workqueue before draining it
First crash: 122d, last: 116d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2 net-next 9/9] l2tp: flush workqueue before draining it 4 (4) 2024/08/14 18:01
[PATCH net-next 9/9] l2tp: flush workqueue before draining it 1 (1) 2024/08/05 11:35
[syzbot] [net?] WARNING in pppol2tp_release 0 (1) 2024/08/05 07:53

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6890 at kernel/workqueue.c:2259 __queue_work+0xcd3/0xf50 kernel/workqueue.c:2258
Modules linked in:
CPU: 0 UID: 0 PID: 6890 Comm: syz.4.417 Not tainted 6.11.0-rc1-syzkaller-00300-ge66f33bdf0c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:__queue_work+0xcd3/0xf50 kernel/workqueue.c:2258
Code: ff e8 11 84 36 00 90 0f 0b 90 e9 1e fd ff ff e8 03 84 36 00 eb 13 e8 fc 83 36 00 eb 0c e8 f5 83 36 00 eb 05 e8 ee 83 36 00 90 <0f> 0b 90 48 83 c4 60 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc
RSP: 0018:ffffc9000cdd7b48 EFLAGS: 00010093
RAX: ffffffff815ce274 RBX: ffff88805ba01e00 RCX: ffff88805ba01e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff815cd6d4 R09: 0000000000000000
R10: ffffc9000cdd7c20 R11: fffff520019baf85 R12: ffff88802bad3000
R13: ffff88802bad31c0 R14: dffffc0000000000 R15: 0000000000000008
FS:  0000555575227500(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f81128c7d58 CR3: 000000002be6e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 queue_work_on+0x1c2/0x380 kernel/workqueue.c:2392
 pppol2tp_release+0x163/0x230 net/l2tp/l2tp_ppp.c:445
 __sock_release net/socket.c:659 [inline]
 sock_close+0xbc/0x240 net/socket.c:1421
 __fput+0x24a/0x8a0 fs/file_table.c:422
 task_work_run+0x24f/0x310 kernel/task_work.c:228
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7aa41779f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd15b100d8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 000000000001f4de RCX: 00007f7aa41779f9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007ffd15b101b0 R08: 0000000000000001 R09: 00007ffd15b103bf
R10: 00007f7aa4000000 R11: 0000000000000246 R12: 0000000000000032
R13: 00007ffd15b101d0 R14: 00007ffd15b101f0 R15: ffffffffffffffff
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/08 14:03 net-next e66f33bdf0c3 de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in pppol2tp_release
2024/08/05 06:01 net-next 3608d6aca5e7 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in pppol2tp_release
2024/08/02 22:24 net-next ce21e520fdef 53683cf2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in pppol2tp_release
* Struck through repros no longer work on HEAD.