On Mon, Aug 17, 2020 at 11:27 AM Josef Bacik <josef@xxxxxxxxxxxxxx> wrote: > > On 8/17/20 1:42 PM, Yonghong Song wrote: > > With latest `bpftool prog` command, we observed the following kernel > > panic. > > BUG: kernel NULL pointer dereference, address: 0000000000000000 > > > > This patch used get_file_rcu() which only grabs a file if the > > file->f_count is not zero. This is to ensure the file pointer > > is always valid. The above reproducer did not fail for more > > than 30 minutes. > > > > Fixes: eaaacd23910f ("bpf: Add task and task/file iterator targets") > > Suggested-by: Josef Bacik <josef@xxxxxxxxxxxxxx> > > Signed-off-by: Yonghong Song <yhs@xxxxxx> > > --- > > Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Applied. Thanks