aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/bpf_iter_setsockopt_unix.c
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2022-02-02 10:33:55 +0100
committerDavid S. Miller <davem@davemloft.net>2022-02-03 14:00:57 +0000
commitbfcbb76b0f595ea9ede9f7a218086fef85242f10 (patch)
treed1678744e3d9d4a3c1e164c0d102888a21693042 /tools/testing/selftests/bpf/progs/bpf_iter_setsockopt_unix.c
parent52cc6ffc0ab2c61a76127b9347567fc97c15582f (diff)
ptp: unregister virtual clocks when unregistering physical clock.
When unregistering a physical clock which has some virtual clocks, unregister the virtual clocks with it. This fixes the following oops, which can be triggered by unloading a driver providing a PTP clock when it has enabled virtual clocks: BUG: unable to handle page fault for address: ffffffffc04fc4d8 Oops: 0000 [#1] PREEMPT SMP NOPTI RIP: 0010:ptp_vclock_read+0x31/0xb0 Call Trace: timecounter_read+0xf/0x50 ptp_vclock_refresh+0x2c/0x50 ? ptp_clock_release+0x40/0x40 ptp_aux_kworker+0x17/0x30 kthread_worker_fn+0x9b/0x240 ? kthread_should_park+0x30/0x30 kthread+0xe2/0x110 ? kthread_complete_and_exit+0x20/0x20 ret_from_fork+0x22/0x30 Fixes: 73f37068d540 ("ptp: support ptp physical/virtual clocks conversion") Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Cc: Yangbo Lu <yangbo.lu@nxp.com> Cc: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_iter_setsockopt_unix.c')
0 files changed, 0 insertions, 0 deletions