linux-stable/drivers/scsi/bfa
Arnd Bergmann 6d4bc344ec scsi: bfa: try to sanitize vendor netlink events
bfa_aen_entry_s is passed to user space in a netlink message, but is
defined using a 'struct timeval' and an 'enum' that are not only
different between architectures, but also between 32-bit user space and
64-bit kernels they may run on, as well as depending on the particular C
library that defines timeval.

This changes the in-kernel definition to no longer use the timeval type
directly but instead use two open-coded 'unsigned long' members.  This
keeps the existing ABI, but making the variable unsigned also helps make
it work after y2038, until it overflows in 2106.

Since the macro becomes overly complex at this point, I'm changing it to
an inline function for readability.

I'm not changing the 32-bit user-space ABI at this point, to keep the
changes separate, I deally this would be defined using the same binary
layout for all architectures.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Anil Gurumurthy <Anil.Gurumurthy@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-12-04 20:32:52 -05:00
..
bfa.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_core.c scsi: bfa: remove bfa_module_s madness 2017-04-19 22:12:14 -04:00
bfa_cs.h scsi: bfa: use ktime_get_real_ts64 for firmware timestamp 2017-12-04 20:32:52 -05:00
bfa_defs.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_defs_fcs.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_defs_svc.h scsi: bfa: try to sanitize vendor netlink events 2017-12-04 20:32:52 -05:00
bfa_fc.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcbuild.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcbuild.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcpim.c scsi: bfa: document overflow of io_profile_start_time 2017-12-04 20:32:52 -05:00
bfa_fcpim.h scsi: bfa: document overflow of io_profile_start_time 2017-12-04 20:32:52 -05:00
bfa_fcs.c scsi: bfa: remove bfa_fcs_mod_s 2017-01-09 23:34:58 -05:00
bfa_fcs.h scsi: bfa: remove bfa_fcs_mod_s 2017-01-09 23:34:58 -05:00
bfa_fcs_fcpim.c bfa: fix bfa_fcb_itnim_alloc() error handling 2016-05-09 22:18:42 -04:00
bfa_fcs_lport.c scsi: bfa: use designated initializers 2017-04-21 10:11:34 -04:00
bfa_fcs_rport.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_hw_cb.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_hw_ct.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_ioc.c scsi: bfa: improve bfa_ioc_send_enable/disable data 2017-12-04 20:32:52 -05:00
bfa_ioc.h scsi: bfa: turn bfa_mem_{kva,dma}_setup into inline functions 2016-11-21 22:28:17 -05:00
bfa_ioc_cb.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_ioc_ct.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_modules.h scsi: bfa: remove bfa_module_s madness 2017-04-19 22:12:14 -04:00
bfa_plog.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_port.c scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfa_port.h scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfa_svc.c scsi: bfa: replace bfa_get_log_time() with ktime_get_real_seconds() 2017-12-04 20:32:52 -05:00
bfa_svc.h scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfad.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
bfad_attr.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_bsg.c scsi: bfa: document overflow of io_profile_start_time 2017-12-04 20:32:52 -05:00
bfad_bsg.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_debugfs.c scsi: bfa: integer overflow in debugfs 2017-10-16 22:35:13 -04:00
bfad_drv.h treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
bfad_im.c scsi: bfa: move bus reset to target reset 2017-08-25 17:21:10 -04:00
bfad_im.h scsi: bfa: try to sanitize vendor netlink events 2017-12-04 20:32:52 -05:00
bfi.h scripts/spelling.txt: add "fimware" misspelling 2016-05-19 19:12:14 -07:00
bfi_ms.h scripts/spelling.txt: add "aligment" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
bfi_reg.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00