On Tue, 24 Dec 2024 at 11:18, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote: > > if (f) > seq_file_path(m, f, " \t\n\\<"); > else > seq_puts(m, "<none>"); Maybe seq_file_path() could do the "<none>" thing itself. Right now it looks like d_path() just oopses with a NULL pointer dereference if you pass it a NULL path. Our printk() routines - including '%pd' - tend to do "(null)" for this case (and also handle ERR_PTR() cases) thanks to the 'check_pointer()' logic. Linus