syzbot


general protection fault in __loop_clr_fd
Status: fixed on 2022/05/19 12:02
Reported-by: syzbot+3967212746d25888b189@syzkaller.appspotmail.com
Fix commit: 87579e9b7d8d loop: use worker per cgroup instead of kworker
First crash: 813d, last: 784d

Cause bisection: introduced by (bisect log) [release commit]:
commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Mon Jan 27 00:23:03 2020 +0000

  Linux 5.5

Crash: general protection fault in batadv_iv_ogm_schedule_buff (log)
Repro: C syz .config

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000021: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000108-0x000000000000010f]
CPU: 0 PID: 10050 Comm: blkid Not tainted 5.6.0-rc3-next-20200228-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:workqueue_sysfs_unregister kernel/workqueue.c:5691 [inline]
RIP: 0010:destroy_workqueue+0x2e/0x6b0 kernel/workqueue.c:4351
Code: 49 89 fe 41 55 41 54 55 53 48 83 ec 08 e8 8a 6a 26 00 49 8d be 08 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e0 05 00 00 49 8b 9e 08 01 00 00 48 85 db 74 19
RSP: 0018:ffffc90002eb7c30 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: 0000000000000021 RSI: ffffffff814c2af6 RDI: 0000000000000108
RBP: ffff888218a0f8f0 R08: ffff888095a0e0c0 R09: fffffbfff185270a
R10: fffffbfff1852709 R11: ffffffff8c29384f R12: ffff888218a0f800
R13: ffff8880a164b3e0 R14: 0000000000000000 R15: ffff8880a164b1c0
FS:  00007f95744fc740(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004c1d4c CR3: 000000009695f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 loop_unprepare_queue drivers/block/loop.c:891 [inline]
 __loop_clr_fd+0x185/0x1280 drivers/block/loop.c:1210
 lo_release+0x1ad/0x1e7 drivers/block/loop.c:1928
 __blkdev_put+0x509/0x690 fs/block_dev.c:1896
 blkdev_close+0x86/0xb0 fs/block_dev.c:1965
 __fput+0x2da/0x850 fs/file_table.c:280
 task_work_run+0x13f/0x1b0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2fa/0x360 arch/x86/entry/common.c:165
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x672/0x790 arch/x86/entry/common.c:305
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f9573e042b0
Code: 40 75 0b 31 c0 48 83 c4 08 e9 0c ff ff ff 48 8d 3d c5 32 08 00 e8 c0 07 02 00 83 3d 45 a3 2b 00 00 75 10 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ce 8a 01 00 48 89 04 24
RSP: 002b:00007ffed0ca9f18 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f9573e042b0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000001421030
R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000005
Modules linked in:
---[ end trace 5fb674a7f786174a ]---
RIP: 0010:workqueue_sysfs_unregister kernel/workqueue.c:5691 [inline]
RIP: 0010:destroy_workqueue+0x2e/0x6b0 kernel/workqueue.c:4351
Code: 49 89 fe 41 55 41 54 55 53 48 83 ec 08 e8 8a 6a 26 00 49 8d be 08 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e0 05 00 00 49 8b 9e 08 01 00 00 48 85 db 74 19
RSP: 0018:ffffc90002eb7c30 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: 0000000000000021 RSI: ffffffff814c2af6 RDI: 0000000000000108
RBP: ffff888218a0f8f0 R08: ffff888095a0e0c0 R09: fffffbfff185270a
R10: fffffbfff1852709 R11: ffffffff8c29384f R12: ffff888218a0f800
R13: ffff8880a164b3e0 R14: 0000000000000000 R15: ffff8880a164b1c0
FS:  00007f95744fc740(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004c1d4c CR3: 000000009695f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5702):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2020/03/26 19:23 linux-next 770fbb32d34e 6d25c5a0 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/26 12:06 linux-next 770fbb32d34e e8e6c7d2 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/25 18:46 linux-next 770fbb32d34e 41f049cc .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/17 09:43 linux-next 770fbb32d34e 749688d2 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/16 09:06 linux-next 770fbb32d34e 749688d2 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/16 06:38 linux-next 770fbb32d34e 749688d2 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/15 03:22 linux-next 770fbb32d34e 749688d2 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/12 05:59 linux-next 770fbb32d34e e7caca8e .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/11 23:35 linux-next 770fbb32d34e e7caca8e .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/09 16:22 linux-next 770fbb32d34e 2e9971bb .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/07 19:51 linux-next 770fbb32d34e 2e9971bb .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/07 03:53 linux-next 770fbb32d34e fd2a5f28 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/28 15:11 linux-next 770fbb32d34e f1ebdfba .config log report syz
ci-upstream-linux-next-kasan-gce-root 2020/03/26 12:23 linux-next 770fbb32d34e e8e6c7d2 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2020/03/16 07:44 linux-next 770fbb32d34e 749688d2 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2020/03/07 20:04 linux-next 770fbb32d34e 2e9971bb .config log report syz
ci-upstream-linux-next-kasan-gce-root 2020/03/07 03:34 linux-next 770fbb32d34e fd2a5f28 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2020/03/07 03:11 linux-next 770fbb32d34e fd2a5f28 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2020/04/04 00:33 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/04 00:19 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 23:00 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 21:54 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 20:43 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 20:06 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 19:06 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 18:47 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 17:28 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 17:18 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 16:16 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 15:04 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 14:26 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 13:15 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 11:55 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 11:51 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 10:44 linux-next 770fbb32d34e 5ed396e6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 09:42 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 09:17 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 08:09 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 07:45 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 06:45 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 06:39 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 05:38 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 04:49 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 03:42 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 03:36 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 02:31 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 01:41 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/03 00:38 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 23:59 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 22:58 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 22:48 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 21:47 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 20:46 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 19:52 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 18:49 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 18:42 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 17:41 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 17:17 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/04/02 16:05 linux-next 770fbb32d34e a34e2c33 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/06 22:31 linux-next 770fbb32d34e fd2a5f28 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/06 21:28 linux-next 770fbb32d34e c88c7b75 .config log report