| Summary: | standard output file descriptor was set with: O_NONBLOCK, but restore with flag: 0 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | mzhan017 <mark.zhang> | ||||
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | CC: | djm, dtucker | ||||
| Priority: | P5 | ||||||
| Version: | 9.1p1 | ||||||
| Hardware: | Other | ||||||
| OS: | Linux | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 3480 | ||||||
| Attachments: |
|
||||||
|
Description
mzhan017
2023-01-17 19:22:06 AEDT
Created attachment 3651 [details]
restore exact flags at exit
Thanks for the report. Could you try this patch?
Hello Miller, Thanks for your quick response and fix. The patch is good by my test. Thanks, Mark systemtap's result, the flag could be restored. time: 1673959685099: vfs_llseek: process=ksh, pid=1168362: file name =ddd, flag=8401 time: 1673959685099: vfs_llseek: process=ksh, pid=1168362: file name =ddd, flag=8401 time: 1673959685100: vfs_llseek: process=ksh, pid=1168362: file name =ddd, flag=8401 time: 1673959685101: vfs_llseek: process=ksh, pid=1168362: file name =ddd, flag=8401 time: 1673959685192: setfl: process=ssh, pid=1168363: file name =ddd, flag=8401, arg=8c01 time: 1673959685319: setfl: process=ssh, pid=1168363: file name =ddd, flag=8c01, arg=8401 time= 1673959687102: inode->i_size: 8455256, name: ksh, pid=1168362, off=0, file_off=0, count=4, flag=2, file_flag=8401, filename=ddd Thanks this fix has been committed and will be in OpenSSH 9.2, due for release next month. OpenSSH 9.3 has been released. Close resolved bugs |