syzbot


WARNING in i2cdev_detach_adapter

Status: auto-obsoleted due to no activity on 2022/09/26 02:51
Reported-by: syzbot+8c9d567bbd8a4ed98b55@syzkaller.appspotmail.com
First crash: 542d, last: 470d

Cause bisection: introduced by (bisect log) [ignored commit]:
commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10
Author: Andrey Konovalov <andreyknvl@google.com>
Date: Mon Feb 24 16:13:03 2020 +0000

  usb: gadget: add raw-gadget interface

Crash: WARNING in i2cdev_detach_adapter (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) [merge commit]:
commit bbd91626f71c1582301044f5942751eeb4ca98ba
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Jun 30 03:18:16 2021 +0000

  Merge tag '5.14-rc-smb3-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6

Patch testing requests:
Created Duration User Patch Repo Result
2022/09/26 00:30 17m upstream OK log
2021/05/20 12:10 40m ducheng2@gmail.com patch upstream OK
2021/05/17 15:32 12m ducheng2@gmail.com upstream report log

Sample crash report:
pvrusb2: Attached sub-driver cx25840
pvrusb2: ***WARNING*** pvrusb2 device hardware appears to be jammed and I can't clear it.
pvrusb2: You might need to power cycle the pvrusb2 device in order to recover.
------------[ cut here ]------------
sysfs group 'power' not found for kobject 'i2c-1'
WARNING: CPU: 1 PID: 3952 at fs/sysfs/group.c:281 sysfs_remove_group+0x16e/0x280 fs/sysfs/group.c:279
Modules linked in:
CPU: 1 PID: 3952 Comm: pvrusb2-context Not tainted 5.12.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sysfs_remove_group+0x16e/0x280 fs/sysfs/group.c:279
Code: 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 57 da c8 ff 49 8b 14 24 48 c7 c7 c0 1b 22 8a 4c 89 f6 31 c0 e8 32 bc 4e ff <0f> 0b 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 a0 59 82 ff 49 8d 5e 20
RSP: 0018:ffffc9000307f988 EFLAGS: 00010246
RAX: b99ebc47a3964000 RBX: ffff88802fb9e048 RCX: ffff88801def9c40
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 1ffffffff1519c68 R08: ffffffff8164f2f2 R09: ffffed10173a3f1c
R10: ffffed10173a3f1c R11: 0000000000000000 R12: ffff88802fb9e018
R13: dffffc0000000000 R14: ffffffff8a8ce300 R15: ffff888013f9b488
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efda09df018 CR3: 0000000025e72000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 device_del+0x2ed/0xc10 drivers/base/core.c:3398
 cdev_device_del+0x22/0xe0 fs/char_dev.c:573
 put_i2c_dev drivers/i2c/i2c-dev.c:93 [inline]
 i2cdev_detach_adapter+0x24f/0x2c0 drivers/i2c/i2c-dev.c:689
 i2cdev_notifier_call+0x38/0x60 drivers/i2c/i2c-dev.c:704
 notifier_call_chain kernel/notifier.c:83 [inline]
 blocking_notifier_call_chain+0x108/0x1b0 kernel/notifier.c:337
 device_del+0x2de/0xc10 drivers/base/core.c:3395
 device_unregister+0x1a/0xc0 drivers/base/core.c:3454
 i2c_del_adapter+0x370/0x7f0 drivers/i2c/i2c-core-base.c:1693
 pvr2_i2c_core_done+0x55/0xb0 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c:652
 pvr2_hdw_destroy+0x150/0x2b0 drivers/media/usb/pvrusb2/pvrusb2-hdw.c:2679
 pvr2_context_destroy+0x7a/0x3c0 drivers/media/usb/pvrusb2/pvrusb2-context.c:70
 pvr2_context_check drivers/media/usb/pvrusb2/pvrusb2-context.c:137 [inline]
 pvr2_context_thread_func+0x41d/0xb30 drivers/media/usb/pvrusb2/pvrusb2-context.c:158
 kthread+0x39a/0x3c0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/04/24 12:24 upstream e77a830c8297 17f0b706 .config log report syz C WARNING in i2cdev_detach_adapter
ci-upstream-kasan-gce-smack-root 2021/05/13 22:10 upstream c06a2ba62fc4 80f9b418 .config log report info WARNING in i2cdev_detach_adapter
ci-upstream-kasan-gce-smack-root 2021/05/07 21:18 upstream d2b6f8a17919 f6da8120 .config log report info WARNING in i2cdev_detach_adapter
ci-upstream-kasan-gce-smack-root 2021/05/05 13:49 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in i2cdev_detach_adapter
ci-upstream-kasan-gce-smack-root 2021/04/24 04:49 upstream e77a830c8297 17f0b706 .config log report info WARNING in i2cdev_detach_adapter
ci-upstream-kasan-gce-smack-root 2021/04/20 09:13 upstream 7af08140979a 4285c989 .config log report info WARNING in i2cdev_detach_adapter
ci-upstream-kasan-gce-smack-root 2021/04/05 05:37 upstream e49d033bddf5 6a81331a .config log report info WARNING in i2cdev_detach_adapter
ci-upstream-kasan-gce-smack-root 2021/04/02 01:28 upstream ffd9fb546d49 6a81331a .config log report info WARNING in i2cdev_detach_adapter
ci-upstream-kasan-gce-smack-root 2021/04/01 18:44 upstream d19cc4bfbff1 6a81331a .config log report info WARNING in i2cdev_detach_adapter
* Struck through repros no longer work on HEAD.