Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1225452

Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Johannes Berg <johannes@sipsolutions.net>
Newsgroups linux.kernel
Subject Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting
Date Tue, 15 Sep 2015 19:10:02 +0200
Message-ID <q91TY-2GF-13@gated-at.bofh.it> (permalink)
References <q7z3I-6Aq-7@gated-at.bofh.it> <q7z3I-6Aq-19@gated-at.bofh.it> <q8Ioh-8kx-3@gated-at.bofh.it> <q8Zfr-7ex-13@gated-at.bofh.it> <q8ZyP-7BR-55@gated-at.bofh.it> <q90lb-mc-7@gated-at.bofh.it> <q91qW-1Tn-25@gated-at.bofh.it>
X-Original-To Jonathan Corbet <corbet@lwn.net>, Alexander Shishkin <alexander.shishkin@linux.intel.com>
Content-Type text/plain; charset="UTF-8"
X-Mailer Evolution 3.16.3-1
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
X-Original-Cc Peter Zijlstra <a.p.zijlstra@chello.nl>, Ingo Molnar <mingo@redhat.com>, linux-kernel@vger.kernel.org, vince@deater.net, eranian@google.com, Arnaldo Carvalho de Melo <acme@infradead.org>, linux-api@vger.kernel.org
X-Original-Date Tue, 15 Sep 2015 19:02:19 +0200
X-Original-Message-ID <1442336539.1914.34.camel@sipsolutions.net>
X-Original-References <1441987205-4021-1-git-send-email-alexander.shishkin@linux.intel.com> <1441987205-4021-2-git-send-email-alexander.shishkin@linux.intel.com> <20150914141931.39f6be92@lwn.net> <87a8snn4zz.fsf@ashishki-desk.ger.corp.intel.com> <1442327514.1914.31.camel@sipsolutions.net> <877fnrn1sj.fsf@ashishki-desk.ger.corp.intel.com> <20150915103556.36b06f09@lwn.net>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1225452

Show key headers only | View raw


> I think that anything other than the errno "grab it now or lose it"
> behavior will prove confusing.  I don't think there is any other way to
> know that a given error report corresponds to a specific system call.
> Library calls can mess it up.  Kernel changes adding extended reporting to
> new system calls can mess it up.  Applications cannot possibly be expected
> to know which system calls might change the error-reporting status, they
> *have* to assume all of them will.
> 

Yeah I was about to say something similar - an application that expects
a certain syscall to have extended errors will get confused if running
on an older kernel where that syscall in fact does *not* have extended
errors (and thus also doesn't clear extended errors) and therefore the
extended error from a previous syscall could still be lingering on (for
example because the application didn't care to fetch it for that previo
us syscall.)

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH RFC v3 0/6] Introduce extended syscall error reporting Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-09-11 18:10 +0200
  [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-09-11 18:10 +0200
    Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error  reporting Jonathan Corbet <corbet@lwn.net> - 2015-09-14 22:20 +0200
      Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-09-15 16:20 +0200
        Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error  reporting Johannes Berg <johannes@sipsolutions.net> - 2015-09-15 16:40 +0200
          Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-09-15 17:30 +0200
            Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error  reporting Jonathan Corbet <corbet@lwn.net> - 2015-09-15 18:40 +0200
              Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error  reporting Johannes Berg <johannes@sipsolutions.net> - 2015-09-15 19:10 +0200
    Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error  reporting Jonathan Corbet <corbet@lwn.net> - 2015-09-15 00:00 +0200
  [PATCH RFC v3 6/6] perf tools: Use extended syscall error reporting Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-09-11 18:10 +0200
  [PATCH RFC v3 2/6] perf: Use extended syscall error reporting Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-09-11 18:10 +0200

csiph-web