Messages in this thread | | | Date | Sat, 11 Feb 2023 09:13:23 +0800 | From | Chao Yu <> | Subject | Re: [PATCH 1/2] proc: fix to check name length in proc_lookup_de() |
| |
On 2023/2/3 7:41, Andrew Morton wrote: > [patch 1/2]: Alexey wasn't keen on the v1 patch. What changed?
I replied to Alexey's comments on v1, but still didn't get any feedback, so I just rebase the code to last -next. Sorry, too rush to missed to add change log on v2.
> > [patch 2/2]: What is the benefit from this change?
Block size is mismatch in between results of stat() and statfs(), this patch tries to fix this issue.
stat /proc/ File: /proc/ Size: 0 Blocks: 0 IO Block: 1024 directory Device: 14h/20d Inode: 1 Links: 310 Access: (0555/dr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2023-01-28 23:14:20.491937242 +0800 Modify: 2023-01-28 23:14:20.491937242 +0800 Change: 2023-01-28 23:14:20.491937242 +0800 Birth: -
stat -f /proc/ File: "/proc/" ID: 0 Namelen: 255 Type: proc Block size: 4096 Fundamental block size: 4096 Blocks: Total: 0 Free: 0 Available: 0 Inodes: Total: 0 Free: 0
| |