Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1166442
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Kees Cook <keescook@chromium.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 20/22] pstore: %pF is only for function pointers |
| Date | Wed, 17 Jun 2015 00:10:01 +0200 |
| Message-ID | <pC7dn-787-13@gated-at.bofh.it> (permalink) |
| References | <p31Pc-6rY-3@gated-at.bofh.it> <p328y-6Oo-19@gated-at.bofh.it> |
| X-Original-To | Anton Vorontsov <anton@enomsg.org> |
| X-Greylist | delayed 92595 seconds by postgrey-1.27 at vger.kernel.org; Tue, 16 Jun 2015 18:02:51 EDT |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=av4arlqVN+1VYxSVVTxtpvq3nHoETHZkUmiDFxgrCk0=; b=RFHzCeJryeW5u5iQd6ozDIU1K+1TY3iCH71IF2/uSWPnTL+LLowghfhr7PJonCHjIS qXBRhG/hJgdIEdxBihqtIdDG4XQCEl5XWTNPFwJ9KRpwwwDJtTdLDutw9tK8zk0qqOS4 Mu/F1rIygwBiDXiibD0AuqngqAhmhNrJ7RtWbZsh49J9d9PvxI0QxHxW0LH6ubiMO8Bi DlsqrqLu14G7oMhBzJhLnJK7yOlh9k0qo6yn7WTpsAcSCHi+ZQ+SHfXQydE8gOPm5Nqe ubAIZKVb6828zFoXR2aqGf8/SAmuKdpz5fGvxxQn6iNK/lconUOfcx+b0IU1eV7Ehe0N vxew== |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=av4arlqVN+1VYxSVVTxtpvq3nHoETHZkUmiDFxgrCk0=; b=YXFdvV09zRpY2XLLTlX76m8qkHU6CdMjqh4sQOOVlDkIVoo7sTLbnVWMxZelFDrkVY orDA/VWBjYNtmIYi+oMBEMKUqEyTqSM2CYKsMDxRxGtWACTS2tGtz+KsvxmSgBpde6pT NGkgo+kTUlSElM0iG+nJ3fyZY7Cw0C6LAEijY= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=av4arlqVN+1VYxSVVTxtpvq3nHoETHZkUmiDFxgrCk0=; b=Uqys4484w4L6/zo2L16cOQJEmqBKf07rerh97kMDpImaWjB5G3X8scf+OJaRUSR82L wBbjYLai7tm+BEpqzxfCV2fqGSaVBpfY/H+m7QWwjpplTEN/xUIL9Ubt11KZkwOzr/EU WHkrcF1KK1Xy+wmuHXDkxFrYkymmNHvk2HBBWY43ywPrme50wmwBYJ52KnUAgw8mqZF5 9BHL4SaC12wH5rKGqHtqKvmfTFUwoEGgwRVn/tKP77zGKqnDlJFn+zOQqMsrc6dJNB+P 3MyIv16iMxG2RJiGJAegyqCZsk6PpDMcuQJ/xHEb/h53FQ/9xuqQdpOmZPdwn1f23THx zz4w== |
| X-Gm-Message-State | ALoCoQk/EqJFD/D0fu6xrg0bA4sMWOmeo33ahGBMdSxDOjmtwxiYpQJTbfDsOphuTxo8jz6lpkmX |
| MIME-Version | 1.0 |
| X-Received | by 10.52.240.198 with SMTP id wc6mr2123151vdc.34.1434492171127; Tue, 16 Jun 2015 15:02:51 -0700 (PDT) |
| X-Google-Sender-Auth | TfwSU0QeLQYshF30h5_aed6rqLs |
| Content-Type | text/plain; charset=UTF-8 |
| 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 | 50 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | trivial@kernel.org, LKML <linux-kernel@vger.kernel.org>, Colin Cross <ccross@android.com>, Tony Luck <tony.luck@intel.com>, Scott Wood <scottwood@freescale.com> |
| X-Original-Date | Tue, 16 Jun 2015 15:02:50 -0700 |
| X-Original-Message-ID | <CAGXu5j+OAdiv=D_pYeGnp-JSKthkibEp=aRYmuPotc9G+J3WiA@mail.gmail.com> |
| X-Original-References | <1426130037-17956-1-git-send-email-scottwood@freescale.com> <1426130037-17956-20-git-send-email-scottwood@freescale.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1166442 |
Show key headers only | View raw
On Wed, Mar 11, 2015 at 8:13 PM, Scott Wood <scottwood@freescale.com> wrote: > Use %pS for actual addresses, otherwise you'll get bad output > on arches like ppc64 where %pF expects a function descriptor. > > Signed-off-by: Scott Wood <scottwood@freescale.com> > Cc: Anton Vorontsov <anton@enomsg.org> > Cc: Colin Cross <ccross@android.com> > Cc: Kees Cook <keescook@chromium.org> > Cc: Tony Luck <tony.luck@intel.com> > --- > fs/pstore/inode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c > index b32ce53..f8a5bfe 100644 > --- a/fs/pstore/inode.c > +++ b/fs/pstore/inode.c > @@ -107,7 +107,7 @@ static int pstore_ftrace_seq_show(struct seq_file *s, void *v) > struct pstore_ftrace_seq_data *data = v; > struct pstore_ftrace_record *rec = (void *)(ps->data + data->off); > > - seq_printf(s, "%d %08lx %08lx %pf <- %pF\n", > + seq_printf(s, "%d %08lx %08lx %ps <- %pS\n", > pstore_ftrace_decode_cpu(rec), rec->ip, rec->parent_ip, > (void *)rec->ip, (void *)rec->parent_ip); > > -- > 2.1.0 > Anton, does this look okay to you? (i.e. switching from function pointer to direct pointer?) vsprintf docs say: * Note: The difference between 'S' and 'F' is that on ia64 and ppc64 * function pointers are really function descriptors, which contain a * pointer to the real address. So this seems correct to me. Reviewed-by: Kees Cook <keescook@chromium.org> -Kees -- Kees Cook Chrome OS Security -- 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 | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 20/22] pstore: %pF is only for function pointers Kees Cook <keescook@chromium.org> - 2015-06-17 00:10 +0200 Re: [PATCH 20/22] pstore: %pF is only for function pointers Anton Vorontsov <anton@enomsg.org> - 2015-06-17 00:40 +0200
csiph-web