Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keybase-redirector stopping laptop sleep #28289

Closed
stephgosling opened this issue Jan 8, 2025 · 0 comments
Closed

keybase-redirector stopping laptop sleep #28289

stephgosling opened this issue Jan 8, 2025 · 0 comments

Comments

@stephgosling
Copy link

Describe the bug
Similar (in symptoms) to 12458 but rather than kbfs it is keybase-redirector that is blocking sleep.

To Reproduce
Steps to reproduce the behavior:

  1. Suspend laptop
  2. After 20s, laptop gives up trying to enter s2.

Expected behavior
Laptop should sleep

dmesg output

[61669.043082] PM: suspend entry (s2idle)
[61669.052261] Filesystems sync: 0.009 seconds
[61669.067610] Freezing user space processes
[61689.071390] Freezing user space processes failed after 20.003 seconds (3 tasks refusing to freeze, wq_busy=0):
[61689.071564] task:keybase-redirec state:D stack:0     pid:3932  tgid:3927  ppid:3257   flags:0x00000006
[61689.071569] Call Trace:
[61689.071571]  <TASK>
[61689.071577]  __schedule+0x27c/0x6a0
[61689.071585]  ? fuse_request_alloc+0x21/0x80
[61689.071592]  schedule+0x33/0x110
[61689.071594]  request_wait_answer+0xda/0x2a0
[61689.071596]  ? __pfx_autoremove_wake_function+0x10/0x10
[61689.071602]  fuse_simple_request+0x19d/0x2f0
[61689.071604]  fuse_lookup_name+0xb6/0x250
[61689.071609]  fuse_lookup+0x8b/0x1d0
[61689.071611]  ? __d_alloc+0x12c/0x250
[61689.071617]  fuse_atomic_open+0x108/0x1b0
[61689.071619]  lookup_open.isra.0+0x3aa/0x570
[61689.071625]  open_last_lookups+0x151/0x420
[61689.071628]  path_openat+0x8d/0x2c0
[61689.071629]  ? srso_alias_return_thunk+0x5/0xfbef5
[61689.071633]  ? rseq_ip_fixup+0x90/0x1f0
[61689.071639]  do_filp_open+0xaf/0x170
[61689.071644]  do_sys_openat2+0xb3/0xe0
[61689.071648]  __x64_sys_openat+0x6c/0xa0
[61689.071651]  x64_sys_call+0x17cd/0x2480
[61689.071655]  do_syscall_64+0x81/0x170
[61689.071658]  ? srso_alias_return_thunk+0x5/0xfbef5
[61689.071659]  ? do_syscall_64+0x8d/0x170
[61689.071661]  ? do_syscall_64+0x8d/0x170
[61689.071663]  ? handle_mm_fault+0xad/0x380
[61689.071667]  ? srso_alias_return_thunk+0x5/0xfbef5
[61689.071669]  ? do_user_addr_fault+0x33e/0x680
[61689.071673]  ? srso_alias_return_thunk+0x5/0xfbef5
[61689.071674]  ? irqentry_exit_to_user_mode+0x78/0x260
[61689.071678]  ? srso_alias_return_thunk+0x5/0xfbef5
[61689.071680]  ? irqentry_exit+0x43/0x50
[61689.071681]  ? srso_alias_return_thunk+0x5/0xfbef5
[61689.071683]  ? exc_page_fault+0x94/0x1b0
[61689.071685]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[61689.071689] RIP: 0033:0x650da471a0ee
[61689.071725] RSP: 002b:000000c00005a5d8 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
[61689.071727] RAX: ffffffffffffffda RBX: ffffffffffffff9c RCX: 0000650da471a0ee
[61689.071729] RDX: 0000000000000241 RSI: 000000c00001e0e0 RDI: ffffffffffffff9c
[61689.071730] RBP: 000000c00005a618 R08: 0000000000000000 R09: 0000000000000000
[61689.071731] R10: 0000000000000040 R11: 0000000000000202 R12: 0000000000000000
[61689.071732] R13: 000000c000019000 R14: 000000c0001029c0 R15: 0000000000000007
[61689.071737]  </TASK>
[61689.071825] task:puppet          state:D stack:0     pid:7933  tgid:7933  ppid:1751   flags:0x00004006
<puppet task trace elided>
[61689.071966] task:updatedb.plocat state:D stack:0     pid:45364 tgid:45364 ppid:1      flags:0x00004006
<updatedb task trace elided>
[61689.072274] OOM killer enabled.
[61689.072275] Restarting tasks ... done.

(although it says 3 tasks refused to sleep (the other two in this case were updatedb and puppet, quitting keybase the laptop will sleep).

Specifics about the system:

root@framework:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy```

root@framework:# uname -a
Linux framework 6.8.0-51-generic #52
22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Dec 9 15:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux```

 cat /proc/cpuinfo
 ...
 processor       : 15
vendor_id       : AuthenticAMD
cpu family      : 25
model           : 116
model name      : AMD Ryzen 7 7840U w/ Radeon  780M Graphics
stepping        : 1
microcode       : 0xa704104
cpu MHz         : 400.000
cache size      : 1024 KB
physical id     : 0
siblings        : 16
core id         : 7
cpu cores       : 8
apicid          : 15
initial apicid  : 15
fpu             : yes
fpu_exception   : yes
cpuid level     : 16
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d
bugs            : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass srso
bogomips        : 6587.85
TLB size        : 3584 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14] [15]
root@framework:~# dpkg -l | grep keybase
ii  keybase                                       6.4.0-20240821175720.3212f60cc5             amd64        The Keybase Go client, filesystem, and GUI
@github-actions github-actions bot closed this as completed Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant