[LU-15933] client hang with NULL pointer dereference, at iov_iter_advance Created: 11/Jun/22 Updated: 04/Oct/22 Resolved: 06/Jul/22 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0, Lustre 2.15.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Zhenyu Xu | Assignee: | Zhenyu Xu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
client kernel version >= 5.13 |
||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
lustre clients hang with following call trace. BUG: kernel NULL pointer dereference, address: 0000000000000008 |
| Comments |
| Comment by Zhenyu Xu [ 11/Jun/22 ] |
|
the iov_iter type compile testing is 208 LB_CHECK_COMPILE([if iov_iter has member type], 209 iov_iter_has_type_member, [ 210 #include <linux/uio.h> 211 ],[ 212 struct iov_iter iter = { .type = ITER_KVEC }; 213 (void)iter; 214 ],[ 215 AC_DEFINE(HAVE_IOV_ITER_HAS_TYPE_MEMBER, 1, 216 [if iov_iter has member type]) 217 ]) while kernel commit 8cd54c1c84803 (v5.13) has changed the member ->type to ->iter_type, and I think that's caused the mess.
struct iov_iter {
- /*
- * Bit 0 is the read/write bit, set if we're writing.
- * Bit 1 is the BVEC_FLAG_NO_REF bit, set if type is a bvec and
- * the caller isn't expecting to drop a page reference when done.
- */
- unsigned int type;
+ u8 iter_type;
+ bool data_source;
size_t iov_offset;
size_t count;
union {
|
| Comment by Gerrit Updater [ 11/Jun/22 ] |
|
"Bobi Jam <bobijam@hotmail.com>" uploaded a new patch: https://review.whamcloud.com/47601 |
| Comment by Gerrit Updater [ 24/Jun/22 ] |
|
"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47756 |
| Comment by Gerrit Updater [ 27/Jun/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47601/ |
| Comment by Gerrit Updater [ 06/Jul/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47756/ |