PAX: size overflow detected in i2c_dw_pci_probe [SOLVED]

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

PAX: size overflow detected in i2c_dw_pci_probe [SOLVED]

Postby ganymede » Sat Dec 26, 2015 1:16 pm

Hello,
Running Linux 4.3.3 with grsecurity-3.1-4.3.3-201512222129.patch on a small Intel NUC, I have the following error at startup :
Code: Select all
[   25.355916] i2c-designware-pci 0000:00:18.1: enabling device (0000 -> 0002)
[   25.356031] PAX: size overflow detected in function i2c_dw_pci_probe drivers/i2c/busses/i2c-designware-pcidrv.c:259 cicus.33_91 max, count: 1, decl: nr; num: 0; context: i2c_adapter;
[   25.356274] CPU: 0 PID: 250 Comm: systemd-udevd Not tainted 4.3.3.201512222129-1-custom #1
[   25.356285] Hardware name: \xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff \xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff/DE3815TYKH, BIOS TYBYT10H.86A.0019.2014.0327.1516 03/27/201
[   25.356295]  ffffffff00000002 eb8efe289e565dd7 0000000000000000 0000000000000103
[   25.356315]  ffffc9000091b9f0 ffffffff8c2e38b8 ffffffffc03de950 ffffc9000091ba20
[   25.356334]  ffffffff8c1b7e6c ffff8800b8006078 00000000ffffffff ffff88013a62d028
[   25.356346] Call Trace:
[   25.356366]  [<ffffffff8c2e38b8>] dump_stack+0x44/0x5c
[   25.356390]  [<ffffffffc03de950>] ? i2c_dw_algo+0x150/0x2d3 [i2c_designware_pci]
[   25.356405]  [<ffffffff8c1b7e6c>] report_size_overflow+0x6c/0x80
[   25.356420]  [<ffffffffc03de3fe>] i2c_dw_pci_probe+0x33e/0x343 [i2c_designware_pci]
[   25.356436]  [<ffffffff8c333b8e>] local_pci_probe+0x4e/0xa0
[   25.356448]  [<ffffffff8c333ad9>] ? pci_match_device+0x109/0x130
[   25.356459]  [<ffffffff8c334958>] pci_device_probe+0x108/0x150
[   25.356474]  [<ffffffffc03de520>] ? i2_designware_pci_ids+0xc0/0x2e0 [i2c_designware_pci]
[   25.356489]  [<ffffffff8c415e69>] driver_probe_device+0x239/0x350
[   25.356502]  [<ffffffff8c416012>] __driver_attach+0x92/0xa0
[   25.356514]  [<ffffffff8c415f80>] ? driver_probe_device+0x350/0x350
[   25.356527]  [<ffffffff8c413a64>] bus_for_each_dev+0x84/0xe0
[   25.356540]  [<ffffffff8c41565d>] driver_attach+0x1d/0x30
[   25.356552]  [<ffffffff8c415243>] bus_add_driver+0x1b3/0x230
[   25.356572]  [<ffffffffc03de8cd>] ? i2c_dw_algo+0xcd/0x2d3 [i2c_designware_pci]
[   25.356585]  [<ffffffff8c416817>] driver_register+0x57/0xd0
[   25.356599]  [<ffffffffc03de8cd>] ? i2c_dw_algo+0xcd/0x2d3 [i2c_designware_pci]
[   25.356611]  [<ffffffff8c333585>] __pci_register_driver+0x55/0x70
[   25.356623]  [<ffffffffc03e0000>] ? 0xffffffffc03e0000
[   25.356637]  [<ffffffffc03e001e>] dw_i2c_driver_init+0x1e/0xecd [i2c_designware_pci]
[   25.356649]  [<ffffffff8c00049d>] do_one_initcall+0x8d/0x190
[   25.356663]  [<ffffffff8c12e9b6>] do_init_module+0x63/0x1fd
[   25.356677]  [<ffffffff8c0e5e95>] load_module+0x2345/0x25d0
[   25.356689]  [<ffffffff8c0e2a70>] ? __symbol_get+0xa0/0xa0
[   25.356703]  [<ffffffffc03e0028>] ? dw_i2c_driver_init+0x28/0xecd [i2c_designware_pci]
[   25.356722]  [<ffffffff8c0e6387>] SyS_init_module+0x267/0x370
[   25.356737]  [<ffffffff8c5eb1a9>] entry_SYSCALL_64_fastpath+0x12/0x83
Thanks.
Last edited by ganymede on Sat Dec 26, 2015 6:15 pm, edited 1 time in total.
ganymede
 
Posts: 2
Joined: Sat Dec 26, 2015 1:07 pm

Re: PAX: size overflow detected in function i2c_dw_pci_probe

Postby PaX Team » Sat Dec 26, 2015 3:55 pm

it was already reported via email and will be fixed in the next patch. in the meantime you could test the following the patch:
Code: Select all
--- a/drivers/i2c/busses/i2c-designware-pcidrv.c      2015-11-03 01:49:07.159338417 +0100
+++ b/drivers/i2c/busses/i2c-designware-pcidrv.c  2015-12-23 04:43:55.184754210 +0100
@@ -60,7 +60,7 @@ struct dw_scl_sda_cfg {
 };

 struct dw_pci_controller {
-       u32 bus_num;
+       int bus_num;
        u32 bus_cfg;
        u32 tx_fifo_depth;
        u32 rx_fifo_depth;
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: PAX: size overflow detected in function i2c_dw_pci_probe

Postby ganymede » Sat Dec 26, 2015 6:13 pm

Problem solved. Thank you !
Code: Select all
[   24.376098] i2c-designware-pci 0000:00:18.1: enabling device (0000 -> 0002)
[   24.409064] i2c-designware-pci 0000:00:18.2: enabling device (0000 -> 0002)
ganymede
 
Posts: 2
Joined: Sat Dec 26, 2015 1:07 pm


Return to grsecurity support