syzbot


WARNING in signalfd_cleanup

Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+5426c7ed6868c705ca14@syzkaller.appspotmail.com
Fix commit: 791f3465c4af io_uring: fix UAF due to missing POLLFREE handling
First crash: 215d, last: 198d

Cause bisection: introduced by (bisect log) :
commit e4b8954074f6d0db01c8c97d338a67f9389c042f
Author: Eric Dumazet <edumazet@google.com>
Date: Tue Dec 7 01:30:37 2021 +0000

  netlink: add net device refcount tracker to struct ethnl_req_info

Crash: WARNING in ref_tracker_dir_exit (log)
Repro: C syz .config
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in __cleanup_sighand C 27 198d 202d 0/23 closed as dup on 2022/01/20 06:43
Patch testing requests:
Created Duration User Patch Repo Result
2022/01/14 01:55 12m asml.silence@gmail.com https://github.com/isilence/linux.git pollfree_test1 OK

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3604 at kernel/sched/wait.c:245 __wake_up_pollfree+0x40/0x50 kernel/sched/wait.c:246
Modules linked in:
CPU: 0 PID: 3604 Comm: syz-executor714 Not tainted 5.16.0-rc8-next-20220104-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__wake_up_pollfree+0x40/0x50 kernel/sched/wait.c:245
Code: f3 ff ff 48 8d 6b 40 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 80 3c 02 00 75 11 48 8b 43 40 48 39 c5 75 03 5b 5d c3 <0f> 0b 5b 5d c3 48 89 ef e8 13 d8 69 00 eb e5 cc 48 c1 e7 06 48 63
RSP: 0018:ffffc90001aaf9f8 EFLAGS: 00010083
RAX: ffff88801cd623f0 RBX: ffff88801bec8048 RCX: 0000000000000000
RDX: 1ffff110037d9011 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffff88801bec8088 R08: 0000000000000000 R09: ffff88801bec804b
R10: ffffed10037d9009 R11: 0000000000000000 R12: ffff88801bec8040
R13: ffff88801e029d40 R14: dffffc0000000000 R15: ffff88807eb50000
FS:  00005555573ad300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000c0 CR3: 000000001e5e4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 wake_up_pollfree include/linux/wait.h:271 [inline]
 signalfd_cleanup+0x42/0x60 fs/signalfd.c:38
 __cleanup_sighand kernel/fork.c:1596 [inline]
 __cleanup_sighand+0x72/0xb0 kernel/fork.c:1593
 __exit_signal kernel/exit.c:159 [inline]
 release_task+0xc02/0x17e0 kernel/exit.c:200
 wait_task_zombie kernel/exit.c:1117 [inline]
 wait_consider_task+0x2fa6/0x3b80 kernel/exit.c:1344
 do_wait_thread kernel/exit.c:1407 [inline]
 do_wait+0x6ca/0xce0 kernel/exit.c:1524
 kernel_wait4+0x14c/0x260 kernel/exit.c:1687
 __do_sys_wait4+0x13f/0x150 kernel/exit.c:1715
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7facd6682386
Code: 0f 1f 40 00 31 c9 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 49 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 11 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 5a c3 90 48 83 ec 28 89 54 24 14 48 89 74 24
RSP: 002b:00007ffdb91adef8 EFLAGS: 00000246 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 000000000000c646 RCX: 00007facd6682386
RDX: 0000000040000001 RSI: 00007ffdb91adf14 RDI: 00000000ffffffff
RBP: 0000000000000f17 R08: 0000000000000032 R09: 00007ffdb91ec080
R10: 0000000000000000 R11: 0000000000000246 R12: 431bde82d7b634db
R13: 00007ffdb91adf14 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (201):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/01/04 23:36 linux-next 6b8d4927540e 0a2584dd .config log report syz C WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/21 03:29 upstream 2c271fe77d52 ab3d9f17 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/20 21:01 upstream fa2e1ba3e9e3 b838eb76 .config log report info WARNING in signalfd_cleanup
ci-qemu-upstream 2022/01/20 19:20 upstream fa2e1ba3e9e3 b838eb76 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/20 16:38 upstream fa2e1ba3e9e3 b838eb76 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-selinux-root 2022/01/20 12:18 upstream fa2e1ba3e9e3 5da9499f .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/20 11:13 upstream fa2e1ba3e9e3 5da9499f .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/20 09:55 upstream fa2e1ba3e9e3 5da9499f .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/20 08:10 upstream 1d1df41c5a33 5da9499f .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/20 06:47 upstream 1d1df41c5a33 5da9499f .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/19 21:25 upstream 1d1df41c5a33 5da9499f .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/19 19:16 upstream e9f5cbc0c851 0620189b .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/19 14:36 upstream e9f5cbc0c851 0620189b .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/19 09:56 upstream 99613159ad74 0620189b .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-selinux-root 2022/01/19 08:26 upstream 99613159ad74 0620189b .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-selinux-root 2022/01/19 06:31 upstream 99613159ad74 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/19 01:09 upstream 99613159ad74 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/18 23:24 upstream 99613159ad74 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/18 21:56 upstream 99613159ad74 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-selinux-root 2022/01/18 17:35 upstream e3a8b6a1e70c 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/18 12:15 upstream e3a8b6a1e70c 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/18 10:19 upstream e3a8b6a1e70c 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/18 01:55 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-selinux-root 2022/01/18 00:07 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-selinux-root 2022/01/17 23:06 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/17 20:37 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/17 18:30 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-selinux-root 2022/01/17 16:07 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/17 15:04 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/17 12:27 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/17 10:25 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/17 03:53 upstream 79e06c4c4950 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/16 23:35 upstream 79e06c4c4950 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-qemu-upstream 2022/01/16 20:57 upstream 79e06c4c4950 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/16 15:28 upstream d0a231f01e5b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/16 11:24 upstream d0a231f01e5b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/16 11:06 upstream d0a231f01e5b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/16 07:14 upstream d0a231f01e5b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-qemu-upstream 2022/01/16 04:50 upstream a33f5c380c4b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-root 2022/01/16 02:49 upstream a33f5c380c4b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/16 00:44 upstream a33f5c380c4b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce 2022/01/15 20:02 upstream a33f5c380c4b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-386 2022/01/18 05:51 upstream e3a8b6a1e70c 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-qemu-upstream-386 2022/01/17 21:24 upstream 0c947b893d69 731a2d23 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-386 2022/01/17 06:16 upstream 79e06c4c4950 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-386 2022/01/16 18:32 upstream d0a231f01e5b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-kasan-gce-386 2022/01/16 17:06 upstream d0a231f01e5b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-qemu-upstream-386 2022/01/15 21:27 upstream a33f5c380c4b 723cfaf0 .config log report info WARNING in signalfd_cleanup
ci-upstream-linux-next-kasan-gce-root 2022/01/15 02:19 linux-next 468c1d50222c 53e00b45 .config log report info WARNING in signalfd_cleanup
ci-upstream-linux-next-kasan-gce-root 2022/01/04 11:35 linux-next 6b8d4927540e 7f723fbe .config log report info WARNING in signalfd_cleanup