Skip to contentSkip to conversation

INFO: task hung in fuse_lookup with v6.0 kernel in guest

Syzkaller Pengfei Xu 2 participants 3 messages Oct 18, 2022 – Oct 19, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Pengfei Xu

author
#1 lore raw

Hi,

I received the email that:"BOUNCE [email protected]: Message too long (>6000000 chars)".

To avoid missing the attached log, I put all the info in below link:
https://github.com/xupengfe/syzkaller_logs/tree/main/221017_task_hung_in_fuse_lookup

It's reproduced in v6.0 mainline guest on TGL-H platform.
The dmesg that reproduces the issue with the v6.0 kernel in the guest is also in the link above.

Thanks!
BR.

Quoted 22 lines · Pengfei Xu

Hi Miklos,

Greeting!

Platform: Tiger lake CPU platform.

We found 1 "task hung in fuse_lookup" issue by syzkaller with v6.0 mainline kernel in guest.

Bisected and found the bad commit:
"
commit: 62dd1fc8cc6b22e3e568be46ebdb817e66f5d6a5
fuse: move fget() to fuse_get_tree()
"

Reproduced code generated by syzkaller, binary, bisect log and all the dmesg info are in attached package.

Hope it's helpful.

Thanks!
BR.

#2 lore raw
In reply to a message not in the archive
Quoted 10 lines · Pengfei Xu

Hi Miklos,

Greeting!

Platform: Tiger lake CPU platform.

We found 1 "task hung in fuse_lookup" issue by syzkaller with v6.0 mainline kernel in guest.

Quoted 8 lines

Bisected and found the bad commit:
"
commit: 62dd1fc8cc6b22e3e568be46ebdb817e66f5d6a5
fuse: move fget() to fuse_get_tree()
"

Reproduced code generated by syzkaller, binary, bisect log and all the dmesg info are in attached package.

Thanks for the report.

I tried out the reproducer, and the deadlock can be triggered. Unfortunately killing the deadlocked processes is not enough, but it still should be possible to recover with "echo 1 >
/sys/fs/fuse/connections/$FUSE_DEV/abort". In my tests this works,
so I'm not sure there's anything to fix here.

Is there a real life situation where this occurs, or is this just triggered with fuzzing?

I'm wondering why syzbot didn't try aborting using the "abort" file in sysfs, AFAICS it does know this trick.

Thanks,
Miklos

author
#3 lore raw

Hi Miklos,

Quoted 20 lines · Miklos Szeredi
Quoted 10 lines · Pengfei Xu

Hi Miklos,

Greeting!

Platform: Tiger lake CPU platform.

We found 1 "task hung in fuse_lookup" issue by syzkaller with v6.0 mainline kernel in guest.

Quoted 8 lines

Bisected and found the bad commit:
"
commit: 62dd1fc8cc6b22e3e568be46ebdb817e66f5d6a5
fuse: move fget() to fuse_get_tree()
"

Reproduced code generated by syzkaller, binary, bisect log and all the dmesg info are in attached package.

Quoted 7 lines

Thanks for the report.

I tried out the reproducer, and the deadlock can be triggered. Unfortunately killing the deadlocked processes is not enough, but it still should be possible to recover with "echo 1 >
/sys/fs/fuse/connections/$FUSE_DEV/abort". In my tests this works,
so I'm not sure there's anything to fix here.

Thanks for the solution: "echo 1 > /sys/fs/fuse/connections/$FUSE_DEV/abort"

Quoted 3 lines

Is there a real life situation where this occurs, or is this just triggered with fuzzing?

It only could be reproduced by repro.c from syzkaller, and we have not encountered this problem in real life yet.
So it's a low priority issue and it's not even clear if it's worth solving?

Quoted 3 lines

I'm wondering why syzbot didn't try aborting using the "abort" file in sysfs, AFAICS it does know this trick.

Yes, maybe syzbot should improve it? :)

Thanks!
BR.

Quoted 4 lines

Thanks,
Miklos