public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: linux-kernel@vger.kernel.org, stable@kernel.org
Cc: Justin Forbes <jmforbes@linuxtx.org>,
	Zwane Mwaikambo <zwane@arm.linux.org.uk>,
	"Theodore Ts'o" <tytso@mit.edu>,
	Randy Dunlap <rdunlap@xenotime.net>,
	Dave Jones <davej@redhat.com>,
	Chuck Wolber <chuckw@quantumlinux.com>,
	Chris Wedgwood <reviews@ml.cw.f00f.org>,
	Michael Krufky <mkrufky@linuxtv.org>,
	Chuck Ebbert <cebbert@redhat.com>,
	Domenico Andreoli <cavokz@gmail.com>, Willy Tarreau <w@1wt.eu>,
	Rodrigo Rubira Branco <rbranco@la.checkpoint.com>,
	Jake Edge <jake@lwn.net>, Eugene Teo <eteo@redhat.com>,
	torvalds@linux-foundation.org, akpm@linux-foundation.org,
	alan@lxorguk.ukuu.org.uk,
	Darren Salt <linux@youmustbejoking.demon.co.uk>,
	Len Brown <len.brown@intel.com>
Subject: [patch 20/53] eeepc-laptop: fix oops when changing backlight brightness during eeepc-laptop init
Date: Tue, 10 Feb 2009 11:00:22 -0800	[thread overview]
Message-ID: <20090210190022.GU14308@kroah.com> (raw)
In-Reply-To: <20090210185924.GA14308@kroah.com>

