Re: [PATCH net] kcm: disable preemption in kcm_parse_func_strparser()

2019-09-27 Thread David Miller
From: Eric Dumazet Date: Tue, 24 Sep 2019 12:29:34 -0700 > After commit a2c11b034142 ("kcm: use BPF_PROG_RUN") > syzbot easily triggers the warning in cant_sleep(). > > As explained in commit 6cab5e90ab2b ("bpf: run bpf programs > with preemption disabled") we need to disable preemption before >

[PATCH net] kcm: disable preemption in kcm_parse_func_strparser()

2019-09-24 Thread Eric Dumazet
After commit a2c11b034142 ("kcm: use BPF_PROG_RUN") syzbot easily triggers the warning in cant_sleep(). As explained in commit 6cab5e90ab2b ("bpf: run bpf programs with preemption disabled") we need to disable preemption before running bpf programs. BUG: assuming atomic context at net/kcm/kcmsock