From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933673AbdJRCEt (ORCPT ); Tue, 17 Oct 2017 22:04:49 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:51517 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751528AbdJRCEr (ORCPT ); Tue, 17 Oct 2017 22:04:47 -0400 X-Google-Smtp-Source: AOwi7QCb4xFn6EajEvsNLQNZNVopy/3hkftFuRHuOmEZwt5V885pyLzhE3uumgH1vYCNZUd4dn0TVQ== From: Kees Cook To: Jessica Yu Cc: Kees Cook , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [RESEND][PATCH 0/3] module: Do not paper over type mismatches in module_param_call() Date: Tue, 17 Oct 2017 19:04:40 -0700 Message-Id: <1508292283-140003-1-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (re-sending to Jessica's @korg address...) The module_param_call() macro was explicitly casting the .set and .get function prototypes away with (void *). This can lead to hard-to-find type mismatches. Additionally, it creates problems for static checkers and Control Flow Itegrity compiler features, which depend on clustering function call sites based on prototype signature. This removes the casts and fixes all the incorrect prototypes tree-wide. -Kees