[-- Attachment #1: eeepc-laptop-fix-oops-when-changing-backlight-brightness-during-eeepc-laptop-init.patch --]
[-- Type: text/plain, Size: 2462 bytes --]

2.6.28-stable review patch.  If anyone has any objections, please let us know.
------------------

From: Darren Salt <linux@youmustbejoking.demon.co.uk>

commit 7695fb04aca62e2d8a7ca6ede50f6211e1d71e53 upstream.

I got the following oops while changing the backlight brightness during
startup.  When it happens, it prevents use of the hotkeys, Fn-Fx, and the
lid button.

It's a clear use-before-init, as I verified by testing with an
appropriately-placed "else printk".

BUG: unable to handle kernel NULL pointer dereference at 00000000
*pde = 00000000
Oops: 0002 [#1] PREEMPT SMP
Pid: 160, comm: kacpi_notify Not tainted (2.6.28.1-eee901 #4) 901
EIP: 0060:[<c0264e68>]  [<c0264e68>] eeepc_hotk_notify+26/da
EFLAGS: 00010246 CPU: 1
Using defaults from ksymoops -t elf32-i386 -a i386
EAX: 00000009 EBX: 00000000 ECX: 00000009 EDX: f70dbf64
ESI: 00000029 EDI: f7335188 EBP: c02112c9 ESP: f70dbf80
 DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
 f70731e0 f73acd50 c02164ac f7335180 f70aa040 c02112e6 f733518c c012b62f
 f70aa044 f70aa040 c012bdba f70aa04c 00000000 c012be6e 00000000 f70bdf80
 c012e198 f70dbfc4 f70dbfc4 f70aa040 c012bdba 00000000 c012e0c9 c012e091
Call Trace:
 [<c02164ac>] ? acpi_ev_notify_dispatch+4c/55
 [<c02112e6>] ? acpi_os_execute_deferred+1d/25
 [<c012b62f>] ? run_workqueue+71/f1
 [<c012bdba>] ? worker_thread+0/bf
 [<c012be6e>] ? worker_thread+b4/bf
 [<c012e198>] ? autoremove_wake_function+0/2b
 [<c012bdba>] ? worker_thread+0/bf
 [<c012e0c9>] ? kthread+38/5f
 [<c012e091>] ? kthread+0/5f
 [<c0103abf>] ? kernel_thread_helper+7/10
Code: 00 00 00 00 c3 83 3d 60 5c 50 c0 00 56 89 d6 53 0f 84 c4 00 00 00 8d 42
e0 83 f8 0f 77 0f 8b 1d 68 5c 50 c0 89 d8 e8 a9 fa ff ff <89> 03 8b 1d 60 5c
50 c0 89 f2 83 e2 7f 0f b7 4c 53 10 8d 41 01

Signed-off-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 drivers/misc/eeepc-laptop.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/misc/eeepc-laptop.c
+++ b/drivers/misc/eeepc-laptop.c
@@ -510,7 +510,8 @@ static int eeepc_hotk_check(void)
 static void notify_brn(void)
 {
 	struct backlight_device *bd = eeepc_backlight_device;
-	bd->props.brightness = read_brightness(bd);
+	if (bd)
+		bd->props.brightness = read_brightness(bd);
 }
 
 static void eeepc_hotk_notify(acpi_handle handle, u32 event, void *data)


  parent reply	other threads:[~2009-02-10 19:10 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090210185337.000769713@mini.kroah.org>
2009-02-10 18:59 ` [patch 00/53] 2.6.28-stable review Greg KH
2009-02-10 18:59   ` [patch 01/53] sgi-xp: fix writing past the end of kzalloc()d space Greg KH
2009-02-10 18:59   ` [patch 02/53] do_wp_page: fix regression with execute in place Greg KH
2009-02-10 18:59   ` [patch 03/53] wait: prevent exclusive waiter starvation Greg KH
2009-02-10 18:59   ` [patch 04/53] shm: fix shmctl(SHM_INFO) lockup with !CONFIG_SHMEM Greg KH
2009-02-10 18:59   ` [patch 05/53] revert "rlimit: permit setting RLIMIT_NOFILE to RLIM_INFINITY" Greg KH
2009-02-10 18:59   ` [patch 06/53] prevent kprobes from catching spurious page faults Greg KH
2009-02-10 18:59   ` [patch 07/53] sound: usb-audio: handle wMaxPacketSize for FIXED_ENDPOINT devices Greg KH
2009-02-10 18:59   ` [patch 08/53] md: Ensure an md array never has too many devices Greg KH
2009-02-10 18:59   ` [patch 09/53] md: Fix a bug in linear.c causing which_dev() to return the wrong device Greg KH
2009-02-10 19:00   ` [patch 10/53] ACPI: Enable bit 11 in _PDC to advertise hw coord Greg KH
2009-02-10 19:00   ` [patch 11/53] ACPI: dock: Dont eval _STA on every show_docked sysfs read Greg KH
2009-02-10 19:00   ` [patch 12/53] ieee1394: ohci1394: increase AT req. retries, fix ack_busy_X from Panasonic camcorders and others Greg KH
2009-02-10 19:00   ` [patch 13/53] firewire: ohci: " Greg KH
2009-02-10 19:00   ` [patch 14/53] firewire: sbp2: fix DMA mapping leak on the failure path Greg KH
2009-02-10 19:00   ` [patch 15/53] firewire: sbp2: add workarounds for 2nd and 3rd generation iPods Greg KH
2009-02-10 19:00   ` [patch 16/53] ieee1394: " Greg KH
2009-02-10 19:00   ` [patch 17/53] module: remove over-zealous check in __module_get() Greg KH
2009-02-10 19:00   ` [patch 18/53] serial: RS485 ioctl structure uses __u32 include linux/types.h Greg KH
2009-02-10 19:00   ` [patch 19/53] x86: APIC: enable workaround on AMD Fam10h CPUs Greg KH
2009-02-10 19:00   ` Greg KH [this message]
2009-02-10 19:00   ` [patch 21/53] eeepc-laptop: Add support for extended hotkeys Greg KH
2009-02-10 19:00   ` [patch 22/53] e1000: fix bug with shared interrupt during reset Greg KH
2009-02-10 19:00   ` [patch 23/53] e1000: Fix PCI enable to honor the need_ioport flag Greg KH
2009-02-10 19:00   ` [patch 24/53] agp/intel: add support for G41 chipset Greg KH
2009-02-10 19:00   ` [patch 25/53] agp/intel: Fix broken ® symbol in device name Greg KH
2009-02-10 19:00   ` [patch 26/53] ALSA: hda - Add quirk for FSC Amilo Xi2550 Greg KH
2009-02-10 19:00   ` [patch 27/53] ALSA: hda - Add missing COEF initialization for ALC887 Greg KH
2009-02-10 19:00   ` [patch 28/53] ALSA: hda - Add missing initialization for ALC272 Greg KH
2009-02-10 19:00   ` [patch 29/53] asus_acpi: Add R1F support Greg KH
2009-02-10 19:00   ` [patch 30/53] panasonic-laptop: fix X[ ARRAY_SIZE(X) ] Greg KH
2009-02-10 19:00   ` [patch 31/53] ACPI: Skip the first two elements in the _BCL package Greg KH
2009-02-10 19:00   ` [patch 32/53] ACPI: proc_dir_entry video/VGA already registered Greg KH
2009-02-10 19:00   ` [patch 33/53] ACPI: disable ACPI cleanly when bad RSDP found Greg KH
2009-02-10 19:00   ` [patch 34/53] ACPICA: Fix table entry truncation calculation Greg KH
2009-02-10 19:00   ` [patch 35/53] PCI: properly clean up ASPM link state on device remove Greg KH
2009-02-10 19:00   ` [patch 36/53] PCI: return error on failure to read PCI ROMs Greg KH
2009-02-10 19:01   ` [patch 37/53] seq_file: move traverse so it can be used from seq_read Greg KH
2009-02-10 19:01   ` [patch 38/53] seq_file: fix big-enough lseek() + read() Greg KH
2009-02-10 19:01   ` [patch 39/53] serial: set correct baud_base for Oxford Semiconductor Ltd EXSYS EX-41092 Dual 16950 Serial adapter Greg KH
2009-02-10 19:01   ` [patch 40/53] Add support for 8-port RS-232 MIC-3620 from advantech Greg KH
2009-02-10 19:01   ` [patch 41/53] mm: fix error case in mlock downgrade reversion Greg KH
2009-02-10 19:01   ` [patch 42/53] elf core dump: fix get_user use Greg KH
2009-02-10 19:01   ` [patch 43/53] ACPI: video: Fix reversed brightness behavior on ThinkPad SL series Greg KH
2009-02-10 19:01   ` [patch 44/53] ipw2200: fix scanning while associated Greg KH
2009-02-10 19:01   ` [patch 45/53] XFS: set b_error from bio error in xfs_buf_bio_end_io Greg KH
2009-02-10 19:01   ` [patch 46/53] Revert USB: option: add Pantech cards Greg KH
2009-02-10 19:01   ` [patch 47/53] USB: option: New mobile broadband modems to be supported Greg KH
2009-02-10 19:01   ` [patch 48/53] USB: new id for ti_usb_3410_5052 driver Greg KH
2009-02-10 19:01   ` [patch 49/53] USB: two more usb ids for ti_usb_3410_5052 Greg KH
2009-02-10 19:01   ` [patch 50/53] USB: usb-storage: add Pentax to the bad-vendor list Greg KH
2009-02-10 19:01   ` [patch 51/53] sata_via: Add VT8261 support Greg KH
2009-02-10 19:01   ` [patch 52/53] nbd: do not allow two clients at the same time Greg KH
2009-02-10 19:01   ` [patch 53/53] sctp: Fix another socket race during accept/peeloff Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090210190022.GU14308@kroah.com \
    --to=gregkh@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=cavokz@gmail.com \
    --cc=cebbert@redhat.com \
    --cc=chuckw@quantumlinux.com \
    --cc=davej@redhat.com \
    --cc=eteo@redhat.com \
    --cc=jake@lwn.net \
    --cc=jmforbes@linuxtx.org \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@youmustbejoking.demon.co.uk \
    --cc=mkrufky@linuxtv.org \
    --cc=rbranco@la.checkpoint.com \
    --cc=rdunlap@xenotime.net \
    --cc=reviews@ml.cw.f00f.org \
    --cc=stable@kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=tytso@mit.edu \
    --cc=w@1wt.eu \
    --cc=zwane@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox