syzbot


general protection fault in detach_if_pending (2)

Status: auto-closed as invalid on 2022/06/11 02:46
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 268d, last: 268d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in detach_if_pending (2) 1 578d 578d 0/1 auto-closed as invalid on 2021/09/04 11:36
upstream general protection fault in detach_if_pending 1 1910d 1910d 0/24 closed as invalid on 2017/10/22 12:45
linux-4.14 general protection fault in detach_if_pending 1 1157d 1157d 0/1 auto-closed as invalid on 2020/02/03 13:10
upstream KASAN: invalid-access Write in detach_if_pending 2 658d 659d 0/24 auto-closed as invalid on 2021/05/17 08:51

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc00c0000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x0000000600000000-0x0000000600000007]
CPU: 1 PID: 7014 Comm: syz-executor.4 Not tainted 5.17.0-rc7-syzkaller-00235-gaad611a868d1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__hlist_del include/linux/list.h:848 [inline]
RIP: 0010:detach_timer kernel/time/timer.c:827 [inline]
RIP: 0010:detach_if_pending+0x13c/0x470 kernel/time/timer.c:846
Code: df 4c 89 ea 48 8b 2b 48 c1 ea 03 80 3c 02 00 0f 85 0c 03 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6b 08 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 fa 02 00 00 48 85 ed 49 89 6d 00 74 28 e8 ec 36
RSP: 0018:ffffc9001049f630 EFLAGS: 00010007
RAX: dffffc0000000000 RBX: ffff88804deb4340 RCX: 0000000000000000
RDX: 00000000c0000000 RSI: ffffffff816788de RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81678b61 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000600000006 R14: 0000000000000000 R15: ffff8880769b0000
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0063) knlGS:00000000f581cb40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007e29b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 del_timer kernel/time/timer.c:1208 [inline]
 del_timer+0xb0/0x110 kernel/time/timer.c:1198
 try_to_grab_pending+0x6d/0xd0 kernel/workqueue.c:1285
 __cancel_work_timer+0xa6/0x570 kernel/workqueue.c:3139
 mld_report_stop_work net/ipv6/mcast.c:1110 [inline]
 ipv6_mc_down+0x198/0x4c0 net/ipv6/mcast.c:2725
 ipv6_mc_destroy_dev+0x25/0x630 net/ipv6/mcast.c:2786
 addrconf_ifdown.isra.0+0x1208/0x1660 net/ipv6/addrconf.c:3877
 addrconf_notify+0xeb/0x1ba0 net/ipv6/addrconf.c:3664
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1919
 call_netdevice_notifiers_extack net/core/dev.c:1931 [inline]
 call_netdevice_notifiers net/core/dev.c:1945 [inline]
 unregister_netdevice_many+0x964/0x18d0 net/core/dev.c:10415
 ip_tunnel_delete_nets+0x39f/0x5b0 net/ipv4/ip_tunnel.c:1123
 ops_exit_list+0x125/0x170 net/core/net_namespace.c:173
 setup_net+0x77e/0xbb0 net/core/net_namespace.c:353
 copy_net_ns+0x318/0x760 net/core/net_namespace.c:474
 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:226
 ksys_unshare+0x445/0x920 kernel/fork.c:3058
 __do_sys_unshare kernel/fork.c:3129 [inline]
 __se_sys_unshare kernel/fork.c:3127 [inline]
 __ia32_sys_unshare+0x2c/0x40 kernel/fork.c:3127
 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+0x4d/0x5c
RIP: 0023:0xf6ec7549
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:00000000f581c5cc EFLAGS: 00000296 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 0000000040000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__hlist_del include/linux/list.h:848 [inline]
RIP: 0010:detach_timer kernel/time/timer.c:827 [inline]
RIP: 0010:detach_if_pending+0x13c/0x470 kernel/time/timer.c:846
Code: df 4c 89 ea 48 8b 2b 48 c1 ea 03 80 3c 02 00 0f 85 0c 03 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6b 08 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 fa 02 00 00 48 85 ed 49 89 6d 00 74 28 e8 ec 36
RSP: 0018:ffffc9001049f630 EFLAGS: 00010007
RAX: dffffc0000000000 RBX: ffff88804deb4340 RCX: 0000000000000000
RDX: 00000000c0000000 RSI: ffffffff816788de RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81678b61 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000600000006 R14: 0000000000000000 R15: ffff8880769b0000
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0063) knlGS:00000000f581cb40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007e29b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	df 4c 89 ea          	fisttps -0x16(%rcx,%rcx,4)
   4:	48 8b 2b             	mov    (%rbx),%rbp
   7:	48 c1 ea 03          	shr    $0x3,%rdx
   b:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   f:	0f 85 0c 03 00 00    	jne    0x321
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	4c 8b 6b 08          	mov    0x8(%rbx),%r13
  23:	4c 89 ea             	mov    %r13,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 fa 02 00 00    	jne    0x32e
  34:	48 85 ed             	test   %rbp,%rbp
  37:	49 89 6d 00          	mov    %rbp,0x0(%r13)
  3b:	74 28                	je     0x65
  3d:	e8                   	.byte 0xe8
  3e:	ec                   	in     (%dx),%al
  3f:	36                   	ss

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-386 2022/03/13 02:45 upstream aad611a868d1 9e8eaa75 .config log report info general protection fault in detach_if_pending
* Struck through repros no longer work on HEAD.