5.4.22-stable review
Subsystems (9)
Greg Kroah-Hartman
maintainerPATCH 302/344 cifs: fix unitialized variable poential problem with network I/O cache lock patch
In reply to Greg Kroah-HartmanFrom: Steve French <[email protected]>
[ Upstream commit 463a7b457c02250a84faa1d23c52da9e3364aed2 ]
static analysis with Coverity detected an issue with the following commit:
Author: Paulo Alcantara (SUSE) <[email protected]>
Date: Wed Dec 4 17:38:03 2019 -0300
cifs: Avoid doing network I/O while holding cache lock
Addresses-Coverity: ("Uninitialized pointer read")
--- fs/cifs/dfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/dfs_cache.c +1 -1
@@ -1319,7 +1319,7 @@ static struct cifs_ses *find_root_ses(struct dfs_cache_vol_info *vi,char *mdata =NULL , *devname =NULL ;struct TCP_Server_Info *server;struct cifs_ses *ses; -struct smb_vol vol; +struct smb_vol vol = {NULL }; rpath =get_dfs_root (path);if (IS_ERR (rpath))
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 303/344 cifs: Fix mount options set in automount
In reply to Greg Kroah-HartmanFrom: Paulo Alcantara (SUSE) <[email protected]>
[ Upstream commit 5739375ee4230980166807d347cc21c305532bbc ]
Starting from 4a367dc04435, we must set the mount options based on the DFS full path rather than the resolved target, that is, cifs_mount() will be responsible for resolving the DFS link (cached) as well as performing failover to any other targets in the referral.
--- fs/cifs/cifs_dfs_ref.c | 97 +++++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 54 deletions(-)
fs/cifs/cifs_dfs_ref.c +43 -54
@@ -120,17 +120,17 @@ cifs_build_devname(char *nodename, const char *prepath)/** -* cifs_compose_mount_options - creates mount options for refferral +* cifs_compose_mount_options - creates mount options for referral * @sb_mountdata: parent/root DFS mount options (template) * @fullpath: full path in UNC format -* @ref: server's referral +* @ref: optional server's referral * @devname: optional pointer for saving device name * * creates mount options for submount based on template options sb_mountdata * and replacing unc,ip,prefixpath options with ones we've got form ref_unc. * * Returns: pointer to new mount options or ERR_PTR. -* Caller is responcible for freeing retunrned value if it is not error. +* Caller is responsible for freeing returned value if it is not error. */ char *cifs_compose_mount_options(const char *sb_mountdata, const char *fullpath,
@@ -150,18 +150,27 @@ char *cifs_compose_mount_options(const char *sb_mountdata,if (sb_mountdata ==NULL )return ERR_PTR (-EINVAL ); -if (strlen (fullpath) - ref->path_consumed) { - prepath = fullpath + ref->path_consumed; -/* skip initial delimiter */ -if (*prepath =='/' || *prepath =='\\' ) - prepath++; - } +if (ref) { +if (strlen (fullpath) - ref->path_consumed) { + prepath = fullpath + ref->path_consumed; +/* skip initial delimiter */ +if (*prepath =='/' || *prepath =='\\' ) + prepath++; + } - name =cifs_build_devname (ref->node_name, prepath); -if (IS_ERR (name)) { - rc =PTR_ERR (name); - name =NULL ; - goto compose_mount_options_err; + name =cifs_build_devname (ref->node_name, prepath); +if (IS_ERR (name)) { + rc =PTR_ERR (name); + name =NULL ; + goto compose_mount_options_err; + } + }else { + name =cifs_build_devname ((char *)fullpath,NULL ); +if (IS_ERR (name)) { + rc =PTR_ERR (name); + name =NULL ; + goto compose_mount_options_err; + } } rc =dns_resolve_server_name_to_ip (name, &srvIP);
@@ -225,6 +234,8 @@ char *cifs_compose_mount_options(const char *sb_mountdata,if (devname) *devname = name; +else +kfree (name);/*cifs_dbg(FYI, "%s: parent mountdata: %s\n", __func__, sb_mountdata);*/ /*cifs_dbg(FYI, "%s: submount mountdata: %s\n", __func__, mountdata );*/
@@ -241,23 +252,23 @@ compose_mount_options_err: }/** -* cifs_dfs_do_refmount - mounts specified path using provided refferal +* cifs_dfs_do_mount - mounts specified path using DFS full path +* +* Always pass down @fullpath to smb3_do_mount() so we can use the root server +* to perform failover in case we failed to connect to the first target in the +* referral. +* * @cifs_sb: parent/root superblock * @fullpath: full path in UNC format -* @ref: server's referral */ -static struct vfsmount *cifs_dfs_do_refmount (struct dentry *mntpt, -struct cifs_sb_info *cifs_sb, -const char *fullpath,const struct dfs_info3_param *ref) +static struct vfsmount *cifs_dfs_do_mount (struct dentry *mntpt, +struct cifs_sb_info *cifs_sb, +const char *fullpath) {struct vfsmount *mnt;char *mountdata;char *devname; -/* -* Always pass down the DFS full path to smb3_do_mount() so we -* can use it later for failover. -*/ devname =kstrndup (fullpath,strlen (fullpath),GFP_KERNEL );if (!devname)return ERR_PTR (-ENOMEM );
@@ -266,7 +277,7 @@ static struct vfsmount *cifs_dfs_do_refmount(struct dentry *mntpt,/* strip first '\' from fullpath */ mountdata =cifs_compose_mount_options (cifs_sb->mountdata, - fullpath +1 , ref,NULL ); + fullpath +1 ,NULL ,NULL );if (IS_ERR (mountdata)) {kfree (devname);return (struct vfsmount *)mountdata;
@@ -278,28 +289,16 @@ static struct vfsmount *cifs_dfs_do_refmount(struct dentry *mntpt,return mnt; } -static void dump_referral (const struct dfs_info3_param *ref) -{ -cifs_dbg (FYI ,"DFS: ref path: %s\n" , ref->path_name); -cifs_dbg (FYI ,"DFS: node path: %s\n" , ref->node_name); -cifs_dbg (FYI ,"DFS: fl: %d, srv_type: %d\n" , - ref->flags, ref->server_type); -cifs_dbg (FYI ,"DFS: ref_flags: %d, path_consumed: %d\n" , - ref->ref_flag, ref->path_consumed); -} -/* * Create a vfsmount that we can automount */ static struct vfsmount *cifs_dfs_do_automount (struct dentry *mntpt) { -struct dfs_info3_param referral = {0 };struct cifs_sb_info *cifs_sb;struct cifs_ses *ses;struct cifs_tcon *tcon;char *full_path, *root_path;unsigned int xid; -int len;int rc;struct vfsmount *mnt;
@@ -357,7 +356,7 @@ static struct vfsmount *cifs_dfs_do_automount(struct dentry *mntpt)if (!rc) { rc =dfs_cache_find (xid, ses, cifs_sb->local_nls,cifs_remap (cifs_sb), full_path +1 , - &referral,NULL ); +NULL ,NULL ); }free_xid (xid);
@@ -366,26 +365,16 @@ static struct vfsmount *cifs_dfs_do_automount(struct dentry *mntpt) mnt =ERR_PTR (rc); goto free_root_path; } - -dump_referral (&referral); - - len =strlen (referral.node_name); -if (len <2 ) { -cifs_dbg (VFS ,"%s: Net Address path too short: %s\n" , - __func__, referral.node_name); - mnt =ERR_PTR (-EINVAL ); - goto free_dfs_ref; - }/* -* cifs_mount() will retry every available node server in case -* of failures. +* OK - we were able to get and cache a referral for @full_path. +* +* Now, pass it down to cifs_mount() and it will retry every available +* node server in case of failures - no need to do it here. */ - mnt =cifs_dfs_do_refmount (mntpt, cifs_sb, full_path, &referral); -cifs_dbg (FYI ,"%s: cifs_dfs_do_refmount:%s , mnt:%p\n" , __func__, - referral.node_name, mnt); + mnt =cifs_dfs_do_mount (mntpt, cifs_sb, full_path); +cifs_dbg (FYI ,"%s: cifs_dfs_do_mount:%s , mnt:%p\n" , __func__, + full_path +1 , mnt); -free_dfs_ref: -free_dfs_info_param (&referral); free_root_path:kfree (root_path); free_full_path:
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 304/344 cifs: fix NULL dereference in match_prepath
In reply to Greg Kroah-HartmanFrom: Ronnie Sahlberg <[email protected]>
[ Upstream commit fe1292686333d1dadaf84091f585ee903b9ddb84 ]
RHBZ: 1760879
Fix an oops in match_prepath() by making sure that the prepath string is not NULL before we pass it into strcmp().
This is similar to other checks we make for example in cifs_root_iget()
--- fs/cifs/connect.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
fs/cifs/connect.c +4 -2
@@ -3652,8 +3652,10 @@ match_prepath(struct super_block *sb, struct cifs_mnt_data *mnt_data) {struct cifs_sb_info *old =CIFS_SB (sb);struct cifs_sb_info *new = mnt_data->cifs_sb; -bool old_set = old->mnt_cifs_flags &CIFS_MOUNT_USE_PREFIX_PATH ; -bool new_set = new->mnt_cifs_flags &CIFS_MOUNT_USE_PREFIX_PATH ; +bool old_set = (old->mnt_cifs_flags &CIFS_MOUNT_USE_PREFIX_PATH ) && + old->prepath; +bool new_set = (new->mnt_cifs_flags &CIFS_MOUNT_USE_PREFIX_PATH ) && + new->prepath;if (old_set && new_set && !strcmp (new->prepath, old->prepath))return 1 ;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 305/344 bpf: map_seq_next should always increase position index
In reply to Greg Kroah-HartmanFrom: Vasily Averin <[email protected]>
[ Upstream commit 90435a7891a2259b0f74c5a1bc5600d0d64cba8f ]
If seq_file .next fuction does not change position index, read after some lseek can generate an unexpected output.
See also: https://bugzilla.kernel.org/show_bug.cgi?id=206283
v1 -> v2: removed missed increment in end of function
--- kernel/bpf/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/bpf/inode.c +1 -2
@@ -196,6 +196,7 @@ static void *map_seq_next(struct seq_file *m, void *v, loff_t *pos)void *key =map_iter (m)->key;void *prev_key; + (*pos)++;if (map_iter (m)->done)return NULL ;
@@ -208,8 +209,6 @@ static void *map_seq_next(struct seq_file *m, void *v, loff_t *pos)map_iter (m)->done = true;return NULL ; } - - ++(*pos);return key; }
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 306/344 powerpc/mm: Dont log user reads to 0xffffffff
In reply to Greg Kroah-HartmanFrom: Christophe Leroy <[email protected]>
[ Upstream commit 0f9aee0cb9da7db7d96f63cfa2dc5e4f1bffeb87 ]
Running vdsotest leaves many times the following log:
[ 79.629901] vdsotest[396]: User access of kernel address (ffffffff) - exploit attempt? (uid: 0)
A pointer set to (-1) is likely a programming error similar to a NULL pointer and is not worth logging as an exploit attempt.
Don't log user accesses to 0xffffffff.
--- arch/powerpc/mm/fault.c | 3 +++ 1 file changed, 3 insertions(+)
arch/powerpc/mm/fault.c +3 -0
@@ -354,6 +354,9 @@ static void sanity_check_fault(bool is_write, bool is_user,* Userspace trying to access kernel address, we get PROTFAULT for that. */ if (is_user && address >=TASK_SIZE ) { +if ((long )address ==-1 ) +return ; +pr_crit_ratelimited ("%s[%d]: User access of kernel address (%lx) - exploit attempt? (uid: %d)\n" , current->comm, current->pid, address,from_kuid (&init_user_ns,current_uid ()));
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 307/344 ceph: check availability of mds cluster on mount after wait timeout
In reply to Greg Kroah-HartmanFrom: Xiubo Li <[email protected]>
[ Upstream commit 97820058fb2831a4b203981fa2566ceaaa396103 ]
If all the MDS daemons are down for some reason, then the first mount attempt will fail with EIO after the mount request times out. A mount attempt will also fail with EIO if all of the MDS's are laggy.
This patch changes the code to return -EHOSTUNREACH in these situations and adds a pr_info error message to help the admin determine the cause.
URL: https://tracker.ceph.com/issues/4386
--- fs/ceph/mds_client.c | 3 +-- fs/ceph/super.c | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-)
fs/ceph/mds_client.c +1 -2
@@ -2552,8 +2552,7 @@ static void __do_request(struct ceph_mds_client *mdsc,if (!(mdsc->fsc->mount_options->flags &CEPH_MOUNT_OPT_MOUNTWAIT ) && !ceph_mdsmap_is_cluster_available (mdsc->mdsmap)) { - err = -ENOENT ; -pr_info ("probably no mds server is up\n" ); + err = -EHOSTUNREACH ; goto finish; } }
fs/ceph/super.c +5 -0
@@ -1137,6 +1137,11 @@ static struct dentry *ceph_mount(struct file_system_type *fs_type,return res; out_splat: +if (!ceph_mdsmap_is_cluster_available (fsc->mdsc->mdsmap)) { +pr_info ("No mds server is up or the cluster is laggy\n" ); + err = -EHOSTUNREACH ; + } +ceph_mdsc_close_sessions (fsc->mdsc);deactivate_locked_super (sb); goto out_final;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 308/344 rbd: work around -Wuninitialized warning
In reply to Greg Kroah-HartmanFrom: Arnd Bergmann <[email protected]>
[ Upstream commit a55e601b2f02df5db7070e9a37bd655c9c576a52 ]
gcc -O3 warns about a dummy variable that is passed down into rbd_img_fill_nodata without being initialized:
drivers/block/rbd.c: In function 'rbd_img_fill_nodata':drivers/block/rbd.c:2573:13: error: 'dummy' is used uninitialized in this function [-Werror=uninitialized]
fctx->iter = *fctx->pos;
Since this is a dummy, I assume the warning is harmless, but it's better to initialize it anyway and avoid the warning.
--- drivers/block/rbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/rbd.c +1 -1
@@ -2739,7 +2739,7 @@ static int rbd_img_fill_nodata(struct rbd_img_request *img_req, u64 off, u64 len) {struct ceph_file_extent ex = { off, len }; -union rbd_img_fill_iter dummy; +union rbd_img_fill_iter dummy = {};struct rbd_img_fill_ctx fctx = { .pos_type =OBJ_REQUEST_NODATA , .pos = &dummy,
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 309/344 drm/amd/display: do not allocate display_mode_lib unnecessarily
In reply to Greg Kroah-HartmanFrom: Dor Askayo <[email protected]>
[ Upstream commit bb67bfd2e7101bf2ac5327b0b7a847cd9fb9723f ]
This allocation isn't required and can fail when resuming from suspend.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +9 -8
@@ -2267,12 +2267,7 @@ void dc_set_power_state( enum dc_acpi_cm_power_state power_state) {struct kref refcount; -struct display_mode_lib *dml =kzalloc (sizeof (struct display_mode_lib ), -GFP_KERNEL ); - -ASSERT (dml); -if (!dml) -return ; +struct display_mode_lib *dml;switch (power_state) {case DC_ACPI_CM_POWER_STATE_D0 :
@@ -2294,6 +2289,12 @@ void dc_set_power_state(* clean state, and dc hw programming optimizations will not * cause any trouble. */ + dml =kzalloc (sizeof (struct display_mode_lib ), +GFP_KERNEL ); + +ASSERT (dml); +if (!dml) +return ;/* Preserve refcount */ refcount = dc->current_state->refcount;
@@ -2307,10 +2308,10 @@ void dc_set_power_state( dc->current_state->refcount = refcount; dc->current_state->bw_ctx.dml = *dml; +kfree (dml); +break ; } - -kfree (dml); }void dc_resume (struct dc *dc)
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 310/344 irqchip/gic-v3: Only provision redistributors that are enabled in ACPI
In reply to Greg Kroah-HartmanFrom: Marc Zyngier <[email protected]>
[ Upstream commit 926b5dfa6b8dc666ff398044af6906b156e1d949 ]
We currently allocate redistributor region structures for individual redistributors when ACPI doesn't present us with compact MMIO regions covering multiple redistributors.
It turns out that we allocate these structures even when the redistributor is flagged as disabled by ACPI. It works fine until someone actually tries to tarse one of these structures, and access the corresponding MMIO region.
Instead, track the number of enabled redistributors, and only allocate what is required. This makes sure that there is no invalid data to misuse.
--- drivers/irqchip/irq-gic-v3.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/irqchip/irq-gic-v3.c +7 -2
@@ -1801,6 +1801,7 @@ static structstruct redist_region *redist_regs;u32 nr_redist_regions;bool single_redist; +int enabled_rdists;u32 maint_irq;int maint_irq_mode;phys_addr_t vcpu_base;
@@ -1895,8 +1896,10 @@ static int __init gic_acpi_match_gicc(union acpi_subtable_headers *header,* If GICC is enabled and has valid gicr base address, then it means * GICR base is presented via GICC */ -if ((gicc->flags &ACPI_MADT_ENABLED ) && gicc->gicr_base_address) +if ((gicc->flags &ACPI_MADT_ENABLED ) && gicc->gicr_base_address) { + acpi_data.enabled_rdists++;return 0 ; + }/* * It's perfectly valid firmware can pass disabled GICC entry, driver
@@ -1926,8 +1929,10 @@ static int __init gic_acpi_count_gicr_regions(void) count =acpi_table_parse_madt (ACPI_MADT_TYPE_GENERIC_INTERRUPT , gic_acpi_match_gicc,0 ); -if (count >0 ) +if (count >0 ) { acpi_data.single_redist = true; + count = acpi_data.enabled_rdists; + }return count; }
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 311/344 drm/nouveau/disp/nv50-: prevent oops when no channel method map provided
In reply to Greg Kroah-HartmanFrom: Ben Skeggs <[email protected]>
[ Upstream commit 0e6176c6d286316e9431b4f695940cfac4ffe6c2 ]
The implementations for most channel types contains a map of methods to priv registers in order to provide debugging info when a disp exception has been raised.
This info is missing from the implementation of PIO channels as they're rather simplistic already, however, if an exception is raised by one of them, we'd end up triggering a NULL-pointer deref. Not ideal...
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=206299
--- drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c +2 -0
@@ -74,6 +74,8 @@ nv50_disp_chan_mthd(struct nv50_disp_chan *chan, int debug)if (debug > subdev->debug)return ; +if (!mthd) +return ;for (i =0 ; (list = mthd->data[i].mthd) !=NULL ; i++) {u32 base = chan->head * mthd->addr;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 312/344 char: hpet: Fix out-of-bounds read bug
In reply to Greg Kroah-HartmanFrom: Gustavo A. R. Silva <[email protected]>
[ Upstream commit 98c49f1746ac44ccc164e914b9a44183fad09f51 ]
Currently, there is an out-of-bounds read on array hpetp->hp_dev in the following for loop:
870 for (i = 0; i < hdp->hd_nirqs; i++)
871 hpetp->hp_dev[i].hd_hdwirq = hdp->hd_irq[i];
This is due to the recent change from one-element array to flexible-array member in struct hpets:
104 struct hpets {
...113 struct hpet_dev hp_dev[];
114 };
This change affected the total size of the dynamic memory allocation, decreasing it by one time the size of struct hpet_dev.
Fix this by adjusting the allocation size when calling struct_size().
--- drivers/char/hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/hpet.c +1 -1
@@ -855,7 +855,7 @@ int hpet_alloc(struct hpet_data *hdp)return 0 ; } - hpetp =kzalloc (struct_size (hpetp, hp_dev, hdp->hd_nirqs -1 ), + hpetp =kzalloc (struct_size (hpetp, hp_dev, hdp->hd_nirqs),GFP_KERNEL );if (!hpetp)
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 313/344 ftrace: fpid_next() should increase position index
In reply to Greg Kroah-HartmanFrom: Vasily Averin <[email protected]>
[ Upstream commit e4075e8bdffd93a9b6d6e1d52fabedceeca5a91b ]
if seq_file .next fuction does not change position index, read after some lseek can generate unexpected output.
Without patch:
# dd bs=4 skip=1 if=/sys/kernel/tracing/set_ftrace_pid dd: /sys/kernel/tracing/set_ftrace_pid: cannot skip to specified offset id no pid 2+1 records in 2+1 records out 10 bytes copied, 0.000213285 s, 46.9 kB/s
Notice the "id" followed by "no pid".
With the patch:
# dd bs=4 skip=1 if=/sys/kernel/tracing/set_ftrace_pid dd: /sys/kernel/tracing/set_ftrace_pid: cannot skip to specified offset id 0+1 records in 0+1 records out 3 bytes copied, 0.000202112 s, 14.8 kB/s
Notice that it only prints "id" and not the "no pid" afterward.
https://bugzilla.kernel.org/show_bug.cgi?id=206283
--- kernel/trace/ftrace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/trace/ftrace.c +3 -2
@@ -6537,9 +6537,10 @@ static void *fpid_next(struct seq_file *m, void *v, loff_t *pos)struct trace_array *tr = m->private;struct trace_pid_list *pid_list =rcu_dereference_sched (tr->function_pids); -if (v ==FTRACE_NO_PIDS ) +if (v ==FTRACE_NO_PIDS ) { + (*pos)++;return NULL ; - + }return trace_pid_next (pid_list, v, pos); }
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 314/344 trigger_next should increase position index
In reply to Greg Kroah-HartmanFrom: Vasily Averin <[email protected]>
[ Upstream commit 6722b23e7a2ace078344064a9735fb73e554e9ef ]
if seq_file .next fuction does not change position index, read after some lseek can generate unexpected output.
Without patch:
# dd bs=30 skip=1 if=/sys/kernel/tracing/events/sched/sched_switch/trigger dd: /sys/kernel/tracing/events/sched/sched_switch/trigger: cannot skip to specified offset n traceoff snapshot stacktrace enable_event disable_event enable_hist disable_hist hist # Available triggers: # traceon traceoff snapshot stacktrace enable_event disable_event enable_hist disable_hist hist 6+1 records in 6+1 records out 206 bytes copied, 0.00027916 s, 738 kB/s
Notice the printing of "# Available triggers:..." after the line.
With the patch:
# dd bs=30 skip=1 if=/sys/kernel/tracing/events/sched/sched_switch/trigger dd: /sys/kernel/tracing/events/sched/sched_switch/trigger: cannot skip to specified offset n traceoff snapshot stacktrace enable_event disable_event enable_hist disable_hist hist 2+1 records in 2+1 records out 88 bytes copied, 0.000526867 s, 167 kB/s
It only prints the end of the file, and does not restart.
https://bugzilla.kernel.org/show_bug.cgi?id=206283
--- kernel/trace/trace_events_trigger.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/trace/trace_events_trigger.c +3 -2
@@ -116,9 +116,10 @@ static void *trigger_next(struct seq_file *m, void *t, loff_t *pos) {struct trace_event_file *event_file =event_file_data (m->private); -if (t ==SHOW_AVAILABLE_TRIGGERS ) +if (t ==SHOW_AVAILABLE_TRIGGERS ) { + (*pos)++;return NULL ; - + }return seq_list_next (t, &event_file->triggers, pos); }
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 315/344 radeon: insert 10ms sleep in dce5_crtc_load_lut
In reply to Greg Kroah-HartmanFrom: Daniel Vetter <[email protected]>
[ Upstream commit ec3d65082d7dabad6fa8f66a8ef166f2d522d6b2 ]
Per at least one tester this is enough magic to recover the regression introduced for some people (but not all) in
commit b8e2b0199cc377617dc238f5106352c06dcd3fa2
Author: Peter Rosin <[email protected]> Date: Tue Jul 4 12:36:57 2017 +0200
drm/fb-helper: factor out pseudo-palette
which for radeon had the side-effect of refactoring out a seemingly redudant writing of the color palette.
10ms in a fairly slow modeset path feels like an acceptable form of duct-tape, so maybe worth a shot and see what sticks.
--- drivers/gpu/drm/radeon/radeon_display.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/radeon/radeon_display.c +2 -0
@@ -127,6 +127,8 @@ static void dce5_crtc_load_lut(struct drm_crtc *crtc)DRM_DEBUG_KMS ("%d\n" , radeon_crtc->crtc_id); +msleep (10 ); +WREG32 (NI_INPUT_CSC_CONTROL + radeon_crtc->crtc_offset, (NI_INPUT_CSC_GRPH_MODE (NI_INPUT_CSC_BYPASS ) |NI_INPUT_CSC_OVL_MODE (NI_INPUT_CSC_BYPASS )));
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 316/344 powerpc: Do not consider weak unresolved symbol relocations as bad
In reply to Greg Kroah-HartmanFrom: Alexandre Ghiti <[email protected]>
[ Upstream commit 43e76cd368fbb67e767da5363ffeaa3989993c8c ]
Commit 8580ac9404f6 ("bpf: Process in-kernel BTF") introduced two weak symbols that may be unresolved at link time which result in an absolute relocation to 0. relocs_check.sh emits the following warning:
"WARNING: 2 bad relocationsc000000001a41478 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_startc000000001a41480 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_end"
whereas those relocations are legitimate even for a relocatable kernel compiled with -pie option.
relocs_check.sh already excluded some weak unresolved symbols explicitly:
remove those hardcoded symbols and add some logic that parses the symbols using nm, retrieves all the weak unresolved symbols and excludes those from the list of the potential bad relocations.
--- arch/powerpc/Makefile.postlink | 4 ++-- arch/powerpc/tools/relocs_check.sh | 20 ++++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-)
arch/powerpc/Makefile.postlink +2 -2
@@ -17,11 +17,11 @@ quiet_cmd_head_check = CHKHEAD $@ quiet_cmd_relocs_check = CHKREL $@ ifdef CONFIG_PPC_BOOK3S_64 cmd_relocs_check = \ - $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" ; \ + $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$(NM)" "$@" ; \ $(BASH) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$@" else cmd_relocs_check = \ - $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" + $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$(NM)" "$@" endif # `@true` prevents complaint when there is nothing to be done
arch/powerpc/tools/relocs_check.sh +12 -8
@@ -10,14 +10,21 @@ # based on relocs_check.pl # Copyright © 2009 IBM Corporation -if [ $# -lt 2 ]; then - echo "$0 [path to objdump] [path to vmlinux]" 1>&2 +if [ $# -lt 3 ]; then + echo "$0 [path to objdump] [path to nm] [path to vmlinux]" 1>&2 exit 1 fi -# Have Kbuild supply the path to objdump so we handle cross compilation. +# Have Kbuild supply the path to objdump and nm so we handle cross compilation. objdump="$1" -vmlinux="$2" +nm="$2" +vmlinux="$3" + +# Remove from the bad relocations those that match an undefined weak symbol +# which will result in an absolute relocation to 0. +# Weak unresolved symbols are of that form in nm output: +# " w _binary__btf_vmlinux_bin_end" +undef_weak_symbols=$($nm "$vmlinux" | awk '$1 ~ /w/ { print $2 }') bad_relocs=$( $objdump -R "$vmlinux" |
@@ -26,8 +33,6 @@ $objdump -R "$vmlinux" | # These relocations are okay # On PPC64: # R_PPC64_RELATIVE, R_PPC64_NONE - # R_PPC64_ADDR64 mach_<name> - # R_PPC64_ADDR64 __crc_<name> # On PPC: # R_PPC_RELATIVE, R_PPC_ADDR16_HI, # R_PPC_ADDR16_HA,R_PPC_ADDR16_LO,
@@ -39,8 +44,7 @@ R_PPC_ADDR16_HI R_PPC_ADDR16_HA R_PPC_RELATIVE R_PPC_NONE' | - grep -E -v '\<R_PPC64_ADDR64[[:space:]]+mach_' | - grep -E -v '\<R_PPC64_ADDR64[[:space:]]+__crc_' + ([ "$undef_weak_symbols" ] && grep -F -w -v "$undef_weak_symbols" || cat) ) if [ -z "$bad_relocs" ]; then
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 317/344 btrfs: do not do delalloc reservation under page lock
In reply to Greg Kroah-HartmanFrom: Josef Bacik <[email protected]>
[ Upstream commit f4b1363cae43fef7c86c993b7ca7fe7d546b3c68 ]
We ran into a deadlock in production with the fixup worker. The stack traces were as follows:
Thread responsible for the writeout, waiting on the page lock
[<0>] io_schedule+0x12/0x40 [<0>] __lock_page+0x109/0x1e0 [<0>] extent_write_cache_pages+0x206/0x360 [<0>] extent_writepages+0x40/0x60 [<0>] do_writepages+0x31/0xb0 [<0>] __writeback_single_inode+0x3d/0x350 [<0>] writeback_sb_inodes+0x19d/0x3c0 [<0>] __writeback_inodes_wb+0x5d/0xb0 [<0>] wb_writeback+0x231/0x2c0 [<0>] wb_workfn+0x308/0x3c0 [<0>] process_one_work+0x1e0/0x390 [<0>] worker_thread+0x2b/0x3c0 [<0>] kthread+0x113/0x130 [<0>] ret_from_fork+0x35/0x40 [<0>] 0xffffffffffffffff
Thread of the fixup worker who is holding the page lock
[<0>] start_delalloc_inodes+0x241/0x2d0 [<0>] btrfs_start_delalloc_roots+0x179/0x230 [<0>] btrfs_alloc_data_chunk_ondemand+0x11b/0x2e0 [<0>] btrfs_check_data_free_space+0x53/0xa0 [<0>] btrfs_delalloc_reserve_space+0x20/0x70 [<0>] btrfs_writepage_fixup_worker+0x1fc/0x2a0 [<0>] normal_work_helper+0x11c/0x360 [<0>] process_one_work+0x1e0/0x390 [<0>] worker_thread+0x2b/0x3c0 [<0>] kthread+0x113/0x130 [<0>] ret_from_fork+0x35/0x40 [<0>] 0xffffffffffffffff
Thankfully the stars have to align just right to hit this. First you have to end up in the fixup worker, which is tricky by itself (my reproducer does DIO reads into a MMAP'ed region, so not a common operation). Then you have to have less than a page size of free data space and 0 unallocated space so you go down the "commit the transaction to free up pinned space" path. This was accomplished by a random balance that was running on the host. Then you get this deadlock.
I'm still in the process of trying to force the deadlock to happen on demand, but I've hit other issues. I can still trigger the fixup worker path itself so this patch has been tested in that regard, so the normal case is fine.
--- fs/btrfs/inode.c | 76 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 60 insertions(+), 16 deletions(-)
fs/btrfs/inode.c +60 -16
@@ -2168,6 +2168,7 @@ int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end,/* see btrfs_writepage_start_hook for details on why this is required */ struct btrfs_writepage_fixup {struct page *page; +struct inode *inode;struct btrfs_work work; };
@@ -2182,9 +2183,20 @@ static void btrfs_writepage_fixup_worker(struct btrfs_work *work)u64 page_start;u64 page_end;int ret =0 ; +bool free_delalloc_space = true; fixup = container_of(work, struct btrfs_writepage_fixup, work); page = fixup->page; + inode = fixup->inode; + page_start =page_offset (page); + page_end =page_offset (page) +PAGE_SIZE -1 ; + +/* +* This is similar to page_mkwrite, we need to reserve the space before +* we take the page lock. +*/ + ret =btrfs_delalloc_reserve_space (inode, &data_reserved, page_start, +PAGE_SIZE ); again:lock_page (page);
@@ -2193,25 +2205,48 @@ again:* page->mapping may go NULL, but it shouldn't be moved to a different * address space. */ -if (!page->mapping || !PageDirty (page) || !PageChecked (page)) +if (!page->mapping || !PageDirty (page) || !PageChecked (page)) { +/* +* Unfortunately this is a little tricky, either +* +* 1) We got here and our page had already been dealt with and +* we reserved our space, thus ret == 0, so we need to just +* drop our space reservation and bail. This can happen the +* first time we come into the fixup worker, or could happen +* while waiting for the ordered extent. +* 2) Our page was already dealt with, but we happened to get an +* ENOSPC above from the btrfs_delalloc_reserve_space. In +* this case we obviously don't have anything to release, but +* because the page was already dealt with we don't want to +* mark the page with an error, so make sure we're resetting +* ret to 0. This is why we have this check _before_ the ret +* check, because we do not want to have a surprise ENOSPC +* when the page was already properly dealt with. +*/ +if (!ret) { +btrfs_delalloc_release_extents (BTRFS_I (inode), +PAGE_SIZE ); +btrfs_delalloc_release_space (inode, data_reserved, + page_start,PAGE_SIZE , + true); + } + ret =0 ; goto out_page; + }/* -* We keep the PageChecked() bit set until we're done with the -* btrfs_start_ordered_extent() dance that we do below. That drops and -* retakes the page lock, so we don't want new fixup workers queued for -* this page during the churn. +* We can't mess with the page state unless it is locked, so now that +* it is locked bail if we failed to make our space reservation. */ - inode = page->mapping->host; - page_start =page_offset (page); - page_end =page_offset (page) +PAGE_SIZE -1 ; +if (ret) + goto out_page;lock_extent_bits (&BTRFS_I (inode)->io_tree, page_start, page_end, &cached_state);/* already ordered? We're done */ if (PagePrivate2 (page)) - goto out; + goto out_reserved; ordered =btrfs_lookup_ordered_range (BTRFS_I (inode), page_start,PAGE_SIZE );
@@ -2224,11 +2259,6 @@ again: goto again; } - ret =btrfs_delalloc_reserve_space (inode, &data_reserved, page_start, -PAGE_SIZE ); -if (ret) - goto out; - ret =btrfs_set_extent_delalloc (inode, page_start, page_end,0 , &cached_state);if (ret)
@@ -2242,12 +2272,12 @@ again:* The page was dirty when we started, nothing should have cleaned it. */ BUG_ON (!PageDirty (page)); + free_delalloc_space = false; out_reserved:btrfs_delalloc_release_extents (BTRFS_I (inode),PAGE_SIZE ); -if (ret) +if (free_delalloc_space)btrfs_delalloc_release_space (inode, data_reserved, page_start,PAGE_SIZE , true); -out:unlock_extent_cached (&BTRFS_I (inode)->io_tree, page_start, page_end, &cached_state); out_page:
@@ -2266,6 +2296,12 @@ out_page:put_page (page);kfree (fixup);extent_changeset_free (data_reserved); +/* +* As a precaution, do a delayed iput in case it would be the last iput +* that could need flushing space. Recursing back to fixup worker would +* deadlock. +*/ +btrfs_add_delayed_iput (inode); }/*
@@ -2303,10 +2339,18 @@ int btrfs_writepage_cow_fixup(struct page *page, u64 start, u64 end)if (!fixup)return -EAGAIN ; +/* +* We are already holding a reference to this inode from +* write_cache_pages. We need to hold it because the space reservation +* takes place outside of the page lock, and we can't trust +* page->mapping outside of the page lock. +*/ +ihold (inode);SetPageChecked (page);get_page (page);btrfs_init_work (&fixup->work, btrfs_writepage_fixup_worker,NULL ,NULL ); fixup->page = page; + fixup->inode = inode;btrfs_queue_work (fs_info->fixup_workers, &fixup->work);return -EAGAIN ;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 318/344 ocfs2: make local header paths relative to C files
In reply to Greg Kroah-HartmanFrom: Masahiro Yamada <[email protected]>
[ Upstream commit ca322fb6030956c2337fbf1c1beeb08c5dd5c943 ]
Gang He reports the failure of building fs/ocfs2/ as an external module of the kernel installed on the system:
$ cd fs/ocfs2 $ make -C /lib/modules/`uname -r`/build M=`pwd` modules
If you want to make it work reliably, I'd recommend to remove ccflags-y from the Makefiles, and to make header paths relative to the C files. I think this is the correct usage of the #include "..." directive.
--- fs/ocfs2/dlm/Makefile | 2 -- fs/ocfs2/dlm/dlmast.c | 8 ++++---- fs/ocfs2/dlm/dlmconvert.c | 8 ++++---- fs/ocfs2/dlm/dlmdebug.c | 8 ++++---- fs/ocfs2/dlm/dlmdomain.c | 8 ++++---- fs/ocfs2/dlm/dlmlock.c | 8 ++++---- fs/ocfs2/dlm/dlmmaster.c | 8 ++++---- fs/ocfs2/dlm/dlmrecovery.c | 8 ++++---- fs/ocfs2/dlm/dlmthread.c | 8 ++++---- fs/ocfs2/dlm/dlmunlock.c | 8 ++++---- fs/ocfs2/dlmfs/Makefile | 2 -- fs/ocfs2/dlmfs/dlmfs.c | 4 ++-- fs/ocfs2/dlmfs/userdlm.c | 6 +++--- 13 files changed, 41 insertions(+), 45 deletions(-)
fs/ocfs2/dlm/Makefile +0 -2
@@ -1,6 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only -ccflags-y := -I $(srctree)/$(src)/.. - obj-$(CONFIG_OCFS2_FS_O2CB) += ocfs2_dlm.o ocfs2_dlm-objs := dlmdomain.o dlmdebug.o dlmthread.o dlmrecovery.o \
fs/ocfs2/dlm/dlmast.c +4 -4
@@ -23,15 +23,15 @@#include <linux/spinlock.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h" #define MLOG_MASK_PREFIX ML_DLM -#include "cluster/masklog.h" +#include "../cluster/masklog.h" static void dlm_update_lvb (struct dlm_ctxt *dlm,struct dlm_lock_resource *res,struct dlm_lock *lock);
fs/ocfs2/dlm/dlmconvert.c +4 -4
@@ -23,9 +23,9 @@#include <linux/spinlock.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h"
@@ -33,7 +33,7 @@#include "dlmconvert.h" #define MLOG_MASK_PREFIX ML_DLM -#include "cluster/masklog.h" +#include "../cluster/masklog.h" /* NOTE: __dlmconvert_master is the only function in here that * needs a spinlock held on entry (res->spinlock) and it is the
fs/ocfs2/dlm/dlmdebug.c +4 -4
@@ -17,9 +17,9 @@#include <linux/debugfs.h> #include <linux/export.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h"
@@ -27,7 +27,7 @@#include "dlmdebug.h" #define MLOG_MASK_PREFIX ML_DLM -#include "cluster/masklog.h" +#include "../cluster/masklog.h" static int stringify_lockname (const char *lockname,int locklen,char *buf,int len);
fs/ocfs2/dlm/dlmdomain.c +4 -4
@@ -20,9 +20,9 @@#include <linux/debugfs.h> #include <linux/sched/signal.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h"
@@ -30,7 +30,7 @@#include "dlmdebug.h" #define MLOG_MASK_PREFIX (ML_DLM|ML_DLM_DOMAIN) -#include "cluster/masklog.h" +#include "../cluster/masklog.h" /* * ocfs2 node maps are array of long int, which limits to send them freely
fs/ocfs2/dlm/dlmlock.c +4 -4
@@ -25,9 +25,9 @@#include <linux/delay.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h"
@@ -35,7 +35,7 @@#include "dlmconvert.h" #define MLOG_MASK_PREFIX ML_DLM -#include "cluster/masklog.h" +#include "../cluster/masklog.h" static struct kmem_cache *dlm_lock_cache;
fs/ocfs2/dlm/dlmmaster.c +4 -4
@@ -25,9 +25,9 @@#include <linux/delay.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h"
@@ -35,7 +35,7 @@#include "dlmdebug.h" #define MLOG_MASK_PREFIX (ML_DLM|ML_DLM_MASTER) -#include "cluster/masklog.h" +#include "../cluster/masklog.h" static void dlm_mle_node_down(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle,
fs/ocfs2/dlm/dlmrecovery.c +4 -4
@@ -26,16 +26,16 @@#include <linux/delay.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h" #include "dlmdomain.h" #define MLOG_MASK_PREFIX (ML_DLM|ML_DLM_RECOVERY) -#include "cluster/masklog.h" +#include "../cluster/masklog.h" static void dlm_do_local_recovery_cleanup (struct dlm_ctxt *dlm,u8 dead_node);
fs/ocfs2/dlm/dlmthread.c +4 -4
@@ -25,16 +25,16 @@#include <linux/delay.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h" #include "dlmdomain.h" #define MLOG_MASK_PREFIX (ML_DLM|ML_DLM_THREAD) -#include "cluster/masklog.h" +#include "../cluster/masklog.h" static int dlm_thread (void *data);static void dlm_flush_asts (struct dlm_ctxt *dlm);
fs/ocfs2/dlm/dlmunlock.c +4 -4
@@ -23,15 +23,15 @@#include <linux/spinlock.h> #include <linux/delay.h> -#include "cluster/heartbeat.h" -#include "cluster/nodemanager.h" -#include "cluster/tcp.h" +#include "../cluster/heartbeat.h" +#include "../cluster/nodemanager.h" +#include "../cluster/tcp.h" #include "dlmapi.h" #include "dlmcommon.h" #define MLOG_MASK_PREFIX ML_DLM -#include "cluster/masklog.h" +#include "../cluster/masklog.h" #define DLM_UNLOCK_FREE_LOCK 0x00000001#define DLM_UNLOCK_CALL_AST 0x00000002
fs/ocfs2/dlmfs/Makefile +0 -2
@@ -1,6 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only -ccflags-y := -I $(srctree)/$(src)/.. - obj-$(CONFIG_OCFS2_FS) += ocfs2_dlmfs.o ocfs2_dlmfs-objs := userdlm.o dlmfs.o
fs/ocfs2/dlmfs/dlmfs.c +2 -2
@@ -33,11 +33,11 @@#include <linux/uaccess.h> -#include "stackglue.h" +#include "../stackglue.h" #include "userdlm.h" #define MLOG_MASK_PREFIX ML_DLMFS -#include "cluster/masklog.h" +#include "../cluster/masklog.h" static const struct super_operations dlmfs_ops;
fs/ocfs2/dlmfs/userdlm.c +3 -3
@@ -21,12 +21,12 @@#include <linux/types.h> #include <linux/crc32.h> -#include "ocfs2_lockingver.h" -#include "stackglue.h" +#include "../ocfs2_lockingver.h" +#include "../stackglue.h" #include "userdlm.h" #define MLOG_MASK_PREFIX ML_DLMFS -#include "cluster/masklog.h" +#include "../cluster/masklog.h" static inline struct user_lock_res *user_lksb_to_lock_res (struct ocfs2_dlm_lksb *lksb)
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 319/344 ocfs2: fix a NULL pointer dereference when call ocfs2_update_inode_fsync_trans()
In reply to Greg Kroah-HartmanFrom: wangyan <[email protected]>
[ Upstream commit 9f16ca48fc818a17de8be1f75d08e7f4addc4497 ]
I found a NULL pointer dereference in ocfs2_update_inode_fsync_trans(), handle->h_transaction may be NULL in this situation:
ocfs2_file_write_iter
->__generic_file_write_iter
->generic_perform_write
->ocfs2_write_begin
->ocfs2_write_begin_nolock
->ocfs2_write_cluster_by_desc
->ocfs2_write_cluster
->ocfs2_mark_extent_written
->ocfs2_change_extent_flag
->ocfs2_split_extent
->ocfs2_try_to_merge_extent
->ocfs2_extend_rotate_transaction
->ocfs2_extend_trans
->jbd2_journal_restart
->jbd2__journal_restart
// handle->h_transaction is NULL here
->handle->h_transaction = NULL;
->start_this_handle
/* journal aborted due to storage
network disconnection, return error */
->return -EROFS;
/* line 3806 in ocfs2_try_to_merge_extent (),
it will ignore ret error. */
->ret = 0;
->...
->ocfs2_write_end
->ocfs2_write_end_nolock
->ocfs2_update_inode_fsync_trans
// NULL pointer dereference
->oi->i_sync_tid = handle->h_transaction->t_tid;The information of NULL pointer dereference as follows:
JBD2: Detected IO errors while flushing file data on dm-11-45
Aborting journal on device dm-11-45.
JBD2: Error -5 detected when updating journal superblock for dm-11-45.
(dd,22081,3):ocfs2_extend_trans:474 ERROR: status = -30
(dd,22081,3):ocfs2_try_to_merge_extent:3877 ERROR: status = -30
Unable to handle kernel NULL pointer dereference at
virtual address 0000000000000008
Mem abort info:
ESR = 0x96000004
Exception class = DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
Data abort info:
ISV = 0, ISS = 0x00000004
CM = 0, WnR = 0
user pgtable: 4k pages, 48-bit VAs, pgdp = 00000000e74e1338
[0000000000000008] pgd=0000000000000000
Internal error: Oops: 96000004 [#1] SMP
Process dd (pid: 22081, stack limit = 0x00000000584f35a9)
CPU: 3 PID: 22081 Comm: dd Kdump: loaded
Hardware name: Huawei TaiShan 2280 V2/BC82AMDD, BIOS 0.98 08/25/2019
pstate: 60400009 (nZCv daif +PAN -UAO)
pc : ocfs2_write_end_nolock+0x2b8/0x550 [ocfs2]
lr : ocfs2_write_end_nolock+0x2a0/0x550 [ocfs2]
sp : ffff0000459fba70
x29: ffff0000459fba70 x28: 0000000000000000
x27: ffff807ccf7f1000 x26: 0000000000000001
x25: ffff807bdff57970 x24: ffff807caf1d4000
x23: ffff807cc79e9000 x22: 0000000000001000
x21: 000000006c6cd000 x20: ffff0000091d9000
x19: ffff807ccb239db0 x18: ffffffffffffffff
x17: 000000000000000e x16: 0000000000000007
x15: ffff807c5e15bd78 x14: 0000000000000000
x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000001
x9 : 0000000000000228 x8 : 000000000000000c
x7 : 0000000000000fff x6 : ffff807a308ed6b0
x5 : ffff7e01f10967c0 x4 : 0000000000000018
x3 : d0bc661572445600 x2 : 0000000000000000
x1 : 000000001b2e0200 x0 : 0000000000000000
Call trace:
ocfs2_write_end_nolock+0x2b8/0x550 [ocfs2]
ocfs2_write_end+0x4c/0x80 [ocfs2]
generic_perform_write+0x108/0x1a8
__generic_file_write_iter+0x158/0x1c8
ocfs2_file_write_iter+0x668/0x950 [ocfs2]
__vfs_write+0x11c/0x190
vfs_write+0xac/0x1c0
ksys_write+0x6c/0xd8
__arm64_sys_write+0x24/0x30
el0_svc_common+0x78/0x130
el0_svc_handler+0x38/0x78
el0_svc+0x8/0xcTo prevent NULL pointer dereference in this situation, we use is_handle_aborted() before using handle->h_transaction->t_tid.
--- fs/ocfs2/journal.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
fs/ocfs2/journal.h +5 -3
@@ -597,9 +597,11 @@ static inline void ocfs2_update_inode_fsync_trans(handle_t *handle, {struct ocfs2_inode_info *oi =OCFS2_I (inode); - oi->i_sync_tid = handle->h_transaction->t_tid; -if (datasync) - oi->i_datasync_tid = handle->h_transaction->t_tid; +if (!is_handle_aborted (handle)) { + oi->i_sync_tid = handle->h_transaction->t_tid; +if (datasync) + oi->i_datasync_tid = handle->h_transaction->t_tid; + } }#endif /* OCFS2_JOURNAL_H */
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 320/344 lib/scatterlist.c: adjust indentation in __sg_alloc_table
In reply to Greg Kroah-HartmanFrom: Nathan Chancellor <[email protected]>
[ Upstream commit 4e456fee215677584cafa7f67298a76917e89c64 ]
Clang warns:
../lib/scatterlist.c:314:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
return -ENOMEM;
^
../lib/scatterlist.c:311:4: note: previous statement is here
if (prv)
^1 warning generated.
This warning occurs because there is a space before the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns.
--- lib/scatterlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/scatterlist.c +1 -1
@@ -311,7 +311,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents,if (prv) table->nents = ++table->orig_nents; -return -ENOMEM ; +return -ENOMEM ; }sg_init_table (sg, alloc_size);
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 321/344 reiserfs: prevent NULL pointer dereference in reiserfs_insert_item()
In reply to Greg Kroah-HartmanFrom: Yunfeng Ye <[email protected]>
[ Upstream commit aacee5446a2a1aa35d0a49dab289552578657fb4 ]
The variable inode may be NULL in reiserfs_insert_item(), but there is no check before accessing the member of inode.
Fix this by adding NULL pointer check before calling reiserfs_debug().
--- fs/reiserfs/stree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/reiserfs/stree.c +2 -1
@@ -2246,7 +2246,8 @@ error_out:/* also releases the path */ unfix_nodes (&s_ins_balance);#ifdef REISERQUOTA_DEBUG -reiserfs_debug (th->t_super,REISERFS_DEBUG_CODE , +if (inode) +reiserfs_debug (th->t_super,REISERFS_DEBUG_CODE ,"reiserquota insert_item(): freeing %u id=%u type=%c" , quota_bytes, inode->i_uid,head2type (ih));#endif
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 323/344 bcache: explicity type cast in bset_bkey_last()
In reply to Greg Kroah-HartmanFrom: Coly Li <[email protected]>
[ Upstream commit 7c02b0055f774ed9afb6e1c7724f33bf148ffdc0 ]
In bset.h, macro bset_bkey_last() is defined as,
bkey_idx((struct bkey *) (i)->d, (i)->keys)
Parameter i can be variable type of data structure, the macro always works once the type of struct i has member 'd' and 'keys'.
bset_bkey_last() is also used in macro csum_set() to calculate the checksum of a on-disk data structure. When csum_set() is used to calculate checksum of on-disk bcache super block, the parameter 'i' data type is struct cache_sb_disk. Inside struct cache_sb_disk (also in struct cache_sb) the member keys is __u16 type. But bkey_idx() expects unsigned int (a 32bit width), so there is problem when sending parameters via stack to call bkey_idx().
Sparse tool from Intel 0day kbuild system reports this incompatible problem. bkey_idx() is part of user space API, so the simplest fix is to cast the (i)->keys to unsigned int type in macro bset_bkey_last().
--- drivers/md/bcache/bset.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/md/bcache/bset.h +2 -1
@@ -397,7 +397,8 @@ void bch_btree_keys_stats(struct btree_keys *b, struct bset_stats *state);/* Bkey utility code */ -#define bset_bkey_last (i) bkey_idx((struct bkey *) (i)->d, (i)->keys) +#define bset_bkey_last (i) bkey_idx((struct bkey *) (i)->d, \ + (unsigned int)(i)->keys)static inline struct bkey *bset_bkey_idx (struct bset *i,unsigned int idx) {
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 324/344 bcache: fix incorrect data type usage in btree_flush_write()
In reply to Greg Kroah-HartmanFrom: Coly Li <[email protected]>
[ Upstream commit d1c3cc34f5a78b38d2b809b289d912c3560545df ]
Dan Carpenter points out that from commit 2aa8c529387c ("bcache: avoid unnecessary btree nodes flushing in btree_flush_write()"), there is a incorrect data type usage which leads to the following static checker warning:
drivers/md/bcache/journal.c:444 btree_flush_write()
warn: 'ref_nr' unsigned <= 0
drivers/md/bcache/journal.c
422 static void btree_flush_write(struct cache_set *c) 423 {
424 struct btree *b, *t, *btree_nodes[BTREE_FLUSH_NR];
425 unsigned int i, nr, ref_nr;
^^^^^^ 426 atomic_t *fifo_front_p, *now_fifo_front_p;
427 size_t mask;
428
429 if (c->journal.btree_flushing)
430 return;
431
432 spin_lock(&c->journal.flush_write_lock);
433 if (c->journal.btree_flushing) {
434 spin_unlock(&c->journal.flush_write_lock);
435 return;
436 }
437 c->journal.btree_flushing = true;
438 spin_unlock(&c->journal.flush_write_lock);
439
440 /* get the oldest journal entry and check its refcount */
441 spin_lock(&c->journal.lock);
442 fifo_front_p = &fifo_front(&c->journal.pin);
443 ref_nr = atomic_read(fifo_front_p);
444 if (ref_nr <= 0) {
^^^^^^^^^^^Unsigned can't be less than zero.
445 /* 446 * do nothing if no btree node references 447 * the oldest journal entry 448 */ 449 spin_unlock(&c->journal.lock); 450 goto out; 451 } 452 spin_unlock(&c->journal.lock);
As the warning information indicates, local varaible ref_nr in unsigned int type is wrong, which does not matche atomic_read() and the "<= 0" checking.
This patch fixes the above error by defining local variable ref_nr as int type.
--- drivers/md/bcache/journal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/md/bcache/journal.c +2 -1
@@ -422,7 +422,8 @@ err:static void btree_flush_write (struct cache_set *c) {struct btree *b, *t, *btree_nodes[BTREE_FLUSH_NR ]; -unsigned int i, nr, ref_nr; +unsigned int i, nr; +int ref_nr;atomic_t *fifo_front_p, *now_fifo_front_p;size_t mask;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 325/344 irqchip/gic-v3-its: Reference to its_invall_cmd descriptor when building INVALL
In reply to Greg Kroah-HartmanFrom: Zenghui Yu <[email protected]>
[ Upstream commit 107945227ac5d4c37911c7841b27c64b489ce9a9 ]
It looks like an obvious mistake to use its_mapc_cmd descriptor when building the INVALL command block. It so far worked by luck because both its_mapc_cmd.col and its_invall_cmd.col sit at the same offset of the ITS command descriptor, but we should not rely on it.
--- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v3-its.c +1 -1
@@ -571,7 +571,7 @@ static struct its_collection *its_build_invall_cmd(struct its_node *its, struct its_cmd_desc *desc) {its_encode_cmd (cmd,GITS_CMD_INVALL ); -its_encode_collection (cmd, desc->its_mapc_cmd.col->col_id); +its_encode_collection (cmd, desc->its_invall_cmd.col->col_id);its_fixup_cmd (cmd);
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 326/344 nvmet: Pass lockdep expression to RCU lists
In reply to Greg Kroah-HartmanFrom: Amol Grover <[email protected]>
[ Upstream commit 4ac76436a6d07dec1c3c766f234aa787a16e8f65 ]
ctrl->subsys->namespaces and subsys->namespaces are traversed with list_for_each_entry_rcu outside an RCU read-side critical section but under the protection of ctrl->subsys->lock and subsys->lock respectively.
Hence, add the corresponding lockdep expression to the list traversal primitive to silence false-positive lockdep warnings, and harden RCU lists.
--- drivers/nvme/target/core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/nvme/target/core.c +4 -2
@@ -555,7 +555,8 @@ int nvmet_ns_enable(struct nvmet_ns *ns) }else {struct nvmet_ns *old; -list_for_each_entry_rcu (old, &subsys->namespaces, dev_link) { +list_for_each_entry_rcu (old, &subsys->namespaces, dev_link, +lockdep_is_held (&subsys->lock)) {BUG_ON (ns->nsid == old->nsid);if (ns->nsid < old->nsid)break ;
@@ -1174,7 +1175,8 @@ static void nvmet_setup_p2p_ns_map(struct nvmet_ctrl *ctrl, ctrl->p2p_client =get_device (req->p2p_client); -list_for_each_entry_rcu (ns, &ctrl->subsys->namespaces, dev_link) +list_for_each_entry_rcu (ns, &ctrl->subsys->namespaces, dev_link, +lockdep_is_held (&ctrl->subsys->lock))nvmet_p2pmem_ns_add_p2p (ctrl, ns); }
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 327/344 nvme-pci: remove nvmeq->tags
In reply to Greg Kroah-HartmanFrom: Christoph Hellwig <[email protected]>
[ Upstream commit cfa27356f835dc7755192e7b941d4f4851acbcc7 ]
There is no real need to have a pointer to the tagset in struct nvme_queue, as we only need it in a single place, and that place can derive the used tagset from the device and qid trivially. This fixes a problem with stale pointer exposure when tagsets are reset, and also shrinks the nvme_queue structure. It also matches what most other transports have done since day 1.
--- drivers/nvme/host/pci.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-)
drivers/nvme/host/pci.c +8 -15
@@ -167,7 +167,6 @@ struct nvme_queue {/* only used for poll queues: */ spinlock_t cq_poll_lock____cacheline_aligned_in_smp ;volatile struct nvme_completion *cqes; -struct blk_mq_tags **tags;dma_addr_t sq_dma_addr;dma_addr_t cq_dma_addr;u32 __iomem *q_db;
@@ -377,29 +376,17 @@ static int nvme_admin_init_hctx(struct blk_mq_hw_ctx *hctx, void *data,WARN_ON (hctx_idx !=0 );WARN_ON (dev->admin_tagset.tags[0 ] != hctx->tags); -WARN_ON (nvmeq->tags); hctx->driver_data = nvmeq; - nvmeq->tags = &dev->admin_tagset.tags[0 ];return 0 ; } -static void nvme_admin_exit_hctx (struct blk_mq_hw_ctx *hctx,unsigned int hctx_idx) -{ -struct nvme_queue *nvmeq = hctx->driver_data; - - nvmeq->tags =NULL ; -} -static int nvme_init_hctx (struct blk_mq_hw_ctx *hctx,void *data,unsigned int hctx_idx) {struct nvme_dev *dev = data;struct nvme_queue *nvmeq = &dev->queues[hctx_idx +1 ]; -if (!nvmeq->tags) - nvmeq->tags = &dev->tagset.tags[hctx_idx]; -WARN_ON (dev->tagset.tags[hctx_idx] != hctx->tags); hctx->driver_data = nvmeq;return 0 ;
@@ -950,6 +937,13 @@ static inline void nvme_ring_cq_doorbell(struct nvme_queue *nvmeq)writel (head, nvmeq->q_db + nvmeq->dev->db_stride); } +static inline struct blk_mq_tags *nvme_queue_tagset (struct nvme_queue *nvmeq) +{ +if (!nvmeq->qid) +return nvmeq->dev->admin_tagset.tags[0 ]; +return nvmeq->dev->tagset.tags[nvmeq->qid -1 ]; +} +static inline void nvme_handle_cqe (struct nvme_queue *nvmeq,u16 idx) {volatile struct nvme_completion *cqe = &nvmeq->cqes[idx];
@@ -975,7 +969,7 @@ static inline void nvme_handle_cqe(struct nvme_queue *nvmeq, u16 idx)return ; } - req =blk_mq_tag_to_rq (*nvmeq->tags, cqe->command_id); + req =blk_mq_tag_to_rq (nvme_queue_tagset (nvmeq), cqe->command_id);trace_nvme_sq (req, cqe->sq_head, nvmeq->sq_tail);nvme_end_request (req, cqe->status, cqe->result); }
@@ -1578,7 +1572,6 @@ static const struct blk_mq_ops nvme_mq_admin_ops = { .queue_rq = nvme_queue_rq, .complete = nvme_pci_complete_rq, .init_hctx = nvme_admin_init_hctx, - .exit_hctx = nvme_admin_exit_hctx, .init_request = nvme_init_request, .timeout = nvme_timeout, };
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 328/344 iwlwifi: mvm: Fix thermal zone registration
In reply to Greg Kroah-HartmanFrom: Andrei Otcheretianski <[email protected]>
[ Upstream commit baa6cf8450b72dcab11f37c47efce7c5b9b8ad0f ]
Use a unique name when registering a thermal zone. Otherwise, with multiple NICS, we hit the following warning during the unregistration.
WARNING: CPU: 2 PID: 3525 at fs/sysfs/group.c:255 RIP: 0010:sysfs_remove_group+0x80/0x90 Call Trace: dpm_sysfs_remove+0x57/0x60 device_del+0x5a/0x350 ? sscanf+0x4e/0x70 device_unregister+0x1a/0x60 hwmon_device_unregister+0x4a/0xa0 thermal_remove_hwmon_sysfs+0x175/0x1d0 thermal_zone_device_unregister+0x188/0x1e0 iwl_mvm_thermal_exit+0xe7/0x100 [iwlmvm] iwl_op_mode_mvm_stop+0x27/0x180 [iwlmvm] _iwl_op_mode_stop.isra.3+0x2b/0x50 [iwlwifi] iwl_opmode_deregister+0x90/0xa0 [iwlwifi] __exit_compat+0x10/0x2c7 [iwlmvm] __x64_sys_delete_module+0x13f/0x270 do_syscall_64+0x5a/0x110 entry_SYSCALL_64_after_hwframe+0x44/0xa9
--- drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/tt.c +3 -1
@@ -731,7 +731,8 @@ static struct thermal_zone_device_ops tzone_ops = {static void iwl_mvm_thermal_zone_register (struct iwl_mvm *mvm) {int i; -char name[] ="iwlwifi" ; +char name[16 ]; +static atomic_t counter =ATOMIC_INIT (0 );if (!iwl_mvm_is_tt_in_fw (mvm)) { mvm->tz_device.tzone =NULL ;
@@ -741,6 +742,7 @@ static void iwl_mvm_thermal_zone_register(struct iwl_mvm *mvm)BUILD_BUG_ON (ARRAY_SIZE (name) >=THERMAL_NAME_LENGTH ); +sprintf (name,"iwlwifi_%u" ,atomic_inc_return (&counter) &0xFF ); mvm->tz_device.tzone = thermal_zone_device_register(name, IWL_MAX_DTS_TRIPS, IWL_WRITABLE_TRIPS_MSK,
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 329/344 iwlwifi: mvm: Check the sta is not NULL in iwl_mvm_cfg_he_sta()
In reply to Greg Kroah-HartmanFrom: Andrei Otcheretianski <[email protected]>
[ Upstream commit 12d47f0ea5e0aa63f19ba618da55a7c67850ca10 ]
Fix a kernel panic by checking that the sta is not NULL. This could happen during a reconfig flow, as mac80211 moves the sta between all the states without really checking if the previous state was successfully set. So, if for some reason we failed to add back the station, subsequent calls to sta_state() callback will be done when the station is NULL. This would result in a following panic:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000040 IP: iwl_mvm_cfg_he_sta+0xfc/0x690 [iwlmvm] [..] Call Trace: iwl_mvm_mac_sta_state+0x629/0x6f0 [iwlmvm] drv_sta_state+0xf4/0x950 [mac80211] ieee80211_reconfig+0xa12/0x2180 [mac80211] ieee80211_restart_work+0xbb/0xe0 [mac80211] process_one_work+0x1e2/0x610 worker_thread+0x4d/0x3e0
[..]
--- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +3 -5
@@ -5,10 +5,9 @@* * GPL LICENSE SUMMARY * -* Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH * Copyright(c) 2016 - 2017 Intel Deutschland GmbH -* Copyright(c) 2018 - 2019 Intel Corporation +* Copyright(c) 2012 - 2014, 2018 - 2020 Intel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as
@@ -28,10 +27,9 @@* * BSD LICENSE * -* Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH * Copyright(c) 2016 - 2017 Intel Deutschland GmbH -* Copyright(c) 2018 - 2019 Intel Corporation +* Copyright(c) 2012 - 2014, 2018 - 2020 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without
@@ -2025,7 +2023,7 @@ static void iwl_mvm_cfg_he_sta(struct iwl_mvm *mvm,rcu_read_lock (); sta =rcu_dereference (mvm->fw_id_to_mac_id[sta_ctxt_cmd.sta_id]); -if (IS_ERR (sta)) { +if (IS_ERR_OR_NULL (sta)) {rcu_read_unlock ();WARN (1 ,"Can't find STA to configure HE\n" );return ;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 330/344 asm-generic/tlb: add missing CONFIG symbol
In reply to Greg Kroah-HartmanFrom: Peter Zijlstra <[email protected]>
[ Upstream commit 27796d03c9c4b2b937ed4cc2b10f21559ad5a8c9 ]
Without this the symbol will not actually end up in .config files.
--- arch/Kconfig | 3 +++ 1 file changed, 3 insertions(+)
arch/Kconfig +3 -0
@@ -399,6 +399,9 @@ config HAVE_RCU_TABLE_FREE config HAVE_MMU_GATHER_PAGE_SIZE bool +config MMU_GATHER_NO_RANGE + bool + config HAVE_MMU_GATHER_NO_GATHER bool
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 331/344 microblaze: Prevent the overflow of the start
In reply to Greg Kroah-HartmanFrom: Shubhrajyoti Datta <[email protected]>
[ Upstream commit 061d2c1d593076424c910cb1b64ecdb5c9a6923f ]
In case the start + cache size is more than the max int the start overflows.
Prevent the same.
--- arch/microblaze/kernel/cpu/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/microblaze/kernel/cpu/cache.c +2 -1
@@ -92,7 +92,8 @@ static inline void __disable_dcache_nomsr(void)#define CACHE_LOOP_LIMITS (start, end, cache_line_length, cache_size) \ do { \ int align = ~(cache_line_length - 1); \ - end = min(start + cache_size, end); \ + if (start < UINT_MAX - cache_size) \ + end = min(start + cache_size, end); \ start &= align; \ } while (0)
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 332/344 brd: check and limit max_part par
In reply to Greg Kroah-HartmanFrom: Zhiqiang Liu <[email protected]>
[ Upstream commit c8ab422553c81a0eb070329c63725df1cd1425bc ]
In brd_init func, rd_nr num of brd_device are firstly allocated and add in brd_devices, then brd_devices are traversed to add each brd_device by calling add_disk func. When allocating brd_device, the disk->first_minor is set to i * max_part, if rd_nr * max_part is larger than MINORMASK, two different brd_device may have the same devt, then only one of them can be successfully added. when rmmod brd.ko, it will cause oops when calling brd_exit.
Follow those steps:
# modprobe brd rd_nr=3 rd_size=102400 max_part=1048576 # rmmod brd then, the oops will appear.
Oops log:
[ 726.613722] Call trace: [ 726.614175] kernfs_find_ns+0x24/0x130 [ 726.614852] kernfs_find_and_get_ns+0x44/0x68 [ 726.615749] sysfs_remove_group+0x38/0xb0 [ 726.616520] blk_trace_remove_sysfs+0x1c/0x28 [ 726.617320] blk_unregister_queue+0x98/0x100 [ 726.618105] del_gendisk+0x144/0x2b8 [ 726.618759] brd_exit+0x68/0x560 [brd] [ 726.619501] __arm64_sys_delete_module+0x19c/0x2a0 [ 726.620384] el0_svc_common+0x78/0x130 [ 726.621057] el0_svc_handler+0x38/0x78 [ 726.621738] el0_svc+0x8/0xc [ 726.622259] Code: aa0203f6 aa0103f7 aa1e03e0 d503201f (7940e260)
Here, we add brd_check_and_reset_par func to check and limit max_part par.
--V5->V6:
- remove useless code
V4->V5:(suggested by Ming Lei)
- make sure max_part is not larger than DISK_MAX_PARTS
V3->V4:(suggested by Ming Lei)
- remove useless change
- add one limit of max_part
V2->V3: (suggested by Ming Lei)
- clear .minors when running out of consecutive minor space in brd_alloc
- remove limit of rd_nr
V1->V2:
- add more checks in brd_check_par_valid as suggested by Ming Lei.
--- drivers/block/brd.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)
drivers/block/brd.c +20 -2
@@ -470,6 +470,25 @@ static struct kobject *brd_probe(dev_t dev, int *part, void *data)return kobj; } +static inline void brd_check_and_reset_par (void ) +{ +if (unlikely (!max_part)) + max_part =1 ; + +/* +* make sure 'max_part' can be divided exactly by (1U << MINORBITS), +* otherwise, it is possiable to get same dev_t when adding partitions. +*/ +if ((1U <<MINORBITS ) % max_part !=0 ) + max_part =1UL <<fls (max_part); + +if (max_part >DISK_MAX_PARTS ) { +pr_info ("brd: max_part can't be larger than %d, reset max_part = %d.\n" , +DISK_MAX_PARTS ,DISK_MAX_PARTS ); + max_part =DISK_MAX_PARTS ; + } +} +static int __init brd_init (void ) {struct brd_device *brd, *next;
@@ -493,8 +512,7 @@ static int __init brd_init(void)if (register_blkdev (RAMDISK_MAJOR ,"ramdisk" ))return -EIO ; -if (unlikely (!max_part)) - max_part =1 ; +brd_check_and_reset_par ();for (i =0 ; i < rd_nr; i++) { brd =brd_alloc (i);
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 333/344 drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_latency
In reply to Greg Kroah-HartmanFrom: Alex Deucher <[email protected]>
[ Upstream commit 4d0a72b66065dd7e274bad6aa450196d42fd8f84 ]
Only send non-0 clocks to DC for validation. This mirrors what the windows driver does.
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c +9 -6
@@ -1026,12 +1026,15 @@ static int smu10_get_clock_by_type_with_latency(struct pp_hwmgr *hwmgr, clocks->num_levels =0 ;for (i =0 ; i < pclk_vol_table->count; i++) { - clocks->data[i].clocks_in_khz = pclk_vol_table->entries[i].clk *10 ; - clocks->data[i].latency_in_us = latency_required ? -smu10_get_mem_latency (hwmgr, - pclk_vol_table->entries[i].clk) : -0 ; - clocks->num_levels++; +if (pclk_vol_table->entries[i].clk) { + clocks->data[clocks->num_levels].clocks_in_khz = + pclk_vol_table->entries[i].clk *10 ; + clocks->data[clocks->num_levels].latency_in_us = latency_required ? +smu10_get_mem_latency (hwmgr, + pclk_vol_table->entries[i].clk) : +0 ; + clocks->num_levels++; + } }return 0 ;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 334/344 drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_voltage
In reply to Greg Kroah-HartmanFrom: Alex Deucher <[email protected]>
[ Upstream commit 1064ad4aeef94f51ca230ac639a9e996fb7867a0 ]
Cull out 0 clocks to avoid a warning in DC.
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c +5 -3
@@ -1080,9 +1080,11 @@ static int smu10_get_clock_by_type_with_voltage(struct pp_hwmgr *hwmgr, clocks->num_levels =0 ;for (i =0 ; i < pclk_vol_table->count; i++) { - clocks->data[i].clocks_in_khz = pclk_vol_table->entries[i].clk *10 ; - clocks->data[i].voltage_in_mv = pclk_vol_table->entries[i].vol; - clocks->num_levels++; +if (pclk_vol_table->entries[i].clk) { + clocks->data[clocks->num_levels].clocks_in_khz = pclk_vol_table->entries[i].clk *10 ; + clocks->data[clocks->num_levels].voltage_in_mv = pclk_vol_table->entries[i].vol; + clocks->num_levels++; + } }return 0 ;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 335/344 NFS: Fix memory leaks
In reply to Greg Kroah-HartmanFrom: Wenwen Wang <[email protected]>
[ Upstream commit 123c23c6a7b7ecd2a3d6060bea1d94019f71fd66 ]
In _nfs42_proc_copy(), 'res->commit_res.verf' is allocated through kzalloc() if 'args->sync' is true. In the following code, if 'res->synchronous' is false, handle_async_copy() will be invoked. If an error occurs during the invocation, the following code will not be executed and the error will be returned . However, the allocated 'res->commit_res.verf' is not deallocated, leading to a memory leak. This is also true if the invocation of process_copy_commit() returns an error.
To fix the above leaks, redirect the execution to the 'out' label if an error is encountered.
--- fs/nfs/nfs42proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/nfs/nfs42proc.c +2 -2
@@ -283,14 +283,14 @@ static ssize_t _nfs42_proc_copy(struct file *src, status =handle_async_copy (res, server, src, dst, &args->src_stateid);if (status) -return status; + goto out; }if ((!res->synchronous || !args->sync) && res->write_res.verifier.committed !=NFS_FILE_SYNC ) { status =process_copy_commit (dst, pos_dst, res);if (status) -return status; + goto out; } truncate_pagecache_range(dst_inode, pos_dst,
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 336/344 help_next should increase position index
In reply to Greg Kroah-HartmanFrom: Vasily Averin <[email protected]>
[ Upstream commit 9f198a2ac543eaaf47be275531ad5cbd50db3edf ]
if seq_file .next fuction does not change position index, read after some lseek can generate unexpected output.
https://bugzilla.kernel.org/show_bug.cgi?id=206283
--- fs/orangefs/orangefs-debugfs.c | 1 + 1 file changed, 1 insertion(+)
fs/orangefs/orangefs-debugfs.c +1 -0
@@ -273,6 +273,7 @@ static void *help_start(struct seq_file *m, loff_t *pos)static void *help_next (struct seq_file *m,void *v,loff_t *pos) { + (*pos)++;gossip_debug (GOSSIP_DEBUGFS_DEBUG ,"help_next: start\n" );return NULL ;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 337/344 i40e: Relax i40e_xsk_wakeups return value when PF is busy
In reply to Greg Kroah-HartmanFrom: Maciej Fijalkowski <[email protected]>
[ Upstream commit c77e9f09143822623dd71a0fdc84331129e97c3a ]
Return -EAGAIN instead of -ENETDOWN to provide a slightly milder information to user space so that an application will know to retry the syscall when __I40E_CONFIG_BUSY bit is set on pf->state.
--- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_xsk.c +1 -1
@@ -791,7 +791,7 @@ int i40e_xsk_wakeup(struct net_device *dev, u32 queue_id, u32 flags)struct i40e_ring *ring;if (test_bit (__I40E_CONFIG_BUSY, pf->state)) -return -ENETDOWN ; +return -EAGAIN ;if (test_bit (__I40E_VSI_DOWN, vsi->state))return -ENETDOWN ;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 338/344 cifs: log warning message (once) if out of disk space
In reply to Greg Kroah-HartmanFrom: Steve French <[email protected]>
[ Upstream commit d6fd41905ec577851734623fb905b1763801f5ef ]
We ran into a confusing problem where an application wasn't checking return code on close and so user didn't realize that the application ran out of disk space. log a warning message (once) in these cases. For example:
[ 8407.391909] Out of space writing to \\oleg-server\small-share
--- fs/cifs/smb2pdu.c | 3 +++ 1 file changed, 3 insertions(+)
fs/cifs/smb2pdu.c +3 -0
@@ -3917,6 +3917,9 @@ smb2_writev_callback(struct mid_q_entry *mid) wdata->cfile->fid.persistent_fid, tcon->tid, tcon->ses->Suid, wdata->offset, wdata->bytes, wdata->result); +if (wdata->result == -ENOSPC ) +printk_once (KERN_WARNING "Out of space writing to %s\n" , + tcon->treeName); }else trace_smb3_write_done(0 /* no xid */, wdata->cfile->fid.persistent_fid,
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 339/344 virtio_balloon: prevent pfn array overflow
In reply to Greg Kroah-HartmanFrom: Michael S. Tsirkin <[email protected]>
[ Upstream commit 6e9826e77249355c09db6ba41cd3f84e89f4b614 ]
Make sure, at build time, that pfn array is big enough to hold a single page. It happens to be true since the PAGE_SHIFT value at the moment is 20, which is 1M - exactly 256 4K balloon pages.
--- drivers/virtio/virtio_balloon.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/virtio/virtio_balloon.c +2 -0
@@ -157,6 +157,8 @@ static void set_page_pfns(struct virtio_balloon *vb, {unsigned int i; +BUILD_BUG_ON (VIRTIO_BALLOON_PAGES_PER_PAGE >VIRTIO_BALLOON_ARRAY_PFNS_MAX ); +/* * Set balloon pfns pointing at this page. * Note that the first pfn points at start of the page.
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 340/344 fuse: dont overflow LLONG_MAX with end offset
In reply to Greg Kroah-HartmanFrom: Miklos Szeredi <[email protected]>
[ Upstream commit 2f1398291bf35fe027914ae7a9610d8e601fbfde ]
Handle the special case of fuse_readpages() wanting to read the last page of a hugest file possible and overflowing the end offset in the process.
This is basically to unbreak xfstests:generic/525 and prevent filesystems from doing bad things with an overflowing offset.
--- fs/fuse/file.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
fs/fuse/file.c +12 -0
@@ -803,6 +803,10 @@ static int fuse_do_readpage(struct file *file, struct page *page) attr_ver =fuse_get_attr_version (fc); +/* Don't overflow end offset */ +if (pos + (desc.length -1 ) ==LLONG_MAX ) + desc.length--; +fuse_read_args_fill (&ia, file, pos, desc.length,FUSE_READ ); res =fuse_simple_request (fc, &ia.ap.args);if (res <0 )
@@ -888,6 +892,14 @@ static void fuse_send_readpages(struct fuse_io_args *ia, struct file *file) ap->args.out_pages = true; ap->args.page_zeroing = true; ap->args.page_replace = true; + +/* Don't overflow end offset */ +if (pos + (count -1 ) ==LLONG_MAX ) { + count--; + ap->descs[ap->num_pages -1 ].length--; + } +WARN_ON ((loff_t) (pos + count) <0 ); +fuse_read_args_fill (ia, file, pos, count,FUSE_READ ); ia->read.attr_ver =fuse_get_attr_version (fc);if (fc->async_read) {
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 341/344 mlxsw: spectrum_dpipe: Add missing error path
In reply to Greg Kroah-HartmanFrom: Ido Schimmel <[email protected]>
[ Upstream commit 3a99cbb6fa7bca1995586ec2dc21b0368aad4937 ]
In case devlink_dpipe_entry_ctx_prepare() failed, release RTNL that was previously taken and free the memory allocated by mlxsw_sp_erif_entry_prepare().
--- drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c +2 -1
@@ -215,7 +215,7 @@ mlxsw_sp_dpipe_table_erif_entries_dump(void *priv, bool counters_enabled, start_again: err =devlink_dpipe_entry_ctx_prepare (dump_ctx);if (err) -return err; + goto err_ctx_prepare; j =0 ;for (; i < rif_count; i++) {struct mlxsw_sp_rif *rif =mlxsw_sp_rif_by_index (mlxsw_sp, i);
@@ -247,6 +247,7 @@ start_again:return 0 ; err_entry_append: err_entry_get: +err_ctx_prepare:rtnl_unlock ();devlink_dpipe_entry_clear (&entry);return err;
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 342/344 s390/pci: Recover handle in clp_set_pci_fn()
In reply to Greg Kroah-HartmanFrom: Niklas Schnelle <[email protected]>
[ Upstream commit 17cdec960cf776b20b1fb08c622221babe591d51 ]
When we try to recover a PCI function using
echo 1 > /sys/bus/pci/devices/<id>/recover
or manually with
echo 1 > /sys/bus/pci/devices/<id>/remove
echo 0 > /sys/bus/pci/slots/<slot>/power
echo 1 > /sys/bus/pci/slots/<slot>/power
clp_disable_fn() / clp_enable_fn() call clp_set_pci_fn() to first disable and then reenable the function.
When the function is already in the requested state we may be left with an invalid function handle.
To get a new valid handle we do a clp_list_pci() call. For this we need both the function ID and function handle in clp_set_pci_fn() so pass the zdev and get both.
To simplify things also pull setting the refreshed function handle into clp_set_pci_fn()
--- arch/s390/include/asm/pci.h | 2 +- arch/s390/pci/pci.c | 2 +- arch/s390/pci/pci_clp.c | 48 ++++++++++++++++++++++--------------- 3 files changed, 31 insertions(+), 21 deletions(-)
arch/s390/include/asm/pci.h +1 -1
@@ -183,7 +183,7 @@ void zpci_remove_reserved_devices(void);/* CLP */ int clp_scan_pci_devices (void );int clp_rescan_pci_devices (void ); -int clp_rescan_pci_devices_simple (void ); +int clp_rescan_pci_devices_simple (u32 *fid);int clp_add_pci_device (u32 ,u32 ,int );int clp_enable_fh (struct zpci_dev *,u8 );int clp_disable_fh (struct zpci_dev *);
arch/s390/pci/pci.c +1 -1
@@ -934,5 +934,5 @@ subsys_initcall_sync(pci_base_init);void zpci_rescan (void ) {if (zpci_is_enabled ()) -clp_rescan_pci_devices_simple (); +clp_rescan_pci_devices_simple (NULL ); }
arch/s390/pci/pci_clp.c +29 -19
113 lines not on this page · raw message
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 343/344 drm/amdgpu/display: handle multiple numbers of fclks in dcn_calcs.c (v2)
In reply to Greg Kroah-HartmanFrom: Alex Deucher <[email protected]>
[ Upstream commit c37243579d6c881c575dcfb54cf31c9ded88f946 ]
We might get different numbers of clocks from powerplay depending on what the OEM has populated.
v2: add assert for at least one level
--- .../gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 34 +++++++++++++------ 1 file changed, 23 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +23 -11
@@ -1438,6 +1438,7 @@ void dcn_bw_update_from_pplib(struct dc *dc)struct dc_context *ctx = dc->ctx;struct dm_pp_clock_levels_with_voltage fclks = {0 }, dcfclks = {0 };bool res; +unsigned vmin0p65_idx, vmid0p72_idx, vnom0p8_idx, vmax0p9_idx;/* TODO: This is not the proper way to obtain fabric_and_dram_bandwidth, should be min(fclk, memclk) */ res = dm_pp_get_clock_levels_by_type_with_voltage(
@@ -1449,17 +1450,28 @@ void dcn_bw_update_from_pplib(struct dc *dc) res =verify_clock_values (&fclks);if (res) { -ASSERT (fclks.num_levels >=3 ); - dc->dcn_soc->fabric_and_dram_bandwidth_vmin0p65 =32 * (fclks.data[0 ].clocks_in_khz /1000.0 ) /1000.0 ; - dc->dcn_soc->fabric_and_dram_bandwidth_vmid0p72 = dc->dcn_soc->number_of_channels * - (fclks.data[fclks.num_levels - (fclks.num_levels >2 ?3 :2 )].clocks_in_khz /1000.0 ) - * ddr4_dram_factor_single_Channel /1000.0 ; - dc->dcn_soc->fabric_and_dram_bandwidth_vnom0p8 = dc->dcn_soc->number_of_channels * - (fclks.data[fclks.num_levels -2 ].clocks_in_khz /1000.0 ) - * ddr4_dram_factor_single_Channel /1000.0 ; - dc->dcn_soc->fabric_and_dram_bandwidth_vmax0p9 = dc->dcn_soc->number_of_channels * - (fclks.data[fclks.num_levels -1 ].clocks_in_khz /1000.0 ) - * ddr4_dram_factor_single_Channel /1000.0 ; +ASSERT (fclks.num_levels); + + vmin0p65_idx =0 ; + vmid0p72_idx = fclks.num_levels - + (fclks.num_levels >2 ?3 : (fclks.num_levels >1 ?2 :1 )); + vnom0p8_idx = fclks.num_levels - (fclks.num_levels >1 ?2 :1 ); + vmax0p9_idx = fclks.num_levels -1 ; + + dc->dcn_soc->fabric_and_dram_bandwidth_vmin0p65 = +32 * (fclks.data[vmin0p65_idx].clocks_in_khz /1000.0 ) /1000.0 ; + dc->dcn_soc->fabric_and_dram_bandwidth_vmid0p72 = + dc->dcn_soc->number_of_channels * + (fclks.data[vmid0p72_idx].clocks_in_khz /1000.0 ) + * ddr4_dram_factor_single_Channel /1000.0 ; + dc->dcn_soc->fabric_and_dram_bandwidth_vnom0p8 = + dc->dcn_soc->number_of_channels * + (fclks.data[vnom0p8_idx].clocks_in_khz /1000.0 ) + * ddr4_dram_factor_single_Channel /1000.0 ; + dc->dcn_soc->fabric_and_dram_bandwidth_vmax0p9 = + dc->dcn_soc->number_of_channels * + (fclks.data[vmax0p9_idx].clocks_in_khz /1000.0 ) + * ddr4_dram_factor_single_Channel /1000.0 ; }else BREAK_TO_DEBUGGER ();
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerPATCH 344/344 bcache: properly initialize path and err in register_bcache()
In reply to Greg Kroah-HartmanFrom: Coly Li <[email protected]>
[ Upstream commit 29cda393bcaad160c4bf3676ddd99855adafc72f ]
Patch "bcache: rework error unwinding in register_bcache" from Christoph Hellwig changes the local variables 'path' and 'err' in undefined initial state. If the code in register_bcache() jumps to label 'out:' or 'out_module_put:' by goto, these two variables might be reference with undefined value by the following line,
out_module_put:
module_put(THIS_MODULE);
out:
pr_info("error %s: %s", path, err);
return ret;Therefore this patch initializes these two local variables properly in register_bcache() to avoid such issue.
--- drivers/md/bcache/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/md/bcache/super.c +3 -1
@@ -2373,18 +2373,20 @@ static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr, const char *buffer, size_t size) { const char *err; -char *path; +char *path =NULL ;struct cache_sb *sb;struct block_device *bdev =NULL ;struct page *sb_page;ssize_t ret; ret = -EBUSY ; + err ="failed to reference bcache module" ;if (!try_module_get (THIS_MODULE )) goto out;/* For latest state of bcache_is_reboot */ smp_mb (); + err ="bcache is in reboot" ;if (bcache_is_reboot) goto out_module_put;
Signature · 1 line
2.20.1
Jon Hunter
maintainerQuoted 20 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
...
Quoted 2 lines
Tero Kristo <[email protected]>
ARM: OMAP2+: pdata-quirks: add PRM data for reset support
The above commit is generating the following build error on ARM systems ...
dvs/git/dirty/git-master_l4t-upstream/kernel/arch/arm/mach-omap2/pdata-quirks.c:27:10: fatal error: linux/platform_data/ti-prm.h: No such file or directory
#include <linux/platform_data/ti-prm.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Cheers
Jon
Signature · 1 line
nvpublic
Quoted 30 lines · Jon Hunter
Quoted 20 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:...
Quoted 2 lines
Tero Kristo <[email protected]>
ARM: OMAP2+: pdata-quirks: add PRM data for reset support
Quoted 5 lines
The above commit is generating the following build error on ARM systems ...
dvs/git/dirty/git-master_l4t-upstream/kernel/arch/arm/mach-omap2/pdata-quirks.c:27:10: fatal error:linux/platform_data/ti-prm.h: No such file or directory#include <linux/platform_data/ti-prm.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build error:
../arch/arm/mach-omap2/pdata-quirks.c:27:10: fatal error:linux/platform_data/ti-prm.h: No such file or directory
27 | #include <linux/platform_data/ti-prm.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [../scripts/Makefile.build:265:arch/arm/mach-omap2/pdata-quirks.o] Error 1
With these below three patches, it applies cleanly and builds. But I'm not sure these are not expected to get into stable rc 5.4 branch.
3e99cb214f03 ("soc: ti: add initial PRM driver with reset control support") c5117a78dd88 ("soc: ti: omap-prm: poll for reset complete during de-assert") d30cd83f6853 ("soc: ti: omap-prm: add support for denying idle for reset clockdomain")
However, it's only patchd30cd83f6853 ("soc: ti: omap-prm: add support for denying idle for reset clockdomain")
that introduces file linux/platform_data/ti-prm.h
Quoted 47 lines · Naresh Kamboju
Quoted 30 lines · Jon Hunter
Quoted 20 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:...
Quoted 2 lines
Tero Kristo <[email protected]>
ARM: OMAP2+: pdata-quirks: add PRM data for reset supportQuoted 5 lines
The above commit is generating the following build error on ARM systems ...
dvs/git/dirty/git-master_l4t-upstream/kernel/arch/arm/mach-omap2/pdata-quirks.c:27:10: fatal error:linux/platform_data/ti-prm.h: No such file or directory#include <linux/platform_data/ti-prm.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~build error:
../arch/arm/mach-omap2/pdata-quirks.c:27:10: fatal error:linux/platform_data/ti-prm.h: No such file or directory
27 | #include <linux/platform_data/ti-prm.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [../scripts/Makefile.build:265:arch/arm/mach-omap2/pdata-quirks.o] Error 1
Quoted 2 lines
With these below three patches, it applies cleanly and builds. But I'm not sure these are not expected to get into stable rc 5.4 branch.
Yeah, without PRM driver the pdata-quirk patch should not have been picked up. I wonder why it ended up in stable. Tony, any ideas?
-Tero
Quoted 15 lines
3e99cb214f03("soc: ti: add initial PRM driver with reset control support")c5117a78dd88("soc: ti: omap-prm: poll for reset complete during de-assert")d30cd83f6853("soc: ti: omap-prm: add support for denying idle for reset clockdomain")However, it's only patch
d30cd83f6853("soc: ti: omap-prm: add support for denying idle for reset clockdomain")
that introduces filelinux/platform_data/ti-prm.h--
Linaro LKFT
https://lkft.linaro.org
Greg Kroah-Hartman
maintainerQuoted 48 lines · Tero Kristo
Quoted 47 lines · Naresh Kamboju
Quoted 30 lines · Jon Hunter
Quoted 20 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:...
Quoted 2 lines
Tero Kristo <[email protected]>
ARM: OMAP2+: pdata-quirks: add PRM data for reset supportQuoted 5 lines
The above commit is generating the following build error on ARM systems ...
dvs/git/dirty/git-master_l4t-upstream/kernel/arch/arm/mach-omap2/pdata-quirks.c:27:10: fatal error:linux/platform_data/ti-prm.h: No such file or directory#include <linux/platform_data/ti-prm.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~build error:
../arch/arm/mach-omap2/pdata-quirks.c:27:10: fatal error:linux/platform_data/ti-prm.h: No such file or directory
27 | #include <linux/platform_data/ti-prm.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [../scripts/Makefile.build:265:arch/arm/mach-omap2/pdata-quirks.o] Error 1
Quoted 5 lines
Quoted 2 lines
With these below three patches, it applies cleanly and builds. But I'm not sure these are not expected to get into stable rc 5.4 branch.
Yeah, without PRM driver the pdata-quirk patch should not have been picked up. I wonder why it ended up in stable. Tony, any ideas?
I've dropped the offending patch now, sorry about that.
greg k-h
Jon Hunter
maintainerOn 23/02/2020 17:26, Greg Kroah-Hartman wrote:
...
Quoted 3 lines
I've dropped the offending patch now, sorry about that.
greg k-h
Thanks. I know that it is already out but FWIW, looks good to me ...
Test results for stable-v5.4:
13 builds: 13 pass, 0 fail
22 boots: 22 pass, 0 fail
40 tests: 40 pass, 0 failLinux version: 5.4.22-gf22dcb31727e
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
tegra194-p2972-0000, tegra20-ventana,
tegra210-p2371-2180, tegra210-p3450-0000,
tegra30-cardhu-a04Cheers
Jon
Signature · 1 line
nvpublic
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
Build reference: v5.4.21-345-gbae6e9bf73af
gcc version: x86_64-linux-gcc (GCC) 9.2.0
Building x86_64:allnoconfig ... failed
--------------
Error log:arch/x86/kernel/unwind_orc.c: In function 'unwind_init':arch/x86/kernel/unwind_orc.c:278:56: error: 'orc_sort_cmp' undeclared (first use in this function)
Affects v{4.14,4.19,5,4,5,5}.y.queue.
Quoted 13 lines · Guenter Roeck
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
Build reference: v5.4.21-345-gbae6e9bf73af
gcc version: x86_64-linux-gcc (GCC) 9.2.0
Quoted 7 lines
Building x86_64:allnoconfig ... failed
--------------
Error log:arch/x86/kernel/unwind_orc.c: In function 'unwind_init':arch/x86/kernel/unwind_orc.c:278:56: error: 'orc_sort_cmp' undeclared (first use in this function)Affects v{4.14,4.19,5,4,5,5}.y.queue.
This seems to be due to commit 22a7fa8848c5 (x86-unwind-orc-fix- config_modules-build-warning.patch), which is only valid after commit f14bf6a350df "x86/unwind/orc: Remove boot-time ORC unwind tables sorting".
Ben.
Quoted 1 line
Signature · 3 lines
Ben Hutchings, Software Developer Codethink Ltd
https://www.codethink.co.uk/ Dale House, 35 Dale Street
Manchester, M1 2HF, United KingdomGreg Kroah-Hartman
maintainerQuoted 20 lines · Ben Hutchings
Quoted 19 lines · Guenter Roeck
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
Build reference: v5.4.21-345-gbae6e9bf73af
gcc version: x86_64-linux-gcc (GCC) 9.2.0Building x86_64:allnoconfig ... failed
--------------
Error log:arch/x86/kernel/unwind_orc.c: In function 'unwind_init':arch/x86/kernel/unwind_orc.c:278:56: error: 'orc_sort_cmp' undeclared (first use in this function)
Quoted 6 lines
Quoted 1 line
Affects v{4.14,4.19,5,4,5,5}.y.queue.
This seems to be due to commit
22a7fa8848c5(x86-unwind-orc-fix- config_modules-build-warning.patch), which is only valid after commitf14bf6a350df"x86/unwind/orc: Remove boot-time ORC unwind tables sorting".
Ugh, sorry about that, now dropped from everywhere. I'll push out a -rc3 soon...
greg k-h
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
As already reported:
Build reference: v5.4.21-345-gbae6e9bf73af
gcc version: arm-linux-gnueabi-gcc (GCC) 9.2.0
Building arm:allmodconfig ... failed
Building arm:omap2plus_defconfig ... failed
--------------
Error log:arch/arm/mach-omap2/pdata-quirks.c:27:10: fatal error: linux/platform_data/ti-prm.h: No such file or directory
Also:
Building powerpc:defconfig ... failed
Building powerpc:mpc83xx_defconfig ... failed
--------------
Error log:drivers/rtc/rtc-ds1307.c:1570:21: error: variable 'regmap_config' has initializer but incomplete type
as well as various follow-up errors.
The second problem affects both v5.4.y and v5.5.y.
Guenter
On Fri, 2020-02-21 at 06:28 -0800, Guenter Roeck wrote:
[...]
Quoted 9 lines
Building powerpc:defconfig ... failed
Building powerpc:mpc83xx_defconfig ... failed
--------------
Error log:drivers/rtc/rtc-ds1307.c:1570:21: error: variable 'regmap_config' has initializer but incomplete typeas well as various follow-up errors.
The second problem affects both v5.4.y and v5.5.y.
This seems to be caused by commit 34719de919af (rtc-i2c-spi-avoid- inclusion-of-regmap-support-when-n.patch). These branches will need commit 578c2b661e2b "rtc: Kconfig: select REGMAP_I2C when necessary" as well.
Ben.
Signature · 3 lines
Ben Hutchings, Software Developer Codethink Ltd
https://www.codethink.co.uk/ Dale House, 35 Dale Street
Manchester, M1 2HF, United KingdomQuoted 8 lines · Ben Hutchings
On Fri, 2020-02-21 at 06:28 -0800, Guenter Roeck wrote:
[...]Quoted 6 lines
Building powerpc:defconfig ... failed
Building powerpc:mpc83xx_defconfig ... failed
--------------
Error log:drivers/rtc/rtc-ds1307.c:1570:21: error: variable 'regmap_config' has initializer but incomplete type
Quoted 9 lines
Quoted 3 lines
as well as various follow-up errors.
The second problem affects both v5.4.y and v5.5.y.
This seems to be caused by commit
34719de919af(rtc-i2c-spi-avoid- inclusion-of-regmap-support-when-n.patch). These branches will need commit578c2b661e2b"rtc:Kconfig: selectREGMAP_I2Cwhen necessary" as well.
Yes, I recall we had the same problem before, and the offending patch was removed from the queue. Wonder how it made it back in without the context patch (which either you or someone else also reported at the time).
Guenter
Sasha Levin
maintainerQuoted 19 lines · Guenter Roeck
Quoted 8 lines · Ben Hutchings
On Fri, 2020-02-21 at 06:28 -0800, Guenter Roeck wrote:
[...]Quoted 6 lines
Building powerpc:defconfig ... failed
Building powerpc:mpc83xx_defconfig ... failed
--------------
Error log:drivers/rtc/rtc-ds1307.c:1570:21: error: variable 'regmap_config' has initializer but incomplete typeQuoted 9 lines
Quoted 3 lines
as well as various follow-up errors.
The second problem affects both v5.4.y and v5.5.y.
This seems to be caused by commit
34719de919af(rtc-i2c-spi-avoid- inclusion-of-regmap-support-when-n.patch). These branches will need commit578c2b661e2b"rtc:Kconfig: selectREGMAP_I2Cwhen necessary" as well.
Quoted 3 lines
Yes, I recall we had the same problem before, and the offending patch was removed from the queue. Wonder how it made it back in without the context patch (which either you or someone else also reported at the time).
The first time was Greg picking it up, the second time it was me :)
My build bot is busted, and I'm working on repairing it, appologies for the noise.
I've grabbed 578c2b661e2b for both 5.5 and 5.4.
Signature · 2 lines
Thanks, Sasha
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
Compiled and booted on test system. No dmesg regressions.
thanks,
-- Shuah
Quoted 7 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
Results from Linaro’s test farm.
Regression detected - no results for 32-bit arm due to build failure reported at
https://lore.kernel.org/lkml/[email protected].
No regressions on arm64, x86_64, and i386.
Summary
------------------------------------------------------------------------
kernel: 5.4.22-rc1
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git branch: linux-5.4.y
git commit: bae6e9bf73af8cae01e99a54d0bedee266637ff8
git describe: v5.4.21-345-gbae6e9bf73af
Test details: https://qa-reports.linaro.org/lkft/linux-stable-rc-5.4-oe/build/v5.4.21-345-gbae6e9bf73af
Regressions (compared to build v5.4.21)
------------------------------------------------------------------------
x15:
build:
* build_process
No fixes (compared to build v5.4.21)
Ran 25765 total tests in the following environments and test suites.
Environments
--------------
- dragonboard-410c
- hi6220-hikey
- i386
- juno-r2
- qemu_arm64
- qemu_i386
- qemu_x86_64
- x15
- x86
Test Suites
-----------
* build
* install-android-platform-tools-r2600
* kselftest
* libgpiod
* libhugetlbfs
* linux-log-parser
* ltp-cap_bounds-tests
* ltp-commands-tests
* ltp-containers-tests
* ltp-cpuhotplug-tests
* ltp-cve-tests
* ltp-dio-tests
* ltp-fcntl-locktests-tests
* ltp-filecaps-tests
* ltp-fs_bind-tests
* ltp-fs_perms_simple-tests
* ltp-fsx-tests
* ltp-hugetlb-tests
* ltp-io-tests
* ltp-ipc-tests
* ltp-math-tests
* ltp-mm-tests
* ltp-nptl-tests
* ltp-pty-tests
* ltp-sched-tests
* ltp-securebits-tests
* ltp-syscalls-tests
* perf
* spectre-meltdown-checker-test
* v4l2-compliance
* ltp-fs-tests
* network-basic-tests
* ltp-open-posix-tests
* kvm-unit-tests
* ltp-cap_bounds-64k-page_size-tests
* ltp-cap_bounds-kasan-tests
* ltp-commands-64k-page_size-tests
* ltp-commands-kasan-tests
* ltp-containers-64k-page_size-tests
* ltp-containers-kasan-tests
* ltp-cpuhotplug-64k-page_size-tests
* ltp-cpuhotplug-kasan-tests
* ltp-cve-64k-page_size-tests
* ltp-cve-kasan-tests
* ltp-dio-64k-page_size-tests
* ltp-dio-kasan-tests
* ltp-fcntl-locktests-64k-page_size-tests
* ltp-fcntl-locktests-kasan-tests
* ltp-filecaps-64k-page_size-tests
* ltp-filecaps-kasan-tests
* ltp-fs-64k-page_size-tests
* ltp-fs-kasan-tests
* ltp-fs_bind-64k-page_size-tests
* ltp-fs_bind-kasan-tests
* ltp-fs_perms_simple-64k-page_size-tests
* ltp-fs_perms_simple-kasan-tests
* ltp-fsx-64k-page_size-tests
* ltp-fsx-kasan-tests
* ltp-hugetlb-64k-page_size-tests
* ltp-hugetlb-kasan-tests
* ltp-io-64k-page_size-tests
* ltp-io-kasan-tests
* ltp-ipc-64k-page_size-tests
* ltp-ipc-kasan-tests
* ltp-math-64k-page_size-tests
* ltp-math-kasan-tests
* ltp-mm-kasan-tests
* ltp-nptl-64k-page_size-tests
* ltp-nptl-kasan-tests
* ltp-pty-64k-page_size-tests
* ltp-pty-kasan-tests
* ltp-sched-64k-page_size-tests
* ltp-sched-kasan-tests
* ltp-securebits-64k-page_size-tests
* ltp-securebits-kasan-tests
* ltp-syscalls-64k-page_size-tests
* ltp-syscalls-compat-tests
* ltp-syscalls-kasan-tests
* kselftest-vsyscall-mode-native
* kselftest-vsyscall-mode-none
* ssuite
Signature · 2 lines
Linaro LKFT https://lkft.linaro.org
Greg Kroah-Hartman
maintainerQuoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Quoted 8 lines
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.
-rc2 is out to hopefully resolve the reported problems:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc2.gz
Greg Kroah-Hartman
maintainerQuoted 15 lines · Greg Kroah-Hartman
Quoted 13 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.
Review
Quoted 2 lines
(quoted diff) +0
-1-rc2 is out to hopefully resolve the reported problems: https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc2.gz
-rc3 is out:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc3.gz
Quoted 3 lines · Greg Kroah-Hartman
-rc3 is out:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.22-rc3.gz
Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.
Summary
------------------------------------------------------------------------
kernel: 5.4.22-rc3
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git branch: linux-5.4.y
git commit: 3b5dde2478ad5b400cc44737c1a26e9503608360
git describe: v5.4.21-338-g3b5dde2478ad
Test details: https://qa-reports.linaro.org/lkft/linux-stable-rc-5.4-oe/build/v5.4.21-338-g3b5dde2478ad
No regressions (compared to build v5.4.21)
No fixes (compared to build v5.4.21)
Ran 27869 total tests in the following environments and test suites.
Environments
--------------
- dragonboard-410c
- hi6220-hikey
- i386
- juno-r2
- qemu_arm
- qemu_arm64
- qemu_i386
- qemu_x86_64
- x15
- x86
Test Suites
-----------
* build
* install-android-platform-tools-r2600
* kselftest
* libgpiod
* libhugetlbfs
* linux-log-parser
* ltp-cap_bounds-tests
* ltp-commands-tests
* ltp-containers-tests
* ltp-cpuhotplug-tests
* ltp-cve-tests
* ltp-dio-tests
* ltp-fcntl-locktests-tests
* ltp-filecaps-tests
* ltp-fs_bind-tests
* ltp-fs_perms_simple-tests
* ltp-hugetlb-tests
* ltp-io-tests
* ltp-ipc-tests
* ltp-math-tests
* ltp-mm-tests
* ltp-nptl-tests
* ltp-pty-tests
* ltp-sched-tests
* ltp-securebits-tests
* ltp-syscalls-tests
* perf
* spectre-meltdown-checker-test
* v4l2-compliance
* ltp-fs-tests
* ltp-fsx-tests
* network-basic-tests
* ltp-open-posix-tests
* kvm-unit-tests
* ltp-cap_bounds-64k-page_size-tests
* ltp-cap_bounds-kasan-tests
* ltp-commands-64k-page_size-tests
* ltp-commands-kasan-tests
* ltp-containers-64k-page_size-tests
* ltp-containers-kasan-tests
* ltp-cpuhotplug-64k-page_size-tests
* ltp-cpuhotplug-kasan-tests
* ltp-cve-64k-page_size-tests
* ltp-dio-64k-page_size-tests
* ltp-dio-kasan-tests
* ltp-fcntl-locktests-64k-page_size-tests
* ltp-fcntl-locktests-kasan-tests
* ltp-filecaps-64k-page_size-tests
* ltp-filecaps-kasan-tests
* ltp-fs-64k-page_size-tests
* ltp-fs-kasan-tests
* ltp-fs_bind-64k-page_size-tests
* ltp-fs_bind-kasan-tests
* ltp-fs_perms_simple-64k-page_size-tests
* ltp-fs_perms_simple-kasan-tests
* ltp-fsx-64k-page_size-tests
* ltp-fsx-kasan-tests
* ltp-hugetlb-64k-page_size-tests
* ltp-hugetlb-kasan-tests
* ltp-io-64k-page_size-tests
* ltp-io-kasan-tests
* ltp-ipc-64k-page_size-tests
* ltp-ipc-kasan-tests
* ltp-math-64k-page_size-tests
* ltp-math-kasan-tests
* ltp-mm-kasan-tests
* ltp-nptl-64k-page_size-tests
* ltp-nptl-kasan-tests
* ltp-pty-64k-page_size-tests
* ltp-pty-kasan-tests
* ltp-sched-64k-page_size-tests
* ltp-sched-kasan-tests
* ltp-securebits-64k-page_size-tests
* ltp-securebits-kasan-tests
* ltp-syscalls-64k-page_size-tests
* ltp-syscalls-compat-tests
* ltp-syscalls-kasan-tests
* kselftest-vsyscall-mode-native
* kselftest-vsyscall-mode-none
* ssuite
Signature · 2 lines
Linaro LKFT https://lkft.linaro.org
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.22 release. There are 344 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sun, 23 Feb 2020 07:19:49 +0000. Anything received after that time might be too late.
For v5.4.21-338-g3b5dde2478ad:
Build results:
total: 158 pass: 158 fail: 0 Qemu test results: total: 411 pass: 411 fail: 0
Guenter