Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-11703

sigbus on shared mapping memset

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      The following test

          addr = mmap(.., MAP_SHARED, ..);
      
          for(;;)
              memcpy(addr, ...);
      

      leads to sigbus signal as vvp_io_fault_start() runs out of grants.

      static int vvp_io_fault_start(const struct lu_env *env,
                                    const struct cl_io_slice *ios)
      ...
                              result = cl_io_commit_async(env, io, plist, 0, to,
                                                          mkwrite_commit_callback);
      ...
                                      /* we're in big trouble, what can we do now? */
                                      if (result == -EDQUOT)
                                              result = -ENOSPC;
      

        Attachments

          Activity

            People

            • Assignee:
              vsaveliev Vladimir Saveliev
              Reporter:
              vsaveliev Vladimir Saveliev
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: