public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/1] bpf, docs: structured overview of verifier
@ 2026-03-09 13:46 Burak Emir
  2026-03-09 14:47 ` Jonathan Corbet
  0 siblings, 1 reply; 3+ messages in thread
From: Burak Emir @ 2026-03-09 13:46 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko
  Cc: Burak Emir, Martin KaFai Lau, Eduard Zingerman, Song Liu,
	Yonghong Song, John Fastabend, KP Singh, Stanislav Fomichev,
	Hao Luo, Jiri Olsa, Jonathan Corbet, bpf, linux-doc

This is an RFC for adding overview documentation for the BPF verifier.

The existing verifier.rst has detail but IMHO it lacks structure and
background. Here is my humble proposal to make the verifier docs
more helpful for newcomers.

Finding a balance between overview and detail in documentation is 
never easy. The idea here is to describe abstract interpretation and have
enough information that anyone interested can learn what is going on. 

Please let me know what you think. I used Gemini 3 to get a first draft,
which I then checked word-for-word and reworked.

Differences to v1:
* Formatting fix for top, bottom
* Fixed some wrong identifiers that I had missed.

Burak Emir (1):
  bpf, docs: structured docs for the verifier

 Documentation/bpf/index.rst                   |  1 +
 .../bpf/verifier-overview-1-abstr-interp.rst  | 74 +++++++++++++++
 .../bpf/verifier-overview-2-domain.rst        | 91 +++++++++++++++++++
 .../bpf/verifier-overview-3-dataflow.rst      | 83 +++++++++++++++++
 .../bpf/verifier-overview-4-pruning.rst       | 59 ++++++++++++
 .../bpf/verifier-overview-5-advanced.rst      | 70 ++++++++++++++
 Documentation/bpf/verifier-overview-index.rst | 17 ++++
 7 files changed, 395 insertions(+)
 create mode 100644 Documentation/bpf/verifier-overview-1-abstr-interp.rst
 create mode 100644 Documentation/bpf/verifier-overview-2-domain.rst
 create mode 100644 Documentation/bpf/verifier-overview-3-dataflow.rst
 create mode 100644 Documentation/bpf/verifier-overview-4-pruning.rst
 create mode 100644 Documentation/bpf/verifier-overview-5-advanced.rst
 create mode 100644 Documentation/bpf/verifier-overview-index.rst

-- 
2.53.0.473.g4a7958ca14-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC PATCH v2 0/1] bpf, docs: structured overview of verifier
  2026-03-09 13:46 [RFC PATCH v2 0/1] bpf, docs: structured overview of verifier Burak Emir
@ 2026-03-09 14:47 ` Jonathan Corbet
  2026-03-09 15:42   ` Alexei Starovoitov
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Corbet @ 2026-03-09 14:47 UTC (permalink / raw)
  To: Burak Emir, Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko
  Cc: Burak Emir, Martin KaFai Lau, Eduard Zingerman, Song Liu,
	Yonghong Song, John Fastabend, KP Singh, Stanislav Fomichev,
	Hao Luo, Jiri Olsa, bpf, linux-doc

Burak Emir <bqe@google.com> writes:

> This is an RFC for adding overview documentation for the BPF verifier.
>
> The existing verifier.rst has detail but IMHO it lacks structure and
> background. Here is my humble proposal to make the verifier docs
> more helpful for newcomers.
>
> Finding a balance between overview and detail in documentation is 
> never easy. The idea here is to describe abstract interpretation and have
> enough information that anyone interested can learn what is going on. 
>
> Please let me know what you think. I used Gemini 3 to get a first draft,
> which I then checked word-for-word and reworked.

I only got the cover letter for the second version, so these overall
comments are based on the first.

- Please stick to the 80-column line limit for text material; we want
  people to be able read it.

- Why split this into five different files?  It is not a massive amount
  of material; spreading it out just makes the reader work harder.

- It is overly heavy on the markup.  If nothing else, function
  references should just be function(), without ``literal`` markup; that
  lets the automarkup code do its thing.  Same with "struct foo".

Hopefully the BPF folks can take a more substantive look as well.

jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC PATCH v2 0/1] bpf, docs: structured overview of verifier
  2026-03-09 14:47 ` Jonathan Corbet
@ 2026-03-09 15:42   ` Alexei Starovoitov
  0 siblings, 0 replies; 3+ messages in thread
From: Alexei Starovoitov @ 2026-03-09 15:42 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: Burak Emir, Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Martin KaFai Lau, Eduard Zingerman, Song Liu, Yonghong Song,
	John Fastabend, KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa,
	bpf, open list:DOCUMENTATION

On Mon, Mar 9, 2026 at 7:47 AM Jonathan Corbet <corbet@lwn.net> wrote:
>
> Burak Emir <bqe@google.com> writes:
>
> > This is an RFC for adding overview documentation for the BPF verifier.
> >
> > The existing verifier.rst has detail but IMHO it lacks structure and
> > background. Here is my humble proposal to make the verifier docs
> > more helpful for newcomers.
> >
> > Finding a balance between overview and detail in documentation is
> > never easy. The idea here is to describe abstract interpretation and have
> > enough information that anyone interested can learn what is going on.
> >
> > Please let me know what you think. I used Gemini 3 to get a first draft,
> > which I then checked word-for-word and reworked.
>
> I only got the cover letter for the second version, so these overall
> comments are based on the first.

Jon,
don't bother.
This is a no go.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-09 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 13:46 [RFC PATCH v2 0/1] bpf, docs: structured overview of verifier Burak Emir
2026-03-09 14:47 ` Jonathan Corbet
2026-03-09 15:42   ` Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox