syzbot


general protection fault in kobject_cleanup

Status: fixed on 2021/04/09 19:46
Subsystems: gpio usb
[Documentation on labels]
Reported-by: syzbot+d27b4c8adbbff70fbfde@syzkaller.appspotmail.com
Fix commit: a6112998ee45 gpio: fix NULL-deref-on-deregistration regression
First crash: 1386d, last: 1372d
Cause bisection: introduced by (bisect log) [merge commit]:
commit b817c931233b24129ac8d2c858669ee656a473dd
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Feb 24 17:47:43 2021 +0000

  Merge tag 'mailbox-v5.12' of git://git.linaro.org/landing-teams/working/fujitsu/integration

Crash: SYZFAIL: wrong response packet (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2 0/2] gpio: regression fixes 9 (9) 2021/03/02 15:41
[PATCH 0/2] gpio: regression fixes 6 (6) 2021/03/01 08:44
general protection fault in kobject_cleanup 0 (1) 2021/02/25 16:47
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in kobject_cleanup nilfs 1 806d 802d 0/28 auto-obsoleted due to no activity on 2023/01/25 05:25

Sample crash report:
usb 1-1: USB disconnect, device number 2
general protection fault, probably for non-canonical address 0xdffffc00000000b3: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000598-0x000000000000059f]
CPU: 1 PID: 2922 Comm: kworker/1:2 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:__list_del_entry_valid+0x1f/0x100 lib/list_debug.c:42
Code: fd 0f 0b 0f 1f 84 00 00 00 00 00 41 57 41 56 41 54 53 49 89 fe 49 bc 00 00 00 00 00 fc ff df 48 83 c7 08 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 05 e8 05 81 ec fd 4d 8b 7e 08 4c 89 f0 48 c1 e8
RSP: 0018:ffffc900014ef318 EFLAGS: 00010202
RAX: 00000000000000b3 RBX: 0000000000000000 RCX: ffff88801acb1bc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000598
RBP: dffffc0000000000 R08: dffffc0000000000 R09: fffffbfff1f28ab6
R10: fffffbfff1f28ab6 R11: 0000000000000000 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000590 R15: 1ffff110023f3601
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004d5800 CR3: 000000000c48e000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:132 [inline]
 list_del include/linux/list.h:146 [inline]
 gpiodevice_release+0x48/0x1b0 drivers/gpio/gpiolib.c:479
 device_release+0x98/0x1c0 drivers/base/core.c:2104
 kobject_cleanup+0x1c9/0x280 lib/kobject.c:705
 ftdi_gpio_remove drivers/usb/serial/ftdi_sio.c:2215 [inline]
 ftdi_sio_port_remove+0x8b/0x2f0 drivers/usb/serial/ftdi_sio.c:2407
 usb_serial_device_remove+0x126/0x1f0 drivers/usb/serial/bus.c:97
 __device_release_driver drivers/base/dd.c:1156 [inline]
 device_release_driver_internal+0x51e/0x7b0 drivers/base/dd.c:1187
 bus_remove_device+0x300/0x420 drivers/base/bus.c:533
 device_del+0x5e1/0xa90 drivers/base/core.c:3421
 usb_serial_disconnect+0x294/0x3c0 drivers/usb/serial/usb-serial.c:1102
 usb_unbind_interface+0x1f2/0x860 drivers/usb/core/driver.c:458
 __device_release_driver drivers/base/dd.c:1156 [inline]
 device_release_driver_internal+0x51e/0x7b0 drivers/base/dd.c:1187
 bus_remove_device+0x300/0x420 drivers/base/bus.c:533
 device_del+0x5e1/0xa90 drivers/base/core.c:3421
 usb_disable_device+0x407/0x800 drivers/usb/core/message.c:1413
 usb_disconnect+0x33a/0x8a0 drivers/usb/core/hub.c:2218
 hub_port_connect+0x214/0x25b0 drivers/usb/core/hub.c:5074
 hub_port_connect_change+0x5c6/0xab0 drivers/usb/core/hub.c:5363
 port_event+0xa6f/0x10b0 drivers/usb/core/hub.c:5509
 hub_event+0x417/0xcb0 drivers/usb/core/hub.c:5591

Crashes (72):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/25 04:30 upstream 719bbd4a509f fcc6d71b .config console log report syz C ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/10 12:31 upstream 144c79ef3353 26967e35 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/10 01:29 upstream 144c79ef3353 26967e35 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/09 13:20 upstream 144c79ef3353 09fbf400 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/08 19:41 upstream 144c79ef3353 09fbf400 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/08 16:44 upstream 144c79ef3353 09fbf400 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/07 04:17 upstream a38fd8748464 e4b4d570 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/06 22:05 upstream a38fd8748464 e4b4d570 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/05 22:55 upstream 280d542f6ffa 56722561 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/05 17:27 upstream 280d542f6ffa 9d751681 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/05 13:36 upstream 280d542f6ffa 9d751681 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/05 12:02 upstream 280d542f6ffa 9d751681 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/04 22:23 upstream cee407c5cc42 9d751681 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/04 21:16 upstream cee407c5cc42 9d751681 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/04 07:43 upstream f69d02e37a85 d7e4e604 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/04 06:24 upstream f69d02e37a85 d7e4e604 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/03 18:27 upstream f69d02e37a85 06ed56cd .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/03 16:42 upstream f69d02e37a85 06ed56cd .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/03 13:32 upstream f69d02e37a85 e5b64d68 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/03 11:58 upstream f69d02e37a85 e5b64d68 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/03 04:28 upstream 7a7fd0de4a98 e5b64d68 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/03 01:43 upstream 7a7fd0de4a98 e5b64d68 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/02 12:30 upstream 7a7fd0de4a98 92ead296 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/01 22:27 upstream 7a7fd0de4a98 183afb6c .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/01 15:06 upstream fe07bfda2fb9 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/01 06:17 upstream cd278456d4ca 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/01 03:40 upstream cd278456d4ca 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/03/01 00:37 upstream cd278456d4ca 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/28 23:05 upstream cd278456d4ca 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/28 06:39 upstream 5695e5161974 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/28 04:01 upstream 5695e5161974 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/27 21:03 upstream 5695e5161974 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/27 06:45 upstream 3fb6d0e00efc 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/27 04:51 upstream 3fb6d0e00efc 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 23:28 upstream 2c87f7a38f93 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 18:24 upstream 2c87f7a38f93 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 17:56 upstream 2c87f7a38f93 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 17:56 upstream 2c87f7a38f93 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 17:54 upstream 2c87f7a38f93 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 17:54 upstream 2c87f7a38f93 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 16:24 upstream 2c87f7a38f93 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 15:32 upstream 2c87f7a38f93 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 12:46 upstream 2c87f7a38f93 76f7fc95 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 12:08 upstream 2c87f7a38f93 76f7fc95 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 10:36 upstream 2c87f7a38f93 76f7fc95 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/26 09:24 upstream 2c87f7a38f93 76f7fc95 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 16:12 upstream 29c395c77a9a 76f7fc95 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 15:44 upstream 29c395c77a9a 76f7fc95 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 13:45 upstream 29c395c77a9a fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 04:15 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 02:13 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 01:59 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 01:46 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 01:42 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 01:42 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 01:41 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 01:21 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 01:01 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 00:52 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 00:48 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 00:45 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 00:21 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 00:10 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 00:09 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 00:08 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/25 00:00 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/24 23:56 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/24 23:46 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/24 23:42 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
2021/02/24 23:23 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in kobject_cleanup
* Struck through repros no longer work on HEAD.