syzbot


BUG: corrupted list in kobj_kset_leave

Status: moderation: reported on 2022/09/15 01:27
Reported-by: syzbot+626b324c0d0309c64493@syzkaller.appspotmail.com
First crash: 89d, last: 89d

Sample crash report:
list_del corruption. next->prev should be ffff88801b749008, but was ffff888054764540. (next=ffff888054764540)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:62!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10350 Comm: syz-executor.3 Not tainted 6.0.0-rc4-syzkaller-00302-gb96fbd602d35 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:__list_del_entry_valid.cold+0x70/0x72 lib/list_debug.c:62
Code: f0 ff 0f 0b 4c 89 ea 48 89 ee 48 c7 c7 60 fc 48 8a e8 dc f5 f0 ff 0f 0b 4c 89 e9 48 89 ee 48 c7 c7 a0 fd 48 8a e8 c8 f5 f0 ff <0f> 0b 83 c3 01 b8 ff ff 37 00 89 1d 81 88 e9 07 48 c1 e0 2a 65 48
RSP: 0018:ffffc900286f76d0 EFLAGS: 00010282
RAX: 000000000000006d RBX: ffff88801b749000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff8161f408 RDI: fffff520050deecc
RBP: ffff88801b749008 R08: 000000000000006d R09: 0000000000000000
R10: 0000000080000001 R11: 0000000000000000 R12: ffff88802457c008
R13: ffff888054764540 R14: ffff88801b749010 R15: ffff88801b749120
FS:  0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000f7fb2b40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000057002404 CR3: 0000000079cde000 CR4: 0000000000150ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_del_entry include/linux/list.h:134 [inline]
 list_del_init include/linux/list.h:206 [inline]
 kobj_kset_leave+0x5c/0x200 lib/kobject.c:175
 __kobject_del+0x11d/0x1f0 lib/kobject.c:592
 kobject_del lib/kobject.c:611 [inline]
 kobject_del+0x3c/0x60 lib/kobject.c:603
 device_del+0x81c/0xc80 drivers/base/core.c:3715
 device_unregister+0x1a/0xc0 drivers/base/core.c:3736
 device_destroy+0x96/0xd0 drivers/base/core.c:4302
 vc_deallocate+0x154/0x460 drivers/tty/vt/vt.c:1399
 vt_disallocate_all+0x282/0x4e0 drivers/tty/vt/vt_ioctl.c:657
 vt_ioctl+0xe0f/0x2b20 drivers/tty/vt/vt_ioctl.c:902
 vt_compat_ioctl+0x1c9/0x450 drivers/tty/vt/vt_ioctl.c:1110
 tty_compat_ioctl+0x19b/0x3f0 drivers/tty/tty_io.c:2957
 __do_compat_sys_ioctl+0x1c7/0x290 fs/ioctl.c:968
 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
 __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178
 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203
 entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7fb7549
Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f7fb25cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000005608
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid.cold+0x70/0x72 lib/list_debug.c:62
Code: f0 ff 0f 0b 4c 89 ea 48 89 ee 48 c7 c7 60 fc 48 8a e8 dc f5 f0 ff 0f 0b 4c 89 e9 48 89 ee 48 c7 c7 a0 fd 48 8a e8 c8 f5 f0 ff <0f> 0b 83 c3 01 b8 ff ff 37 00 89 1d 81 88 e9 07 48 c1 e0 2a 65 48
RSP: 0018:ffffc900286f76d0 EFLAGS: 00010282
RAX: 000000000000006d RBX: ffff88801b749000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff8161f408 RDI: fffff520050deecc
RBP: ffff88801b749008 R08: 000000000000006d R09: 0000000000000000
R10: 0000000080000001 R11: 0000000000000000 R12: ffff88802457c008
R13: ffff888054764540 R14: ffff88801b749010 R15: ffff88801b749120
FS:  0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000f7fb2b40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000057002404 CR3: 0000000079cde000 CR4: 0000000000150ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	03 74 c0 01          	add    0x1(%rax,%rax,8),%esi
   4:	10 05 03 74 b8 01    	adc    %al,0x1b87403(%rip)        # 0x1b8740d
   a:	10 06                	adc    %al,(%rsi)
   c:	03 74 b4 01          	add    0x1(%rsp,%rsi,4),%esi
  10:	10 07                	adc    %al,(%rdi)
  12:	03 74 b0 01          	add    0x1(%rax,%rsi,4),%esi
  16:	10 08                	adc    %cl,(%rax)
  18:	03 74 d8 01          	add    0x1(%rax,%rbx,8),%esi
  1c:	00 00                	add    %al,(%rax)
  1e:	00 00                	add    %al,(%rax)
  20:	00 51 52             	add    %dl,0x52(%rcx)
  23:	55                   	push   %rbp
  24:	89 e5                	mov    %esp,%ebp
  26:	0f 34                	sysenter
  28:	cd 80                	int    $0x80
* 2a:	5d                   	pop    %rbp <-- trapping instruction
  2b:	5a                   	pop    %rdx
  2c:	59                   	pop    %rcx
  2d:	c3                   	retq
  2e:	90                   	nop
  2f:	90                   	nop
  30:	90                   	nop
  31:	90                   	nop
  32:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi
  39:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream-386 2022/09/11 01:21 upstream b96fbd602d35 356d8217 .config log report info BUG: corrupted list in kobj_kset_leave
* Struck through repros no longer work on HEAD.