syzbot


WARNING in remove_proc_entry (6)

Status: upstream: reported C repro on 2024/09/04 13:56
Subsystems: can
[Documentation on labels]
Reported-by: syzbot+0532ac7a06fb1a03187e@syzkaller.appspotmail.com
Fix commit: 94b0818fa635 can: bcm: Clear bo->bcm_proc_read after remove_proc_entry().
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm]
First crash: 34d, last: 3d10h
Cause bisection: introduced by (bisect log) :
commit 76fe372ccb81b0c89b6cd2fec26e2f38c958be85
Author: Kuniyuki Iwashima <kuniyu@amazon.com>
Date: Mon Jul 22 19:28:42 2024 +0000

  can: bcm: Remove proc entry when dev is unregistered.

Crash: WARNING in remove_proc_entry (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH net 1/5] can: bcm: Clear bo->bcm_proc_read after remove_proc_entry(). 3 (3) 2024/09/14 04:50
[PATCH v1 can] can: bcm: Clear bo->bcm_proc_read after remove_proc_entry(). 3 (3) 2024/09/05 06:24
[syzbot] [can?] WARNING in remove_proc_entry (6) 1 (3) 2024/09/05 00:58
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in remove_proc_entry origin:upstream C 190 3h47m 24d 0/3 upstream: reported C repro on 2024/09/12 15:07
linux-6.1 WARNING in remove_proc_entry 110 1h25m 24d 0/3 upstream: reported on 2024/09/12 15:07
upstream WARNING in remove_proc_entry (5) scsi C 158 569d 612d 22/28 fixed on 2023/06/08 14:41
upstream WARNING in remove_proc_entry (4) net 1 1042d 1042d 0/28 closed as invalid on 2021/12/14 20:02
linux-4.19 WARNING in remove_proc_entry C error 4 688d 710d 0/1 upstream: reported C repro on 2022/10/28 02:13
upstream WARNING in remove_proc_entry netfilter 1 2268d 2268d 0/28 closed as invalid on 2018/09/05 12:51
upstream WARNING in remove_proc_entry (3) nfs net 1 1181d 1177d 0/28 auto-closed as invalid on 2021/11/10 16:53
upstream WARNING in remove_proc_entry (2) net 6 1846d 2146d 0/28 auto-closed as invalid on 2020/01/15 15:54
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/09/04 17:43 1h43m kuniyu@amazon.com patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git HEAD OK log

Sample crash report:
------------[ cut here ]------------
name '4729'
WARNING: CPU: 0 PID: 5233 at fs/proc/generic.c:711 remove_proc_entry+0x2e7/0x5d0 fs/proc/generic.c:711
Modules linked in:
CPU: 0 UID: 0 PID: 5233 Comm: syz-executor281 Not tainted 6.11.0-rc5-syzkaller-00178-g5517ae241919 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:remove_proc_entry+0x2e7/0x5d0 fs/proc/generic.c:711
Code: ff eb 05 e8 cb 1e 5e ff 48 8b 5c 24 10 48 c7 c7 e0 f7 aa 8e e8 2a 38 8e 09 90 48 c7 c7 60 3a 1b 8c 48 89 de e8 da 42 20 ff 90 <0f> 0b 90 90 48 8b 44 24 18 48 c7 44 24 40 0e 36 e0 45 49 c7 04 07
RSP: 0018:ffffc90002d77a20 EFLAGS: 00010246
RAX: 6f90bd046f46e700 RBX: ffff8880121e2548 RCX: ffff88802e4cda00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90002d77b08 R08: ffffffff8155b2f2 R09: 1ffff1101712519a
R10: dffffc0000000000 R11: ffffed101712519b R12: ffff8880795f5780
R13: 0000000000000004 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020004c14 CR3: 0000000078076000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bcm_release+0x250/0x880 net/can/bcm.c:1578
 __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
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xa2f/0x27f0 kernel/exit.c:882
 do_group_exit+0x207/0x2c0 kernel/exit.c:1031
 __do_sys_exit_group kernel/exit.c:1042 [inline]
 __se_sys_exit_group kernel/exit.c:1040 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1040
 x64_sys_call+0x2634/0x2640 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f670ae68929
