Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'pstore-v6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull pstore updates from Kees Cook:

- pstore/blk: trivial typo fixes (Eugen Hristev)

- pstore/zone: reject zero-sized allocations (Eugen Hristev)

* tag 'pstore-v6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
pstore/zone: avoid dereferencing zero sized ptr after init zones
pstore/blk: trivial typo fixes

+7 -2
+2 -2
fs/pstore/blk.c
··· 89 89 _##name_ = check_size(name, alignsize); \ 90 90 else \ 91 91 _##name_ = 0; \ 92 - /* Synchronize module parameters with resuls. */ \ 92 + /* Synchronize module parameters with results. */ \ 93 93 name = _##name_ / 1024; \ 94 94 dev->zone.name = _##name_; \ 95 95 } ··· 121 121 if (pstore_device_info) 122 122 return -EBUSY; 123 123 124 - /* zero means not limit on which backends to attempt to store. */ 124 + /* zero means no limit on which backends attempt to store. */ 125 125 if (!dev->flags) 126 126 dev->flags = UINT_MAX; 127 127
+5
fs/pstore/zone.c
··· 1212 1212 } 1213 1213 1214 1214 c = total_size / record_size; 1215 + if (unlikely(!c)) { 1216 + pr_err("zone %s total_size too small\n", name); 1217 + return ERR_PTR(-EINVAL); 1218 + } 1219 + 1215 1220 zones = kcalloc(c, sizeof(*zones), GFP_KERNEL); 1216 1221 if (!zones) { 1217 1222 pr_err("allocate for zones %s failed\n", name);