@@ -815,8 +815,12 @@ static void rb_free_work(struct work_str
vfree(base);
kfree(rb);
- /* Make sure buffer is unmapped in all page-tables */
- vmalloc_sync_all();
+ /*
+ * FIXME: PAE workaround for vmalloc_fault(): Make sure buffer is
+ * unmapped in all page-tables.
+ */
+ if (IS_ENABLED(CONFIG_X86_PAE))
+ vmalloc_sync_all();
}
void rb_free(struct ring_buffer *rb)
@@ -844,11 +848,13 @@ struct ring_buffer *rb_alloc(int nr_page
goto fail_all_buf;
/*
- * The buffer is accessed in NMI handlers, make sure it is
- * mapped in all page-tables in the system so that we don't
- * fault on the range in an NMI handler.
+ * FIXME: PAE workaround for vmalloc_fault(): The buffer is
+ * accessed in NMI handlers, make sure it is mapped in all
+ * page-tables in the system so that we don't fault on the range in
+ * an NMI handler.
*/
- vmalloc_sync_all();
+ if (IS_ENABLED(CONFIG_X86_PAE))
+ vmalloc_sync_all();
rb->user_page = all_buf;
rb->data_pages[0] = all_buf + PAGE_SIZE;