Bug 119471 - UBSAN: Undefined behaviour in /home/vitti/1tb/vitti/rpmbuild/SOURCES/linux-4.5/drivers/base/power/trace.c:178:18
Summary: UBSAN: Undefined behaviour in /home/vitti/1tb/vitti/rpmbuild/SOURCES/linux-4....
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: x86-64 Linux
: P1 low
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-02 04:30 UTC by Vittorio
Modified: 2016-06-02 04:30 UTC (History)
0 users

See Also:
Kernel Version: 4.5.5
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Vittorio 2016-06-02 04:30:18 UTC
At boot time I get the following:

Jun 02 06:01:25 nero21 kernel: ================================================================================
Jun 02 06:01:25 nero21 kernel: UBSAN: Undefined behaviour in /home/vitti/1tb/vitti/rpmbuild/SOURCES/linux-4.5/drivers/base/power/trace.c:178:18
Jun 02 06:01:25 nero21 kernel: load of address ffffffff879c2198 with insufficient space
Jun 02 06:01:25 nero21 kernel: for an object of type 'char'
Jun 02 06:01:25 nero21 kernel: CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.5.5 #1
Jun 02 06:01:25 nero21 kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./H81M-DGS R2.0, BIOS P1.30 07/02/2014
Jun 02 06:01:25 nero21 kernel:  0000000000000000 0000000006c36e94 ffff88040cf5bd90 ffffffff820d38ba
Jun 02 06:01:25 nero21 kernel:  0000000000000012 0000000006c36e94 ffff88040cf5bdb8 ffffffff879c2198
Jun 02 06:01:25 nero21 kernel:  ffff88040cf5bda8 ffffffff8215e6a4 ffffffff88f512e0 ffff88040cf5bdd8
Jun 02 06:01:25 nero21 kernel: Call Trace:
Jun 02 06:01:25 nero21 kernel:  [<ffffffff820d38ba>] dump_stack+0x74/0xaf
Jun 02 06:01:25 nero21 kernel:  [<ffffffff8215e6a4>] ubsan_epilogue+0xd/0x3b
Jun 02 06:01:25 nero21 kernel:  [<ffffffff8215ec74>] __ubsan_handle_type_mismatch+0xba/0x18c
Jun 02 06:01:25 nero21 kernel:  [<ffffffff82aeb03f>] late_resume_init+0xc8/0x335
Jun 02 06:01:25 nero21 kernel:  [<ffffffff82aeaf77>] ? early_resume_init+0x3d6/0x3d6
Jun 02 06:01:25 nero21 kernel:  [<ffffffff8bdc96c0>] do_one_initcall+0x15d/0x203
Jun 02 06:01:25 nero21 kernel:  [<ffffffff8bdc9aa4>] kernel_init_freeable+0x33e/0x3e8
Jun 02 06:01:25 nero21 kernel:  [<ffffffff86594f5e>] ? rest_init+0x7e/0x7e
Jun 02 06:01:25 nero21 kernel:  [<ffffffff86594f6c>] kernel_init+0xe/0xe2
Jun 02 06:01:25 nero21 kernel:  [<ffffffff865aa74f>] ret_from_fork+0x3f/0x70
Jun 02 06:01:25 nero21 kernel:  [<ffffffff86594f5e>] ? rest_init+0x7e/0x7e
Jun 02 06:01:25 nero21 kernel: ================================================================================
Jun 02 06:01:25 nero21 kernel: ================================================================================
Jun 02 06:01:25 nero21 kernel: UBSAN: Undefined behaviour in /home/vitti/1tb/vitti/rpmbuild/SOURCES/linux-4.5/drivers/base/power/trace.c:179:15
Jun 02 06:01:25 nero21 kernel: load of address ffffffff879c219a with insufficient space
Jun 02 06:01:25 nero21 kernel: for an object of type 'const char *'
Jun 02 06:01:25 nero21 kernel: CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.5.5 #1
Jun 02 06:01:25 nero21 kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./H81M-DGS R2.0, BIOS P1.30 07/02/2014
Jun 02 06:01:25 nero21 kernel:  0000000000000000 0000000006c36e94 ffff88040cf5bd90 ffffffff820d38ba
Jun 02 06:01:25 nero21 kernel:  000000000000000f 0000000006c36e94 ffff88040cf5bdb8 ffffffff879c219a
Jun 02 06:01:25 nero21 kernel:  ffff88040cf5bda8 ffffffff8215e6a4 ffffffff88f512a0 ffff88040cf5bdd8
Jun 02 06:01:25 nero21 kernel: Call Trace:
Jun 02 06:01:25 nero21 kernel:  [<ffffffff820d38ba>] dump_stack+0x74/0xaf
Jun 02 06:01:25 nero21 kernel:  [<ffffffff8215e6a4>] ubsan_epilogue+0xd/0x3b
Jun 02 06:01:25 nero21 kernel:  [<ffffffff8215ec74>] __ubsan_handle_type_mismatch+0xba/0x18c
Jun 02 06:01:25 nero21 kernel:  [<ffffffff82aeb2a4>] late_resume_init+0x32d/0x335
Jun 02 06:01:25 nero21 kernel:  [<ffffffff82aeaf77>] ? early_resume_init+0x3d6/0x3d6
Jun 02 06:01:25 nero21 kernel:  [<ffffffff8bdc96c0>] do_one_initcall+0x15d/0x203
Jun 02 06:01:25 nero21 kernel:  [<ffffffff8bdc9aa4>] kernel_init_freeable+0x33e/0x3e8
Jun 02 06:01:25 nero21 kernel:  [<ffffffff86594f5e>] ? rest_init+0x7e/0x7e
Jun 02 06:01:25 nero21 kernel:  [<ffffffff86594f6c>] kernel_init+0xe/0xe2
Jun 02 06:01:25 nero21 kernel:  [<ffffffff865aa74f>] ret_from_fork+0x3f/0x70
Jun 02 06:01:25 nero21 kernel:  [<ffffffff86594f5e>] ? rest_init+0x7e/0x7e
Jun 02 06:01:25 nero21 kernel: ===============================================================================


trace.c:178 is "unsigned short lineno = *(unsigned short *)tracedata;"

trace.c:179 is "const char *file = *(const char **)(tracedata + 2);"

Note You need to log in before you can comment on or make changes to this bug.