Bug 88021
Summary: | [PATCH]9P2000/9P2000.u infinite loop on invalid size field in v9fs_dir_readdir | ||
---|---|---|---|
Product: | File System | Reporter: | Gertjan Halkes (kbt) |
Component: | v9fs | Assignee: | Eric Van Hensbergen (ericvh) |
Status: | ASSIGNED --- | ||
Severity: | normal | CC: | alan, asmadeus, gertjan, szg00000 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.13.0 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Patch to fix the bug
Reupload of the patch, with Signed-off-by line as requested. |
Description
Gertjan Halkes
2014-11-11 07:16:54 UTC
Apologies, the file should of course be vfs_dir.c, not vfs_file.c. Created attachment 157321 [details]
Patch to fix the bug
I've created a patch which uses the length of the parsed record instead of the size supplied by the server.
Please see Documentation/SubmittingPatches. Our lawyers require that we get patches submitted with a proper Signed-off-by: line. Created attachment 160191 [details]
Reupload of the patch, with Signed-off-by line as requested.
I just found out that this bugzilla had open bugs for 9p, with patches non-the-less! Gertjan, it's a bit late, but this patch still applies give or take context. I'll send it for you under your name upstream and it should get merged for 4.20, you'll be in Cc to the mails so feel free to say either here or in reply to the mails if you'd rather not be author or if the commit message I came up with is bad :) On a less positive note, I have no idea how to manage the bug status here (I don't think I have accesses for that), I'll try to figure out who to ask eventually... Thanks! Yes, please send it upstream under my name and my work email address (gertjan@google.com). Thanks! The bugzilla maintainer at kernel.org But while that gets figured out if you email me a list of bugs you need closing or whater I should still have the super-power to do it 8) Thanks Alan, I sent the kernel helpdesk a mail yesterday and they already sorted that out :) I'll mark this resolved when the patch gets merged, it's not like there's a huge volume of bugs to work through. |