Code: Unable to access opcode bytes at 0x7f670ae688ff.
RSP: 002b:00007ffc855da978 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f670ae68929
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007f670aee93b0 R08: ffffffffffffffb8 R09: 0000555500000000
R10: 0000555500000000 R11: 0000000000000246 R12: 00007f670aee93b0
R13: 0000000000000000 R14: 00007f670aeebee0 R15: 00007f670ae39140
 </TASK>

Crashes (377):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/03 17:30 net 5517ae241919 512328ba .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in remove_proc_entry
2024/09/03 16:20 net 5517ae241919 512328ba .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in remove_proc_entry
2024/09/03 15:11 net 5517ae241919 512328ba .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in remove_proc_entry
2024/09/03 13:59 net 5517ae241919 512328ba .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in remove_proc_entry
2024/09/03 12:44 net 5517ae241919 512328ba .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in remove_proc_entry
2024/09/03 11:31 net 5517ae241919 512328ba .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in remove_proc_entry
2024/09/03 10:50 net 5517ae241919 512328ba .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in remove_proc_entry
2024/09/15 05:18 upstream 0babf683783d 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in remove_proc_entry
2024/09/14 13:00 upstream b7718454f937 ff60e2ca .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in remove_proc_entry
2024/09/13 23:00 upstream 196145c606d0 158f4851 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in remove_proc_entry
2024/09/12 22:05 upstream 77f587896757 60e1a995 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in remove_proc_entry
2024/09/12 05:54 upstream 7c6a3a65ace7 d94c83d8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in remove_proc_entry
2024/09/10 17:50 upstream bc83b4d1f086 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in remove_proc_entry
2024/09/09 01:46 upstream 5dadc1be8fc5 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in remove_proc_entry
2024/09/15 23:30 upstream d42f7708e27c 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in remove_proc_entry
2024/09/14 22:34 upstream b7718454f937 08d8a733 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in remove_proc_entry
2024/09/13 12:38 upstream 196145c606d0 73e8a465 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in remove_proc_entry
2024/09/10 22:35 upstream 8d8d276ba2fb e1ac59f4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in remove_proc_entry
2024/09/13 01:50 upstream 77f587896757 60e1a995 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in remove_proc_entry
2024/09/12 11:05 upstream 7c6a3a65ace7 d94c83d8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in remove_proc_entry
2024/09/08 15:59 upstream d1f2d51b711a 9750182a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat WARNING in remove_proc_entry
2024/09/08 14:58 upstream d1f2d51b711a 9750182a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING in remove_proc_entry
2024/09/13 14:03 net 3e705251d998 73e8a465 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in remove_proc_entry
2024/09/16 00:54 net-next 472d455e7c6f 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in remove_proc_entry
2024/09/14 20:55 net-next 34c44eb31de9 ff60e2ca .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in remove_proc_entry
2024/10/04 00:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/10/02 13:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/10/02 03:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/10/02 01:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/10/01 20:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/29 22:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/29 19:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/29 04:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/29 03:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/29 01:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/29 01:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/28 22:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/28 10:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 440b26ec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/27 22:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 2b1784d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/27 19:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 2b1784d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/27 06:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/26 09:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/26 08:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/26 01:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/25 14:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/25 12:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/25 10:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/25 03:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/24 23:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/24 22:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/24 18:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/22 22:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/22 22:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/22 13:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/22 05:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/21 20:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/21 19:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/21 12:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/20 01:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/18 15:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/18 13:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/18 11:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/17 19:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/16 17:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 49cf0773 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/16 04:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
2024/09/13 21:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 158f4851 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in remove_proc_entry
* Struck through repros no longer work on HEAD.