Christian Borntraeger
fdd6696846
genwqe: Fix size check
Calling the test program genwqe_cksum with the default buffer size of
2MB triggers the following kernel warning on s390:
WARNING: CPU: 30 PID: 9311 at mm/page_alloc.c:3189 __alloc_pages_nodemask+0x45c/0xbe0
CPU: 30 PID: 9311 Comm: genwqe_cksum Kdump: loaded Not tainted 3.10.0-957.el7.s390x #1
task: 00000005e5d13980 ti: 00000005e7c6c000 task.ti: 00000005e7c6c000
Krnl PSW : 0704c00180000000 00000000002780ac (__alloc_pages_nodemask+0x45c/0xbe0)
R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:0 PM:0 EA:3
Krnl GPRS: 00000000002932b8 0000000000b73d7c 0000000000000010 0000000000000009
0000000000000041 00000005e7c6f9b8 0000000000000001 00000000000080d0
0000000000000000 0000000000b70500 0000000000000001 0000000000000000
0000000000b70528 00000000007682c0 0000000000277df2 00000005e7c6f9a0
Krnl Code: 000000000027809e: de7195001000 ed 1280(114,%r9),0(%r1)
00000000002780a4: a774fead brc 7,277dfe
#00000000002780a8: a7f40001 brc 15,2780aa
>00000000002780ac: 92011000 mvi 0(%r1),1
00000000002780b0: a7f4fea7 brc 15,277dfe
00000000002780b4: 9101c6b6 tm 1718(%r12),1
00000000002780b8: a784ff3a brc 8,277f2c
00000000002780bc: a7f4fe2e brc 15,277d18
Call Trace:
([<0000000000277df2>] __alloc_pages_nodemask+0x1a2/0xbe0)
[<000000000013afae>] s390_dma_alloc+0xfe/0x310
[<000003ff8065f362>] __genwqe_alloc_consistent+0xfa/0x148 [genwqe_card]
[<000003ff80658f7a>] genwqe_mmap+0xca/0x248 [genwqe_card]
[<00000000002b2712>] mmap_region+0x4e2/0x778
[<00000000002b2c54>] do_mmap+0x2ac/0x3e0
[<0000000000292d7e>] vm_mmap_pgoff+0xd6/0x118
[<00000000002b081c>] SyS_mmap_pgoff+0xdc/0x268
[<00000000002b0a34>] SyS_old_mmap+0x8c/0xb0
[<000000000074e518>] sysc_tracego+0x14/0x1e
[<000003ffacf87dc6>] 0x3ffacf87dc6
turns out the check in __genwqe_alloc_consistent uses "> MAX_ORDER"
while the mm code uses ">= MAX_ORDER". Fix genwqe.
Cc: stable@vger.kernel.org
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-19 10:11:38 +01:00
..
2018-12-10 13:26:17 +01:00
2018-12-19 09:40:13 +01:00
2018-12-03 12:54:39 -07:00
2018-11-27 15:32:06 -08:00
2018-11-01 18:34:46 -07:00
2018-11-11 11:40:04 -08:00
2018-11-16 09:31:59 -06:00
2018-10-24 14:43:41 +01:00
2018-12-06 15:53:20 +01:00
2018-10-25 11:17:40 -06:00
2018-12-06 15:42:18 +01:00
2018-12-03 09:54:48 -08:00
2018-11-11 16:41:50 -06:00
2018-11-19 11:26:06 +01:00
2018-11-08 18:53:00 +01:00
2018-11-09 17:35:43 +08:00
2018-12-06 22:53:05 +05:30
2018-11-16 08:50:53 +01:00
2018-11-02 11:17:22 -07:00
2018-11-14 09:06:32 +09:00
2018-12-06 15:42:18 +01:00
2018-11-26 20:47:10 +01:00
2018-11-26 10:13:04 +11:00
2018-12-06 17:22:23 +01:00
2018-12-02 12:19:44 -08:00
2018-12-06 14:12:02 +10:00
2018-12-04 08:47:04 -08:00
2018-12-10 09:22:34 +01:00
2018-11-18 14:34:56 -08:00
2018-12-06 15:41:56 +01:00
2018-12-06 23:14:59 +01:00
2018-12-02 22:09:09 -08:00
2018-10-23 13:32:18 +01:00
2018-11-16 11:42:12 +00:00
2018-11-29 15:16:45 -07:00
2018-12-04 08:47:04 -08:00
2018-12-05 12:01:56 +03:00
2018-11-01 12:38:48 +01:00
2018-11-01 19:58:52 -07:00
2018-11-08 17:49:04 -06:00
2018-10-09 08:25:08 -06:00
2018-10-31 08:54:16 -07:00
2018-10-29 10:30:44 -07:00
2018-11-02 11:25:48 -07:00
2018-11-27 13:51:32 -05:00
2018-12-05 09:59:38 +00:00
2018-12-19 10:11:38 +01:00
2018-11-19 14:11:07 +01:00
2018-12-06 15:48:54 +01:00
2018-10-23 08:45:05 +01:00
2018-12-09 11:46:58 -08:00
2018-10-23 13:28:53 -05:00
2018-11-01 10:33:12 -04:00
2018-12-05 14:16:12 -08:00
2018-12-07 07:11:11 -08:00
2018-12-06 15:45:46 +01:00
2018-11-09 16:41:58 -06:00
2018-11-23 10:47:21 +05:30
2018-10-17 17:22:26 +02:00
2018-11-27 08:31:27 +01:00
2018-12-10 13:26:17 +01:00
2018-10-26 14:36:21 -07:00
2018-10-22 17:30:06 +01:00
2018-11-21 13:13:58 +05:30
2018-11-05 09:33:22 +01:00
2018-11-07 13:53:03 +01:00
2018-10-26 12:09:58 -07:00
2018-10-23 13:32:18 +01:00
2018-11-27 10:05:36 +01:00
2018-10-28 19:20:06 -07:00
2018-10-16 13:16:15 +02:00
2018-10-23 01:54:44 +01:00
2018-10-19 12:54:03 -07:00
2018-10-29 15:16:01 -07:00
2018-11-30 12:23:44 -08:00
2018-12-06 14:22:35 -05:00
2018-12-02 20:55:23 -08:00
2018-12-05 17:06:31 -08:00
2018-10-31 08:54:16 -07:00
2018-12-06 15:50:06 +01:00
2018-11-02 11:22:09 -07:00
2018-11-12 15:36:06 +05:30
2018-11-28 08:33:55 -08:00
2018-12-09 10:35:33 -08:00
2018-11-05 22:16:00 -05:00
2018-10-11 09:16:44 -07:00
2018-12-05 06:47:46 -08:00
2018-12-05 12:01:56 +03:00
2018-12-09 10:24:29 -08:00
2018-11-27 11:19:10 +01:00
2018-12-06 18:02:58 +01:00
2018-10-31 11:01:38 -07:00
2018-12-09 15:12:33 -08:00
2018-10-31 11:41:37 -07:00
2018-11-11 12:58:27 -08:00
2018-10-24 20:57:55 -04:00
2018-10-15 20:50:32 +02:00
2018-10-22 10:16:28 +02:00
2018-12-02 12:15:55 -08:00