Pull 9p updates from Dominique Martinet: - improve p9_check_errors to check buffer size instead of msize when possible (e.g. not zero-copy) - some more syzbot and KCSAN fixes - minor headers include cleanup * tag '9p-for-6.2-rc1' of https://github.com/martinetd/linux: 9p/client: fix data race on req->status net/9p: fix response size check in p9_check_errors() net/9p: distinguish zero-copy requests 9p/xen: do not memcpy header into req->rc 9p: set req refcount to zero to avoid uninitialized usage 9p/net: Remove unneeded idr.h #include 9p/fs: Remove unneeded idr.h #include
Showing the changes to include (1 of 15 files). Show all
Unified · Split
| @@ -531,6 +531,7 @@ struct p9_rstatfs { · 530 unmodified lines | |||
| 531 | * @offset: used by marshalling routines to track current position in buffer | 531 | * @offset: used by marshalling routines to track current position in buffer |
| 532 | * @capacity: used by marshalling routines to track total malloc'd capacity | 532 | * @capacity: used by marshalling routines to track total malloc'd capacity |
| 533 | * @sdata: payload | 533 | * @sdata: payload |
| 534 | * @zc: whether zero-copy is used | ||
| 534 | * | 535 | * |
| 535 | * &p9_fcall represents the structure for all 9P RPC | 536 | * &p9_fcall represents the structure for all 9P RPC |
| 536 | * transactions. Requests are packaged into fcalls, and reponses | 537 | * transactions. Requests are packaged into fcalls, and reponses |
| @@ -549,6 +550,7 @@ struct p9_fcall { · 12 unmodified lines | |||
| 549 | 550 | ||
| 550 | struct kmem_cache *cache; | 551 | struct kmem_cache *cache; |
| 551 | u8 *sdata; | 552 | u8 *sdata; |
| 553 | bool zc; | ||
| 552 | }; | 554 | }; |
| 553 | 555 | ||
| 554 | int p9_errstr2errno(char *errstr, int len); | 556 | int p9_errstr2errno(char *errstr, int len); |